/* Encyclopedia, markets, glossary, quizzes and member pages. Loaded after site.css and reuses its tokens. */

/* Reading progress bar (chapter pages) */
.read-progress { position: fixed; top: 64px; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-light)); z-index: 99; pointer-events: none; }

/* Hero extras */
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.page-hero .crumbs { font-size: .78rem; letter-spacing: .06em; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.page-hero .crumbs a { color: var(--gold-light); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero .lang-link { display: inline-block; margin-top: .9rem; color: var(--gold-light); font-size: .88rem; font-weight: 700; }
.hero-search { margin-top: 1.75rem; max-width: 560px; position: relative; }
.hero-search input { width: 100%; padding: 14px 18px 14px 46px; font: inherit; font-size: 1rem; border-radius: 3px; border: 1px solid rgba(196,151,58,.5); background: rgba(255,255,255,.97); color: var(--text-dark); }
.hero-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mid-gray); width: 18px; height: 18px; }
.search-results { list-style: none; margin-top: .5rem; background: #fff; border-radius: 3px; box-shadow: 0 12px 40px rgba(0,0,0,.25); max-height: 340px; overflow-y: auto; }
.search-results li a { display: block; padding: .65rem 1rem; text-decoration: none; color: var(--text-dark); border-bottom: 1px solid var(--light-border); font-size: .92rem; }
.search-results li a:hover, .search-results li a:focus { background: var(--off-white); }
.search-results .kind { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-right: .5rem; }

/* Stat band */
.stat-band { background: var(--navy-mid); padding: 40px 5%; }
.stat-band ul { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-band li { border-left: 2px solid var(--gold); padding-left: 1rem; }
.stat-band .num { display: block; font-family: var(--serif); color: var(--gold-light); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.1; }
.stat-band .lbl { display: block; color: rgba(255,255,255,.78); font-size: .82rem; margin-top: .35rem; }
.stat-band .src { display: block; color: rgba(255,255,255,.5); font-size: .7rem; margin-top: .2rem; }
.stat-band a { color: rgba(255,255,255,.6); }

/* Section shells */
.enc-section { padding: 72px 5%; background: var(--warm-white); }
.enc-section.alt { background: var(--off-white); }
.enc-section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.enc-section .section-intro { max-width: 720px; margin-left: 0; margin-bottom: 2rem; }
.enc-section .section-intro + * { margin-top: 0; }

/* Volume and chapter cards */
.vol { margin-bottom: 3rem; }
.vol-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--light-border); padding-bottom: .75rem; }
.vol-no { font-family: var(--serif); color: var(--gold); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.vol-head h3 { font-family: var(--serif); color: var(--navy); font-size: 1.45rem; }
.vol-head p { font-size: .9rem; color: var(--mid-gray); }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.chapter-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--light-border); border-radius: 4px; padding: 1.25rem 1.25rem 1.1rem; text-decoration: none; color: var(--text-body); transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; }
.chapter-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(11,29,58,.1); border-color: var(--gold); }
.chapter-card .ch-no { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.chapter-card h4, .chapter-card h2 { font-family: var(--serif); color: var(--navy); font-size: 1.08rem; line-height: 1.3; margin: .35rem 0 .5rem; }
.chapter-card p { font-size: .86rem; line-height: 1.6; }
.chapter-card .ch-meta { margin-top: auto; padding-top: .75rem; font-size: .75rem; color: var(--mid-gray); }
.chapter-card .badge-new { position: absolute; top: 12px; right: 12px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: var(--gold-light); padding: 2px 8px; border-radius: 999px; }

/* Feature tiles (hub quick links) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.tile { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 1px solid var(--light-border); border-radius: 4px; padding: 1.1rem; text-decoration: none; color: var(--text-body); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,29,58,.08); }
.tile .ico { flex: 0 0 40px; height: 40px; border-radius: 50%; background: rgba(196,151,58,.14); color: var(--gold-text); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.tile strong { display: block; color: var(--navy); font-size: .98rem; }
.tile span { display: block; font-size: .82rem; line-height: 1.5; color: var(--mid-gray); }

/* Chapter layout with sticky table of contents */
.enc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; max-width: 1120px; margin: 0 auto; align-items: start; }
.enc-layout .article-body { max-width: 760px; margin: 0; }
.toc { position: sticky; top: 88px; font-size: .85rem; border-left: 2px solid var(--light-border); padding-left: 1rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc p { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: .6rem; }
.toc a { display: block; color: var(--mid-gray); text-decoration: none; padding: .25rem 0; line-height: 1.4; transition: color .2s; }
.toc a:hover, .toc a.active { color: var(--navy); }
.toc a.active { font-weight: 700; }
.toc .toc-h3 { padding-left: .8rem; font-size: .8rem; }
.article-body blockquote { background: #fbf4e4; border: 1px solid #ecd9ad; border-radius: 3px; padding: .9rem 1.1rem; font-size: .9rem; color: #5a4012; margin-bottom: 1.5rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote a { color: #5a4012; }
.article-body h2 { scroll-margin-top: 88px; }
.article-body h3 { scroll-margin-top: 88px; }
.article-body .simple { background: #fff; border: 1px solid var(--light-border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.article-body figure { margin: 2rem 0; }
.article-body img { max-width: 100%; height: auto; }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.chapter-nav a { display: block; border: 1px solid var(--light-border); border-radius: 4px; padding: 1rem 1.2rem; text-decoration: none; background: #fff; transition: border-color .2s; }
.chapter-nav a:hover { border-color: var(--gold); }
.chapter-nav span { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.chapter-nav strong { color: var(--navy); font-size: .95rem; }
.chapter-nav .next { text-align: right; grid-column: 2; }
.updated-note { font-size: .82rem; color: var(--mid-gray); margin-top: 2rem; }

/* Charts (inline SVG, no scripts) */
.chart { background: #fff; border: 1px solid var(--light-border); border-radius: 4px; padding: 1.25rem 1.25rem 1rem; margin: 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption { font-size: .8rem; color: var(--mid-gray); margin-top: .75rem; line-height: 1.5; }
.chart figcaption strong { color: var(--navy); display: block; font-size: .95rem; margin-bottom: .2rem; font-family: var(--serif); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.chart .legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; margin-top: .5rem; list-style: none; padding: 0; }
.chart .legend li { display: flex; align-items: center; gap: .4rem; }
.chart .legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.svg-label { font-family: var(--sans); font-size: 12px; fill: var(--text-body); }
.svg-label-sm { font-family: var(--sans); font-size: 10.5px; fill: var(--mid-gray); }
.svg-value { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--navy); }
.svg-title { font-family: var(--serif); font-size: 15px; font-weight: 700; fill: var(--navy); }
.js .chart .bar { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.js .chart .vbar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.js .chart.visible .bar, .js .chart.visible .vbar { transform: none; }
.js .chart .draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2s ease; }
.js .chart.visible .draw { stroke-dashoffset: 0; }
.map-city { fill: var(--navy); }
.map-city-label { font-family: var(--sans); font-size: 11px; fill: var(--text-dark); }

/* Tables */
.data-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--light-border); border-radius: 4px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 760px; }
.cmp-table th, .cmp-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--light-border); text-align: left; vertical-align: top; }
.cmp-table thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: .78rem; letter-spacing: .04em; position: sticky; top: 0; }
.cmp-table td.num, .cmp-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-table tbody tr:hover { background: var(--off-white); }
.cmp-table .sym { font-size: .75rem; color: var(--mid-gray); display: block; }
.cmp-table .up { color: #1d6b3a; }
.cmp-table .down { color: #a3261b; }
.pill { display: inline-block; font-size: .7rem; padding: 2px 9px; border-radius: 999px; background: var(--off-white); border: 1px solid var(--light-border); color: var(--navy); white-space: nowrap; }
.pill.invit { background: #fbf4e4; border-color: #ecd9ad; color: #5a4012; }
.data-status { font-size: .82rem; color: var(--mid-gray); margin: .75rem 0 0; }
.data-status[data-live="1"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1d6b3a; margin-right: .4rem; }

/* Directory and careers */
.dir-group { margin-bottom: 2.5rem; }
.dir-group h3, .dir-group > h2 { font-family: var(--serif); color: var(--navy); font-size: 1.3rem; margin: 1.8rem 0 .9rem; }
.dir-group > p { font-size: .9rem; color: var(--mid-gray); margin-bottom: 1rem; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.dir-item { display: block; background: #fff; border: 1px solid var(--light-border); border-left: 3px solid var(--gold); border-radius: 3px; padding: .9rem 1rem; text-decoration: none; color: var(--text-body); transition: box-shadow .2s, transform .2s; }
.dir-item:hover { box-shadow: 0 8px 24px rgba(11,29,58,.08); transform: translateY(-2px); }
.dir-item strong { display: block; color: var(--navy); font-size: .95rem; }
.dir-item span { display: block; font-size: .8rem; line-height: 1.5; color: var(--mid-gray); margin-top: .2rem; }
.dir-item .host { font-size: .72rem; color: var(--gold-text); margin-top: .35rem; }

/* Glossary */
.az-bar { position: sticky; top: 64px; z-index: 5; background: rgba(247,245,240,.97); padding: .75rem 0; display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--light-border); }
.az-bar a { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 3px; background: #fff; border: 1px solid var(--light-border); text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--navy); }
.az-bar a:hover { border-color: var(--gold); }
.gl-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.gl-tools input { flex: 1 1 260px; padding: 11px 14px; font: inherit; border: 1px solid var(--light-border); border-radius: 3px; background: #fff; }
.gl-tools select { padding: 10px 12px; font: inherit; border: 1px solid var(--light-border); border-radius: 3px; background: #fff; }
.gl-count { font-size: .85rem; color: var(--mid-gray); }
.gl-letter { font-family: var(--serif); color: var(--gold); font-size: 2rem; margin: 2rem 0 .5rem; scroll-margin-top: 130px; }
.gl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .85rem; }
.gl-term { background: #fff; border: 1px solid var(--light-border); border-radius: 4px; padding: 1rem 1.1rem; scroll-margin-top: 130px; }
.gl-term dt { color: var(--navy); font-weight: 700; font-size: 1rem; }
.gl-term dt .cat { font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-left: .4rem; }
.gl-term dd { font-size: .88rem; line-height: 1.65; margin-top: .35rem; }
.gl-term dd a { color: var(--navy); font-weight: 500; }
.gl-term:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,151,58,.25); }

/* Updates and news */
.news-list { list-style: none; display: grid; gap: .85rem; }
.news-item { background: #fff; border: 1px solid var(--light-border); border-radius: 4px; padding: 1rem 1.2rem; display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.news-item time { font-size: .8rem; color: var(--gold-text); font-weight: 700; }
.news-item h3 { font-size: 1rem; color: var(--navy); line-height: 1.4; margin-bottom: .25rem; }
.news-item h3 a { color: var(--navy); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { font-size: .88rem; line-height: 1.6; }
.news-item .src { font-size: .75rem; color: var(--mid-gray); margin-top: .35rem; }
.news-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.news-tabs button { font: inherit; font-size: .82rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--light-border); background: #fff; color: var(--navy); cursor: pointer; }
.news-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Quiz */
.quiz { background: #fff; border: 1px solid var(--light-border); border-radius: 4px; padding: 1.5rem; margin-bottom: 1.5rem; }
.quiz fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; }
.quiz legend { font-weight: 700; color: var(--navy); margin-bottom: .6rem; line-height: 1.5; }
.quiz label { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .75rem; border: 1px solid var(--light-border); border-radius: 3px; margin-bottom: .4rem; cursor: pointer; font-size: .92rem; transition: border-color .2s, background .2s; }
.quiz label:hover { border-color: var(--gold); }
.quiz input[type="radio"] { margin-top: .3rem; accent-color: var(--navy); }
.quiz label.correct { background: #e7f4ec; border-color: #7cc49a; }
.quiz label.wrong { background: #fbe9e7; border-color: #e3a097; }
.quiz .explain { display: none; font-size: .86rem; background: var(--off-white); border-left: 3px solid var(--gold); padding: .6rem .8rem; margin-top: .4rem; }
.quiz.done .explain { display: block; }
.quiz-score { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-top: 1rem; }
.quiz button { cursor: pointer; font: inherit; }

/* Forms (newsletter, sign-in) */
.form-card { background: #fff; border: 1px solid var(--light-border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.75rem; max-width: 520px; }
.form-card label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin: 1rem 0 .35rem; }
.form-card input[type="email"], .form-card input[type="password"], .form-card input[type="text"] { width: 100%; padding: 11px 14px; font: inherit; border: 1px solid var(--light-border); border-radius: 3px; }
.form-card .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--text-body); font-size: .85rem; }
.form-card .consent input { margin-top: .3rem; }
.form-card .btn-primary { margin-top: 1.25rem; cursor: pointer; font: inherit; font-size: .88rem; }
.form-card .form-note { font-size: .8rem; color: var(--mid-gray); margin-top: .9rem; }
.invite-only { display: flex; gap: .75rem; align-items: flex-start; background: var(--navy); color: rgba(255,255,255,.88); border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; font-size: .9rem; }
.invite-only strong { color: var(--gold-light); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

/* Cheat sheets */
.sheet-card .more { display: inline-flex; gap: .4rem; }

@media (max-width: 960px) {
  .enc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .enc-section { padding: 48px 16px; }
  .stat-band { padding: 32px 16px; }
  .news-item { grid-template-columns: 1fr; gap: .25rem; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav .next { grid-column: 1; }
  .gl-list { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .chart .bar, .js .chart .vbar, .js .chart .draw { transform: none; stroke-dashoffset: 0; transition: none; }
  .chapter-card, .tile, .dir-item { transition: none; }
}
@media print {
  .toc, .read-progress, .az-bar, .gl-tools, .hero-search { display: none; }
  .enc-layout { display: block; }
}

/* Legend swatches (no inline styles: the site CSP blocks them) */
.sw0 { background: #0B1D3A; } .sw1 { background: #C4973A; } .sw2 { background: #4E6E9E; } .sw3 { background: #8A6420; }
.sw4 { background: #9DB0CC; } .sw5 { background: #E8C27A; } .sw6 { background: #2F4A73; } .sw7 { background: #B9A27A; }
.chart svg.donut { max-width: 260px; margin: 0 auto; }
.svg-node { font-family: var(--sans); }
footer .footer-note { font-size: .75rem; opacity: .7; margin-top: .4rem; }

/* Video library. Cards are our own artwork; YouTube thumbnails and players load only after consent. */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.vid-card { background: #fff; border: 1px solid var(--light-border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.vid-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,29,58,.12); }
.vid-art { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 80% 20%, rgba(196,151,58,.35), transparent 50%), linear-gradient(135deg, #0B1D3A 0%, #162d50 60%, #2F4A73 100%); display: grid; place-items: center; overflow: hidden; }
.vid-art::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(196,151,58,.07) 0 1px, transparent 1px 48px); }
.vid-art .vid-topic { position: absolute; left: 14px; top: 12px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; z-index: 2; }
.vid-art .vid-big { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--serif); color: #fff; font-size: 1.05rem; line-height: 1.25; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.vid-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.vid-card.has-thumb .vid-art img { opacity: 1; }
.vid-card.has-thumb .vid-big, .vid-card.has-thumb .vid-art::before { opacity: 0; }
.vid-art iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: relative; z-index: 3; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--gold-light); background: rgba(11,29,58,.75); color: var(--gold-light); cursor: pointer; display: grid; place-items: center; transition: transform .25s, background .25s; }
.vid-play:hover { transform: scale(1.1); background: var(--gold); color: var(--navy); }
.vid-play svg { width: 24px; height: 24px; margin-left: 3px; }
.vid-card.playing .vid-play { display: none; }
.vid-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.vid-body h3 { font-size: .98rem; color: var(--navy); line-height: 1.35; }
.vid-body .ch { font-size: .78rem; color: var(--gold-text); font-weight: 700; }
.vid-body p { font-size: .85rem; line-height: 1.55; }
.vid-body .vid-link { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--navy); }
.level { display: inline-block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--light-border); color: var(--mid-gray); margin-left: .35rem; }
.yt-consent { background: #fff; border: 1px solid var(--light-border); border-left: 4px solid var(--gold); border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: .9rem; }
.yt-consent .btn-primary { margin-top: .75rem; cursor: pointer; font: inherit; font-size: .85rem; padding: 10px 20px; }
.vid-section { margin-bottom: 3rem; }
.vid-section > h2 { font-family: var(--serif); color: var(--navy); font-size: 1.5rem; margin-bottom: .35rem; }
.vid-section > p { color: var(--mid-gray); font-size: .92rem; margin-bottom: 1.25rem; max-width: 720px; }

/* Animated history timeline: the spine draws down as the reader scrolls, each event slides in. */
.tl-wrap { margin: 2rem 0 2.5rem; }
.article-body ol.tl, .tl { list-style: none; margin: 0; padding: 0 0 0 38px; position: relative; counter-reset: none; }
.article-body ol.tl > li::marker, .tl > li::marker { content: none; }
.article-body ol.tl > li::before { content: none; }
.tl::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--navy)); }
.tl-item { position: relative; padding: 0 0 1.4rem; margin: 0; }
.tl-item + .tl-item { padding-top: .2rem; }
.tl-dot { position: absolute; left: -33px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(196,151,58,.15); }
.tl-item:last-child .tl-dot { background: var(--gold); animation: tl-beat 2.2s ease-in-out infinite; }
.tl-year { margin: 0 0 .15rem; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.tl-head { margin: 0 0 .35rem; font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); }
.tl-item p { margin: 0; }
.tl-src { font-size: .8rem; white-space: nowrap; }
.js .tl-item[data-reveal] { opacity: 0; transform: translateX(-18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.js .tl-item.m-in { opacity: 1; transform: none; }
.js .tl-item .tl-dot { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1) .15s; }
.js .tl-item.m-in .tl-dot { transform: scale(1); }
@keyframes tl-beat { 50% { box-shadow: 0 0 0 9px rgba(196,151,58,.05); } }
@media (prefers-reduced-motion: reduce) { .js .tl-item[data-reveal] { opacity: 1; transform: none; } .js .tl-item .tl-dot { transform: none; } }
.split > * { min-width: 0; }
.calc-form.form-card { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.calc-form.form-card label { margin: 0; }
.calc-form .section-title, .calc-form .btn-primary, .calc-form .form-note { grid-column: 1 / -1; }
.calc-form .btn-primary { justify-self: start; }
.tool-status:empty, .form-note:empty, .ai-copied:empty { display: none; }

/* Release 2 browser tools */
.form-card.tool-wide { max-width: 1120px; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.form-card select, .form-card textarea, .form-card input[type="number"], .form-card input[type="date"], .form-card input[type="file"] { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--light-border); border-radius: 3px; background: #fff; }
.form-card textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; resize: vertical; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 0 1.25rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.tool-actions .btn-primary { margin-top: 0; }
.btn-ghost { display: inline-flex; align-items: center; padding: 12px 22px; font: inherit; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost[hidden] { display: none; }
.tool-out { margin-top: 1rem; margin-bottom: 2rem; }
.tool-status { font-weight: 700; color: var(--navy); margin: 1rem 0 .5rem; }
.tool-table { min-width: 640px; }
.tool-table td { font-variant-numeric: tabular-nums; }
.edit-table td { padding: .35rem .4rem; }
.edit-table input, .edit-table select { width: 100%; min-width: 90px; padding: 7px 8px; font: inherit; font-size: .85rem; border: 1px solid var(--light-border); border-radius: 3px; background: #fffdf5; }
.edit-table input[type="text"] { min-width: 180px; }
.edit-table td.na { color: var(--mid-gray); text-align: center; }
.edit-table tr.grp th { background: var(--off-white); color: var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.ratio-in tbody th { font-weight: 500; min-width: 220px; }
.row-del { width: 32px; height: 32px; border: 1px solid var(--light-border); background: #fff; border-radius: 50%; color: #a3261b; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.row-del:hover, .row-del:focus-visible { background: #fbe9e7; border-color: #a3261b; }
.cmp-table tr.st-ok td, .cmp-table tr.st-ok:hover { background: #eef7ef; }
.cmp-table tr.st-review td { background: #fff7e0; }
.cmp-table tr.st-duplicate td, .cmp-table tr.st-invalid td { background: #fdeceb; }
.g-result p { margin: .75rem 0 0; font-size: .9rem; }
.g-ok { color: #1d6b3a; font-weight: 700; }
.g-bad { color: #a3261b; font-weight: 700; }
.g-warn { color: #6b4e12; }
.label-like { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin: 1rem 0 .35rem; }
.big-num { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; }
#ds-chart svg { width: 100%; height: auto; display: block; }
.enc-layout > * { min-width: 0; }
.article-body pre { max-width: 100%; }
.article-body { overflow-wrap: break-word; }
.article-body a { overflow-wrap: anywhere; }
.form-card .section-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.3; margin-bottom: .5rem; }
.edit-table thead th { min-width: 120px; }
.edit-table thead th:last-child { min-width: 44px; }
