:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --line: #d2d2d7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --bg: #000000;
    --alt: #161617;
    --line: #424245;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

.header { position: sticky; top: 10px; z-index: 50; width: min(calc(100% - 20px), 960px); margin: 10px auto 0; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
@media (prefers-color-scheme: dark) { .header { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); } }
.header .wrap { max-width: none; padding: 0 16px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 52px; }
html { scroll-padding-top: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 10px 6px 10px 0; }
.brand img { display: block; height: 28px; width: auto; }
@media (max-width: 420px) { .brand img { height: 24px; } }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-group { position: relative; }
.nav a.nav-link { font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.nav a.nav-link:hover { color: var(--text); background: var(--alt); }
.nav-btn { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-btn::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--text); background: var(--alt); }
.nav-menu { display: none; position: absolute; top: calc(100% + 8px); left: -8px; min-width: 210px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
@media (prefers-color-scheme: dark) { .nav-menu { box-shadow: 0 12px 32px rgba(0, 0, 0, .6); } }
.nav-group.open .nav-menu { display: block; }
@media (hover: hover) and (min-width: 721px) { .nav-group:hover .nav-menu { display: block; } .nav-group:hover .nav-btn { color: var(--text); background: var(--alt); } .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); white-space: nowrap; }
.nav-menu a:hover { background: var(--alt); }
.nav-label { padding: 12px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8e8e93); }
.nav-label:first-child { padding-top: 4px; }
.nav-menu a[aria-current="page"] { font-weight: 600; }
.nav-menu .nav-all { font-weight: 600; margin-bottom: 4px; padding-bottom: 10px; border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--line); }
.nav-menu.has-all a:not(.nav-all) { padding-left: 24px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--text); background: var(--alt); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.nav-toggle svg { display: block; }

main.wrap { padding-top: 56px; padding-bottom: 72px; min-height: 60vh; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 28px; line-height: 1.14; letter-spacing: -0.02em; font-weight: 600; margin: 48px 0 12px; }
h3 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.3; color: var(--muted); max-width: 640px; margin-bottom: 32px; }
.prose { max-width: 680px; }
.prose ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: 14px; }

.widget { margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.widget .tradingview-widget-container { width: 100%; }
.widget .tradingview-widget-container__widget { min-height: 500px; }
.widget-tall .tradingview-widget-container__widget { min-height: 720px; }
.widget-short .tradingview-widget-container__widget { min-height: 0; }
.tradingview-widget-copyright { flex: none; }
.tradingview-widget-copyright { font-size: 12px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); }
.widget-note { color: var(--muted); font-size: 13px; margin: 8px 2px 0; }
.widget .widget-blocked ~ .tradingview-widget-container__widget { min-height: 0; height: 0; }
.widget-blocked { padding: 48px 22px; text-align: center; color: var(--muted); font-size: 15px; }
.widget-blocked button { margin-top: 12px; }

button {
  font: inherit; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 980px; padding: 7px 18px;
}
button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

.footer { background: var(--alt); border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; margin: 0 0 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.fine { font-size: 12px; line-height: 1.5; margin: 0 0 10px; max-width: 820px; }

.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 560px; margin: 0 auto;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font-size: 14px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 10px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Articles */
/* Tables: the one standard (see docs/table-standard.md).
   Every table sits in <div class="table-scroll"> and is styled from here, in or out of .prose.
   :where() keeps these defaults at zero specificity so page-specific rules still win. */
:where(.table-scroll) table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
:where(.table-scroll) :is(th, td) { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
:where(.table-scroll) thead th { font-weight: 600; color: var(--muted); font-size: 13px; line-height: 1.25; vertical-align: bottom; border-bottom: 1.5px solid var(--muted); }
:where(.table-scroll) tbody th { font-weight: 600; }
:where(.table-scroll) :is(th, td).n { text-align: right; white-space: nowrap; }
:where(.table-scroll) tbody tr:last-child :is(th, td) { border-bottom: 0; }
:where(.table-scroll) table :is(th, td):first-child { padding-left: 0; }
:where(.table-scroll) table :is(th, td):last-child { padding-right: 0; }
.prose table.timeline th:first-child, .prose table.timeline td:first-child { white-space: nowrap; }
/* Numeric data tables: unit stated once in the corner header, plain numbers in the cells. */
table.data .unit { display: block; margin-top: 2px; white-space: nowrap; font-size: 11px; font-weight: 400; letter-spacing: .01em; }
table.data td.nil { color: var(--muted); }
table.data tr.sum :is(th, td) { font-weight: 600; border-top: 1.5px solid var(--muted); }
table.data :is(th, td).total { border-left: 1px solid var(--line); font-weight: 600; padding-left: 14px; }
table.data tr.latest :is(th, td) { background: var(--alt); font-weight: 600; }
table.data tr.latest :is(th, td):first-child { border-radius: 8px 0 0 8px; }
table.data tr.latest :is(th, td):last-child { border-radius: 0 8px 8px 0; }
table.data :is(th, td):first-child { padding-left: 10px; }
table.data :is(th, td):last-child { padding-right: 10px; }
table.data.loose tbody th { font-weight: 400; min-width: 9rem; }
table.data small.yoy { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
@media (hover: hover) { table.data tbody tr:not(.latest):hover :is(th, td) { background: var(--alt); } }
/* Narrow screens: tighter cells, and the first column stays put while the rest scrolls. */
@media (max-width: 720px) {
  table.data { font-size: 14px; }
  table.data thead th { font-size: 12px; }
  table.data :is(th, td) { padding: 9px 6px; }
  table.data:not(.loose) :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); padding-left: 4px; padding-right: 8px; box-shadow: 1px 0 0 var(--line); }
  table.data:not(.loose) tr.latest :is(th, td):first-child { background: var(--alt); }
  table.data :is(th, td).total { padding-left: 10px; }
}
.prose .note { color: var(--muted); font-size: 14px; }
.prose details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin: 8px 0 0; }
.table-scroll { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch;
  background: linear-gradient(to right, var(--bg) 30%, transparent) 0 0 / 36px 100% no-repeat local, linear-gradient(to left, var(--bg) 30%, transparent) 100% 0 / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .16), transparent) 0 0 / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), transparent) 100% 0 / 12px 100% no-repeat scroll; }
.prose .bar { display: inline-block; height: 10px; background: var(--text); border-radius: 2px; vertical-align: middle; }
.prose .bar.neg { background: var(--muted); opacity: .55; }
.prose td.barcell { width: 28%; }
.calc { background: var(--alt); border-radius: 14px; padding: 20px; margin: 0 0 24px; }
.calc label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.calc input, .calc select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; max-width: 240px; }
.calc .row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.calc .out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.calc .out div { background: var(--bg); border-radius: 10px; padding: 12px; }
.calc .out b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.calc .out span { font-size: 13px; color: var(--muted); }

/* Homepage blocks */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block h2 { margin-top: 56px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--alt); border: 1px solid transparent; border-radius: 14px; padding: 18px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-1px); }
.shop-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.card b { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; }
.card span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.more { margin: 16px 2px 0; font-size: 15px; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }
.signup { margin-top: 64px; background: var(--alt); border-radius: 18px; padding: 36px 28px; text-align: center; }
.signup h2 { margin: 0 0 8px; }
.logo-title { display: flex; align-items: center; gap: .3em; }
.logo-title img { display: block; height: 1.15em; width: auto; }
.brief-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.brief-title img { display: block; height: 36px; width: auto; }
.signup p { max-width: 520px; margin: 0 auto 18px; color: var(--muted); }
.signup-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.signup-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 16px; border: 1px solid var(--line); border-radius: 980px; background: var(--bg); color: var(--text); }
.signup-form button { padding: 10px 22px; font-size: 16px; }
.signup-embed.has-embed .signup-form, .signup-embed.has-embed .fine-note { display: none; }
.signup-embed iframe { display: block; width: 100% !important; max-width: 520px; margin: 0 auto; border: 0; border-radius: 14px; }
.signup .fine-note { font-size: 12px; margin: 12px auto 0; }
@media (max-width: 700px) {
  .cards, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  main.wrap { padding-top: 36px; }
  .signup { padding: 28px 18px; }
  .signup-form { flex-direction: column; }
}

/* Data-page tab bar and Keep reading row */
.datanav { display: flex; gap: 6px; overflow-x: auto; margin: -28px 0 28px; padding: 2px 0 6px; scrollbar-width: none; }
.datanav::-webkit-scrollbar { display: none; }
.datanav a { flex: none; font-size: 14px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 980px; padding: 5px 14px; }
.datanav a:hover { color: var(--text); }
.datanav a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.keep { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.keep h2 { font-size: 22px; margin: 24px 0 14px; }
.more-note { margin: 16px 2px 0; font-size: 14px; color: var(--muted); }

/* Revenue explorer */
:root {
  /* Chart palette: the six brand colors, used whenever a chart or graph is not grayscale. */
  --brand-green: #61BB46; --brand-yellow: #FDB827; --brand-orange: #F5821F; --brand-red: #E03A3E; --brand-purple: #963D97; --brand-blue: #009DDC;
  --c0: var(--brand-blue); --c1: var(--brand-green); --c2: var(--brand-orange); --c3: var(--brand-purple); --c4: var(--brand-red); --c5: var(--brand-yellow); --ct: #8e8e93;
}
.explorer { margin-top: 8px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 16px; color: var(--muted); }
.presets a { text-decoration: none; border: 1px solid var(--line); border-radius: 980px; padding: 4px 12px; color: var(--text); }
.presets a:hover { background: var(--alt); }
.xcontrols { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; background: var(--alt); border-radius: 14px; padding: 14px 16px; }
.xcontrols label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.xcontrols select { font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); min-width: 120px; }
.xchart-type { display: flex; margin-left: auto; }
.xchart-type button { border-radius: 0; padding: 7px 16px; margin: 0; }
.xchart-type button:first-child { border-radius: 980px 0 0 980px; }
.xchart-type button:last-child { border-radius: 0 980px 980px 0; border-left: 0; }
.xchart-type button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.xchart-type button:disabled { opacity: .45; cursor: not-allowed; }
.xsummary { margin: 18px 2px 8px; min-height: 3em; }
.xwrap { position: relative; }
.xchart { width: 100%; outline-offset: 4px; border-radius: 8px; }
.xchart svg { display: block; width: 100%; height: auto; overflow: visible; }
.xfade svg { animation: xin .25s ease-out; }
@keyframes xin { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xfade svg { animation: none; } }
.xgrid { stroke: var(--line); stroke-width: 1; }
.xzero { stroke: var(--muted); }
.xtick { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.xtot { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.xhl { fill: var(--text); opacity: .06; }
.xs0 { fill: var(--c0); } .xs1 { fill: var(--c1); } .xs2 { fill: var(--c2); } .xs3 { fill: var(--c3); } .xs4 { fill: var(--c4); } .xst { fill: var(--ct); }
path.xline { fill: none; stroke-width: 2.25; stroke-linejoin: round; }
path.xs0 { stroke: var(--c0); } path.xs1 { stroke: var(--c1); } path.xs2 { stroke: var(--c2); } path.xs3 { stroke: var(--c3); } path.xs4 { stroke: var(--c4); } path.xst { stroke: var(--ct); stroke-width: 1.75; }
.xtip { position: absolute; z-index: 5; pointer-events: none; min-width: 190px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 13px; }
.xtip[hidden] { display: none; }
.xtip > b { display: block; font-size: 14px; }
.xtipd { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.xtip div { display: flex; align-items: center; gap: 8px; padding: 1px 0; font-variant-numeric: tabular-nums; }
.xtip div span { flex: 1; }
.xtipt { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px !important; color: var(--muted); }
.xsw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.xb0 { background: var(--c0); } .xb1 { background: var(--c1); } .xb2 { background: var(--c2); } .xb3 { background: var(--c3); } .xb4 { background: var(--c4); } .xbt { background: var(--ct); }
.xlegend { list-style: none; padding: 0; margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.xlegend li { display: flex; align-items: center; gap: 7px; }
.xnote { color: var(--muted); font-size: 13px; margin: 6px 2px 0; }
.xactions { margin: 14px 0 0; }
@media (max-width: 700px) {
  .xchart-type { margin-left: 0; }
  .xcontrols select { min-width: 0; }
  .xcontrols label { flex: 1 1 40%; }
}
.lede-tight { margin-bottom: 18px; }
.xtip { min-width: 200px; }
.xchart { touch-action: pan-y; }

/* Apple by the numbers */
.hchart { margin: 0 0 28px; }
.hchart svg { width: 100%; height: auto; display: block; }
.hchart .hgrid { stroke: var(--line); stroke-width: 1; }
.hchart .hlab { fill: var(--muted); font-size: 11px; }
.hchart .hbar { fill: var(--brand-blue); }
.hchart .hline { fill: none; stroke: var(--brand-orange); stroke-width: 2.4; stroke-linejoin: round; }
.hchart .hdot { fill: var(--brand-orange); }
/* P/E history chart: grayscale by default (see the table and chart standard). */
.hchart .pline { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; }
.hchart .pmed { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 5; }
.hchart .pdot { fill: var(--text); }
.hchart .pbar { fill: var(--muted); opacity: .55; }
.hchart .pbar.me { fill: var(--text); opacity: 1; }
.hchart .hval { fill: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.hchart .hme { font-weight: 700; }
.hchart .hdim { fill: var(--muted); font-weight: 400; }
.hchart[data-pe] { position: relative; }
.hchart[data-pe] svg { touch-action: pan-y; cursor: crosshair; }
.hchart .pcross { stroke: var(--muted); stroke-width: 1; display: none; pointer-events: none; }
.hchart .pcur { fill: var(--bg); stroke: var(--text); stroke-width: 2; display: none; pointer-events: none; }
.hchart .pcross.on, .hchart .pcur.on { display: inline; }
.ptip { position: absolute; z-index: 5; pointer-events: none; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 13px; font-variant-numeric: tabular-nums; }
.ptip[hidden] { display: none; }
.ptip b { display: block; font-size: 16px; }
.ptip span { display: block; color: var(--muted); font-size: 12px; }
.hchart .key-pline { width: 16px; height: 2px; background: var(--text); }
.hchart .key-pmed { width: 16px; height: 0; border-top: 2px dashed var(--muted); }
/* Shareholder monitor widgets */
.pe-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 8px 0 28px; }
.pe-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); }
.pe-card:hover { border-color: var(--muted); }
.pe-label { font-size: 13px; color: var(--muted); }
.pe-big { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pe-sub { font-size: 14px; color: var(--muted); }
.pe-bar { position: relative; display: block; height: 8px; margin: 14px 0 0; border-radius: 4px; background: color-mix(in srgb, var(--ct) 28%, transparent); }
.pe-bar i { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--muted); }
.pe-bar .pe-now { width: 4px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.pe-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pe-mean { font-size: 15px; line-height: 1.45; margin-top: 6px; }
.pe-more { font-size: 14px; color: var(--muted); margin-top: 4px; }

.hchart figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hchart .key { display: inline-block; vertical-align: middle; margin: 0 4px 0 10px; }
.hchart .key:first-child { margin-left: 0; }
.hchart .key-bar { width: 12px; height: 12px; background: var(--brand-blue); border-radius: 2px; }
.hchart .key-line { width: 16px; height: 3px; background: var(--brand-orange); border-radius: 2px; }
.yearnav { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 8px; font-size: 15px; }

/* Mobile: the nav collapses behind a three-line menu icon and the groups list out. */
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; height: auto; min-height: 0; padding: 4px 0; align-content: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; padding: 6px 0 10px; border-top: 1px solid var(--line); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; }
  .header.nav-open .nav { display: flex; }
  .nav a.nav-link { font-size: 16px; color: var(--text); padding: 11px 10px; }
  .nav-btn { width: 100%; justify-content: space-between; font-size: 16px; color: var(--text); padding: 11px 10px; }
  .nav-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 12px; padding: 2px 0 2px 6px; min-width: 0; }
  .nav-menu a { font-size: 15px; padding: 9px 10px; }
  .nav-menu.has-all a:not(.nav-all) { padding-left: 22px; }
  .nav-menu .nav-all { padding-bottom: 9px; }
}

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0 28px; }
.person { display: flex; gap: 14px; padding: 16px; background: var(--alt); border-radius: 14px; }
.person h3 { margin: 0; font-size: 1.05rem; }
.person p { margin: 6px 0 0; font-size: .95rem; }
.person .role { margin-top: 2px; color: var(--muted); font-size: .85rem; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
@media (max-width: 720px) { .people { grid-template-columns: 1fr; } }
img.avatar { object-fit: cover; background: var(--line); }
.photo-credits { margin: 20px 0 8px; font-size: .75rem; color: var(--muted); }
.photo-credits summary { cursor: pointer; display: inline-block; opacity: .75; }
.photo-credits ul { margin: 8px 0 0; padding-left: 18px; }
.photo-credits li { margin: 3px 0; }
.photo-credits a { color: inherit; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.presets button { font: inherit; font-size: .9rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); cursor: pointer; }
.presets button:hover { background: var(--alt); }
.presets button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.preset-note { margin: 0 0 12px; color: var(--muted); font-size: .9rem; min-height: 2.6em; }

.ev-month { margin: 28px 0 6px; font-size: 1rem; color: var(--muted); font-weight: 600; }
table.events td { vertical-align: top; }
table.events .ev-date { white-space: nowrap; font-weight: 600; }
.ev-why { color: var(--muted); font-size: .85rem; margin-top: 2px; font-weight: 400; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; background: var(--alt); border: 1px solid var(--line); white-space: nowrap; }
.tag-confirmed { background: var(--text); color: var(--bg); border-color: var(--text); }

.quote { margin-right: auto; margin-left: -4px; font-size: 13px; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--text); white-space: nowrap; display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 9px; border-radius: 999px; background: var(--alt); }
.quote[hidden] { display: none; }
.quote .q-sym { color: var(--muted); font-weight: 600; }
.quote .q-chg.up { color: var(--bull-ink); }
.quote .q-chg.down { color: var(--bear-ink); }
@media (max-width: 420px) { .quote .q-sym { display: none; } .quote { font-size: 12.5px; padding: 3px 8px; } }
.quote.closed .q-px { color: var(--muted); }

/* Product photo gallery (swipe on touch, arrows and dots with script) */
.product { padding: 14px 14px 18px; }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; background: #fff; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: center; display: block; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.gallery-btn.prev { left: 8px; } .gallery-btn.next { right: 8px; }
.gallery-btn[disabled] { opacity: .35; cursor: default; }
@media (hover: none) { .gallery-btn { display: none; } }
.gallery-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 2px; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.gallery-dots button[aria-current="true"] { background: var(--text); }
.product-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 6px 6px 0; }
.product-link b { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; color: var(--text); }
.product-link span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* News carousel on the homepage: text over generated gradients (no third-party images). */
.news-wrap { position: relative; }
.news-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 14px; }
.news-track::-webkit-scrollbar { display: none; }
.news-track:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.news-track li { flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start; min-width: 0; }
.news-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; min-height: 200px; padding: 18px; border-radius: 14px; overflow: hidden; color: #f5f5f7; text-decoration: none;
  background: radial-gradient(120% 90% at 100% 0%, #48484a 0%, rgba(72, 72, 74, 0) 60%), linear-gradient(160deg, #2c2c2e 0%, #000 100%); }
.news-card.sec { background: radial-gradient(120% 90% at 100% 0%, #3b5370 0%, rgba(59, 83, 112, 0) 60%), linear-gradient(160deg, #1c2733 0%, #05080c 100%); }
.news-card.ext { background: radial-gradient(120% 90% at 100% 0%, #5a4a3a 0%, rgba(90, 74, 58, 0) 60%), linear-gradient(160deg, #26221e 0%, #070605 100%); }
.news-card:hover .news-title { text-decoration: underline; text-underline-offset: 3px; }
.news-card:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.news-tag { align-self: flex-start; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 980px; background: rgba(255, 255, 255, .16); color: #fff; }
.news-title { font-size: 18px; line-height: 1.25; font-weight: 600; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { font-size: 13px; color: rgba(245, 245, 247, .78); }
.news-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); z-index: 2; }
.news-btn.prev { left: -10px; } .news-btn.next { right: -10px; }
.news-btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .news-btn { display: none; } }
@media (max-width: 720px) { .news-track li { flex-basis: 78%; } .news-btn.prev { left: 4px; } .news-btn.next { right: 4px; } }
@media (prefers-reduced-motion: reduce) { .news-track { scroll-behavior: auto; } }
.news h2 { margin-top: 32px; }

/* Analyst ratings page */
:root { --bull: var(--brand-green); --bear: var(--brand-red); --neutral: #8e8e93; --bull-ink: #3b7f29; --bear-ink: #c62d31; }
@media (prefers-color-scheme: dark) { :root { --bull-ink: #61BB46; --bear-ink: #ef5a5e; } }
.tag-buy { color: var(--bull-ink); border-color: var(--bull-ink); background: transparent; font-weight: 600; }
.tag-sell { color: var(--bear-ink); border-color: var(--bear-ink); background: transparent; font-weight: 600; }
.tag-hold { color: var(--muted); border-color: var(--line); font-weight: 600; }
.up { color: var(--bull-ink); font-weight: 600; } .down { color: var(--bear-ink); font-weight: 600; } .muted { color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--text); color: var(--bg); white-space: nowrap; }
.an-summary { margin: 22px 0 8px; padding: 18px; background: var(--alt); border-radius: 14px; }
.an-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; }
.an-bar .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; min-width: 0; }
.seg-buy { color: #1d1d1f; } .seg-buy, .dot-buy { background: var(--bull); } .seg-hold, .dot-hold { background: var(--neutral); } .seg-sell, .dot-sell { background: var(--bear); }
.an-bar .seg[style*="flex:0"] { display: none; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 16px; font-size: 14px; color: var(--muted); }
.an-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.an-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.an-stats div { background: var(--bg); border-radius: 10px; padding: 12px; }
.an-stats span { display: block; font-size: 13px; color: var(--muted); }
.an-stats b { display: block; font-size: 24px; letter-spacing: -.01em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.an-stats small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
@media (max-width: 720px) { .an-stats { grid-template-columns: 1fr 1fr; } .an-stats b { font-size: 21px; } }
.ff { margin: 0 0 8px; } .ff svg { display: block; width: 100%; max-width: 640px; height: auto; }
.ff-label { font-size: 11px; fill: var(--text); } .ff-tick { font-size: 9.5px; fill: var(--muted); } .ff-val { font-size: 10px; fill: var(--muted); }
.ff-grid { stroke: var(--line); stroke-width: .6; } .ff-row { stroke: var(--line); stroke-width: .6; stroke-dasharray: 2 3; opacity: .7; }
.ff-now { stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 4 3; } .ff-nowlabel { font-size: 10px; fill: var(--text); font-weight: 600; }
.ff-buy { fill: var(--bull); } .ff-hold { fill: var(--neutral); } .ff-sell { fill: var(--bear); }
.ff-dot { stroke: var(--bg); stroke-width: 1.5; }
.an-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 4px; }
.an-tools .presets { margin: 0; }
.an-tools input[type="search"] { font: inherit; font-size: .9rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); width: 190px; max-width: 100%; }
table.analysts th button { all: unset; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; font-weight: 600; color: inherit; font-size: inherit; }
table.analysts th button:hover { color: var(--text); text-decoration: underline; }
table.analysts th button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 3px; }
table.analysts th button::after { content: "\2195"; font-size: .8em; opacity: .45; }
table.analysts th[aria-sort="ascending"] button::after { content: "\25B2"; opacity: 1; font-size: .65em; }
table.analysts th[aria-sort="descending"] button::after { content: "\25BC"; opacity: 1; font-size: .65em; }
table.analysts td { vertical-align: top; } table.analysts small { color: var(--muted); }
table.analysts td:first-child, table.analysts th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
table.analysts tr[hidden] { display: none; }
table.analysts td:nth-child(5), table.analysts td:nth-child(6) { white-space: nowrap; }

/* Daily notes */
.daily .kicker { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.daily-price { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--alt); }
.daily-src li { margin: 6px 0; }
.daily-list { list-style: none; padding: 0; margin: 24px 0; }
.daily-list li { border-top: 1px solid var(--line); }
.daily-list li:last-child { border-bottom: 1px solid var(--line); }
.daily-list a { display: grid; gap: 2px; padding: 14px 2px; text-decoration: none; color: inherit; }
.daily-list a:hover b { text-decoration: underline; }
.daily-list .d { font-size: 13px; color: var(--muted); }
.daily-list .x { color: var(--muted); font-size: 15px; }
.daily-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: 15px; }
.vote { margin: 32px 0 20px; padding: 16px; border-radius: 14px; background: var(--alt); }
.vote-q { margin: 0 0 10px; font-weight: 600; }
.vote-btns { display: flex; gap: 10px; }
.vote-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.vote-btn.down svg { transform: rotate(180deg); }
.vote-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.vote-btn:disabled { cursor: default; opacity: .75; }
.vote-msg { margin: 8px 0 0; min-height: 1.2em; font-size: 14px; color: var(--muted); }

/* Big-tech comparison and earnings countdown */
table.analysts tr.me td { background: var(--alt); }
.countdown { margin: 20px 0 28px; padding: 20px; border-radius: 16px; background: var(--alt); }
.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.cd-grid b { display: block; font-size: clamp(36px, 10vw, 56px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd-grid span { color: var(--muted); font-size: 14px; }
.cd-when { margin: 16px 0 0; text-align: center; }

table.wide { min-width: 640px; }
table.wide td, table.wide th { vertical-align: top; }

/* Sales map */
.smap { margin-top: 8px; }
.sm-tabs { display: inline-flex; margin: 0 0 14px; }
.sm-tabs button { border-radius: 0; padding: 7px 18px; margin: 0; }
.sm-tabs button:first-child { border-radius: 980px 0 0 980px; }
.sm-tabs button:last-child { border-radius: 0 980px 980px 0; }
.sm-tabs button:not(:first-child) { border-left: 0; }
.sm-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sm-year { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-size: 12px; color: var(--muted); }
.sm-year[hidden] { display: none; }
.sm-year label b { color: var(--text); font-size: 14px; margin-left: 4px; }
.sm-slide { display: flex; align-items: center; gap: 10px; }
.sm-slide button { padding: 6px 14px; font-size: 14px; min-width: 64px; }
.sm-slide input[type="range"] { flex: 1; min-width: 0; accent-color: var(--text); }
.sm-chart { width: 100%; }
.sm-svg { display: block; width: 100%; height: auto; }
.sm-c { stroke: var(--bg); stroke-width: .5; transition: fill-opacity .35s ease, fill .35s ease; fill: var(--neutral); }
.sm-svg.hl .sm-c:not(.on) { opacity: .4; }
.sm-svg.hl .sm-c.on { stroke: var(--text); stroke-width: 1; }
.sm-leaders line { stroke: var(--muted); stroke-width: 1; }
.sm-pill rect { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.sm-pill.on rect { stroke: var(--text); }
.sm-pn { fill: var(--muted); font-family: var(--font); }
.sm-pv { fill: var(--text); font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-pill, .sm-c { cursor: pointer; }
.sm-scale { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin: 10px 2px 0; max-width: 420px; }
.sm-grad { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c0) 14%, transparent), color-mix(in srgb, var(--c0) 64%, transparent)); border: 1px solid var(--line); }
.sm-grad-div { background: linear-gradient(90deg, color-mix(in srgb, var(--bear) 64%, transparent), transparent 50%, color-mix(in srgb, var(--bull) 64%, transparent)); }
.sm-list { list-style: none; padding: 0; margin: 18px 0 4px; display: grid; gap: 4px; }
.sm-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sm-list li.on, .sm-list li:focus-visible { background: var(--alt); outline: none; }
.sm-sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.sm-ln { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sm-bar { display: block; height: 5px; background: var(--alt); border-radius: 3px; overflow: hidden; }
.sm-bar i { display: block; height: 100%; opacity: .65; border-radius: 3px; transition: width .35s ease; }
.sm-lv { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.sm-lv span { font-size: 12px; color: var(--muted); }
.sm-grid { border-collapse: separate; border-spacing: 2px; width: 100%; font-variant-numeric: tabular-nums; }
.sm-grid th, .sm-grid td { padding: 8px 10px; font-size: 13px; white-space: nowrap; border: 0; text-align: right; }
.sm-grid thead th { color: var(--muted); font-weight: 500; }
.sm-grid tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--bg); z-index: 1; padding-left: 0; padding-right: 14px; }
.sm-cell { background: color-mix(in srgb, var(--hc) calc(var(--a) * 100%), transparent); border-radius: 6px; color: var(--text); }
.sm-tot td, .sm-tot th { color: var(--muted); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .sm-c, .sm-bar i { transition: none; } }
@media (max-width: 700px) { .sm-tabs { display: flex; } .sm-tabs button { flex: 1; } .sm-lv { min-width: 80px; } }

/* Stacked-card variant for text-heavy tables on phones (see docs/table-standard.md) */
@media (max-width: 720px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack :is(th, td) { display: block; width: auto; }
  table.stack caption { display: block; width: auto; text-align: left; margin-bottom: 8px; }
  table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack :is(th, td) { border: 0; padding: 3px 0; }
  table.stack tbody th { font-size: 16px; padding-bottom: 6px; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
}

/* Report card and shareholder monitor. Grade colors are the six Apple brand colors only (see docs/table-standard.md). */
.gr { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; padding: 0 .25em; border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1; color: #1d1d1f; background: var(--ct); font-variant-numeric: tabular-nums; }
.gr-A { background: var(--brand-green); }
.gr-B { background: var(--brand-blue); }
.gr-C { background: var(--brand-yellow); }
.gr-D { background: var(--brand-orange); }
.gr-F { background: var(--brand-red); color: #fff; }
.gr-xl { min-width: 2.2em; height: 2.2em; font-size: 44px; border-radius: 16px; }

.rc-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 24px 0 8px; padding: 22px 24px; border-radius: 16px; background: var(--alt); }
.rc-overall { display: flex; align-items: center; gap: 18px; }
.rc-overall b, .rc-quarter b { display: block; font-size: 22px; letter-spacing: -0.015em; }
.rc-overall > div span, .rc-quarter span { color: var(--muted); font-size: 15px; }
.rc-quarter { text-align: right; }
.rc-take { margin: 16px 0 24px; }
.rc-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 8px; }
.rc-m { background: var(--alt); border-radius: 14px; padding: 16px 18px 14px; }
.rc-m-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-m-top b { font-size: 16px; letter-spacing: -0.01em; }
.rc-m-val { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.rc-m p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
table.rc-grid td, table.rc-grid th.n { text-align: center; }
table.rc-grid .gr { font-size: 14px; }
table.rc-thresh td { font-size: 14px; white-space: nowrap; }

.mon h2 { margin-top: 48px; }
.mon-intro { margin: -4px 0 18px; color: var(--muted); }
.mon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mon-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--alt); border: 1px solid transparent; border-radius: 16px; padding: 18px 20px 16px; transition: border-color .15s ease, transform .15s ease; }
.mon-card:hover { border-color: var(--line); transform: translateY(-1px); }
.mon-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.mon-more { margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--muted); }
.mon-card:hover .mon-more { color: var(--text); text-decoration: underline; }
.mon-fine { color: var(--muted); font-size: 13px !important; }
.mon-rc-main { display: flex; align-items: center; gap: 16px; }
.mon-rc-text b { display: block; font-size: 20px; letter-spacing: -0.015em; }
.mon-rc-text span { color: var(--muted); font-size: 14px; }
.mon-rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mon-rc-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 14px; }
.mon-rc-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.mon-rc-list .gr { font-size: 12px; min-width: 1.9em; height: 1.7em; border-radius: 6px; }
.mon-big { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mon-big small { font-size: 28px; color: var(--muted); margin-left: 2px; }
.mon-cd.countdown { margin: 0; padding: 12px 8px; background: var(--bg); }
.mon-cd .cd-grid b { font-size: clamp(26px, 7vw, 36px); }
.mon-cd .cd-grid span { font-size: 12px; }
.mon-when { text-align: center; }
.mon-dl { display: grid; gap: 4px; margin: 0; font-size: 14px; }
.mon-dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.mon-dl dt { color: var(--muted); }
.mon-dl dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.mon-ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mon-ev-list li { display: grid; grid-template-columns: 6.4em 1fr; gap: 10px; font-size: 15px; line-height: 1.35; border-top: 1px solid var(--line); padding-top: 8px; }
.mon-ev-list li:first-child { border-top: 0; padding-top: 0; }
.mon-ev-d { font-weight: 600; }
.mon-ev-t em { color: var(--muted); font-style: normal; font-size: 13px; }
.mon-ev-list li[hidden] { display: none; }
@media (max-width: 900px) { .rc-measures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .mon-grid, .rc-measures { grid-template-columns: 1fr; }
  .rc-quarter { text-align: left; }
  .rc-hero { padding: 18px; }
  .gr-xl { font-size: 38px; }
}
.rc-m-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; border: 1px dashed var(--line); background: transparent; }
.rc-m-link b { font-size: 16px; }
.rc-m-link:hover { background: var(--alt); }

/* Homepage paths and trust strip */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 32px; }
.path { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--alt); border: 1px solid transparent; border-radius: 14px; padding: 18px 20px; transition: border-color .15s ease, transform .15s ease; }
.path:hover { border-color: var(--line); transform: translateY(-1px); }
.path-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.path b { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; }
.path span:last-child { color: var(--muted); font-size: 15px; line-height: 1.4; }
.path-sec { scroll-margin-top: 72px; }
.path-sec h2 { margin-top: 48px; }
.trust { margin-top: 56px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.trust h2 { font-size: 20px; margin: 0 0 12px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.trust b { color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .paths { grid-template-columns: 1fr; margin-bottom: 24px; }
  .trust ul { grid-template-columns: 1fr; }
}

.newsfeed { list-style: none; margin: 8px 0 0; padding: 0; }
.newsfeed li { padding: 14px 0; border-top: 1px solid var(--line); }
.newsfeed li:last-child { border-bottom: 1px solid var(--line); }
.newsfeed .nf-meta { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.newsfeed .nf-src { font-weight: 600; }
.newsfeed .nf-title { color: var(--text); font-size: 17px; line-height: 1.35; text-decoration: none; }
.newsfeed .nf-title:hover { text-decoration: underline; }
.newsfeed .nf-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); }

/* Cards with a picture (Apple Newsroom releases): the image sits behind the text under a dark gradient. */
.news-card.pic { min-height: 240px; }
.news-card .news-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.news-card.pic::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.88) 100%); }
.news-card.pic > span { position: relative; z-index: 2; }
.newsfeed li { display: flex; gap: 16px; align-items: flex-start; }
.newsfeed .nf-body { flex: 1; min-width: 0; }
.newsfeed .nf-img { flex: none; width: 128px; height: 67px; object-fit: cover; border-radius: 8px; background: var(--line); }
@media (max-width: 720px) { .newsfeed .nf-img { width: 88px; height: 46px; } }

/* Category bubble, top right of each card and beside the source on the news page. */
.news-card .news-label, .news-card.pic > .news-label { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 3px 10px; border-radius: 980px; background: rgba(255, 255, 255, .92); color: #1d1d1f; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; white-space: nowrap; }
.newsfeed .nf-label { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 600; }

/* Widget cards: dark icon-header cards shared by the analyst scorecard, report card and shareholder monitor.
   The variables are re-scoped so everything inside (text, rules, countdown) reads correctly in light and dark mode. */
.wc, .mon-card, .rc-hero, .rc-m {
  --text: #f5f5f7; --muted: #a1a1a6; --bg: #2c2c2e; --alt: #2c2c2e; --line: #3a3a3c; --bull-ink: #61bb46; --bear-ink: #ef5a5e;
  background: #1c1c1e; color: var(--text); border: 0; border-radius: 24px; padding: 20px;
}
.rc-m-link { border: 0; }
.rc-m-link:hover { background: #26262a; }
.wc-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.wc-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.wc-sub { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.wc-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.wc-ico svg { width: 18px; height: 18px; }
.wc-ico-green { background: linear-gradient(160deg, #7fd15f, #4aa032); }
.wc-ico-blue { background: linear-gradient(160deg, #35c0f0, #0a84ff); }
.wc-ico-orange { background: linear-gradient(160deg, #ffb340, #ff7a2f); }
.wc-ico-red { background: linear-gradient(160deg, #ff6b6b, #e0343a); }
.wc-ico-purple { background: linear-gradient(160deg, #c77dff, #8e44d6); }
.wc-g { background: var(--brand-green); } .wc-y { background: var(--brand-yellow); } .wc-r { background: var(--brand-red); }
.wc-tone-bull { color: var(--brand-green); fill: var(--brand-green); }
.wc-tone-hold { color: var(--brand-yellow); fill: var(--brand-yellow); }
.wc-tone-bear { color: #ef5a5e; fill: #ef5a5e; }
.wc-tone-blue { color: #35a8f0; fill: #35a8f0; }
.wc-lede { margin: -4px 0 0; color: var(--muted); }
.wc-note { margin: 14px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.wc-label { margin: 0 0 4px; font-size: 15px; color: var(--muted); }

/* Segmented bars (rating split, report card measures) */
.wc-seg { display: flex; gap: 3px; height: 10px; margin: 14px 0 12px; }
.wc-seg i { min-width: 6px; border-radius: 5px; flex: 1; }
.wc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.wc-dot-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }

/* Analysts: rating gauge */
.anc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 10px; }
.wc-gauge { display: block; width: 100%; max-width: 320px; margin: 4px auto 0; overflow: visible; }
.wc-arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.wc-knob { fill: #fff; stroke: #1c1c1e; stroke-width: 3; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.wc-gtext { font-weight: 700; letter-spacing: -.02em; }
.wc-gsub { fill: var(--muted); font-size: 17px; }
.wc-gl { fill: var(--muted); font-size: 14px; }

/* Analysts: price targets */
.wc-bigrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.wc-big { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wc-pill { padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.wc-pill-up { background: rgba(97, 187, 70, .2); color: #7fd15f; }
.wc-pill-down { background: rgba(245, 130, 31, .22); color: #ff9f43; }
.wc-track { position: relative; height: 10px; margin: 28px 10px 20px; border-radius: 6px;
  background: linear-gradient(90deg, #61bb46, #fdb827 28%, #f5821f 48%, #e03a3e 64%, #963d97 82%, #009ddc); }
.wc-now { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 3px solid #1c1c1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); z-index: 2; }
.wc-tick { position: absolute; top: -5px; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 2px; background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); z-index: 1; }
.wc-scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.wc-scale span { display: block; font-size: 14px; color: var(--muted); }
.wc-scale b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wc-scale div:nth-child(2) { text-align: center; } .wc-scale div:last-child { text-align: right; }

/* Analysts: recent changes */
.wc-dashes { display: flex; gap: 6px; margin: 4px 0 14px; }
.wc-dashes i { flex: 1; height: 8px; border-radius: 4px; }
.wc-rows { display: grid; }
.wc-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 18px; }
.wc-row .wc-ico { width: 36px; height: 36px; border-radius: 11px; }
.wc-row b { margin-left: auto; font-size: 20px; font-variant-numeric: tabular-nums; }
.wc-row.wc-div { border-top: 1px solid var(--line); }

/* Report card and monitor cards in the same style */
.mon-grid { gap: 16px; }
.mon-card:hover { border-color: transparent; background: #232326; }
.mon-rc-list { gap: 0; }
.mon-rc-list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mon-rc-list li:first-child { border-top: 0; }
.mon-card .wc-seg { margin: 4px 0 8px; }
.mon-cd.countdown { background: var(--bg); border-radius: 16px; }
.mon-dl div { border-top-color: var(--line); }
.rc-measures { gap: 16px; }
.rc-m-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-m-top b { font-size: 16px; color: var(--muted); font-weight: 600; }
.rc-m-val { font-size: 40px; font-weight: 700; margin: 12px 0 6px; }
.rc-hero { padding: 24px; }
@media (max-width: 800px) { .anc-grid { grid-template-columns: 1fr; } }

/* Earnings call Q&A cards */
.qa-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.qa-index a { display: flex; flex-direction: column; text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.qa-index a span { font-weight: 400; font-size: 12px; color: var(--muted); }
.qa-index a:hover { background: var(--alt); }
.qa { margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; scroll-margin-top: 84px; }
.qa-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--alt); border-bottom: 1px solid var(--line); }
.qa-head div b { display: block; font-size: 18px; line-height: 1.2; }
.qa-head div span { font-size: 14px; color: var(--muted); }
.qa-n { flex: none; min-width: 44px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 999px; background: var(--text); color: var(--bg); }
.qa-ex { padding: 6px 18px 0; }
.qa-ex p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.qa-ex p:last-child { border-bottom: 0; }
.qa-who { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.qa-q { color: var(--muted); }
.qa-q .qa-who { color: var(--muted); }
.qa-a { color: var(--text); }
.qa-a .qa-who { color: var(--text); }
.qa-ex .qa-a + .qa-q { padding-top: 16px; }
.qa-why { margin: 0; padding: 12px 18px; font-size: 15px; background: var(--alt); }
.prose .qa-more { border-top: 1px solid var(--line); border-bottom: 0; padding: 10px 18px; }
.qa-more summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.prose .qa-more div p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .qa-head, .qa-ex, .qa-why, .prose .qa-more { padding-left: 14px; padding-right: 14px; } }

/* Site search */
.search-open { font: inherit; color: var(--muted); background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; }
.search-open:hover, .search-open[aria-expanded="true"] { color: var(--text); background: var(--alt); }
.search { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.search[hidden] { display: none; }
.search-panel { width: min(640px, 100%); max-height: 76vh; overflow: auto; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); padding: 14px; }
.search-panel input { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; color: var(--text); background: var(--alt); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.search-panel input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.search-status { margin: 10px 4px 4px; font-size: 13px; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--alt); }
.search-results b { display: block; font-size: 15px; }
.search-results span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
html.search-on { overflow: hidden; }

/* Header accent: six even color blocks along the bottom edge */
.header::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 3px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #7ac143 0 16.667%, #f7c600 16.667% 33.333%, #f58220 33.333% 50%, #e03a3e 50% 66.667%, #963d97 66.667% 83.333%, #009ddc 83.333% 100%); }
/* Mobile: the color blocks replace the menu divider and line up with the cards (11px from the pill edge) */
@media (max-width: 720px) {
  .header::after { left: 11px; right: 11px; }
  .header.nav-open::after { display: none; }
  .header.nav-open .nav { border-top: 0; position: relative; margin: 0 -5px; padding-top: 9px; width: calc(100% + 10px); }
  .header.nav-open .nav::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, #7ac143 0 16.667%, #f7c600 16.667% 33.333%, #f58220 33.333% 50%, #e03a3e 50% 66.667%, #963d97 66.667% 83.333%, #009ddc 83.333% 100%); }
  .header.nav-open .nav > * { margin-left: 5px; margin-right: 5px; }
}

/* Largest companies: market-value history line chart and play-button race. Grayscale; Apple blue; one orange highlight. */
.tc-chart { position: relative; }
.tc-wrap { position: relative; }
.tc-chart svg { touch-action: pan-y; cursor: crosshair; }
.tc-chart .tcline { fill: none; stroke: var(--ct); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tc-chart .tcline.me { stroke: var(--brand-blue); stroke-width: 2.8; }
.tc-chart .tcline.hl { stroke: var(--brand-orange); stroke-width: 2.8; }
.tc-chart.has-hl .tcline:not(.me):not(.hl) { opacity: .4; }
.tc-chart .tclab { font-size: 12px; }
.tc-chart .tclab.me { fill: var(--text); font-weight: 700; }
.tc-chart .tclab.hl { fill: var(--text); font-weight: 700; }
.tc-chart .pcross { stroke: var(--muted); stroke-width: 1; display: none; pointer-events: none; }
.tc-chart .pcross.on { display: inline; }
.tc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.tc-chips-label { margin-right: 2px; }
.tc-chip { font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 980px; padding: 3px 11px; cursor: pointer; }
.tc-chip:hover { background: var(--alt); }
.tc-chip[aria-pressed="true"] { border-color: var(--brand-orange); box-shadow: inset 0 0 0 1px var(--brand-orange); }
.tctip { min-width: 190px; padding: 10px 12px; }
.tctip .tct-head { margin: 0 0 6px; font-weight: 600; color: var(--text); font-size: 13px; }
.tct-row { display: grid; grid-template-columns: 14px 64px 1fr; align-items: center; gap: 0 6px; font-size: 13px; line-height: 1.5; }
.tct-row i { display: block; height: 3px; border-radius: 2px; background: var(--ct); }
.tct-row.me i { background: var(--brand-blue); }
.tct-row.hl i { background: var(--brand-orange); }
.tct-row b { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; display: block; }
.tct-row span { color: var(--muted); }
.tct-row.me span, .tct-row.hl span { color: var(--text); font-weight: 600; }
.key-me { width: 16px; height: 3px; background: var(--brand-blue); border-radius: 2px; }
.key-oth { width: 16px; height: 3px; background: var(--ct); border-radius: 2px; }
.key-hl { width: 16px; height: 3px; background: var(--brand-orange); border-radius: 2px; }

.tcr { --rh: 42px; --step: 200ms; margin: 8px 0 28px; }
.tcr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 14px; }
.tcr-play { font: inherit; font-size: 15px; font-weight: 600; min-width: 108px; padding: 9px 18px; border-radius: 980px; border: 1px solid var(--text); background: var(--text); color: var(--bg); cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.tcr-play:hover { opacity: .88; transform: scale(1.03); }
.tcr-scrub-wrap { flex: 1 1 200px; min-width: 160px; }
.tcr-scrub { width: 100%; accent-color: var(--brand-blue); height: 28px; }
.tcr-speed-wrap { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tcr-speed { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.tcr-stats { display: flex; gap: 12px; margin: 0 0 14px; }
.tcr-stat { flex: 1 1 0; max-width: 220px; padding: 10px 14px; border-radius: 12px; background: var(--alt); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.tcr-stat small { font-size: 12px; color: var(--muted); }
.tcr-stat b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tcr-apple b { color: #0a9bdc; }
.tcr-stage { position: relative; padding: 10px 0 4px; border-radius: 14px; background: linear-gradient(180deg, var(--alt), transparent 70%); }
.tcr-rows { position: relative; list-style: none; margin: 0; padding: 0; height: calc(var(--rh) * 10); }
.tcr-row { position: absolute; left: 0; right: 0; top: 0; height: var(--rh); display: flex; align-items: center; margin: 0; padding: 0 6px;
  transform: translateY(calc(var(--i) * var(--rh))); transition: transform var(--step) cubic-bezier(.4, 0, .2, 1), opacity .3s ease; }
.tcr-row.off { opacity: 0; pointer-events: none; }
.tcr-rank { flex: none; width: 20px; margin-right: 8px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tcr-logo { flex: none; width: 32px; height: 32px; margin-right: 10px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), 0 2px 6px rgba(0, 0, 0, .18); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.tcr-logo svg, .tcr-logo img { display: block; width: 20px; height: 20px; }
.cell-co { display: inline-flex; align-items: center; gap: 9px; }
.tcr-logo.sm { width: 26px; height: 26px; margin-right: 0; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.tcr-logo.sm svg, .tcr-logo.sm img { width: 16px; height: 16px; }
.tcr-logo.sm.wide img { width: 21px; height: 21px; }
.tcr-logo.sm.mono { font-size: 13px; box-shadow: none; }
.tcr-logo.wide img { width: 26px; height: 26px; }
.tcr-logo.mono { background: var(--c); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.tcr-name { flex: none; width: 104px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcr-row.me .tcr-name { font-weight: 700; }
.tcr-track { position: relative; flex: 1; align-self: stretch; margin-right: 66px; }
.tcr-bar { position: absolute; left: 0; top: 8px; bottom: 8px; border-radius: 0 8px 8px 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 62%, #000), var(--c)); transition: width var(--step) linear, box-shadow .3s ease; }
.tcr-row.lead .tcr-bar { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.tcr-row.lead .tcr-logo { transform: scale(1.12); }
.tcr-row.climb .tcr-logo { animation: tcr-pop .7s ease; }
@keyframes tcr-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent); } 100% { transform: scale(1); } }
.tcr-val { position: absolute; top: 50%; margin: 0 0 0 8px; transform: translateY(-50%); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: left var(--step) linear; }
.tcr-date { text-align: right; padding: 6px 8px 2px; font-size: 52px; font-weight: 700; letter-spacing: -.02em; line-height: 1; pointer-events: none; color: color-mix(in srgb, var(--text) 18%, transparent); font-variant-numeric: tabular-nums; }
.tcr.jump .tcr-row, .tcr.jump .tcr-bar, .tcr.jump .tcr-val { transition: none; }
.tcr-note { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
@media (prefers-reduced-motion: reduce) { .tcr-row, .tcr-bar, .tcr-val { transition: none; } .tcr-row.climb .tcr-logo { animation: none; } }
@media (max-width: 560px) {
  .tcr { --rh: 38px; }
  .tcr-stat b { font-size: 18px; }
  .tcr-logo { width: 28px; height: 28px; margin-right: 7px; }
  .tcr-logo svg, .tcr-logo img { width: 17px; height: 17px; }
  .tcr-name { width: 62px; font-size: 12px; }
  .tcr-rank { width: 14px; margin-right: 5px; }
  .tcr-track { margin-right: 58px; }
  .tcr-val { font-size: 12px; }
  .tcr-date { font-size: 32px; }
  .tcr-play { flex: 1 1 100%; }
}

/* ---- The $1,000 Test (/the-1000-test/) ---- */
.t1k { --blue: #0071e3; }
.t1k-panel { background: var(--alt); border-radius: 28px; padding: 24px; display: grid; gap: 18px; }
.t1k-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.t1k-vs { font-style: normal; font-weight: 600; color: var(--muted); padding-bottom: 14px; }
.t1k-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: end; }
.t1k-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t1k-field > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.t1k-field select, .t1k-field input[type="date"], .t1k-endtxt { font: inherit; font-size: 17px; height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--line); width: 100%; box-sizing: border-box; display: flex; align-items: center; }
.t1k-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.t1k-field select:focus-visible, .t1k-field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.t1k-endtxt { color: var(--muted); }
.t1k-endtxt[hidden], .t1k-field input[hidden] { display: none; }
.t1k-tiny { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: -6px; cursor: pointer; }
.t1k-tiny input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.t1k-go { font: inherit; font-size: 17px; font-weight: 600; height: 52px; border: 0; border-radius: 980px; background: var(--blue); color: #fff; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.t1k-go:hover { background: #0077ed; transform: scale(1.01); }
.t1k-go:active { transform: scale(.99); }
.t1k-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 2px 0; font-size: 13px; color: var(--muted); }
.t1k-chip { font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 980px; padding: 5px 13px; cursor: pointer; }
.t1k-chip:hover { background: var(--alt); }
.t1k-msg { min-height: 1.4em; margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.t1k-empty { margin: 8px 0 0; padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 28px; color: var(--muted); font-size: 17px; }
.t1k-empty[hidden], .t1k-stage[hidden], .t1k-recap[hidden] { display: none; }
.t1k-stage { position: relative; margin: 8px 0 0; padding: 28px 24px 22px; border-radius: 28px; background: #000; color: #f5f5f7; overflow: hidden; }
.t1k-stage::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #7ac143 0 16.667%, #f7c600 16.667% 33.333%, #f58220 33.333% 50%, #e03a3e 50% 66.667%, #963d97 66.667% 83.333%, #009ddc 83.333% 100%); }
.t1k-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.t1k-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 22px; background: #1c1c1e; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease; position: relative; }
.t1k-tile::before { content: ""; position: absolute; left: 20px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.t1k-tile.a { --c: #3ea8ff; } .t1k-tile.b { --c: #ff9f0a; }
.t1k-tile.lead { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.t1k-name { font-weight: 600; font-size: 15px; color: #a1a1a6; padding-left: 18px; }
.t1k-tile.lead .t1k-name { color: #f5f5f7; }
.t1k-val { font-size: 44px; font-weight: 700; letter-spacing: -.045em; line-height: 1.05; margin-top: 6px; }
.t1k-ret { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.t1k-ret.up { color: #7ac143; } .t1k-ret.dn { color: #e03a3e; }
.t1k-dt { color: #6e6e73; font-size: 12px; margin-top: 2px; }
.t1k-chart { margin: 0; } .t1k-chart svg { width: 100%; height: auto; display: block; }
.t1k-controls { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.t1k-play { font: inherit; font-size: 15px; font-weight: 600; min-width: 104px; height: 40px; padding: 0 18px; border: 0; border-radius: 980px; background: #f5f5f7; color: #000; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.t1k-play:hover { opacity: .88; transform: scale(1.03); }
.t1k-scrub { flex: 1 1 auto; min-width: 0; height: 28px; accent-color: #f5f5f7; }
.t1k-speed { font: inherit; font-size: 14px; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: #2c2c2e; color: #f5f5f7; }
.t1k-elapsed { margin: 10px 0 0; font-size: 12px; color: #6e6e73; text-align: right; }
.t1k-recap { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #2c2c2e; }
.t1k-head { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.t1k-sub { margin: 0 0 14px; color: #a1a1a6; font-size: 14px; }
.t1k-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 980px; border: 1px solid #48484a; background: transparent; color: #f5f5f7; cursor: pointer; }
.t1k-btn:hover { background: #f5f5f7; color: #000; }
.t1k-btn.x { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.t1k-btn.x:hover { opacity: .88; }
.t1k-shared { margin: 10px 0 0; font-size: 13px; color: #a1a1a6; min-height: 1.2em; }
.t1k .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .t1k-panel { padding: 18px; border-radius: 22px; }
  .t1k-stage { padding: 24px 14px 18px; border-radius: 22px; }
  .t1k-val { font-size: 30px; } .t1k-tile { padding: 14px; } .t1k-tile::before { left: 14px; top: 16px; }
  .t1k-head { font-size: 22px; }
}

/* Financials section (aapl-stock-chart) */
.fin-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.fin-jump a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: inherit; }
.fin-jump a:hover { background: var(--alt); }
.fv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.fv-cell { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--alt); }
.fv-k { font-size: 13px; color: var(--muted); }
.fv-v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fv-v small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* Tribute page (warren-buffett-apple) */
.tribute-hero { margin: 4px 0 8px; text-align: center; }
.tribute-art { width: min(100%, 440px); height: auto; display: inline-block; }
@media (prefers-color-scheme: dark) { .tribute-art { filter: invert(1); } }
.tribute .pull { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); }
.tribute .pull p { font-size: clamp(21px, 3vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.tribute .pull cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); }

/* Tribute: forced dark editorial look (body class set by front matter) */
body.tribute-dark { --text: #f5f5f7; --muted: #a1a1a6; --bg: #000; --alt: #161617; --line: #424245; color-scheme: dark; }
html:has(body.tribute-dark) { background: #000; }
body.tribute-dark .brand img { filter: invert(1); }
@media (prefers-color-scheme: dark) { body.tribute-dark .brand img { filter: none; } }
body.tribute-dark .tribute-art { filter: invert(1); }
.tribute-head { text-align: center; padding: 8px 0 12px; }
.tribute-head .tribute-hero { margin: 8px 0 20px; }
.tribute-eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tribute-head h1 { font-weight: 600; font-size: clamp(38px, 8vw, 64px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 auto; max-width: 14em; }
.apple-rule { display: flex; justify-content: center; margin: 22px auto 20px; width: 120px; height: 3px; }
.apple-rule i { flex: 1; display: block; }
.apple-rule i:nth-child(1) { background: #61bb46; } .apple-rule i:nth-child(2) { background: #fdb827; } .apple-rule i:nth-child(3) { background: #f5821f; }
.apple-rule i:nth-child(4) { background: #e03a3e; } .apple-rule i:nth-child(5) { background: #963d97; } .apple-rule i:nth-child(6) { background: #009ddc; }
.tribute-sub { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.4; color: var(--muted); max-width: 30em; margin: 0 auto; }
.tribute { margin-left: auto; margin-right: auto; }
.tribute h2 { margin-top: 44px; }

/* Tribute stake timeline: stack each row on phones (date, note, source) */
@media (max-width: 720px) {
  .tribute table.timeline, .tribute table.timeline tbody, .tribute table.timeline tr, .tribute table.timeline th, .tribute table.timeline td { display: block; width: 100%; }
  .tribute table.timeline thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tribute table.timeline tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tribute table.timeline tbody tr:last-child { border-bottom: 0; }
  .tribute table.timeline :is(th, td) { padding: 0; border: 0; white-space: normal; }
  .tribute table.timeline tbody th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .tribute table.timeline td { font-size: 16px; line-height: 1.45; }
  .tribute table.timeline td:last-child { margin-top: 6px; font-size: 14px; color: var(--muted); }
}

/* Tribute editorial blocks */
.tribute-intro { margin: 8px 0 0; }
.tribute-intro p { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.55; margin: 0 0 18px; }
.tribute-intro p:first-child { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.35; }
.tribute .dateline { margin: 28px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tribute .pullline { margin: 44px 0 8px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tribute .pullline p { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.3; margin: 0; }
.tribute .pull { border-left: 0; padding-left: 0; margin: 30px 0; }

/* Timeline */
.tl { list-style: none; margin: 28px 0 8px; padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.tl li { position: relative; padding: 0 0 30px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -32px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.tl p { margin: 0; }
.tl .tl-date { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl .tl-fig { font-size: clamp(24px, 4.4vw, 32px); line-height: 1.15; margin: 4px 0 6px; }
.tl .tl-note { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tl .tl-note a { color: var(--text); }

/* Milestone bars */
.bars { margin: 40px 0 8px; }
.bars-title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.bars ul { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; margin: 0 0 16px; font-size: 15px; }
.bars .b-v { font-variant-numeric: tabular-nums; color: var(--muted); }
.bars .b-bar { grid-column: 1 / -1; display: block; height: 10px; border-radius: 5px; background: var(--text); }
.bars-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* Buyback explainer */
.bb { margin: 28px 0; }
.bb-pair { display: flex; flex-wrap: wrap; gap: 28px 36px; justify-content: center; }
.bb-col { flex: 1 1 220px; max-width: 260px; }
.bb-col p { font-size: 15px; line-height: 1.45; margin: 12px 0 0; }
.bb-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.bb-grid i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--line); }
.bb-grid i.me { background: var(--text); }
.bb-grid i.gone { background: transparent; border: 1px dashed var(--line); }
.bb figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Closing */
.closing { margin: 8px 0 0; }
.closing p { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.6; margin: 0 0 20px; }
.closing .thanks { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; text-align: center; margin: 48px 0 0; }
.closing .apple-rule { margin: 26px auto 24px; }
.tribute-notes { margin-top: 56px; padding-top: 8px; font-size: 14px; }
.tribute-notes h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.tribute-notes ul { padding-left: 18px; }
.tribute-notes li { margin: 0 0 6px; }
.tribute-tag { margin: 14px 0 0; font-size: clamp(20px, 3.4vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }

/* Buffett time-lapse */
.lapse { margin: 40px 0 8px; }
.lapse-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 14px; }
.lapse-tiles div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 9px; min-width: 0; }
.lapse-tiles span { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lapse-tiles b { display: block; font-size: clamp(16px, 3.6vw, 22px); font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.lapse-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.lapse-play { appearance: none; border: 1px solid var(--text); background: var(--text); color: var(--bg); font: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 7px 18px; min-width: 84px; cursor: pointer; }
.lapse-play:focus-visible, .lapse-range:focus-visible { outline: 2px solid #009ddc; outline-offset: 3px; }
.lapse-range { flex: 1; min-width: 0; accent-color: #009ddc; }
.lapse-when { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 64px; text-align: right; }
.lapse-stage { width: 100%; min-height: 340px; }
.lapse-panel { margin: 14px 0 0; }
.lapse-cap i { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lapse-cap { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.lapse svg { display: block; width: 100%; height: auto; overflow: visible; }
.lapse-grid { stroke: var(--line); stroke-width: 1; opacity: .55; }
.lapse-vg { stroke: var(--line); stroke-width: 1; opacity: .3; }
.lapse-ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.lapse-lab { font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: #000; stroke-width: 4px; stroke-linejoin: round; }
.lapse-cursor { stroke: var(--text); stroke-width: 1; opacity: .35; }
.lapse-data { margin: 14px 0 0; }
.lapse-data summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.lapse-scroll { overflow-x: auto; margin: 10px 0; }
.lapse-data table { border-collapse: collapse; font-size: 13px; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.lapse-data th, .lapse-data td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lapse-data th:first-child, .lapse-data thead th { text-align: left; }
.lapse-data thead th { font-weight: 600; color: var(--muted); font-size: 12px; white-space: normal; }
@media (max-width: 560px) { .lapse-tiles { grid-template-columns: repeat(3, 1fr); } .lapse-stage { min-height: 330px; } }

/* Apple vs. the S&P 500 */
.vs-player { margin: 0 auto 8px; max-width: 380px; }
.vs-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.vs-pick select { font: inherit; font-size: 15px; color: var(--text); background: var(--alt); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 44px; }
.vs-stage { position: relative; background: #000; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.vs-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; cursor: pointer; }
.vs-play { position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%); white-space: nowrap; font: inherit; font-size: 17px; font-weight: 600; color: #000; background: #f5f5f7; border: 0; border-radius: 28px; padding: 14px 24px; cursor: pointer; }
.vs-play[hidden] { display: none; }
.vs-ctrl { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.vs-ctrl button { font: inherit; font-size: 14px; color: var(--text); background: var(--alt); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; min-width: 72px; cursor: pointer; }
.vs-ctrl input { flex: 1; min-width: 0; accent-color: var(--text); }
.vs-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.vs-bar-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.vs-track { position: relative; height: 14px; background: var(--alt); border-radius: 4px; }
.vs-track::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 50%; width: 1px; background: var(--text); }
.vs-track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: #8e8e93; }
.vs-track i.up { left: 50%; background: var(--brand-green); }
.vs-track i.dn { right: 50%; background: var(--brand-red); }
.vs-track i.even { left: 50%; }
ol.vs-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 24px; list-style: none; }
@media (min-width: 700px) { ol.vs-chips { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
ol.vs-chips li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; margin: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--alt); line-height: 1.2; }
ol.vs-chips li.up { background: var(--brand-green); border-color: var(--brand-green); color: #000; }
ol.vs-chips b { font-size: 14px; }
ol.vs-chips span { font-size: 11px; }
.vs-key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; background: #8e8e93; }
.vs-key.up { background: var(--brand-green); }
.vs-key.dn { background: var(--brand-red); }
.vs-teaser { grid-template-columns: 1fr; }
