/**
 * SubShare — local styles so pages render fully if the Tailwind CDN is slow or blocked.
 * Loads before tailwind CDN in head.php.
 */
:root {
  --primary: #0047bb;
  --primary-container: #00328a;
  --secondary: #575f6b;
  --tertiary: #12367b;
  --background: #f7f9fc;
  --surface: #f7f9fc;
  --surface-low: #f2f4f7;
  --surface-lowest: #ffffff;
  --surface-high: #e6e8eb;
  --on-surface: #191c1e;
  --on-surface-variant: #424654;
  --on-primary: #ffffff;
  --outline: #737785;
  --outline-variant: #c3c6d6;
  --error: #ba1a1a;
  --primary-fixed: #dbe1ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-center { align-self: center; }
.fixed { position: fixed; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-8 { top: 2rem; }
.top-24 { top: 6rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* Spacing */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-auto { margin-left: auto; }
.ml-64 { margin-left: 16rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-\[5\.75rem\] { padding-top: 5.75rem; }

/* Sizing */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }
.h-10 { height: 2.5rem; }
.h-14 { height: 3.5rem; }
.h-48 { height: 12rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-screen-2xl { max-width: 1536px; }
.min-w-0 { min-width: 0; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:block { display: block; }
  .lg\:ml-72 { margin-left: 18rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Typography */
.text-\[9px\] { font-size: 9px; line-height: 1.25; }
.text-\[10px\] { font-size: 10px; line-height: 1.25; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.text-\[12px\] { font-size: 12px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Colors — semantic */
.bg-background { background-color: var(--background); }
.bg-surface-container-low { background-color: var(--surface-low); }
.bg-surface-container-lowest { background-color: var(--surface-lowest); }
.bg-surface-container-high { background-color: var(--surface-high); }
.bg-white { background-color: #fff; }
.bg-primary { background-color: var(--primary); }
.bg-green-50 { background-color: #f0fdf4; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-primary\/10 { background-color: rgba(0, 64, 161, 0.1); }
.bg-primary-fixed\/30 { background-color: rgba(218, 226, 255, 0.35); }
.bg-slate-50 { background-color: #f8fafc; }

.focus\:ring-0:focus { box-shadow: none; outline: none; }

.text-primary { color: var(--primary); }

/* Listing grid cards — uniform price color (browse + homepage) */
.listing-card-price {
  color: #1e40af;
}
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-primary { color: var(--on-primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-slate-400 { color: #94a3b8; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-green-700 { color: #15803d; }
.text-amber-950 { color: #451a03; }
.text-error { color: var(--error); }
.text-outline { color: var(--outline); }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-slate-50 { border-color: #f8fafc; }
.border-slate-100 { border-color: #f1f5f9; }
.border-green-100 { border-color: #dcfce7; }
.border-outline-variant\/10 { border-color: rgba(195, 198, 214, 0.1); }
.border-outline-variant\/20 { border-color: rgba(195, 198, 214, 0.2); }
.border-outline-variant\/30 { border-color: rgba(195, 198, 214, 0.3); }
.border-primary\/10 { border-color: rgba(0, 64, 161, 0.1); }
.border-amber-200\/90 { border-color: rgba(253, 230, 138, 0.9); }
.border-slate-100\/80 { border-color: rgba(241, 245, 249, 0.8); }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }

.border-none { border: none; }
.outline-none { outline: none; }

/* Effects */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-95:hover { opacity: 0.95; }

/* Forms */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  font: inherit;
}

/* Material symbols */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

/* Project helpers (also in inline head) */
.primary-gradient {
  background: var(--primary);
}
.editorial-shadow { box-shadow: 0 10px 40px -10px rgba(25, 28, 30, 0.04); }
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Footer */
footer { flex-shrink: 0; }

/* Dashboard sidebar stays above scrolling footer (footer z-30, sidebar z-60) */
.app-dashboard-sidebar {
  z-index: 60;
}

.site-footer-wrap {
  position: relative;
  z-index: 30;
}

/* Secured payments banner — see assets/css/payment-trust-strip.css */
/* Footer/main sidebar offset: see assets/css/dashboard-sidebar.css */

/* Extra layout (browse, cart, messages, dashboards) */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.flex-shrink-0 { flex-shrink: 0; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-hidden { overflow: hidden; }
.h-screen { height: 100vh; }
.w-72 { width: 18rem; }
.w-64 { width: 16rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.rounded-3xl { border-radius: 1.5rem; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-900 { background-color: #0f172a; }
.bg-primary-container { background-color: var(--primary-container); }
.hover\:bg-primary-container:hover { background-color: var(--primary-container); }
.text-white { color: #fff; }
.opacity-90 { opacity: 0.9; }
.opacity-95 { opacity: 0.95; }
.min-w-\[800px\] { min-width: 800px; }
.max-h-\[calc\(100vh-3\.5rem\)\] { max-height: calc(100vh - 3.5rem); }
.max-h-\[100vh\] { max-height: 100vh; }
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1024px) {
  .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Login / hero gradient panel */
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.text-secondary-container { color: #68e8fd; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.min-h-\[560px\] { min-height: 560px; }
.z-10 { z-index: 10; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mb-10 { margin-bottom: 2.5rem; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(0, 64, 161, 0.25); outline: none; }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.bg-error-container { background-color: #ffdad6; }
.text-on-error-container { color: #93000a; }
.font-mono { font-family: ui-monospace, monospace; }
@media (min-width: 768px) {
  .md\:p-8 { padding: 2rem; }
  .md\:p-16 { padding: 4rem; }
}
