/* Facet Wire site-wide consistency (light). Source: Grok's tested
   facetwire-site-consistency-fix.css (Dec 3 2026) shipped verbatim below,
   plus the Neon paired fixes marked at the end where Grok's draft did not
   cover the brief. Loads AFTER /live-overrides.css?v=5 and comet-home.css
   on every template. Versioned URL: /facetwire-consistency.css?v=1 */
/* Facet Wire site-wide consistency fix (light design). Draft, Dec 3 2026. NOT LIVE.
   Baseline: pm-1419/homepage-fix-v3.css (homepage, already verified). This file is meant to load AFTER
   live-overrides.css and comet-home.css on every template, alongside the homepage fix.
   Template steps (no CSS):
     T1. Change /live-overrides.css?v=4 to ?v=5 on every template (all 518 live 200 pages link ?v=4) and purge it at Cloudflare.
     T2. Link this file on every template, including the ones that load neither comet-home.css nor styles.css (ring builder).
   Edges below are written out per side (left/right), never as shorthand. */


/* ===== 0. Homepage rules, copied unchanged from pm-1419/homepage-fix-v3.css (scoped to body.comet-home) ===== */

/* A. Light theme leftovers */
body.comet-home{background:#f8fafc;color:#13294b}
html body.comet-home .site-head{background:#fffefa!important;color:#15191a!important}
html body.comet-home .site-head .nav-cta{color:#13294b!important}
body.comet-home main,body.comet-home .wall-band,body.comet-home .lvn-band,body.comet-home .promo-band,
body.comet-home .doors-band,body.comet-home .matchups-band,body.comet-home .ring-band{background:#f8fafc}
html body.comet-home #rings.studio{background:#f8fafc!important;border-color:#e2e8f0}
html body.comet-home .comet-search .primary,html body.comet-home button.primary,html body.comet-home a.primary{background:#13294b!important;color:#fff!important}
body.comet-home h1,body.comet-home h2,body.comet-home h3{color:#13294b}

@media (max-width:600px){
  /* B. Header: menu button ends at 403 (page is 403 wide). Shrink the logo so logo + CTA + menu fit in 354. */
  .site-head .head-in{gap:8px!important;justify-content:flex-start}
  .site-head .logo{flex:0 1 auto;min-width:0}
  .site-head .logo img{width:112px!important;height:auto!important}
  .site-head .nav-cta{margin-left:auto!important;padding:7px 10px!important;font-size:.74rem!important;white-space:nowrap}
  .site-head .menu-btn{flex:0 0 44px!important;margin-left:auto!important}

  /* C. Search card: 146px empty space under the chips (min-height 396), uneven inner padding 15/5, chips on one long row */
  html body.comet-home form#cert-search.cert-hero{min-height:0!important;padding-left:16px!important;padding-right:16px!important;padding-bottom:16px!important}
  /* Try chips: one swipeable row again, each chip capped so its text wraps inside the chip instead of running off-screen */
  html body.comet-home #fwc-try{flex-wrap:nowrap!important;overflow-x:auto!important;align-items:center}
  html body.comet-home #fwc-try button,html body.comet-home #fwc-try a{flex:0 0 auto!important;max-width:250px!important;white-space:normal!important;text-align:left}

  /* D. One 18px gutter: lvn-band and Matchups wraps are 32px */
  html body.comet-home .lvn-band .wrap,html body.comet-home .matchups-band .wrap{padding-left:18px!important;padding-right:18px!important}
  /* Matchups centre card is scaled 1.02 and sticks out to 28.8 */
  html body.comet-home .sh-card.is-centre{transform:none!important}

  /* E. Shape wall tiles are scaled 0.94, which pulls their edges to 23.1 */
  html body.comet-home #shape-wall .tile{transform:none!important}

  /* F. Section headings left-aligned on the 18px edge (Ring Studio and pledge are centred) */
  html body.comet-home #rings h2,html body.comet-home .ring-band .studio-copy{text-align:left!important}

  /* G. Diamond photos in Matchups shelves: square slot, no crop (were 16/10 + cover) */
  html body.comet-home .sh-media{position:relative!important}
  html body.comet-home .sh-media img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important}
}

/* H. Hamburger lines are near-white rgb(238,247,245); on the light header they disappear on pages without comet-home.css (search, ring builder, blog, check) */
html body .site-head .menu-btn span{background:#15191a!important}
html body .site-head .menu-btn{border-color:#cebc89!important}

/* ===== Site-wide rules ===== */
/* 1. Light tokens (Comet): page #f8fafc, navy #13294b, border #e2e8f0, gold accent only.
      --fw-accent was teal #0E6A82 and fills every .btn, .pm-copy and .cert-row button site-wide. */
html:root{
  --fw-bg:#f8fafc; --fw-bg-sunk:#f1f5f9; --fw-zebra:#f8fafc;
  --fw-surface:#ffffff; --fw-img-bg:#ffffff;
  --fw-line-soft:#e2e8f0;
  --fw-accent:#13294b; --fw-accent-hover:#0b1d38;
}
html body{background:#f8fafc;color:#13294b}
html body h1,html body h2,html body h3{color:#13294b}

/* 2. Header: force the light header even while Cloudflare still serves the stale ?v=4 copy */
html body .site-head{background:#fffefa!important;color:#15191a!important;border-bottom:1px solid #e4dcc5!important}
html body .site-head .head-nav > a,html body .site-head .nav-btn{color:#15191a!important}
html body .site-head .nav-cta{color:#13294b!important;background:#fffdfa!important;border-color:#cebc89!important}
html body .site-head .menu-btn span{background:#15191a!important}
html body .site-head .menu-btn{border-color:#cebc89!important;background:transparent!important}

/* 3. Header overflow at 390: menu button ends at 432 (inner pages with the CTA) / 403 (home). Logo 181 -> 112. */
@media (max-width:600px){
  html body .site-head .head-in{gap:8px!important;justify-content:flex-start}
  html body .site-head .logo{flex:0 1 auto;min-width:0}
  html body .site-head .logo img{width:112px!important;height:auto!important}
  html body .site-head .nav-cta{margin-left:auto!important;padding:7px 10px!important;font-size:.74rem!important;white-space:nowrap}
  html body .site-head .menu-btn{flex:0 0 44px!important;margin-left:auto!important}
  html body .site-head .nav-cta + .menu-btn{margin-left:0!important}
}

/* 4. Menus: mobile .site-menu (#081a1f) and desktop .mega (#0a2229) are dark under a light header */
html body .site-menu,html body .mega{background:#ffffff!important;border-bottom:1px solid #e2e8f0!important;box-shadow:0 18px 40px rgba(19,41,75,.12)!important}
html body .mega-shapes a,html body .mega-side a,html body .menu-links a,html body .site-menu a{color:#13294b!important}
html body .mega-shapes a:hover,html body .mega-side a:hover,html body .menu-links a:hover,html body .site-menu a:hover{background:#f1f5f9!important;color:#13294b!important}
html body .mega-shapes small{color:#64748b!important}
html body .mega-h{color:#8a6417!important}

/* 5. Product / diamond photos: object-fit:cover crops 10-57% of the stone. Editorial heroes keep cover. */
html body .teaser-media img,html body .card-media img,html body .mini-media img,
html body .shape-photo img,html body .store-row img{object-fit:contain!important;background:#ffffff}
html body .teaser-media,html body .card-media,html body .mini-media,html body .shape-photo{background:#ffffff!important}

/* 6. Wide tables push the page sideways at 390: scroll inside the table */
@media (max-width:600px){
  html body main table,html body .lv-table,html body .seo-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  html body .sc-sources a{overflow-wrap:anywhere}
}

/* 7. Headings: avoid one-word last lines where supported (Safari 17.5+, Chrome 114+) */
html body h1,html body h2{text-wrap:balance}

/* 8. Ring builder (/ring-builder/): its own inline :root is dark. Scoped with :has() to the builder only. */
html body:has(.stage-panel){
  --bg:#f8fafc; --panel:#ffffff; --card:#ffffff; --gold:#c9972c;
  --text:#13294b; --muted:#475569; --line:#e2e8f0; --line2:#e2e8f0; --green:#0f6b3e;
  background:#f8fafc!important;color:#13294b!important;
}
html body:has(.stage-panel) a{color:#13294b}
html body:has(.stage-panel) .stage{background:radial-gradient(circle at 50% 38%,rgba(201,151,44,.14) 0%,rgba(201,151,44,.05) 30%,rgba(255,255,255,0) 62%),#ffffff!important}
html body:has(.stage-panel) .stage img.frame{background:#ffffff!important}
html body:has(.stage-panel) .stage-hint,html body:has(.stage-panel) .stage-badge{background:rgba(255,255,255,.9)!important;color:#13294b!important}
html body:has(.stage-panel) .setting-card img{background:#f8fafc!important}
html body:has(.stage-panel) .pill-btn,html body:has(.stage-panel) .toggle button,html body:has(.stage-panel) .chip,
html body:has(.stage-panel) label.field select,html body:has(.stage-panel) .cx-toggle button,html body:has(.stage-panel) .cx-chip,
html body:has(.stage-panel) .cx-eng input{background:#ffffff!important;color:#13294b!important;border-color:#e2e8f0!important}
html body:has(.stage-panel) .pill-btn.selected,html body:has(.stage-panel) .toggle button.selected,html body:has(.stage-panel) .chip.selected,
html body:has(.stage-panel) .cx-toggle button.on,html body:has(.stage-panel) .cx-chip.on{background:#13294b!important;color:#ffffff!important;border-color:#13294b!important}
html body:has(.stage-panel) .price-box,html body:has(.stage-panel) .cx-panel{background:#f8fafc!important;border-color:#e2e8f0!important}
html body:has(.stage-panel) .step-label,html body:has(.stage-panel) .tag,html body:has(.stage-panel) .stage-badge,
html body:has(.stage-panel) .summary-bar .total strong,html body:has(.stage-panel) .headline-total span,html body:has(.stage-panel) .btn-ghost{color:#8a6417!important}
html body:has(.stage-panel) .tag{border-color:#c9972c!important}
html body:has(.stage-panel) .btn-gold{background:#13294b!important;color:#ffffff!important;border-color:#13294b!important}
html body:has(.stage-panel) .btn-ghost{border-color:#c9972c!important}
html body:has(.stage-panel) .price-grid .v.green{color:#0f6b3e!important}
html body:has(.stage-panel) header.site{background:#fffefa!important}
html body:has(.stage-panel) .stage,html body:has(.stage-panel) .stage img.frame{background:#07181d!important}
html body:has(.stage-panel) .stage-hint,html body:has(.stage-panel) .stage-badge{background:rgba(255,255,255,.92)!important}

/* 9. Logo: template change, point header/footer <img> at /logo-light-header.svg. */
/* 10. Buttons now filled navy: the 404 template's .btn.primary uses dark text (invisible on navy) */
html body .btn.primary,html body a.btn.primary{color:#ffffff!important}

/* 11. Text contrast on the light surfaces */
html body .store-row .p,html body .store-row .p a{color:#8a6417!important}
html body .badge-drop,html body .ring-badge,html body .exp-dot.is-active{background:#fbf5e6!important;color:#7a5c1c!important;border:1px solid #c9972c!important}
html body span[style*="color:#3a2a08"],html body span[style*="color: rgb(58, 42, 8)"]{background:#fbf5e6!important;color:#7a5c1c!important}
html body [style*="7e9aa1"],html body [style*="126, 154, 161"],html body .mega-shapes small{color:#64748b!important}
html body .save-pill{background:#fbf5e6!important;color:#7a5c1c!important;border-color:#c9972c!important}

/* 12. Ring builder results: price/payoff boxes written with inline dark backgrounds */
html body:has(.stage-panel) [style*="0a232b"],html body:has(.stage-panel) [style*="143845"],
html body:has(.stage-panel) [style*="rgb(10, 35, 43)"],html body:has(.stage-panel) [style*="rgb(20, 56, 69)"]{background:#ffffff!important;color:#13294b!important}
html body:has(.stage-panel) [style*="e8c47a"],html body:has(.stage-panel) [style*="rgb(232, 196, 122)"],html body:has(.stage-panel) .cx-lab{color:#8a6417!important}
html body:has(.stage-panel) [style*="b9d2d2"],html body:has(.stage-panel) [style*="rgb(185, 210, 210)"],html body:has(.stage-panel) .cx-note{color:#475569!important}
html body:has(.stage-panel) #priceContent strong,html body:has(.stage-panel) #payoffContent p strong{color:#13294b!important}
html body:has(.stage-panel) #payoffContent p,html body:has(.stage-panel) #payoffContent p span{color:#475569!important}

/* 13. Desktop nav: open Brands/Shapes button turned navy-on-navy once accent became navy */
html body .site-head .nav-btn[aria-expanded="true"],html body .site-head .nav-btn:hover,html body .site-head .head-nav > a:hover{background:#f1f5f9!important;color:#13294b!important}

/* 14. Homepage Ring Studio Spin in 3D + ring builder best label */
html body.comet-home .stage-meta .stage-actions button:first-child{background:#13294b!important;border-color:#13294b!important;color:#ffffff!important}
html body:has(.stage-panel) [style*="2fbf71"],html body:has(.stage-panel) [style*="rgb(47, 191, 113)"]{color:#0f6b3e!important}

/* 15. Cert matched badge inside stone-page h2 */
html body h2 > .badge,html body h3 > .badge{background:#f1f5f9!important;color:#13294b!important;border:1px solid #e2e8f0!important}

/* ===== Neon paired fixes (brief Phase 1.4) — added where Grok's draft did not cover ===== */
/* N1. Menu button + icon/lines forced navy #13294b on ALL pages (Grok used #15191a). */
html body .site-head .menu-btn{color:#13294b!important;border-color:#13294b!important;background:transparent!important}
html body .site-head .menu-btn span{background:#13294b!important}
html body .site-head .menu-btn svg{color:#13294b!important;stroke:#13294b!important}
/* N2. 390px header: hide top-bar nav-cta (kept in drawer), flex children may shrink. */
@media (max-width:767px){
  html body .site-head .head-in > *{min-width:0!important}
  html body .site-head .head-in > .nav-cta{display:none!important}
  html body .site-head .head-in{gap:8px!important}
  html body .site-head .menu-btn{flex:0 0 44px!important;margin-left:auto!important}
}
/* N3. Mobile gutters + no transform overflow (unscoped twin of Grok's comet-home rules). */
@media (max-width:767px){
  html body .lvn-band .wrap,html body .matchups-band .wrap{padding-left:17px!important;padding-right:17px!important}
  html body article.sh-card.is-centre,html body #shape-wall article.tile{transform:none!important}
}
/* N4. Uniform shape-wall tile height + uniform 32px homepage band padding at mobile. */
@media (max-width:767px){
  html body #shape-wall article.tile{min-height:360px}
  html body #shape-wall .tile-media{aspect-ratio:1/1}
  html body.comet-home .lvn-band,html body.comet-home .matchups-band,html body.comet-home .wall-band,
  html body.comet-home .ring-band,html body.comet-home .promo-band,html body.comet-home .doors-band,
  html body.comet-home .labnat-band,html body.comet-home .pledge-band{padding-top:32px;padding-bottom:32px}
}
/* N5. Left-align #rings h2 at mobile (same gutter). Already in Grok F; restated unscoped. */
@media (max-width:767px){ html body #rings h2{text-align:left!important} }
/* N6. Matchup images show whole at every width (Grok G only fixed mobile). */
html body .sh-media{overflow:hidden}
html body .sh-media img{object-fit:contain!important}
/* N7. Search card verified in Grok C (equal 16px padding, min-height:0, Try chips one swipeable row with wrapping text) — no extra rule needed. */
