*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

:root {
  --ink: #0a0a0a;
  --ink2: #444;
  --ink3: #767676;
  --surface: #fafaf8;
  --s2: #f2f0eb;
  --s3: #e8e5de;
  --accent: #e8562a;
  --ah: #c94420;
  --teal: #00bdd6;
  --navy: #14203b;
  --border: rgba(0, 0, 0, 0.08);
  --b2: rgba(0, 0, 0, 0.14);
  --r: 4px;
  --rl: 10px;
  --max: 1140px;
  --read: 640px;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif
}

html { scroll-behavior: smooth }
body { font-family: var(--sans); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased }

/* HERO — compact, breadcrumb + eyebrow + H1 only, no hero-sub paragraph or CTA row (unlike the pillar) */
.gl-hero { background: var(--navy); color: #fff; padding: 3.2rem 2rem 2.8rem }
.gl-hero-i { max-width: var(--read); margin: 0 auto }
.gl-crumb { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 1.2rem }
.gl-crumb a { color: rgba(255, 255, 255, 0.65); text-decoration: none }
.gl-crumb a:hover { color: #fff }
.gl-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(232, 86, 42, 0.95); margin-bottom: 1rem }
.gl-h1 { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em }

/* BODY — single column, prose width, no sticky sidebar (these pages are ~200 words, not article-length) */
.gl-body { max-width: var(--read); margin: 0 auto; padding: 3.2rem 2rem 1rem }
.gl-hook { font-size: 1.05rem; color: var(--ink); line-height: 1.75; margin-bottom: 1.8rem }
.gl-body p:not(.gl-hook):not(.di-defn-label):not(.di-defn-text) { font-size: 0.98rem; color: var(--ink2); line-height: 1.75; margin-bottom: 1.2rem }

/* DEFINITION CALLOUT — reused verbatim from css/decision-infrastructure/index.css so glossary pages read as the same family as the pillar */
.di-defn { background: var(--navy); border-radius: var(--rl); padding: 1.8rem 2rem; margin-bottom: 1.8rem; border-left: 3px solid var(--teal) }
.di-defn-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.8rem }
.di-defn-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: #fff; letter-spacing: -0.005em }

/* FAQ — one question only, per the schema/ASEO-only rule (operational framing, not "what is X") */
.gl-faq { margin: 2rem 0; padding-top: 1.8rem; border-top: 1px solid var(--border) }
.gl-faq h2 { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin-bottom: 0.6rem }
.gl-faq p { margin-bottom: 0 }

/* CROSS-LINKS — reused verbatim sidebar-card/sb-label/sb-related/sb-rel-item pattern */
.sidebar-card { border: 1px solid var(--border); border-radius: var(--rl); padding: 1.5rem; margin: 2rem 0 1.5rem }
.sb-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink3); margin-bottom: 1rem; font-weight: 500 }
.sb-related { display: flex; flex-direction: column; gap: 0.8rem }
.sb-rel-item { font-size: 0.88rem; color: var(--ink); text-decoration: none; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; transition: color 0.18s }
.sb-rel-item:hover { color: var(--ah) }
.sb-rel-item::before { content: '→'; color: var(--accent); flex-shrink: 0; font-size: 0.8rem }

/* TERM NAV — strip linking to the other 5 glossary terms, serves as the glossary's discovery path since there's no dedicated index page */
.gl-termnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.8rem 0 0.5rem }
.gl-termnav-label { width: 100%; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 0.3rem }
.gl-termnav a { font-size: 0.82rem; color: var(--ink2); text-decoration: none; border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 0.9rem; transition: all 0.18s }
.gl-termnav a:hover { color: var(--ink); border-color: var(--accent) }
.gl-termnav a.current { color: var(--ink3); border-color: transparent; background: var(--s2); pointer-events: none }

@media (max-width: 640px) {
  .gl-hero { padding: 2.4rem 1.3rem 2.2rem }
  .gl-h1 { font-size: 2.1rem }
  .gl-body { padding: 2.4rem 1.3rem 1rem }
}

/* FOOTER — copied verbatim from css/decision-infrastructure/index.css; every page on this site duplicates its own copy of this block */
footer { background: var(--navy); color: rgba(255, 255, 255, 0.45); padding: 3.5rem 2rem 2rem }
.foot-i { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem }
.foot-logo { font-family: var(--serif); font-size: 1.3rem; color: #fff; text-decoration: none }
.foot-logo span { color: var(--accent) }
.foot-tag { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.6rem; line-height: 1.55; max-width: 280px }
.foot-social { display: flex; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap }
.foot-social-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); text-decoration: none }
.foot-social-link:hover { color: var(--accent) }
.foot-col h5 { font-size: 0.8rem; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 500 }
.foot-col ul { list-style: none }
.foot-col li { margin-bottom: 0.55rem }
.foot-col a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); text-decoration: none }
.foot-col a:hover { color: var(--accent) }
.foot-btm { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); flex-wrap: wrap; gap: 1rem }
.foot-btm a { color: rgba(255, 255, 255, 0.55); text-decoration: none }
.foot-btm a:hover { color: rgba(255, 255, 255, 0.85) }

@media (max-width: 900px) {
  .foot-i, .foot-i--wide { grid-template-columns: 1fr 1fr; gap: 2rem }
}

@media (max-width: 640px) {
  .foot-i, .foot-i--wide { grid-template-columns: 1fr }
}
