/* ==========================================================================
   LoongBuy Spreadsheet — Browse Depth / Optical Crop Frames theme
   Cool off-white background · deep navy-black text · cobalt blue primary
   accents: deep crimson · bright citron · soft lavender
   Signatures: crop corner · resolution tick · nested window · focus bracket ·
   depth label · detail boundary
   ========================================================================== */

:root {
  /* paper + ink */
  --paper:      #F3F5F7;   /* cool off-white */
  --paper-2:    #EAF0F4;
  --paper-3:    #DFE6EC;
  --card:       #FBFCFD;
  --ink:        #141B26;   /* deep navy-black */
  --ink-soft:   #47536B;
  --ink-faint:  #8A96AB;

  /* accents */
  --cobalt:     #1A56DB;   /* pure cobalt — primary */
  --cobalt-d:   #1544AF;
  --cobalt-s:   #E4EBFB;
  --crimson:    #B01E28;   /* deep red */
  --crimson-d:  #8C1720;
  --crimson-s:  #F7E3E4;
  --citron:     #D3C10A;   /* bright citron */
  --citron-d:   #A89A06;
  --citron-s:   #F8F4C8;
  --lavender:   #8B7BC9;   /* soft lavender */
  --lavender-d: #6E5EB0;
  --lavender-s: #ECE9F7;

  --line:       #DFE6EC;
  --line-soft:  #E9EEF3;

  /* typography */
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* geometry */
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1140px;
  --shadow-sm: 0 1px 2px rgba(20, 27, 38, 0.05), 0 2px 8px rgba(20, 27, 38, 0.06);
  --shadow-md: 0 4px 14px rgba(20, 27, 38, 0.10), 0 12px 30px rgba(20, 27, 38, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cobalt); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- header (cool off-white) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 245, 247, 0.92); backdrop-filter: saturate(120%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; display: block; border-radius: 7px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; letter-spacing: 0.01em; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.64rem; color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; border-radius: var(--radius-sm); }
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a.active { color: #fff; background: var(--cobalt); }

.mobile-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.mobile-nav-toggle svg { display: block; margin: 0 auto; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .main-nav.open { display: block; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .main-nav.open ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; }
  .main-nav.open a { padding: 12px 14px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.98rem; line-height: 1.2; border: 1.5px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 4px 14px rgba(26, 86, 219, 0.28); }
.btn-primary:hover { background: var(--cobalt-d); box-shadow: 0 6px 18px rgba(26, 86, 219, 0.36); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--paper-2); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- hero (cool off-white) ---------- */
.hero-section { padding: 52px 0 40px; position: relative; overflow: hidden; background:
  radial-gradient(circle at 88% 6%, var(--cobalt-s) 0, transparent 44%),
  radial-gradient(circle at 4% 92%, var(--lavender-s) 0, transparent 40%),
  radial-gradient(circle at 98% 96%, var(--citron-s) 0, transparent 32%),
  var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: var(--cobalt-s); color: var(--cobalt-d); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-badge::before { content: ""; width: 8px; height: 8px; background: var(--cobalt); }
.hero-title { font-family: var(--serif); font-size: clamp(2.0rem, 4.4vw, 3.0rem); line-height: 1.12; color: var(--ink); margin: 18px 0 16px; font-weight: 700; }
.hero-title em { font-style: normal; color: var(--cobalt); }
.hero-description { font-size: 1.08rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-marker-note { margin-top: 20px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-faint); }
.hero-marker-note span { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }

/* ---------- hero crop-frame stage ---------- */
.hero-visual { position: relative; min-height: 360px; }
.crop-stage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; height: 360px; }
.crop-frame { position: absolute; border: 1.5px solid; background: transparent; }
.crop-frame .depth-tag { position: absolute; top: -10px; left: 12px; font-family: var(--mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--card); }

/* nested, slightly offset frames — each level crops tighter than the last */
.cf-overview { inset: 6px 14px 10px 6px; border-color: var(--citron); }
.cf-overview .depth-tag { color: var(--citron-d); border: 1px solid var(--citron); }
.cf-category { inset: 40px 44px 44px 40px; border-color: var(--lavender); }
.cf-category .depth-tag { color: var(--lavender-d); border: 1px solid var(--lavender); }
.cf-listing  { inset: 78px 84px 82px 78px; border-color: var(--crimson); }
.cf-listing .depth-tag  { color: var(--crimson-d); border: 1px solid var(--crimson); }
.cf-current  { inset: 122px 128px 126px 122px; border-color: var(--cobalt); }
.cf-current .depth-tag  { color: var(--cobalt-d); border: 1px solid var(--cobalt); }

/* crop corner ticks on the two outer frames */
.cf-overview::before, .cf-overview::after,
.cf-current::before, .cf-current::after { content: ""; position: absolute; width: 12px; height: 12px; }
.cf-overview::before { top: -2px; left: -2px; border-top: 3px solid var(--citron); border-left: 3px solid var(--citron); }
.cf-overview::after  { bottom: -2px; right: -2px; border-bottom: 3px solid var(--citron); border-right: 3px solid var(--citron); }
.cf-current::before  { top: -2px; left: -2px; border-top: 3px solid var(--cobalt); border-left: 3px solid var(--cobalt); }
.cf-current::after   { bottom: -2px; right: -2px; border-bottom: 3px solid var(--cobalt); border-right: 3px solid var(--cobalt); }

/* abstract geometric mark at center — no product image, no brand logo */
.crop-mark { position: absolute; inset: 148px 154px; display: grid; place-items: center; }
.crop-mark svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-section { padding-top: 34px; }
  .hero-visual { min-height: 320px; }
  .crop-stage { height: 320px; }
  .crop-mark { inset: 130px 136px; }
}

/* ---------- section scaffolding ---------- */
.section { padding: 46px 0; }
.section-alt { background: var(--paper-2); }
.section-header { max-width: 700px; margin: 0 auto 34px; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt-d); }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.15rem); color: var(--ink); margin: 10px 0 12px; line-height: 1.2; }
.section-lead { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* ---------- category grid (editorial crop windows) ---------- */
.categories-section { padding-top: 10px; }
.crop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crop-window {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 15px 15px 14px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.crop-window:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-faint); }
.crop-window .crop-top { display: flex; align-items: center; gap: 9px; }
.crop-num { font-family: var(--mono); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-faint); }

/* crop corners — two diagonal L-brackets, one per accent (editorial window) */
.crop-window::before, .crop-window::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; opacity: 0.85; }
.crop-window::before { top: -1px; left: -1px; border-top: 2px solid var(--cobalt); border-left: 2px solid var(--cobalt); border-top-left-radius: 8px; }
.crop-window::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cobalt); border-right: 2px solid var(--cobalt); border-bottom-right-radius: 8px; }
.crop-window.n1::before, .crop-window.n1::after { border-color: var(--cobalt); }
.crop-window.n2::before, .crop-window.n2::after { border-color: var(--crimson); }
.crop-window.n3::before, .crop-window.n3::after { border-color: var(--citron); }
.crop-window.n4::before, .crop-window.n4::after { border-color: var(--lavender); }

/* icon: neutral line shapes inside a crop frame (4 corner brackets via ::before) */
.crop-icon { position: relative; width: 34px; height: 34px; color: var(--ink); display: grid; place-items: center; padding: 5px; }
.crop-icon svg { width: 100%; height: 100%; }
.crop-icon::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) top left / 7px 1.5px,
    linear-gradient(currentColor, currentColor) top left / 1.5px 7px,
    linear-gradient(currentColor, currentColor) top right / 7px 1.5px,
    linear-gradient(currentColor, currentColor) top right / 1.5px 7px,
    linear-gradient(currentColor, currentColor) bottom left / 7px 1.5px,
    linear-gradient(currentColor, currentColor) bottom left / 1.5px 7px,
    linear-gradient(currentColor, currentColor) bottom right / 7px 1.5px,
    linear-gradient(currentColor, currentColor) bottom right / 1.5px 7px;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.crop-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.crop-window .crop-open { margin-top: auto; font-size: 0.8rem; font-weight: 700; color: var(--cobalt-d); }

@media (max-width: 900px) {
  .crop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .crop-window { padding: 13px 13px 12px; }
}

/* ---------- four levels of browse depth ---------- */
.depth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.depth-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.depth-card .depth-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.depth-card.d-overview .depth-rail { background: var(--citron); }
.depth-card.d-category .depth-rail { background: var(--lavender); }
.depth-card.d-listing  .depth-rail { background: var(--crimson); }
.depth-card.d-current  .depth-rail { background: var(--cobalt); }
.depth-label { display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; }
.d-overview .depth-label { background: var(--citron-s);  color: var(--citron-d); }
.d-category .depth-label { background: var(--lavender-s); color: var(--lavender-d); }
.d-listing  .depth-label { background: var(--crimson-s);  color: var(--crimson-d); }
.d-current  .depth-label { background: var(--cobalt-s);   color: var(--cobalt-d); }
.depth-card h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 0 0 8px; line-height: 1.25; }
.depth-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.depth-card .depth-q { display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-faint); }
@media (max-width: 900px) { .depth-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .depth-grid { grid-template-columns: 1fr; } }

/* ---------- browse depth scale (resolution ticks) ---------- */
.depth-scale { max-width: 720px; margin: 0 auto; position: relative; }
.scale-track { position: relative; height: 46px; margin: 0 10px; }
.scale-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); transform: translateY(-50%); }
.scale-node { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.scale-node .tick { display: block; margin: 0 auto 6px; height: 18px; width: 2px; background: var(--ink-faint); }
.scale-node .n-label { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.scale-node.s-overview { left: 6%; }   .s-overview .n-label { color: var(--citron-d); }
.scale-node.s-category { left: 36%; }  .s-category .n-label { color: var(--lavender-d); }
.scale-node.s-listing  { left: 68%; }  .s-listing  .n-label { color: var(--crimson-d); }
.scale-node.s-current  { left: 94%; }  .s-current  .n-label { color: var(--cobalt-d); }
.scale-node .dot { display: block; width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 4px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--ink-faint); }
.s-overview .dot { background: var(--citron); }
.s-category .dot { background: var(--lavender); }
.s-listing  .dot { background: var(--crimson); }
.s-current  .dot { background: var(--cobalt); }
.depth-scale-note { text-align: center; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 22px; letter-spacing: 0.03em; }
@media (max-width: 640px) {
  .scale-node .n-label { font-size: 0.6rem; }
}

/* ---------- do not zoom beyond the evidence (duo + boundary) ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.duo-col h3 { margin: 0 0 10px; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.duo-col ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.duo-col ul li { margin: 6px 0; }
.duo-col .mark { flex: none; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 0.78rem; color: #fff; font-family: var(--mono); }
.duo-col.is-a .mark { background: var(--citron); color: var(--ink); }
.duo-col.is-b .mark { background: var(--crimson); }

/* detail boundary callout */
.boundary-note { position: relative; max-width: 680px; margin: 0 auto; background: var(--card); border: 1px dashed var(--lavender-d); border-radius: var(--radius); padding: 18px 20px 18px 34px; box-shadow: var(--shadow-sm); }
.boundary-note::before { content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 10px; height: 18px; border-left: 2px solid var(--lavender); border-right: 2px solid var(--lavender); opacity: 0.7; }
.boundary-note .bn-label { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender-d); margin-bottom: 4px; }
.boundary-note p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 720px) { .duo-grid { grid-template-columns: 1fr; } }

/* ---------- resolution frame (four zones) ---------- */
.res-frame { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.rf-zone { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.rf-zone:nth-child(2n) { border-right: 0; }
.rf-zone:nth-last-child(-n+2) { border-bottom: 0; }
.rf-zone .rf-label { display: block; font-family: var(--mono); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.rf-zone .rf-body { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.rf-zone.rf-current .rf-label { color: var(--cobalt-d); }
.rf-zone.rf-visible .rf-label { color: var(--crimson-d); }
.rf-zone.rf-closer  .rf-label { color: var(--citron-d); }
.rf-zone.rf-noinfer .rf-label { color: var(--lavender-d); }
.rf-zone.rf-current { border-top: 3px solid var(--cobalt); }
.rf-zone.rf-visible { border-top: 3px solid var(--crimson); }
.rf-zone.rf-closer  { border-top: 3px solid var(--citron); }
.rf-zone.rf-noinfer { border-top: 3px solid var(--lavender); }
@media (max-width: 640px) {
  .res-frame { grid-template-columns: 1fr; }
  .rf-zone { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .rf-zone:last-child { border-bottom: 0; }
}

/* ---------- wide catalog, narrow claim ---------- */
.claim-stack { max-width: 680px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.claim-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.claim-row:last-child { border-bottom: 0; }
.claim-row .cl-label { flex: none; width: 200px; font-family: var(--mono); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.claim-row .cl-value { color: var(--ink-soft); font-size: 0.94rem; }
.claim-row.cl-narrow { background: var(--cobalt-s); }
.claim-row.cl-narrow .cl-value { color: var(--cobalt-d); }
.claim-row .narrow-tab { flex: none; font-family: var(--mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--cobalt-s); color: var(--cobalt-d); border: 1px solid var(--cobalt); }
@media (max-width: 560px) {
  .claim-row { flex-wrap: wrap; gap: 6px 12px; }
  .claim-row .cl-label { width: 100%; }
}

/* ---------- guide entry cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.14s ease; position: relative; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-card .guide-num { font-family: var(--mono); font-size: 0.78rem; color: var(--cobalt-d); letter-spacing: 0.1em; }
.guide-card h3 { font-family: var(--serif); font-size: 1.24rem; color: var(--ink); margin: 8px 0 10px; }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 16px; }
.guide-card .guide-cta { margin-top: auto; font-weight: 700; color: var(--cobalt-d); font-size: 0.9rem; }
.guide-card::after { content: ""; position: absolute; top: 0; right: 14px; width: 22px; height: 22px; border-top: 2px solid var(--cobalt); border-right: 2px solid var(--cobalt); border-top-right-radius: 9px; opacity: 0.6; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- stop when the detail disappears (stop rules) ---------- */
.log-list { list-style: none; margin: 0; padding: 0; max-width: 760px; margin-inline: auto; }
.log-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.log-list .log-flag { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.8rem; font-family: var(--mono); background: var(--crimson); }
.log-list p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.log-list strong { color: var(--ink); }

.open-note { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px dashed var(--crimson); border-radius: var(--radius-sm); background: var(--crimson-s); color: var(--crimson-d); font-weight: 600; font-size: 0.92rem; margin: 10px 0; }
.open-note .qmark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--crimson); color: #fff; display: grid; place-items: center; font-weight: 800; }

.example-flag { display: inline-block; margin-top: 14px; font-size: 0.74rem; color: var(--ink-faint); font-style: italic; border-top: 1px dashed var(--line); padding-top: 8px; }

/* focus bracket — styled span wrapping a key term */
.focus-bracket { color: var(--ink); font-weight: 700; padding: 1px 2px; background: linear-gradient(var(--cobalt-s), var(--cobalt-s)) left/0 100% no-repeat; }
.focus-bracket::before { content: "["; color: var(--cobalt); font-weight: 700; }
.focus-bracket::after { content: "]"; color: var(--cobalt); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; box-shadow: var(--shadow-sm); overflow: hidden; }
details.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--cobalt-d); line-height: 1; }
details.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.96rem; }
.faq-item .faq-body p { margin: 0 0 10px; }

/* ---------- final CTA (navy-black panel) ---------- */
.final-cta { background: var(--ink); color: #fff; border-radius: 18px; padding: 44px 40px; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; opacity: 0.4; background:
  radial-gradient(circle at 12% 18%, var(--cobalt) 0, transparent 42%),
  radial-gradient(circle at 88% 82%, var(--citron) 0, transparent 40%),
  radial-gradient(circle at 84% 10%, var(--lavender) 0, transparent 32%),
  radial-gradient(circle at 8% 90%, var(--crimson) 0, transparent 30%); }
.final-cta h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 12px; position: relative; }
.final-cta p { color: rgba(255,255,255,0.82); max-width: 32em; margin: 0 auto 24px; position: relative; }
.final-cta .btn-primary { position: relative; background: var(--cobalt); }

/* ---------- footer (navy-black) ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.74); padding: 44px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: rgba(255,255,255,0.66); font-size: 0.92rem; max-width: 34em; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name small { color: rgba(255,255,255,0.46); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.46); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: rgba(255,255,255,0.74); text-decoration: none; font-size: 0.94rem; line-height: 2.1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; color: rgba(255,255,255,0.46); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom .depth-swatch-row { display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom .depth-swatch-row i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- article / guide pages ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 46px 0 38px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 12px; line-height: 1.15; color: var(--ink); }
.page-hero p { color: var(--ink-soft); max-width: 42em; font-size: 1.05rem; margin: 0; }

.article-paper { background: var(--paper); padding: 8px 0 20px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 34px 22px 60px; }
.article-body h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 38px 0 12px; }
.article-body h3 { font-size: 1.12rem; color: var(--ink); margin: 26px 0 8px; }
.article-body p { color: var(--ink-soft); margin: 0 0 16px; }
.article-body ul, .article-body ol { color: var(--ink-soft); margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body blockquote { margin: 22px 0; padding: 16px 20px; background: var(--paper-2); border-left: 4px solid var(--cobalt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.06rem; }

/* depth level list inside article pages */
.depth-list { list-style: none; margin: 0 0 20px; padding: 0; }
.depth-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.depth-list li.d-overview { border-left-color: var(--citron); }
.depth-list li.d-category { border-left-color: var(--lavender); }
.depth-list li.d-listing  { border-left-color: var(--crimson); }
.depth-list li.d-current  { border-left-color: var(--cobalt); }
.depth-list li strong { color: var(--ink); }
.depth-list li p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cobalt-d); font-weight: 700; text-decoration: none; font-size: 0.9rem; margin-bottom: 6px; }
.back-link:hover { text-decoration: underline; }

/* legal pages */
.legal-body { max-width: 720px; margin: 0 auto; padding: 40px 22px 60px; }
.legal-body h1 { font-family: var(--serif); color: var(--ink); font-size: 2rem; margin: 0 0 6px; }
.legal-body .legal-date { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 24px; }
.legal-body h2 { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 22px; }

/* 404 */
.notfound { text-align: center; padding: 70px 22px 80px; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 14vw, 7rem); color: var(--ink); margin: 0; line-height: 1; }
.notfound h1 { font-family: var(--serif); color: var(--ink); margin: 8px 0 12px; }
.notfound p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 24px; }
