/* =====================================================================
   Gemlogue public website — design system v2 (27-Nov-2026)
   Loaded LAST in <head> of every public page via partials/gl-v2.
   Goals: readable type (Inter UI + Playfair headings), no hairline/8px
   labels, calm light default, softer dark mode with real contrast.
   Rollback: remove @include('partials.gl-v2') lines (or empty this file).
   ===================================================================== */

/* ---------- font tokens (override every page's own font vars) ---------- */
html, html:root {
  --gl-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gl-head: 'Playfair Display', Georgia, serif;
  --sans: var(--gl-ui); --sans-prem: var(--gl-ui); --ga-sans: var(--gl-ui);
  --serif: var(--gl-head); --display: var(--gl-head); --disp: var(--gl-head);
  --disp-prem: var(--gl-head); --ga-serif: var(--gl-head); --ga-display: var(--gl-ui);
}

/* ---------- LIGHT (default) — warm ivory, ink text, antique-gold accent ---------- */
html[data-theme=light] {
  --bg:#FAF8F4; --bg2:#F3EFE7; --bg3:#FFFFFF; --card:#FFFFFF;
  --cream:#17181C; --cream2:#33353B; --cream3:#5A5D65; --cream4:#7B7E86; --cream-dim:#5A5D65;
  --gold:#8A6A2F; --gold2:#A07C3A;
  --line:#E6E0D5; --line2:rgba(138,106,47,.28); --border:#E6E0D5;
}
html[data-theme=light] body { background:#FAF8F4; color:#17181C; }

/* ---------- DARK — charcoal instead of pitch black, brighter text ---------- */
html[data-theme=dark] {
  --bg:#121419; --bg2:#181B21; --bg3:#1E2128; --card:#1A1D23;
  --cream:#F4EFE6; --cream2:rgba(244,239,230,.86); --cream3:rgba(244,239,230,.70);
  --cream4:rgba(244,239,230,.48); --cream-dim:rgba(244,239,230,.70);
  --gold:#D4B072; --gold2:#E6C68C;
  --line:rgba(255,255,255,.10); --line2:rgba(212,176,114,.30);
}
html[data-theme=dark] body { background:#121419; color:#F4EFE6; }
html[data-theme=dark] .gl-header { background:rgba(18,20,25,.94); }

/* ---------- base typography ---------- */
body {
  font-family: var(--gl-ui);
  font-size: 15px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before { opacity: 0 !important; }            /* grain overlay made everything muddy */
p { line-height: 1.65; }
strong, b { font-weight: 600; }

/* Serif headings: solid weight, tight but not cramped */
h1, h2, h3,
.hero-title, .sec-title, .section-title, .page-title, .gl-section-title,
[class$="-title"]:is(h1,h2,h3), [class*="-heading"]:is(h1,h2,h3) {
  font-family: var(--gl-head);
  font-weight: 500;
  letter-spacing: -.01em;
}
h1 em, h2 em, h3 em, .hero-title em, .hero-title i, h2 i, h1 i { font-weight: 500; }

/* ---------- header / navigation ---------- */
.gl-header { border-bottom: 1px solid var(--line); }
.nav-accent { display: none; }
.gl-logo { font-family: var(--gl-head) !important; font-weight: 600; letter-spacing: .16em !important; font-size: 20px !important; }
.gl-menu a {
  font-family: var(--gl-ui) !important; font-size: 13px !important; font-weight: 500;
  letter-spacing: .02em !important; text-transform: none !important;
}
.gl-login, .gl-register {
  font-family: var(--gl-ui) !important; font-size: 13.5px !important; font-weight: 600;
  letter-spacing: .01em !important; text-transform: none !important; border-radius: 8px;
  padding: 9px 18px;
}
.gl-theme-toggle, .gl-icon { border-radius: 8px; }

/* ---------- buttons ---------- */
.btn-gold, .cta-btn, .bid-band-cta, .fd-bid-btn, .pc-btn, .view-all, .view-btn,
.btn-outline, .btn-ghost, .gl-btn, .lc-btn, .card-btn, .see-all, .fd-notify-btn,
button[class*="btn"], a[class*="btn-"] {
  font-family: var(--gl-ui) !important;
  letter-spacing: .02em !important;
  border-radius: 8px;
}
.btn-gold, .cta-btn, .bid-band-cta, .fd-bid-btn {
  font-size: 14px !important; font-weight: 600 !important; text-transform: none !important;
  padding: 14px 26px;
}
.btn-link { font-family: var(--gl-ui) !important; font-size: 14px !important; font-weight: 500;
  letter-spacing: 0 !important; text-transform: none !important; }

/* ---------- small labels / eyebrows: readable, not hairline ---------- */
.hero-eyebrow, .live-pill, .sec-eyebrow, .eyebrow, .section-eyebrow, .sec-label, .label,
[class*="eyebrow"], [class*="-kicker"] {
  font-family: var(--gl-ui) !important; font-weight: 600 !important;
  font-size: 12px !important; letter-spacing: .1em !important;
}
.live-pill { border-radius: 999px; padding: 6px 14px; }

/* ---------- cards: soft corners + light elevation ---------- */
.hero-stone-card { border-radius: 0; }
html[data-theme=light] :is(.stone-card, .lot-card, .gem-card, .nl-card, .listing-card, .why-card, .sold-card, .testi-card, .t-card, .rs-card, .card) {
  box-shadow: 0 1px 2px rgba(23,24,28,.04), 0 6px 20px rgba(23,24,28,.05);
}
:is(.stone-card, .lot-card, .gem-card, .nl-card, .listing-card, .sold-card, .testi-card, .t-card, .rs-card) { border-radius: 12px; overflow: hidden; }

/* prices: tabular, solid */
[class*="price"] strong, .price, .lot-price, .stone-price strong { font-variant-numeric: tabular-nums; font-weight: 600; }

/* stats band */
.stat-num, .gl-stat-num, [class*="stat-num"] { font-weight: 500 !important; }

/* ---------- footer ---------- */
footer, .gl-footer { font-size: 14px; }
footer a, .gl-footer a { letter-spacing: 0 !important; }

/* ---------- forms ---------- */
input, select, textarea { font-family: var(--gl-ui); font-size: 14.5px; }
input::placeholder, textarea::placeholder { opacity: .75; }

/* ---------- motion: calmer ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 27-Nov pass 2: italic serif paragraphs → clean sans; card titles stronger ---------- */
p:is([class*="sub"], [class*="lead"], [class*="intro"], [class*="tagline"]),
:is(.hero-sub, .hero-desc, .sec-sub, .section-sub, .page-sub, .hero-text) {
  font-family: var(--gl-ui) !important; font-style: normal !important;
  font-size: 16px; line-height: 1.7; font-weight: 400;
}
h4, h5, [class*="card-title"], [class$="-title"]:is(h4,h5,div), .why-title, .step-title {
  font-weight: 600;
}
/* any remaining square CTA buttons */
a:is([class*="btn"], [class*="cta"]), button:is([class*="btn"], [class*="cta"]) { border-radius: 8px; }
/* buttons/links on auth + misc pages still used Cinzel via their own class rules */
button, .btn, input[type=submit], input[type=button], [class*="auth"] a, [class*="back-link"] {
  font-family: var(--gl-ui) !important; letter-spacing: .02em !important;
}
button, .btn, input[type=submit] { font-weight: 600; }
[class*="logo"]:not(img):not(svg) { font-family: var(--gl-head) !important; font-weight: 600; }
.gla-btn, .gla-card .btn-primary, .gla-card button[type=submit] { border-radius: 8px !important; font-weight: 600 !important; }

/* =================== FOOTER (partials/gl-site-footer) =================== */
.glf { background:#15171C; color:#C9C3B8; font-family:var(--gl-ui); font-size:14.5px; line-height:1.6;
  border-top:1px solid rgba(255,255,255,.06); margin-top:0; position:relative; z-index:2; }
.glf-inner { max-width:1344px; margin:0 auto; padding:64px 48px 48px; display:grid;
  grid-template-columns:minmax(260px,1.6fr) repeat(4,minmax(140px,1fr)); gap:40px; }
.glf-logo { font-family:var(--gl-head) !important; font-weight:600; font-size:22px; letter-spacing:.16em !important;
  color:#F4EFE6 !important; text-decoration:none; }
.glf-logo span { color:#D4B072; }
.glf-about { margin:16px 0 20px; max-width:360px; color:#A9A296; font-size:14.5px; }
.glf-trust { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:13px; color:#C9C3B8; }
.glf-trust i { color:#D4B072; margin-right:6px; }
.glf-col { display:flex; flex-direction:column; gap:10px; }
.glf .glf-h { font-family:var(--gl-ui) !important; font-size:12.5px !important; font-weight:700 !important;
  letter-spacing:.1em !important; text-transform:uppercase; color:#F4EFE6; margin:4px 0 6px; }
.glf a { color:#C9C3B8; text-decoration:none; transition:color .2s; letter-spacing:0 !important; }
.glf a:hover { color:#E6C68C; }
.glf-col a i { color:#25D366; margin-right:4px; }
.glf-bottom { max-width:1248px; margin:0 auto; padding:20px 0 28px; border-top:1px solid rgba(255,255,255,.08);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13px; color:#8E887D; }
.glf-bottom-links { display:flex; gap:20px; }
.glf-bottom-links a { color:#8E887D; }
@media (max-width:1344px){ .glf-bottom{ margin:0 48px; } }
@media (max-width:1024px){ .glf-inner{ grid-template-columns:1fr 1fr 1fr; } .glf-brand{ grid-column:1/-1; } }
@media (max-width:640px){
  .glf-inner{ grid-template-columns:1fr 1fr; gap:32px 20px; padding:48px 20px 32px; }
  .glf-bottom{ margin:0 20px; padding:18px 0 24px; flex-direction:column; gap:10px; }
}

/* =================== HOMEPAGE details =================== */
.testi-m-stars { font-size:13px !important; letter-spacing:2px !important; color:#C9A24B !important; }
.testi-m-text { font-size:15.5px !important; line-height:1.7 !important; color:var(--cream2) !important; }
.testi-m-name { font-size:15px !important; font-weight:600 !important; }
.cta-btn { display:inline-flex !important; align-items:center; justify-content:center; gap:10px;
  height:48px; padding:0 24px !important; line-height:1 !important; font-size:14.5px !important; }
.sold-name { font-family:var(--gl-head) !important; font-size:17px !important; font-weight:500; }
.sold-price { font-weight:600; font-size:18px !important; }
.nl-title, .nl-title a { font-family:var(--gl-head) !important; font-size:19px !important; font-weight:500 !important; }
.nl-status { text-transform:none !important; letter-spacing:.02em !important; font-weight:600; border-radius:999px; padding:4px 10px !important; }
.nl-btn { border-radius:8px; height:42px; font-family:var(--gl-ui) !important; font-weight:600; font-size:13.5px !important; letter-spacing:.04em !important; }

/* no blue tap/click box anywhere (user 27-Nov); keyboard users still get a subtle gold ring */
html, body, * { -webkit-tap-highlight-color: transparent !important; }
*:focus:not(:focus-visible) { outline: none !important; box-shadow: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid rgba(160,124,58,.55) !important; outline-offset: 2px;
}
::selection { background: rgba(160,124,58,.22); color: inherit; }
.es2-section .fd-card .es2-image, .es2-section .fd-card .es2-body { position:relative; z-index:1; }
.es2-section .fd-card { border-radius:12px; overflow:hidden; }
.es2-btn { border-radius:8px; font-weight:600 !important; }
.es2-meta { text-transform:none !important; letter-spacing:.01em !important; font-size:12.5px !important; }
.es2-carousel-wrap::before, .es2-carousel-wrap::after { display:none !important; }
@media (max-width:640px){
  .cta-card { padding:32px 24px !important; }
  .cta-title { font-size:30px !important; }
  .fd-notify-btn, [class*="notify"] button, button[class*="notify"] { font-size:12.5px !important; letter-spacing:.04em !important; }
}

/* ---------- italic only for the accent word in headings; everything else upright ---------- */
.jl-desc, .ph-sub, .sh-sub, .lo-sub, [class*="-desc"], [class*="hero-sub"], [class*="-subtitle"],
.jl-feat-name, .card.prem .cname, .lrow.prem .l-name, .jl-t-name, .jl-seller-name, .story-quote {
  font-style: normal !important;
}
.jl-desc, .ph-sub, .sh-sub, .lo-sub { font-family: var(--gl-ui) !important; }
.jl-desc { font-size:17px !important; color:var(--cream2) !important; line-height:1.7 !important; }
.ph-sub, .sh-sub { font-size:15.5px !important; }
.jl-feat-name { font-family: var(--gl-head) !important; }
.sb { border-right-color: transparent; }
.jl-why-desc { font-size:14.5px !important; line-height:1.6 !important; color:var(--cream3) !important; } .jl-why-title { font-size:17px !important; }
#grid.grid, .grid { background: transparent !important; }

/* ---------- listing grids (auction / loose gems / wholesale / just listed / rough) ---------- */
.card { border-radius:12px !important; overflow:hidden; }
.cname { font-family:var(--gl-head) !important; font-size:18px !important; font-weight:500 !important; }
.csub { text-transform:none !important; letter-spacing:.01em !important; font-size:13px !important; }
.ctags span, .ctag, .card .tag { text-transform:none !important; letter-spacing:.01em !important; border-radius:6px; }
.vbtn, .sb-toggle, .sort-s { border-radius:8px !important; font-family:var(--gl-ui) !important; text-transform:none !important; letter-spacing:.01em !important; font-size:13.5px !important; }
.vbtn i, .sb-toggle i { margin-right:4px; }
.apill { border-radius:999px !important; }
.cbtn, .card button, .card .btn { border-radius:8px !important; }
.glf, .glf * { box-sizing:border-box; }
.glf .glf-col { background:none !important; padding:0 !important; text-align:left !important; position:static !important; height:auto !important; border:0 !important; box-shadow:none !important; }
.glf .glf-col a { display:block; padding:0 !important; background:none !important; text-align:left !important; white-space:nowrap; font-size:14.5px !important; text-transform:none !important; font-family:var(--gl-ui) !important; }
.glf .glf-h { margin:4px 0 6px; }
.sbt { text-transform:none !important; letter-spacing:.01em !important; font-size:13px !important; border-radius:999px !important; padding:6px 12px !important; }
.sb-head-txt, .sb-sec-lbl { font-weight:700 !important; }
.sb-x { border-radius:8px; display:inline-flex; align-items:center; justify-content:center; }

/* ---------- Knowledge hub / Ask an expert header = same as the main site ---------- */
.pub-head { position:sticky; top:0; z-index:50; background:rgba(250,248,244,.96); backdrop-filter:blur(12px); height:68px; padding:0 48px !important; }
html[data-theme=dark] .pub-head { background:rgba(18,20,25,.94); }
.pub-head .ep-logo { font-family:var(--gl-head) !important; font-weight:600; font-size:20px !important; letter-spacing:.16em; color:var(--cream) !important; }
.pub-head .ep-logo span { color:var(--gold); }
.pub-head .pub-menu { display:flex; gap:28px; }
.pub-head .pub-menu a { margin:0 !important; font-size:13px !important; font-weight:500; letter-spacing:.02em !important; color:var(--cream2) !important; text-transform:uppercase; }
.pub-head .pub-menu a.on, .pub-head .pub-menu a:hover { color:var(--gold) !important; }
.pub-head .pub-right { display:flex; align-items:center; gap:10px; }
.pub-head .pub-right .pub-toggle { margin:0 !important; }
.pub-head .gl-login { border:1px solid var(--line); color:var(--cream); text-decoration:none; }
.pub-head .gl-register { background:var(--gold); color:#fff; text-decoration:none; border:1px solid var(--gold); }
.pub-head .gl-login, .pub-head .gl-register { display:inline-flex; align-items:center; height:36px; }
@media (max-width:1100px){ .pub-head .pub-menu { display:none; } .pub-head { padding:0 16px !important; } }
.pub-sub { font-size:15px !important; color:var(--cream3) !important; }
.art-body p { font-size:16px !important; line-height:1.8 !important; color:var(--cream2) !important; }
/* header partial (contact/legal pages) guest buttons */
.gl-right .gl-login, .gl-right .gl-register { text-decoration:none; display:inline-flex; align-items:center; height:36px; }
.pub-wrap { max-width:960px !important; padding-top:48px !important; }
.pub-h1 { font-size:42px !important; font-weight:500 !important; }
.filter-pill { font-size:13.5px !important; letter-spacing:.01em !important; padding:8px 16px !important; border-radius:999px !important; text-transform:none !important; }
.no-results { font-size:15px !important; padding:40px 20px !important; border-radius:12px; color:var(--cream3) !important; }
.sec-head { font-size:12.5px !important; font-weight:700 !important; letter-spacing:.1em !important; color:var(--cream3) !important; }
.sec-note { font-size:14.5px !important; }
.q-card { border-radius:12px !important; padding:20px 22px !important; }
.q-text { font-family:var(--gl-head) !important; font-size:19px !important; font-weight:500; color:var(--cream) !important; }
.q-meta { font-size:13px !important; color:var(--cream3) !important; margin-top:4px; }
.q-answer { font-size:15px !important; line-height:1.7 !important; border-radius:8px; }
/* header partial (contact / legal / seller register) */
.nav-accent { display:none !important; }
html[data-theme=light] .gl-right .gl-login { color:#17181C !important; border:1px solid #D8D1C4 !important; background:#fff !important; }
.gl-right .gl-register { background:var(--gold) !important; color:#fff !important; border:1px solid var(--gold) !important; }
html[data-theme=light] .gl-header .gl-menu a { color:#33353B !important; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea { border-radius:8px; }
.gla-card { border-radius:14px !important; }

/* ---------- dark mode consistency on the homepage ---------- */
html[data-theme=dark] #gl-flash-drop-root {
  --bg:#121419; --card:#1A1D23; --cream:#F4EFE6; --cream-dim:rgba(244,239,230,.70);
  --gold:#D4B072; --gold-mid:rgba(212,176,114,.55); --gold-low:rgba(212,176,114,.14);
  --serif:var(--gl-head); --display:var(--gl-head); --sans:var(--gl-ui);
}
#gl-flash-drop-root { --serif:var(--gl-head); --display:var(--gl-head); --sans:var(--gl-ui); }
html[data-theme=dark] .nl-card { background:#1A1D23 !important; }
.nl-price { color:var(--gold) !important; font-family:var(--gl-head) !important; }
html[data-theme=dark] .nl-status { color:#8FD3A8 !important; background:rgba(58,153,103,.14) !important; border-color:rgba(58,153,103,.35) !important; }
html[data-theme=dark] .testi-m-role { color:rgba(244,239,230,.6) !important; }
.pub-burger { display:none; width:38px; height:38px; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--cream); align-items:center; justify-content:center; font-size:16px; cursor:pointer; }
@media (max-width:1100px){
  .pub-burger { display:inline-flex; }
  .pub-head.open .pub-menu { display:flex; flex-direction:column; gap:0; position:absolute; top:68px; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 12px 30px rgba(0,0,0,.08); padding:8px 16px 16px; }
  .pub-head.open .pub-menu a { padding:12px 4px !important; border-bottom:1px solid var(--line); font-size:14px !important; }
}
@media (max-width:480px){
  .pub-head .gl-login, .pub-head .gl-register { padding:0 12px !important; font-size:13px !important; height:34px; }
  .pub-head .ep-logo { font-size:16px !important; letter-spacing:.1em !important; }
  .pub-head .pub-right { gap:6px; }
}
@media (max-width:1100px){ .pub-head.open .pub-menu { align-items:stretch !important; } .pub-head.open .pub-menu a { text-align:left !important; display:block; width:100%; } }
