/* ── SYNC WITH: /brand-config.js (colors.*) ─────────────────────── */
:root {
  /* Brand Tokens (Laguna Koi - Showa Edition) */
  --brand-blue:  #89CFF0;   /* Baby Blue (Legacy) */
  --brand-red:   #D32F2F;   /* Hi (Crimson) */
  --brand-dark:  #1A1A1A;   /* Sumi (Black/Charcoal) */
  --brand-grey:  #F5F5F5;
  --brand-white: #FFFFFF;   /* Shiroji (White Base) */
  --brand-cream: var(--brand-white);

  /* Semantic Mappings */
  --brand-primary:   var(--brand-dark);
  --brand-secondary: var(--brand-red);

  /* Legacy / Template Mappings (PCP Compatibility) */
  --brand-green: #1E5E37; 
  --green:       #1E5E37;
  --teal:        #1E5E37;
  --blue:        var(--brand-red);
  --teal-light:  var(--brand-red);  
  --cream:       var(--brand-white);
  --dark:        var(--brand-dark);
}

/* ── Showa Stacking Context ── */
body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF !important;
  color: var(--brand-dark);
  margin: 0;
  overflow-x: hidden;
}

.showa-wrap { 
  position: relative; 
  overflow-x: clip; 
  min-height: 100vh;
  isolation: isolate; 
}

/* Blotches stay behind content in the isolation context */
/* Updated for 'Showa Edition 2.0': Opaque, No Blur, Irregular Shapes */
.blotch {
  position: absolute; 
  pointer-events: none; 
  opacity: 1.0; 
  filter: none; /* No more blur */
  z-index: -1; 
  will-change: transform;
}

.blotch-sumi { background: #1A1A1A; }
.blotch-hi   { background: #D32F2F; }

/* Irregular 'Paint Puddle' Shapes */
.shape-1 { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.shape-2 { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
.shape-3 { border-radius: 50% 50% 20% 80% / 30% 70% 30% 70%; }
.shape-blob { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.shape-stripe { border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%; transform: rotate(-15deg); }

/* Positions (Fixed sizes, Percentage Top to prevent bottom void) */
.b1  { width: 450px; height: 500px; top: 2%;   right: -5%;  animation: drift1 25s infinite alternate ease-in-out; }
.b2  { width: 400px; height: 400px; top: 12%;  left: -8%;   animation: drift2 30s infinite alternate ease-in-out; }
.b3  { width: 300px; height: 400px; top: 25%;  right: 12%;  animation: drift3 22s infinite alternate ease-in-out; }
.b4  { width: 550px; height: 250px; top: 40%;  left: 3%;    animation: drift1 35s infinite alternate ease-in-out; } /* Horizontal puddle */
.b5  { width: 400px; height: 400px; top: 55%;  right: -2%;  animation: drift2 28s infinite alternate ease-in-out; }
.b6  { width: 200px; height: 600px; top: 70%;  left: 10%;   animation: drift3 32s infinite alternate ease-in-out; } /* Vertical stripe */
.b7  { width: 600px; height: 450px; top: 82%;  right: -4%;  animation: drift1 28s infinite alternate ease-in-out; }
.b8  { width: 350px; height: 350px; top: 92%;  left: -2%;   animation: drift2 30s infinite alternate ease-in-out; }
/* Deeper blotches for long content, still using % */
.b9  { width: 450px; height: 550px; top: 30%;   right: 5%;   animation: drift3 24s infinite alternate ease-in-out; }
.b10 { width: 500px; height: 500px; top: 60%;   left: -5%;  animation: drift1 40s infinite alternate ease-in-out; }
.b11 { width: 150px; height: 800px; top: 80%;   right: -2%;  animation: drift2 35s infinite alternate ease-in-out; } /* Long stripe */
.b12 { width: 450px; height: 450px; top: 95%;   left: 2%;    animation: drift3 28s infinite alternate ease-in-out; }

@keyframes drift1 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(30px, 20px) rotate(8deg); } }
@keyframes drift2 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-20px, 30px) rotate(-6deg); } }
@keyframes drift3 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(15px, -25px) rotate(4deg); } }

/* ── Content Elevation ── */
#root {
  min-height: 80vh;
  transition: opacity 0.2s ease-in-out;
}

.ld {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem;
  color: #9ca3af;
  font-weight: 600;
  gap: 1rem;
}

.spin {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #f3f4f6;
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Content sits above the blotches. Elements that ask to be fixed (the phone Call / Schedule bar, Back to top,
   the floating estimate button) are left alone: this rule (0,2,0) used to outrank Tailwind's .fixed / .z-50 (0,1,0),
   so on 36 pages the phone bar was position: relative at the very end of the page (MP 16588). */
.showa-wrap > *:not(.blotch):not(.fixed):not(.cta-float) {
  position: relative;
  z-index: 10;
}

/* Ensure boxes are solid and distinct */
.card, .prose, .prod-card, .stat-card, .cat-card, .article-card, .modal, .toast, .sidebar {
  background-color: #FFFFFF !important;
  position: relative;
  z-index: 20 !important;
  box-shadow: 0 15px 45px rgba(0,0,0,0.06);
  border-radius: 1rem;
}

/* ── Modals ── */
.modal-bg {
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.6); 
  backdrop-filter: blur(5px);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 2000; 
  padding: 1.5rem;
}
.modal-bg.hidden { display: none; }

.modal {
  width: 100%;
  max-width: 45rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Kanban ── */
.kanban-col {
  background: #f3f4f6;
  border-radius: 1rem;
  padding: 1rem;
  min-height: 400px;
}
.kanban-hd {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

h1, h2, h3, h4, .oswald {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Utilities ── */
.wrap { 
  max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; 
}

.text-sumi { color: var(--brand-dark); }
.text-hi { color: var(--brand-red); }
.bg-sumi { background-color: var(--brand-dark) !important; }
.bg-hi { background-color: var(--brand-red) !important; }
.hover\:bg-sumi:hover { background-color: var(--brand-dark) !important; }
.hover\:bg-hi:hover { background-color: var(--brand-red) !important; }
.border-hi { border-color: var(--brand-red) !important; }
.hover\:border-hi:hover { border-color: var(--brand-red) !important; }
.bg-hi\/10 { background-color: rgba(211, 47, 47, 0.1) !important; }
.bg-sumi\/80 { background-color: rgba(26, 26, 26, 0.8) !important; }

.text-gradient {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Header ── */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: none; /* Removed so it doesn't cut through the protruding logo */
  transition: all 0.3s;
}
#hdr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 280px; /* skips the 250px logo + 30px gap */
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.05);
}

.hdr-inner { 
  height: 80px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.cart-btn {
  background: var(--brand-dark);
  color: white !important;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  position: relative;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-btn:hover { background: var(--brand-red); transform: scale(1.05); }

.cart-badge {
  background: var(--brand-red);
  color: white !important;
  font-size: 0.65rem;
  font-weight: 900;
  min-width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  position: absolute;
  top: -5px;
  right: -5px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ── Article Layout Adjustments ── */
.article-header {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background: var(--brand-grey);
}

.prose { padding: 2.5rem; }
.prose h2 { color: var(--brand-red) !important; border-bottom: 2px solid var(--brand-blue); padding-bottom: 0.5rem; margin-top: 3rem !important; }
.prose table th { background: var(--brand-blue) !important; }

/* Learn article tables (G-Dawg 16442, MP 16444). Every article table sits in a .table-wrap, so these
   rules touch nothing else on the site. On a narrow screen a wide table scrolls sideways inside its
   own box; the page never does. */
/* The article column is a grid item; without min-width:0 it stretches to fit a wide table, so the
   .table-wrap below never gets narrower than its table and the overflow is clipped instead of scrolled. */
main.prose:has(.table-wrap) { min-width: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.75rem 0; border: 1px solid #e5e7eb; border-radius: 0.75rem; background: #fff; }
.table-wrap table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
/* Phones: give the table a width by its column count and let the browser share it by content (a long
   notes column gets the room), so rows don't turn into narrow towers; the box scrolls sideways. */
@media (max-width: 767px) {
  .table-wrap table { min-width: 34rem; }
  .table-wrap table:has(tr > :nth-child(4)) { min-width: 50rem; }
  .table-wrap table:has(tr > :nth-child(5)) { min-width: 60rem; }
}
.table-wrap th { color: var(--brand-dark); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
@media (min-width: 768px) { .table-wrap th { white-space: normal; } }   /* desktop: long headers wrap instead of pushing the table wider than the column (reviewer nit, 78a06c6a) */
.table-wrap td { border-top: 1px solid #eef0f2; color: #374151; }
.table-wrap tbody tr:nth-child(even) td { background: #f9fafb; }
.table-wrap td:first-child { font-weight: 600; color: var(--brand-dark); }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap th.num { text-align: right; }
.table-wrap caption { caption-side: top; text-align: left; padding: 0.75rem 1rem 0; font-size: 0.8rem; color: #6b7280; }

/* Learn article citations: a bracketed number links to its entry in the numbered Sources list at the end. */
.prose sup.cite { font-size: 0.7em; line-height: 0; white-space: nowrap; }
.prose sup.cite a { color: var(--brand-green); text-decoration: none; font-weight: 600; }
.prose sup.cite a:hover { text-decoration: underline; }
.prose ol.sources { list-style: decimal; font-size: 0.85rem; line-height: 1.5; color: #4b5563; padding-left: 1.5rem; }
.prose ol.sources li { margin: 0.4rem 0; overflow-wrap: anywhere; scroll-margin-top: 8rem; }
.prose ol.sources li:target { background: #fef9c3; }

/* Learn article body text. The articles use Tailwind's `prose` class, but the CDN build has no typography
   plugin, so paragraphs, lists and h3s had no spacing, lists had no bullets and links looked like body text.
   Scoped to main.prose: only the Learn articles put `prose` on <main> (variety/breeder pages and the storefront
   use div.prose, untouched). Specificity is deliberately (0,0,2): above Tailwind's preflight reset (0,0,1), which loads
   later and would otherwise zero these margins, and below any utility class (0,1,0), so an element's own m-0 / mb-3 /
   text-sm still wins (reviewer 16511). Hence main:where(.prose), not main.prose or :where(main.prose). */
main:where(.prose) p { margin: 0 0 1.1em; line-height: 1.7; }
main:where(.prose) p:where(:last-child) { margin-bottom: 0; }   /* no extra gap at the bottom of callout boxes */
main:where(.prose) h3 { margin: 1.9em 0 0.6em; font-size: 1.15rem; font-weight: 800; line-height: 1.35; color: var(--brand-dark); }
main:where(.prose) h2 + h3 { margin-top: 1em; }   /* (0,0,3): beats the h3 rule above, still below utilities (reviewer 16533) */
main:where(.prose) :where(ul, ol):not([class]) { margin: 0 0 1.1em; padding-left: 1.5rem; line-height: 1.65; }
main:where(.prose) ul:not([class]) { list-style: disc; }
main:where(.prose) ol:not([class]) { list-style: decimal; }
main:where(.prose) :where(ul, ol):not([class]) > li { margin: 0.35em 0; }
main:where(.prose) a:not([class]) { color: var(--brand-green); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
main:where(.prose) a:not([class]):hover { color: var(--brand-dark); text-decoration-thickness: 2px; }

/* Learn articles: the blotches already sit behind content (z-index -1 in .showa-wrap), but the breadcrumb, hero and
   sidebar boxes had no background, so a dark blotch showed straight through their text. Give those a white panel;
   the decoration still shows around and between them. */
body:has(main.prose) .showa-wrap > div:has(> nav[aria-label="Breadcrumb"]) { background: #fff; border-radius: 1rem 1rem 0 0; }
body:has(main.prose) .showa-wrap > div:has(> h1) { background: #fff; border-radius: 0 0 1rem 1rem; }
body:has(main.prose) aside .border { background: #fff; border-radius: 0.75rem; }

/* Pump calculator on the pumps article (MP 16576). Phone-first: one column, big tap targets; two columns of
   number fields from 640px. Maths lives in /learn/pump-calc.js; this is layout only. */
.pump-calc { border: 2px solid var(--brand-green); border-radius: 1rem; padding: 1.25rem; margin: 0 0 2.5rem; background: #f7faf8; }
.pump-calc h2 { margin-top: 0 !important; }
.pump-calc .pc-intro { color: #4b5563; }
.pump-calc .pc-form { display: grid; gap: 1.1rem; }
.pump-calc .pc-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.pump-calc .pc-q[hidden], .pump-calc .pc-dims[hidden] { display: none; }
.pump-calc legend, .pump-calc .pc-q > label { display: block; font-weight: 700; color: var(--brand-dark); margin-bottom: 0.4rem; }
.pump-calc .pc-unit { font-weight: 400; color: #6b7280; }
.pump-calc input[type="number"] { display: block; width: 100%; max-width: 16rem; font-size: 1.05rem; padding: 0.65rem 0.8rem; border: 1px solid #cbd5e1; border-radius: 0.6rem; background: #fff; }
.pump-calc input[type="number"]:focus { outline: 2px solid var(--brand-green); outline-offset: 1px; border-color: var(--brand-green); }
.pump-calc .pc-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pump-calc .pc-choices label { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.9rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; color: #374151; }
.pump-calc .pc-choices label:has(input:checked) { border-color: var(--brand-green); background: #e8f2ec; color: var(--brand-green); }
.pump-calc .pc-choices input { accent-color: var(--brand-green); width: 1.1rem; height: 1.1rem; }
.pump-calc .pc-help { font-size: 0.85rem; color: #6b7280; margin: 0.35rem 0 0; }
.pump-calc .pc-vol { margin-top: 0.6rem; }
.pump-calc .pc-vol summary { cursor: pointer; color: var(--brand-green); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pump-calc .pc-vol[open] { padding: 0.8rem; border: 1px dashed #cbd5e1; border-radius: 0.75rem; background: #fff; }
.pump-calc .pc-dims { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.pump-calc .pc-dims label { font-weight: 700; color: var(--brand-dark); }
.pump-calc .pc-dims input { margin-top: 0.3rem; }
.pump-calc .pc-vol-out { margin: 0.75rem 0 0; font-weight: 600; color: var(--brand-green); }
.pump-calc .pc-result { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 0.75rem; background: var(--brand-green); color: #fff; }
.pump-calc .pc-result p { margin: 0; color: #fff; }
.pump-calc .pc-result .pc-result-main { font-size: 1.1rem; line-height: 1.5; }
.pump-calc .pc-result .pc-result-detail:not(:empty) { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.9; }
/* Phones: the result rides along at the bottom of the screen (above the fixed Call / Schedule bar) while the
   calculator is in view, so it can be seen updating as you type. 76px clears the fixed Call / Schedule bar. */
@media (max-width: 767px) {
  .pump-calc .pc-result { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); z-index: 5; box-shadow: 0 -6px 18px rgba(0,0,0,0.12); }
  .pump-calc .pc-result { padding: 0.7rem 0.9rem; }
  .pump-calc .pc-result .pc-result-main { font-size: 0.98rem; }
  .pump-calc .pc-result .pc-result-detail { display: none; }
  /* scrolling to a field (or focusing it) leaves it clear of the sticky result + call bar */
  .pump-calc .pc-q, .pump-calc .pc-choices label, .pump-calc input { scroll-margin-bottom: 260px; }
}
@media (min-width: 640px) {
  .pump-calc { padding: 1.75rem; }
  .pump-calc .pc-dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Floating "Schedule Free Estimate" button (G-Dawg 16751). Was styled only in index.html's inline <style>, so on
   the other pages it rendered as a plain link. Markup everywhere: class="cta-float hidden md:inline-flex", so
   Tailwind keeps it hidden on phones (the Call Now / Schedule bar covers those) and shows it from md up. */
.cta-float{position:fixed;right:18px;bottom:90px;z-index:60;display:inline-flex;align-items:center;gap:.5rem;padding:.9rem 1.1rem;border-radius:8px;background:var(--brand-red);color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.4px;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.cta-float:hover{filter:brightness(.95)}
/* Article pages keep their sticky sidebar "Get a Free Estimate → Schedule Now" box instead: the sidebar is taller than
   the space above this button, so the button would sit on its last box the whole time you read (MP 16757 option a). */
@media (min-width: 768px) { body:has(#tocSidebar) .cta-float { display: none; } }

/* Learn article contents: sidebar list (one link per row, current section marked) and the phone pill row. */
#tocSidebar .toc-link { display: block; padding: 0.35rem 0 0.35rem 0.75rem; border-left: 2px solid #e5e7eb; font-size: 0.875rem; line-height: 1.35; color: #4b5563; }
#tocSidebar .toc-link:hover { color: var(--brand-green); }
#tocSidebar .toc-link.active { border-left-color: var(--brand-green); color: var(--brand-green); font-weight: 700; }
.toc-pill { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #374151; white-space: nowrap; }
.toc-pill:active, .toc-pill:hover { border-color: var(--brand-green); color: var(--brand-green); }
.inline-cta { border-left-color: var(--brand-red) !important; background: var(--brand-grey) !important; }
.btn { background: var(--brand-dark) !important; border-radius: 99px !important; transition: all 0.3s; color: white !important; }
.btn:hover { background: var(--brand-blue) !important; transform: translateY(-2px); }

/* ── Portal Sidebar Fixes ── */
aside.bg-\[var\(--dark\)\] .sidebar-link,
aside.bg-sumi .sidebar-link { 
  color: rgba(255,255,255,0.7) !important; 
}
aside.bg-\[var\(--dark\)\] .sidebar-link:hover,
aside.bg-sumi .sidebar-link:hover { 
  color: #FFFFFF !important; 
  background: rgba(255,255,255,0.05) !important; 
}
aside.bg-\[var\(--dark\)\] .sidebar-link.active,
aside.bg-sumi .sidebar-link.active { 
  background: var(--brand-red) !important; 
  color: #FFFFFF !important; 
}

/* Storefront Sidebar (White bg) */
.sidebar .sidebar-link { color: var(--brand-dark) !important; opacity: 0.7; transition: all 0.2s; }
.sidebar .sidebar-link:hover { opacity: 1; background: rgba(211, 47, 47, 0.05) !important; color: var(--brand-red) !important; }
.sidebar .sidebar-link.active { background: var(--brand-dark) !important; color: white !important; font-weight: 800 !important; }

/* ── Pills & Badges ── */
.pill {
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--brand-grey);
  color: var(--brand-dark);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.pill:hover { background: #e5e7eb; }
.pill.active {
  background: #4285f4 !important; /* Gemini Blue */
  color: #FFFFFF !important;
}

[class*="badge-"] {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--brand-grey);
  color: var(--brand-dark);
}
.badge-design { background: #e0f2fe; color: #0369a1; }
.badge-construction { background: #fef3c7; color: #92400e; }
.badge-maintenance { background: #dcfce7; color: #166534; }
.badge-water-quality { background: #e0e7ff; color: #3730a3; }
.badge-equipment { background: #f3e8ff; color: #6b21a8; }
.badge-koi { background: #fee2e2; color: #991b1b; }
/* Learn sections (MP 16397/16403): Building & Cost keeps the construction colours; Koi articles keep the koi colours. */
.badge-building { background: #fef3c7; color: #92400e; }
.badge-koi-care { background: #fee2e2; color: #991b1b; }

/* ── Form Fields & Buttons ── */
.field {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-dark);
  background-color: #f9fafb !important;
  outline: none;
  transition: all 0.2s;
}
.field:focus {
  border-color: #4285f4;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.btn-green {
  background-color: #1E5E37 !important; /* Legacy brand green for admin actions */
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-green:hover { background-color: var(--brand-dark) !important; transform: translateY(-1px); }

.btn-primary {
  background-color: #4285f4 !important;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background-color: transparent !important;
  color: var(--brand-dark) !important;
  padding: 0.7rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: 2px solid #e5e7eb !important;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--brand-dark) !important; background: #f9fafb !important; }

/* ── Navigation ── */
.nav-link {
  font-weight: 800; 
  font-size: 0.8rem; 
  text-transform: uppercase;
  letter-spacing: 0.15em; 
  color: #4285f4 !important;
  transition: all 0.2s;
  display: inline-block;
}
.nav-link:hover { 
  color: var(--brand-red) !important; 
  transform: translateY(-1px); 
}

/* ── Checkout Calendar ── */
.co-calendar {
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  margin: 1.5rem 0;
}
.co-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.co-cal-month {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.co-cal-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.co-cal-btn:hover:not(:disabled) {
  border-color: var(--brand-dark);
  background: #f3f4f6;
}
.co-cal-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.co-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
}
.co-cal-day-label {
  background: #f9fafb;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
}
.co-cal-day {
  background: white;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.co-cal-day:hover:not(.disabled):not(.selected) {
  background: #f0f9ff;
}
.co-cal-day.disabled {
  color: #d1d5db;
  cursor: not-allowed;
  background: #f9fafb;
}
.co-cal-day.premium {
  background: #eff6ff;
  color: #1e40af;
}
.co-cal-day.selected {
  background: var(--brand-blue) !important;
  color: white !important;
}
.co-cal-day.today::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--brand-red);
  border-radius: 50%;
}

.co-surcharge-card {
  background: #fef2f2;
  border: 2px solid #fee2e2;
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

/* ── Ported Checkout Layout (Adapted to Showa palette) ── */
.wrap-sm { max-width: 660px; margin: 0 auto; padding: 0 1.25rem; }
.sec { padding: 2.5rem 0; }

.co-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.co-step { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 700; color: #9ca3af; }
.co-step.active { color: var(--brand-blue); }
.co-step.done { color: #4285f4; }
.co-step-n { width: 1.625rem; height: 1.625rem; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.co-sep { flex: 1; height: 2px; background: #e5e7eb; min-width: 1rem; }

.co-card { background: #fff !important; border-radius: 1rem; border: 1px solid #e5e7eb; border-top: 3px solid #e5e7eb; padding: 1.5rem; margin-bottom: 1.25rem; }
.co-card h2 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 1.25rem; }

.ship-opt {
  display: flex; align-items: center; gap: .75rem; padding: .875rem;
  border: 2px solid #e5e7eb; border-radius: 0.75rem;
  cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: .5rem;
}
.ship-opt:has(input:checked) { border-color: var(--brand-blue); background: #f0f9ff; }
.ship-opt input { accent-color: var(--brand-blue); flex-shrink: 0; }
.ship-opt-name { font-weight: 700; font-size: .9375rem; }
.ship-opt-days { font-size: .8125rem; color: #6b7280; }
.ship-opt-price { margin-left: auto; font-weight: 800; color: var(--brand-blue); flex-shrink: 0; }

#stripe-element { padding: .75rem; border: 1.5px solid #e5e7eb; border-radius: 0.75rem; background: #fff; min-height: 44px; }

.order-box { background: #FFFFFF !important; border: 1px solid #e5e7eb; border-radius: 1rem; border-top: 3px solid var(--brand-blue); padding: 1.25rem; position: sticky; top: 5rem; }
.order-row { display: flex; justify-content: space-between; font-size: .9375rem; padding: .2rem 0; }
.order-row.discount { color: #4285f4; }
.order-row.total { font-weight: 800; font-size: 1.125rem; border-top: 1px solid #e5e7eb; padding-top: .625rem; margin-top: .375rem; }

.fld-g { margin-bottom: .875rem; }
.fld-label { font-size: .775rem; font-weight: 700; text-transform: uppercase; color: #6b7280; letter-spacing: .04em; margin-bottom: .35rem; display: block; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 500px) { .fld-row { grid-template-columns: 1fr; } }

/* ── Auth screen (used by pgAccount → renderAcctAuth) ── */
.fld {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--brand-dark);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  outline: none;
}
.fld:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, .08);
}
.fld::placeholder { color: #9ca3af; }

.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 28rem;
  margin: 2rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: .75rem 0;
  text-align: center;
  font-weight: 800;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.auth-tab:hover { color: #4b5563; }
.auth-tab.active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

.badge-ss {
  background: #eff6ff; color: #1e40af;
  font-size: .625rem; font-weight: 800; padding: .2rem .45rem;
  border-radius: 999px; border: 1px solid #bfdbfe;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-oos {
  background: #f3f4f6; color: #6b7280;
  font-size: .625rem; font-weight: 800; padding: .2rem .45rem;
  border-radius: 999px;
}
.badge-freight {
  background: #fef3c7; color: #92400e;
  font-size: .625rem; font-weight: 800; padding: .2rem .45rem;
  border-radius: 999px;
}
