/* ============================================================
   IFA — 典雅編排 (Elegant Editorial) — shared design system
   Serif · ink-navy accent · cream bands · magazine whitespace.
   Type: Source Serif 4 + Inter (Latin) · Noto Serif/Sans HK (CJK).
   Used by index.html (home) + all content pages.
   ============================================================ */

:root {
  --navy:      #15233f;
  --navy-deep: #101b31;
  --gold:      #9a8f6f;   /* decorative accent only — hairlines, borders, glyphs */
  --gold-ink:  #7c714f;   /* TEXT-strength gold (passes AA on white/cream) */
  --paper:     #ffffff;
  --cream:     #f7f6f3;
  --body:      #6f6f6f;
  --body-soft: #767676;   /* secondary text — AA on white */
  --prose-ink: #46443f;
  --line:      #ecebe6;
  --line-2:    #e4e2dd;
  --underline: rgba(21,35,63,.32);  /* link underline affordance (>=3:1) */
  --risk:      #9b5d4a;
  --on-navy:   #ffffff;
  --on-navy-soft: #c2c8d4;

  --serif: 'Source Serif 4', 'Noto Serif HK', 'Noto Serif TC', Georgia, serif;
  --sans:  'Inter', 'Noto Sans HK', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang HK', 'PingFang TC', 'Segoe UI', sans-serif;

  --container: 1240px;
  --pad-x: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-family: var(--sans); font-weight: 400; color: var(--body); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.4; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: 880px; }

/* ---- shared bits ---- */
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.muted { color: var(--body-soft); }
.center { text-align: center; }
.rule-ink { border: 0; border-top: 2px solid var(--navy); margin-block: 28px; }
.lede { font-size: 17px; line-height: 1.85; color: var(--body); }
.standfirst { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.85; color: var(--body); max-width: 60ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 15px; letter-spacing: 0.04em; font-weight: 500; padding: 15px 38px; border-radius: 1px; border: 1px solid var(--navy); transition: background .25s var(--ease), color .25s var(--ease), transform .12s var(--ease); cursor: pointer; }
.btn--solid { background: var(--navy); color: var(--on-navy); }
.btn--solid:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn:active { transform: translateY(1px); }
.link-ul { font-family: var(--serif); font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--underline); padding-bottom: 3px; transition: border-color .25s var(--ease); }
.link-ul:hover { border-color: var(--navy); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ NAV ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.02em; color: var(--navy); }
.brand .sep { color: #b9b6ad; font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { font-size: 14px; letter-spacing: 0.02em; color: #4a4a4a; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { font-family: var(--serif); color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--navy); display: block; }
@media (max-width: 880px) {
  .nav__links { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start; gap: 22px; background: var(--paper); padding: 28px var(--pad-x); border-bottom: 1px solid var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: inline-flex; }
}

/* ============ HERO (home) ============ */
.hero { text-align: center; padding: clamp(72px, 10vw, 120px) var(--pad-x) clamp(64px, 9vw, 110px); }
.hero .eyebrow { display: block; margin-bottom: 30px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.2; letter-spacing: -0.005em; margin-bottom: 30px; }
.hero__sub { font-size: 17px; line-height: 1.9; color: var(--body); max-width: 640px; margin: 0 auto 44px; }
.hero__actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ============ CREDENTIALS STRIP ============ */
.creds { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds__cell { flex: 1; text-align: center; padding: 44px 24px; border-right: 1px solid var(--line); }
.creds__cell:last-child { border-right: 0; }
.creds__num { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); color: var(--navy); font-weight: 600; }
.creds__num small { font-size: 0.45em; }
.creds__num sup { font-size: 0.4em; }
.creds__label { font-size: 13px; color: var(--body-soft); margin-top: 8px; letter-spacing: 0.08em; }
@media (max-width: 760px) { .creds { flex-wrap: wrap; } .creds__cell { flex: 1 1 50%; border-bottom: 1px solid var(--line); } .creds__cell:nth-child(2n) { border-right: 0; } }

/* ============ SECTION HEADS ============ */
.sec { padding-block: clamp(72px, 9vw, 110px); }
.sec--cream { background: var(--cream); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto clamp(48px, 6vw, 70px); }
.sec-head .eyebrow { display: block; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.01em; }
.sec-head p { font-size: 15px; color: var(--body); margin-top: 14px; }

/* page head (content pages, left-aligned) */
.page-head { max-width: 860px; padding-top: clamp(28px, 4vw, 56px); }
.page-head .eyebrow { display: block; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.24; letter-spacing: -0.01em; }
.page-head .standfirst { margin-top: 20px; }

/* ============ SERVICES (home) ============ */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 80px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; gap: 44px; } }
.service { border-top: 1px solid var(--line-2); padding-top: 28px; }
.service__num { font-family: var(--serif); font-size: 15px; color: var(--gold-ink); margin-bottom: 14px; }
.service h3 { font-size: 24px; margin-bottom: 14px; }
.service p { font-size: 15px; line-height: 1.95; }

/* ============ TOOLS (home + tools index) ============ */
.tools { display: flex; gap: 32px; }
@media (max-width: 880px) { .tools { flex-direction: column; } }
.tool { flex: 1; background: var(--paper); border: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; }
.tool--navy { background: var(--navy); border-color: var(--navy); }
.tool__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.tool__head h3 { margin: 0; }
.tool h3 { font-size: 22px; margin-bottom: 16px; }
.tool--navy h3 { color: var(--on-navy); }
.tool p { font-size: 14px; line-height: 1.9; margin-bottom: 24px; }
.tool--navy p { color: var(--on-navy-soft); }
.tool__link { font-size: 14px; color: var(--navy); border-bottom: 1px solid var(--underline); padding-bottom: 3px; display: inline-block; margin-top: auto; }
.tool--navy .tool__link { color: var(--on-navy); border-color: rgba(255,255,255,.65); }
.tool .status, .status-chip { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body-soft); border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 12px; white-space: nowrap; }
.tool--navy .status { color: var(--on-navy-soft); border-color: rgba(255,255,255,.3); }
.tool-preview { background: var(--cream); border: 1px solid var(--line-2); border-radius: 2px; padding: 18px; display: grid; gap: 10px; margin-block: 4px 20px; }
.tool-preview .row { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 13px; color: var(--body-soft); }
.tool-preview .bar { height: 6px; background: #e7e4dc; border-radius: 100px; overflow: hidden; }
.tool-preview .bar > span { display: block; height: 100%; background: var(--navy); }

/* ============ ABOUT (home + about page) ============ */
.about { display: flex; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (max-width: 880px) { .about { flex-direction: column; } }
.about__portrait { flex: none; width: 380px; max-width: 100%; aspect-ratio: 380 / 460; background: repeating-linear-gradient(45deg, #efeee9 0 11px, #f6f5f1 11px 22px); display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.about__portrait span { font-family: monospace; font-size: 12px; color: #a7a49c; letter-spacing: 0.06em; }
.about__body { flex: 1; }
.about__body .eyebrow { display: block; margin-bottom: 22px; }
.about__body h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.5; letter-spacing: -0.01em; margin-bottom: 26px; }
.about__body p { font-size: 16px; line-height: 2.05; margin-bottom: 20px; }
.about__body p:last-child { margin-bottom: 0; }

/* ============ BREADCRUMB ============ */
.breadcrumb { font-family: var(--sans); font-size: 13px; color: var(--body-soft); padding-block: 22px; display: flex; flex-wrap: wrap; gap: .5em; letter-spacing: .02em; }
.breadcrumb a { color: var(--body); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: #c2bdb2; }

/* ============ BYLINE (faceless) ============ */
.byline { display: flex; align-items: center; gap: 14px; margin-block: 24px; }
.byline__mono { width: 46px; height: 46px; flex: none; background: var(--navy); color: #fff; border-radius: 2px; font-family: var(--serif); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.byline__mono .dot { color: var(--gold); }
.byline__meta { font-size: 13px; line-height: 1.55; color: var(--body); }
.byline__name { font-weight: 600; color: var(--navy); font-family: var(--serif); }
.updated { font-family: var(--sans); font-size: 13px; color: var(--body-soft); }

/* ============ ARTICLE LAYOUT ============ */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: clamp(32px,5vw,72px); align-items: start; max-width: 1080px; margin-inline: auto; padding-top: clamp(28px,4vw,44px); }
@media (max-width: 920px) { .article-wrap { grid-template-columns: 1fr; } }
.prose { max-width: 720px; font-size: 17px; line-height: 1.95; color: var(--prose-ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(22px,2.6vw,28px); margin-top: 1.8em; color: var(--navy); letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; color: var(--navy); }
.prose a { color: var(--navy); border-bottom: 1px solid var(--underline); }
.prose strong { color: var(--navy); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }

.article-rail { position: sticky; top: 96px; font-size: 13px; }
@media (max-width: 920px) { .article-rail { position: static; margin-top: 40px; } }
.toc__label, .rail__label { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--body-soft); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .55em; }
.toc a { color: var(--body); border-left: 1px solid var(--line-2); padding-left: .8em; display: block; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--navy); border-left-color: var(--gold); }
.rail-block { margin-bottom: 40px; }

/* ============ ANSWER-FIRST DEF BOX ============ */
.def-box { background: var(--cream); border: 1px solid var(--line-2); border-left: 3px solid var(--navy); border-radius: 2px; padding: 28px 30px; margin-block: 28px; }
.def-box__label { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; font-weight: 500; }
.def-box__answer { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.7; color: var(--navy); }
.def-box dl { display: grid; grid-template-columns: auto 1fr; gap: .4em 1.2em; margin-top: 18px; font-size: 14px; }
.def-box dt { font-family: var(--sans); color: var(--body-soft); }
.def-box dd { margin: 0; color: var(--body); }

/* ============ TL;DR ============ */
.tldr { background: #fff; border: 1px solid var(--line-2); border-top: 2px solid var(--gold); border-radius: 2px; padding: 26px 30px; margin-block: 28px; }
.tldr__label { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; font-weight: 500; }
.tldr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6em; }
.tldr li { position: relative; padding-left: 1.5em; color: var(--prose-ink); line-height: 1.7; }
.tldr li::before { content: "\00B7"; position: absolute; left: 0.15em; color: var(--gold); font-weight: 700; font-size: 1.3em; line-height: 1.3; }

/* ============ COMPARISON TABLE ============ */
.cmp-wrap { overflow-x: auto; margin-block: 28px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table caption { text-align: left; font-family: var(--sans); font-size: 13px; color: var(--body-soft); padding-bottom: 14px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { border-bottom: 2px solid var(--navy); font-family: var(--serif); color: var(--navy); font-weight: 600; }
.cmp-table tbody th { font-weight: 500; color: var(--body); font-family: var(--sans); }
.cmp-table tbody tr:nth-child(even) td, .cmp-table tbody tr:nth-child(even) th { background: var(--cream); }
.cell-good { color: var(--navy); font-weight: 500; }
.cell-risk { color: var(--risk); }
.cmp-note { font-family: var(--sans); font-size: 13px; color: var(--body-soft); border-top: 2px solid var(--navy); padding-top: 14px; margin-top: 0; }

/* ============ FAQ ACCORDION ============ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 24px 2em 24px 0; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); position: relative; line-height: 1.5; }
.faq-q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 22px; color: var(--gold-ink); font-weight: 300; }
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { display: none; padding-bottom: 24px; color: var(--prose-ink); max-width: 70ch; line-height: 1.85; }
.faq-q[aria-expanded="true"] + .faq-a { display: block; }

/* ============ CITATIONS ============ */
.citation-list { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 48px; max-width: 820px; }
.citation-list h2, .citation-list h3 { font-size: 20px; margin-bottom: 14px; }
.citation-list ol { list-style: none; padding: 0; counter-reset: c; display: grid; gap: 12px; }
.citation-list li { counter-increment: c; position: relative; padding-left: 2.4em; font-size: 14px; color: var(--body); line-height: 1.7; }
.citation-list li::before { content: "[" counter(c) "]"; position: absolute; left: 0; font-family: var(--sans); color: var(--gold-ink); }
.citation-list a { color: var(--navy); border-bottom: 1px solid var(--underline); }
.microdisc { font-family: var(--sans); font-size: 12.5px; color: var(--body); line-height: 1.7; margin-top: 26px; max-width: 80ch; }

/* ============ CHIPS ============ */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--sans); font-size: 13px; background: var(--cream); color: var(--body); padding: 6px 16px; border: 1px solid var(--line-2); border-radius: 100px; display: inline-block; letter-spacing: .02em; transition: border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover, .chip--active { background: #fff; color: var(--navy); border-color: var(--gold); }
.chip:active { transform: translateY(1px); }
.jumpbar { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 36px; }

/* ============ CARDS (insights / related) ============ */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s var(--ease), transform .15s var(--ease); }
.card:hover { border-color: var(--gold); }
.card:active { transform: translateY(1px); }
.card__kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.card__title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.card__dek { font-size: 14px; color: var(--body); line-height: 1.7; }
.card__meta { margin-top: auto; font-family: var(--sans); font-size: 12px; color: var(--body-soft); display: flex; gap: 1em; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }

/* featured pillar lead (insights) */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; padding-block: 48px; border-block: 1px solid var(--line); }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }
.feature h2 { font-size: clamp(26px,3.4vw,34px); line-height: 1.4; letter-spacing: -0.01em; margin-block: 12px; }
.feature__list { list-style: none; padding: 0; display: grid; gap: 0; }
.feature__list a { display: block; font-family: var(--serif); color: var(--navy); border-bottom: 1px solid var(--line); padding-block: 14px; }
.feature__list a:hover { color: var(--navy-deep); }

/* ============ DICTIONARY (glossary index) ============ */
.dict { border-top: 1px solid var(--line); max-width: 920px; }
.dict__item { display: grid; grid-template-columns: minmax(220px,1fr) 2fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (max-width: 640px) { .dict__item { grid-template-columns: 1fr; gap: 8px; } }
.dict__term { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); }
.dict__term .en { display: block; font-family: var(--sans); font-size: 13px; color: var(--body-soft); font-weight: 400; letter-spacing: .04em; margin-top: 4px; }
.dict__gloss { font-size: 15px; color: var(--body); line-height: 1.8; }

/* ============ CALLOUT ============ */
.callout { background: var(--cream); border: 1px solid var(--line-2); border-radius: 2px; padding: 26px 30px; margin-block: 24px; }
.callout__label { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; font-weight: 500; }
.callout ul { margin: 0; padding-left: 1.2em; line-height: 1.8; }

/* ============ PULL QUOTE ============ */
.pull-quote { font-family: var(--serif); font-size: clamp(24px,3.2vw,34px); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--navy); max-width: 24ch; margin: 48px auto; text-align: center; border-block: 2px solid var(--gold); padding-block: 32px; }
.pull-quote__by { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--body-soft); text-align: center; margin-top: 20px; }

/* ============ CREDENTIALS DL (about) ============ */
.creds-dl { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; border-top: 1px solid var(--line); padding-top: 28px; max-width: 720px; font-size: 16px; }
@media (max-width: 560px) { .creds-dl { grid-template-columns: 1fr; gap: 6px 0; } }
.creds-dl dt { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--body-soft); text-transform: uppercase; }
.creds-dl dd { margin: 0; color: var(--navy); font-family: var(--serif); }

/* ============ CTA BAND ============ */
.cta { text-align: center; padding-block: clamp(56px,8vw,88px); border-top: 2px solid var(--navy); max-width: 760px; margin: clamp(48px,6vw,80px) auto 0; }
.cta h2 { font-size: clamp(24px,3.4vw,34px); letter-spacing: -0.01em; max-width: 24ch; margin: 0 auto 20px; }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: var(--on-navy); margin-top: clamp(64px, 9vw, 120px); }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: 64px; flex-wrap: wrap; }
.footer__name { font-family: var(--serif); font-size: 20px; color: var(--on-navy); margin-bottom: 12px; }
.footer__meta { font-size: 13px; color: #9aa3b4; line-height: 1.9; }
.footer__contact { font-size: 13px; color: #9aa3b4; text-align: right; line-height: 2; }
.footer__contact a:hover { color: #fff; }
@media (max-width: 620px) { .footer__contact { text-align: left; } }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 28px 56px; font-size: 12.5px; line-height: 1.85; color: #9aa3b4; max-width: 90ch; }

/* home footer has no top margin (sits after a section) */
.footer--flush { margin-top: 0; }


/* ============ redesign-skill pass (on-brand) ============ */
h1, h2, h3, h4 { text-wrap: balance; }
.prose p, .standfirst, .lede, .hero__sub, .card__dek, .def-box__answer, .sec-head p { text-wrap: pretty; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 18px; font-family: var(--sans); font-size: 14px; border-radius: 0 0 2px 0; }
.skip-link:focus { left: 0; outline: 2px solid var(--gold); }
.nav__links > a[aria-current="page"], .nav__links > .nav-item > .nav-item__link[aria-current="page"] { color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.chip--soon { opacity: .45; pointer-events: none; cursor: default; }

/* coming-soon article cards (no dead links) */
.card--soon { opacity: .6; pointer-events: none; }
.card--soon .card__title { color: var(--body-soft); }
.card__soon { align-self: flex-start; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }


/* ============ NAV HOVER/FOCUS DROPDOWN (wayfinding to tools + insights) ============
   Shadowless: hairline (--line) + paper + navy 2px top-rule. Pure CSS — works with JS off.
   Desktop(>=881px): keyboard :focus-within reveals (ANY pointer); :hover reveals (hover-capable).
   Mobile(<=880px): submenu static nested in the drawer (all touch phones).
   Touch >=881px (no hover): degrades gracefully — parent link goes to the section index page.
   Close is INSTANT (visibility never transitioned -> no focusable-but-invisible window).
   Motion gated at source (reduced-motion users get no transform). dek folded into each sub-link aria-label. */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item__link::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .5;
}
.nav-item:hover .nav-item__link::after,
.nav-item:focus-within .nav-item__link::after { opacity: 1; }

/* focus-visible rings (base nav has none) */
.nav-item__link:focus-visible,
.submenu a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
.submenu a:focus-visible { outline-offset: -2px; }

/* panel: paper card, hairline + navy top-rule, square 2px, ZERO shadow */
.submenu {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 256px; margin: 0; padding: 6px; list-style: none;
  background: var(--paper);
  border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: 2px;
  opacity: 0; visibility: hidden; z-index: 60;
}
.submenu li { margin: 0; }
.submenu > li > a { display: block; padding: 11px 13px; border-radius: 2px; text-decoration: none; }
.submenu__title { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.submenu__dek { display: block; font-family: var(--sans); font-size: 12px; color: #5e5e5e; line-height: 1.5; margin-top: 3px; }
.submenu > li > a:hover { background: var(--cream); }
.submenu > li > a:hover .submenu__title { color: var(--navy-deep); }

/* DESKTOP REVEAL (>=881px). Keyboard :focus-within = ANY pointer (a11y); :hover = hover-capable only. */
@media (min-width: 881px) {
  .nav-item:focus-within .submenu { opacity: 1; visibility: visible; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 881px) {
  .nav-item:hover .submenu { opacity: 1; visibility: visible; }
  .nav-item:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }  /* hover-bridge across the 10px gap */
}

/* MOTION only when welcome: fade+slide IN on reveal. Close stays instant (visibility not transitioned). */
@media (prefers-reduced-motion: no-preference) and (min-width: 881px) {
  .submenu { transform: translateY(-5px); transition: opacity .16s var(--ease), transform .16s var(--ease); }
  .nav-item:focus-within .submenu { transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) and (min-width: 881px) {
  .nav-item:hover .submenu { transform: translateY(0); }
}

/* MOBILE drawer (<=880px): static nested list inside the column menu (covers all touch phones). */
@media (max-width: 880px) {
  .nav-item { display: block; width: 100%; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; transition: none;
    min-width: 0; margin: 8px 0 4px; padding: 0 0 0 12px;
    border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .nav-item::after { content: none; }
  .nav-item__link::after { display: none; }
  .submenu__dek { display: none; }
  .submenu > li > a { padding: 9px 10px; }
}
