: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-menu a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; font: inherit; font-size: 14px; color: var(--text); background: var(--alt); border: 1px solid var(--line); border-radius: 980px; padding: 5px 14px; cursor: pointer; }

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 */
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--muted); font-size: 13px; }
.prose td.n, .prose th.n { text-align: right; }
.prose table.timeline th:first-child, .prose table.timeline td:first-child { white-space: nowrap; }
.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; }
.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; }
.nav a.nav-cta { color: var(--bg); background: var(--text); padding: 5px 14px; border-radius: 980px; }
.nav a.nav-cta:hover { opacity: .85; color: var(--bg); }
.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: minmax(0, 380px); }
.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 { --c0: #0072B2; --c1: #E69F00; --c2: #009E73; --c3: #D55E00; --c4: #CC79A7; --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: #0072B2; }
.hchart .hline { fill: none; stroke: #E69F00; stroke-width: 2.4; stroke-linejoin: round; }
.hchart .hdot { fill: #E69F00; }
.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: #0072B2; border-radius: 2px; }
.hchart .key-line { width: 16px; height: 3px; background: #E69F00; 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 Menu button 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-block; }
  .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 a.nav-cta { text-align: center; margin-top: 6px; padding: 10px 14px; }
}

.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: #1a7f4b; }
.quote .q-chg.down { color: #c9342b; }
@media (prefers-color-scheme: dark) { .quote .q-chg.up { color: #34c77b; } .quote .q-chg.down { color: #ff6b61; } }
@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; }
