/* TrueTicker | one stylesheet for every page (D26, look renewed in D42a).
   Two themes, one product: "Terminal" (dark, navy + blue, white text on blue buttons - the look of ainoteq.com) is the default, "Research desk"
   (light, white + emerald) on request. The theme is the data-theme attribute of <html>, set
   by app.js from the visitor's choice. Numbers are always in the monospace face.
   No page uses a style attribute (the content policy forbids it): everything is a class. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/static/jbmono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("/static/jbmono-700.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/static/grotesk-700.woff2") format("woff2"); }
:root {
  /* "Sand" (DEC-121): neutral graphite surfaces and ONE warm accent, so that green and red
     are the only colours that carry meaning. The earlier navy look is kept below. */
  --bg: #101113; --panel: #18191c; --line: #2a2c31; --text: #f3f1ec; --soft: #c8c5bd; --muted: #9b988f;
  --accent: #e2c481; --accent-ink: #141209; --cta: #e2c481; --cta-ink: #17140b; --link: #ecd9ab;
  --up: #3ddc97; --down: #ff7a7a; --warn: #e8963a; --badge-ink: #101113;
  /* A chart is data, not something to click: it never wears the accent (DEC-122). */
  --chart: var(--soft);
  --heat2: #1f5f45; --heat1: #173a2e; --heat0: #1f2126; --heat-1: #45222a; --heat-2: #6b2a33;
  --radius: 12px; --max: 1160px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}
/* "Navy": the look before DEC-121, kept as the fallback the owner can switch back to. */
html[data-palette="navy"] {
  --bg: #0b1120; --panel: #111a2e; --line: #1f2a44; --text: #eef2f9; --soft: #b7c1d6; --muted: #98a4bc;
  --accent: #8fb3e6; --accent-ink: #0b1120; --cta: #3f6cb0; --cta-ink: #ffffff; --link: #8fb3e6;
  --warn: #f0b354; --badge-ink: #0b1120; --heat0: #18223a;
}
html[data-theme="light"] {
  --link: #0b7a53;
  --bg: #ffffff; --panel: #f4f6f8; --line: #dce1e7; --text: #0e1726; --soft: #3d4858; --muted: #556070;
  --accent: #0b7a53; --accent-ink: #ffffff; --cta: #0e1726; --cta-ink: #ffffff;
  --up: #0b7a53; --down: #b42318; --warn: #8a5a00; --badge-ink: #ffffff;
  --heat2: #9fdcc1; --heat1: #d3f0e3; --heat0: #eceff3; --heat-1: #fbd9d5; --heat-2: #f3aaa2;
}
* { box-sizing: border-box; }
/* The hidden attribute always wins (a button or a table row has its own display). */
[hidden] { display: none !important; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
.top {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  /* the bar spans the window; what is in it lines up with the page below (DEC-119) */
  padding: .8rem max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font: 700 1.2rem var(--head); }
.brand:hover { text-decoration: none; }
.mark rect { fill: var(--cta); } .mark path { fill: none; stroke: var(--cta-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; font-size: .95rem; margin-left: auto; }
nav .push { margin-left: .4rem; }
nav .word { display: none; }
.menu > button.who::after { display: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.avatar svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.who:hover .avatar, .menu.open .avatar { border-color: var(--accent); }
button.icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; padding: 0; }
button.icon:hover { background: var(--panel); }
button.icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the icon shows the theme a click switches to */
[data-theme="dark"] button.icon .moon, [data-theme="light"] button.icon .sun { display: none; }
nav a { color: var(--soft); } nav a:hover { color: var(--text); text-decoration: none; }
nav a.btn { color: var(--cta-ink); }
/* The menu (D63): a group opens on hover, on keyboard focus, or on a click (app.js adds
   "open"). On a narrow screen the checkbox opens the whole menu, every group spelled out. */
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; margin: 0; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; }
.navtoggle:focus-visible + .burger { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu { position: relative; }
.menu > button::after { content: ""; display: inline-block; margin-left: .4rem; border: .3rem solid transparent; border-top-color: currentColor; border-bottom-width: 0; vertical-align: middle; }
.drop {
  display: none; position: absolute; top: 100%; left: -.7rem; z-index: 20; min-width: 17rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.menu.right .drop { left: auto; right: -.7rem; min-width: 11rem; }
.menu:hover .drop, .menu:focus-within .drop, .menu.open .drop { display: block; }
.drop a, .drop form button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border-radius: 8px; color: var(--text); }
.drop a:hover, .drop form button:hover { background: var(--bg); }
.drop small { display: block; color: var(--muted); font-size: .8rem; }
.drop form { gap: 0; }
@media (max-width: 52rem) {
  .burger { display: inline-block; margin-left: auto; }
  nav .word { display: inline; } nav .avatar { display: none; }
  nav .push { margin-left: 0; }
  button.icon { width: auto; height: auto; border-radius: 8px; gap: .5rem; justify-content: flex-start; padding: .5rem .7rem; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: .2rem; padding-top: .4rem; }
  .navtoggle:checked ~ nav { display: flex; }
  nav > a, nav > button { padding: .5rem .7rem; text-align: left; }
  nav > a.btn { text-align: center; }
  .menu > button { pointer-events: none; padding: .6rem .7rem .1rem; font: 500 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .menu > button::after { display: none; }
  .drop, .menu.right .drop { display: block; position: static; min-width: 0; border: 0; padding: 0; background: none; box-shadow: none; }
}
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
section { margin-bottom: 2rem; }
.narrow { max-width: 30rem; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 34rem; }
.muted { color: var(--muted); font-size: .92rem; }
.mono, .v, td.n, th.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); }
.eyebrow { font: 500 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
html[data-palette="navy"] .eyebrow { color: var(--accent); }

/* ---- home page ---- */
.hero { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; padding: 2.5rem 0 1rem; }
.hero > div { flex: 1 1 26rem; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 0 0 1.4rem; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: .9rem; }
.cta .btn { margin-top: 0; padding: .85rem 1.4rem; font-size: 1rem; }
.chartbox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.chartbox .row { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.chartbox .k, .tile .k { font: 500 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.chartbox .big { font: 700 2.4rem/1.1 var(--mono); letter-spacing: -.03em; }
.chart { width: 100%; height: auto; display: block; margin-top: .8rem; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--chart); opacity: .07; }
.chart .dot { fill: var(--chart); }
.band { border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 2.5rem; }
.band > h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.12; max-width: 44rem; margin-bottom: 1.3rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .85rem; }
.tile, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.tile { display: flex; flex-direction: column; gap: .3rem; }
.tile .v { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.tile .s { color: var(--soft); font-size: .9rem; }
.meter { width: 100%; height: 6px; display: block; }
.meter .track { fill: var(--line); } .meter .fill { fill: var(--accent); }
.heatrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; margin-top: .85rem; }
.heat { border-radius: 8px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .1rem; font-size: .85rem; border: 1px solid var(--line); }
.heat b { font: 700 1rem var(--mono); }
.h2 { background: var(--heat2); } .h1 { background: var(--heat1); } .h0 { background: var(--heat0); }
.h-1 { background: var(--heat-1); } .h-2 { background: var(--heat-2); }
.movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .85rem; margin-top: .85rem; }
.card.mv ul { list-style: none; margin: 0; padding: 0; }
.card.mv li { margin: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.card.mv li:last-child { border-bottom: 0; }
.ev { display: flex; flex-direction: column; gap: .55rem; }
.ev .v { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.ev .what { color: var(--soft); font-size: .98rem; }
.ev.none, .ev.few, .ev.against { background: transparent; border-style: dashed; }
.ev.none .v, .ev.few .v { color: var(--muted); }
.badge { align-self: flex-start; font: 700 .72rem var(--mono); letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: .2rem .5rem; color: var(--badge-ink); background: var(--muted); }
.badge.edge { background: var(--up); } .badge.weak { background: var(--warn); } .badge.against { background: var(--down); }
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; }
.scale b { display: block; font: 700 1.9rem/1.2 var(--mono); color: var(--accent); letter-spacing: -.03em; }
.scale span { color: var(--soft); font-size: .95rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card ul { margin: 0; padding-left: 1.1rem; } .card li { margin: .35rem 0; }
.card p { margin: 0; color: var(--soft); }
.card.accent { border-color: var(--accent); }
.card.lock { border-style: dashed; }
.tag { font: 600 .72rem var(--sans); color: var(--cta-ink); background: var(--cta); border-radius: 99px; padding: .12rem .55rem; vertical-align: middle; letter-spacing: 0; }
.crumb { font-size: .9rem; color: var(--muted); margin: 0 0 .8rem; }

/* ---- member sections ---- */
.gap { margin-top: 1rem; }
.tiles.six { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.card.flag { border-color: var(--down); }
.big2 { font-size: 1.8rem; font-weight: 700; margin: .2rem 0 .6rem; }
.big2 .muted { font: 400 .92rem var(--sans); }
td.bar, th.bar { width: 34%; min-width: 7rem; }
.card table { font-size: .9rem; margin-bottom: .8rem; }
.card p { margin-top: .6rem; }
.badge.gA, .badge.gB { background: var(--up); } .badge.gC { background: var(--warn); } .badge.gD, .badge.gE { background: var(--down); }
h3 .badge { vertical-align: middle; margin-left: .4rem; }

.glossary { display: grid; grid-template-columns: minmax(10rem, 18rem) 1fr; gap: .6rem 1.5rem; margin: 0; }
.glossary dt { font-weight: 600; } .glossary dd { margin: 0; color: var(--soft); }
@media (max-width: 40rem) { .glossary { grid-template-columns: 1fr; gap: .15rem; } .glossary dd { margin-bottom: .7rem; } }

/* ---- forms, buttons, tables ---- */
form { display: flex; flex-direction: column; gap: .45rem; }
form.inline { display: inline-flex; flex-direction: row; align-items: center; gap: .35rem; margin: 0; }
label { font-size: .9rem; margin-top: .45rem; }
input, select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .7rem; min-width: 0;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-align: center;
  color: var(--cta-ink); background: var(--cta); border: 1px solid var(--cta);
  border-radius: 8px; padding: .6rem 1.1rem; margin-top: .7rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--muted); }
.btn.small { padding: .4rem .85rem; margin-top: 0; font-size: .9rem; }
button.link { font: inherit; color: var(--soft); background: none; border: 0; padding: 0; cursor: pointer; }
button.link:hover { color: var(--text); }
.error, .note { border-radius: 8px; padding: .6rem .8rem; border: 1px solid var(--down); color: var(--down); }
.note { border-color: var(--accent); color: var(--text); }
.facts { display: grid; grid-template-columns: 7rem 1fr; gap: .35rem .8rem; margin: 1rem 0 1.4rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }
td.n, th.n { text-align: right; }
td.wrap { white-space: normal; min-width: 12rem; }
tr.off td { color: var(--muted); }
.actions { display: flex; gap: .5rem; align-items: center; }
.actions input, .actions select { padding: .25rem .4rem; font-size: .88rem; }
.actions input { width: 4.2rem; }
/* A page with a wide table may use the whole window instead of the reading width. */
@media (min-width: 76rem) { .wide { width: calc(100vw - 3rem); max-width: 96rem; margin-left: 50%; transform: translateX(-50%); } }

/* ---- lists (D63): tiles that filter, tools, short list, small charts, cards on a phone ---- */
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead + .tiles, .lead + .tabs { margin-top: 1rem; }
.tiles + .muted, .tiles + .note { margin-top: 1rem; }
.tiles.five { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
a.tile { color: var(--text); } a.tile:hover { text-decoration: none; border-color: var(--accent); }
button.tile { font: inherit; color: var(--text); text-align: left; }
html.js button.tile.pick { cursor: pointer; }
html.js button.tile.pick:hover { border-color: var(--muted); }
button.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile .v .badge { vertical-align: middle; font-size: .9rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .55rem .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--soft); }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); font-weight: 600; background: var(--panel); border-color: var(--line); }
.tabs .badge { margin-left: .35rem; vertical-align: middle; }
/* Search, filter, sort and "show all" need the script: without it every row is shown. */
.tools, .listfoot { display: none; }
html.js .tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
html.js .tools input { flex: 1 1 14rem; }
html.js .listfoot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: .8rem 0; }
html.js [data-list]:not(.ready) tr.more, html.js [data-list].ready tr[hidden] { display: none; }
tr.between td { text-align: center; color: var(--muted); font-size: .85rem; background: var(--panel); }
html:not(.js) tr.between { display: none; }
td small { display: block; color: var(--muted); font-size: .8rem; white-space: normal; }
td.barcell { min-width: 8rem; } td.barcell .meter { margin-top: .3rem; }
.spark { display: block; } .spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark.up polyline { stroke: var(--up); } .spark.down polyline { stroke: var(--down); }
.strip { display: block; }
.strip .hi, .legend .hi { fill: var(--up); background: var(--up); }
.strip .mid, .legend .mid { fill: var(--muted); background: var(--muted); }
.strip .lo, .legend .lo { fill: var(--down); background: var(--down); }
.strip .na { fill: var(--line); }
.legend .key { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-left: .5rem; vertical-align: baseline; }
@media (max-width: 40rem) {
  /* On a phone a row becomes a card: the share on top, each figure under its own label. */
  table.cards thead { display: none; }
  table.cards, table.cards tbody { display: block; }
  table.cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; padding: .85rem; margin-bottom: .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  table.cards td { border: 0; padding: 0; white-space: normal; text-align: left; }
  table.cards td.n { text-align: left; }
  table.cards td[data-label]::before { content: attr(data-label); display: block; font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
  table.cards td.key { grid-column: 1 / -1; font-size: 1.05rem; font-weight: 600; }
  table.cards tr.between { display: block; padding: .5rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tile { padding: .8rem; } .tile .v { font-size: 1.35rem; }
  /* The five grades in one row: the letter and the count are enough on a phone. */
  .tiles.tight { grid-template-columns: repeat(5, 1fr); gap: .4rem; }
  .tiles.tight .tile { padding: .6rem .3rem; align-items: center; }
  .tiles.tight .k, .tiles.tight .s { display: none; }
  .tiles.tight .v { font-size: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
  html.js .tools select { flex: 1 1 8rem; }
  html.js [data-list]:not(.ready) table.cards tr.more, html.js [data-list].ready table.cards tr[hidden] { display: none; }
}
/* ---- D65: sectors, events, track record, learn ---- */
.tiles.pairs { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.tile .v.small { font: 600 1.05rem/1.35 var(--sans); }
.tile .v .small { font: 400 .85rem var(--sans); }
.glossary .term { display: contents; }
.glossary .term[hidden] { display: none !important; }
.fold > .glossary { padding: .9rem 1rem; }
.fold > .pad, .fold > p { padding: 0 1rem .8rem; margin: 0; }
html.js [data-terms] .tools { margin-bottom: .4rem; }
/* ---- D47b: the private Options Desk ---- */
.readform { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .8rem; max-width: none; }
.readform input[name="note"] { flex: 1 1 18rem; min-width: 0; height: auto; }
.choice { display: flex; gap: 1rem; border: 0; padding: 0; margin: 0; }
.choice label { display: flex; align-items: center; gap: .35rem; margin: 0; font-weight: 600; }
/* ---- the share page (D64): price line, parts, folds, bars of the years ---- */
.sharehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.sharehead h1 { margin-bottom: .2rem; } .sharehead .muted { margin: 0; }
.sharehead .price { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.sharehead .big { font-size: 2.1rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.tiles.pair { grid-template-columns: 1fr 1fr; align-content: start; }
.tiles.pair .tile { padding: .8rem 1rem; } .tiles.pair .v { font-size: 1.35rem; }
.fold { border: 1px solid var(--line); border-radius: var(--radius); margin-top: .7rem; background: var(--panel); }
.fold > summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; }
.fold > summary:hover { color: var(--accent); }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > .scroll { padding: 0 .4rem .4rem; }
.bars { width: 100%; height: auto; display: block; margin-top: .6rem; }
.bars .grid { stroke: var(--line); stroke-width: 1; }
.bars .gain { fill: var(--accent); } .bars .loss { fill: var(--down); }
.bars text { fill: var(--muted); font: 500 9px var(--mono); }
.part { border-top: 1px solid var(--line); padding-top: 1.5rem; }
section.two { align-items: start; }
@media (max-width: 40rem) {
  .sharehead .price { align-items: flex-start; }
  /* The parts stay on one line and scroll sideways rather than wrap into two rows. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs a { padding: .5rem .7rem; white-space: nowrap; }
}
footer { border-top: 1px solid var(--line); padding: 1.2rem 1rem; color: var(--muted); font-size: .85rem; text-align: center; }
footer p { max-width: var(--max); margin: .25rem auto; }
.stamp strong { color: var(--text); font-weight: 600; }
@media (max-width: 34rem) {
  h1 { font-size: 1.5rem; } .top { padding: .6rem .9rem; } nav { gap: .8rem; }
  main { padding: 1rem .9rem 2.5rem; } .hero { padding-top: 1.2rem; gap: 1.5rem; }
  .chartbox .big { font-size: 1.9rem; }
}

/* Ask Sensei (D43) */
.askform { display: flex; flex-direction: column; gap: .6rem; max-width: none; margin: 1rem 0 .4rem; }
.askform textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; resize: vertical; min-height: 4.5rem; }
.askform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.askbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; }
.askbar label { display: flex; align-items: center; gap: .35rem; margin: 0; }
.askform button[disabled], .followups button[disabled] { opacity: .7; cursor: progress; }
.asklist { margin: .4rem 0 0; padding-left: 1.1rem; } .asklist li { margin: .35rem 0; }
.answer .question { font: 600 1.05rem var(--head); color: var(--text); margin: 0 0 .6rem; padding-left: .7rem; border-left: 3px solid var(--accent); }
.answer .headline { color: var(--text); margin: .2rem 0 .8rem; }
.answer h3 { font-size: 1rem; margin: 1.1rem 0 .3rem; }
.points { margin: 0; padding-left: 1.1rem; } .points li { margin: .4rem 0; line-height: 1.5; }
.cite { display: inline-block; font: 600 .68rem var(--mono); color: var(--accent); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; margin-left: .15rem; vertical-align: 1px; text-decoration: none; }
.cite:hover { border-color: var(--accent); text-decoration: none; }
.answer table caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: .3rem; }
.view { margin: .4rem 0 1rem; } .view .k { margin: 0 0 .4rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.view .stance { display: flex; align-items: center; gap: .7rem; margin: 0 0 .5rem; } .view .stance .badge { font-size: .95rem; padding: .25rem .7rem; }
.badge.s-buy, .badge.s-accumulate { background: var(--up); } .badge.s-hold, .badge.s-no_view { background: var(--muted); }
.badge.s-reduce { background: var(--warn); } .badge.s-sell, .badge.s-avoid { background: var(--down); }
.view h3 { margin-top: .8rem; }
.sources { margin-top: 1rem; } .srclist { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.srclist li { margin: .55rem 0; } .srclist li:target { background: var(--panel); border-radius: 6px; }
.snippet { display: block; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
p.small, .muted.small { font-size: .85rem; }
.feedback { display: flex; flex-direction: row; align-items: center; gap: .5rem; margin: .6rem 0 0; max-width: none; }
.feedback .btn.on { border-color: var(--accent); color: var(--accent); }
.followups { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.followups form { margin: 0; }
.chip { font: inherit; font-size: .88rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: .35rem .8rem; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--accent); }
.card.filing { margin: 0 0 .8rem; } .card.filing .k { margin: 0 0 .4rem; color: var(--soft); font-size: .9rem; }
.pager { display: flex; gap: .6rem; }
.libform { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .8rem; max-width: none; margin: .4rem 0 .6rem; }
.libform label { display: flex; align-items: center; gap: .4rem; margin: 0; }
.libform .btn { margin-top: 0; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; border: 0; padding: 0; margin: 0 auto 0 0; min-width: 0; }
.route label { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .85rem; color: var(--soft); white-space: nowrap; }
.route label.sep { padding-left: .75rem; border-left: 1px solid var(--line); }
.askbar { flex-wrap: nowrap; align-items: center; gap: .75rem; }
.askbar .btn { margin-top: 0; flex: none; }
.srclist { list-style: none; padding-left: 0; }
.srclist li { padding: .15rem .4rem; }
.srclist b.mono { display: inline-block; min-width: 1.9rem; color: var(--accent); }
/* D44: the answer's presentation */
.answer .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0 0 .9rem; font-size: .82rem; color: var(--muted); }
.answer .meta .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.answer .headline { font-size: 1.12rem; line-height: 1.5; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; max-width: none; }
.answer h3 { font-family: var(--head); letter-spacing: .01em; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.answer .view h3 { border-bottom: 0; padding-bottom: 0; }
.answer table { margin-top: .9rem; font-variant-numeric: tabular-nums; }
.answer table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.answer td.n, .answer th.n { text-align: right; white-space: nowrap; }
.points li { font-variant-numeric: tabular-nums; }
@media print {
  header, footer .stamp, .askform, .followups, .feedback, .burger, nav { display: none !important; }
  body { background: #fff; color: #000; }
  .answer .headline, .card, details.sources { border-color: #999; background: #fff; }
  details.sources > * { display: block; }
}
/* D72: Today, Screens, Compare, watchlist */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; background: var(--panel); color: var(--text); font-size: .9rem; white-space: nowrap; }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
ul.plain { list-style: none; padding: 0; margin: .3rem 0 .6rem; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
table.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--muted); }
table.compare thead th small { display: block; font-weight: 400; color: var(--muted); }
.sharehead form.inline { margin-top: .5rem; }
/* Ask Sensei in the corner of every page */
.askfab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; }
.askfab > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; float: right; padding: .7rem 1.1rem; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 600; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.askfab > summary::-webkit-details-marker { display: none; }
.askfab > summary svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.askfab > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.askfab[open] > summary span::after { content: " \00d7"; }
/* D127: the panel stands apart from the cards behind it - a lifted surface, the accent on top */
.askpanel { clear: both; width: min(23rem, calc(100vw - 2.5rem)); margin-bottom: .7rem; padding: 1rem; background: color-mix(in srgb, var(--panel) 86%, var(--text)); border: 1px solid color-mix(in srgb, var(--line) 60%, var(--text)); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: 0 22px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .25); }
html[data-theme="light"] .askpanel { background: #ffffff; box-shadow: 0 18px 48px rgba(14, 23, 38, .22), 0 0 0 1px rgba(14, 23, 38, .06); }
.askfab[open] { display: flex; flex-direction: column-reverse; align-items: flex-end; }
.askpanel .k { font: 500 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.askpanel form { display: flex; flex-direction: column; gap: .5rem; max-width: none; margin: 0 0 .6rem; }
.askpanel textarea { width: 100%; resize: vertical; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.askpanel textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.askpanel p { margin: .3rem 0; font-size: .92rem; }
/* D126: Sensei's suggested questions - a click puts one in the box */
.asksuggest { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.asksuggest a.tipq { display: block; font-size: .9rem; line-height: 1.35; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; text-decoration: none; }
.asksuggest a.tipq:hover, .asksuggest a.tipq:focus-visible { border-color: var(--accent); }
.asksuggest .tipnote { display: inline-block; margin-left: .3rem; font: 500 .72rem var(--mono); color: var(--muted); white-space: nowrap; }
.askpanel .asksuggest a.tipq { background: var(--bg); font-size: .86rem; }
.tipgroup h3 { margin: 1rem 0 .2rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.goodtoknow h2 { margin-top: 0; }
@media (min-width: 720px) { .tipgroup .asksuggest { flex-direction: row; flex-wrap: wrap; } .tipgroup .asksuggest li { flex: 1 1 18rem; } }
footer { padding-bottom: 5rem; }
@media print { .askfab { display: none; } }
/* evidence meter (pages.evidence): five bars, as many lit as the evidence is strong */
.evi { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: .32rem; height: .85rem; border-radius: 1px; background: var(--line); }
.meter.m1 i:nth-child(-n+1), .meter.m2 i:nth-child(-n+2) { background: var(--muted); }
.meter.m3 i:nth-child(-n+3), .meter.m4 i:nth-child(-n+4), .meter.m5 i:nth-child(-n+5) { background: var(--up); }
.meterword { font-size: .88rem; white-space: nowrap; }
table.fit th, table.fit td { white-space: normal; }
table.fit td.wrap { min-width: 14rem; }
ul.plain.tight li { padding: .3rem 0; border-bottom: 0; }
footer p.who a { color: var(--soft); }
.pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin-bottom: 1rem; align-items: center; }
table.compare th[scope="row"] { white-space: normal; min-width: 7.5rem; max-width: 12rem; }
table.compare td { white-space: nowrap; }
.ops h3 { margin-top: 1.5rem; }
.two + h3 { margin-top: 1rem; }

/* D107: the chart desk - candles, pivot levels, VWAP and stops (svg.candles) */
.candles { width: 100%; height: auto; display: block; margin-top: .6rem; }
.candles .wick { stroke-width: 1.2; }
.candles .up { fill: var(--up); stroke: var(--up); }
.candles .down { fill: var(--down); stroke: var(--down); }
.candles .open { opacity: .55; }
.candles .lvl { stroke-width: 1; }
.candles .lvl.res { stroke: var(--down); stroke-dasharray: 5 4; }
.candles .lvl.sup { stroke: var(--up); stroke-dasharray: 5 4; }
.candles .lvl.pivot { stroke: var(--accent); stroke-width: 1.4; }
.candles .lvl.mark { stroke: var(--warn); stroke-dasharray: 2 3; stroke-width: 1.4; }
.candles .vwap { fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linejoin: round; }
.candles text { font: 500 11px var(--mono); fill: var(--soft); }
.candles text.res { fill: var(--down); } .candles text.sup { fill: var(--up); }
.candles text.pivot { fill: var(--accent); } .candles text.mark { fill: var(--warn); }
.candles text.now { fill: var(--text); font-weight: 700; }
.candles .axis { stroke: var(--line); stroke-width: 1; }
.pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .2rem 0 .6rem; }
.pick a { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); }
.pick a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.pick a.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.pick .k { font: 500 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.key { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--soft); font-size: .9rem; margin-top: .4rem; }
/* D108: the intraday kit - bars and lines of the option views (svg.obars), the chain table */
.obars { width: 100%; height: auto; display: block; margin-top: .5rem; }
.obars .axis { stroke: var(--line); stroke-width: 1; }
.obars rect.a { fill: var(--up); } .obars rect.b { fill: var(--down); }
.obars rect.t { fill: var(--soft); opacity: .75; }
.obars polyline { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.obars .l1 { stroke: var(--warn); } .obars .l2 { stroke: var(--link); }
.obars text { font: 500 11px var(--mono); fill: var(--soft); }
.key .ce::before, .key .pe::before, .key .l1::before, .key .l2::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: baseline; }
.key .ce::before { background: var(--up); } .key .pe::before { background: var(--down); }
.key .l1::before { background: var(--warn); } .key .l2::before { background: var(--link); }
table.oca th.ce { color: var(--up); } table.oca th.pe { color: var(--down); }
main.full { max-width: 118rem; }
table.oca { width: 100%; font-size: .86rem; }
table.oca td, table.oca th { white-space: nowrap; padding: .32rem .3rem; }
/* the strike column stands out: its own tinted band, bold, an accent edge each side */
table.oca th.strike { position: sticky; left: 0; z-index: 1; background: var(--panel); background: color-mix(in srgb, var(--accent) 22%, var(--panel)); color: var(--text); font-weight: 700; border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); padding-left: .55rem; padding-right: .55rem; }

table.oca th.strike { text-align: center; }
table.oca progress { display: block; width: 100%; height: 4px; margin-top: 2px; border: 0; border-radius: 2px; background: transparent; appearance: none; -webkit-appearance: none; }
table.oca progress::-webkit-progress-bar { background: transparent; }
table.oca progress.ce::-webkit-progress-value { background: var(--up); } table.oca progress.ce::-moz-progress-bar { background: var(--up); }
table.oca progress.pe::-webkit-progress-value { background: var(--down); } table.oca progress.pe::-moz-progress-bar { background: var(--down); }
table.oca progress.neg::-webkit-progress-value { background: var(--warn); } table.oca progress.neg::-moz-progress-bar { background: var(--warn); }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.checks table { width: 100%; }
.checks td:first-child, .checks th:first-child { white-space: normal; }
.checks td:last-child, .checks th:last-child { text-align: right; white-space: nowrap; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(9rem, 1fr); gap: .85rem; }
.split .chartbox, .grid2 .chartbox { margin-bottom: .85rem; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .85rem; }
.grid2 .atmwide { grid-column: 1 / -1; order: 9; }
.live-stale { opacity: .6; }
@media (max-width: 720px) { .split, .grid2, .checks { grid-template-columns: minmax(0, 1fr); } }
table.oca tr.atm th.strike { background: var(--accent); color: var(--accent-ink); }
/* D109: the chart's choices in one row (dropdowns and "show" ticks), the drawing tools,
   the averages, RSI, Fibonacci and the owner's own lines */
form.choose { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .2rem 0 .7rem; }
form.choose label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
form.choose select, form.choose input[type="number"] { width: auto; min-width: 7.5rem; padding: .35rem .55rem; }
form.choose .k, .draw .k { font: 500 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
form.choose .ticks { display: inline-flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
form.choose .ticks label { color: var(--soft); font-size: .92rem; gap: .3rem; }
form.choose input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--accent); }
.draw { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin: .5rem 0 0; }
.draw button { font: inherit; font-size: .9rem; padding: .25rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--soft); cursor: pointer; }
.draw button:hover { border-color: var(--accent); color: var(--text); }
.draw button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
html:not(.js) .draw button, html:not(.js) .draw [data-hint] { display: none; }
.candles.drawing { cursor: crosshair; outline: 1px dashed var(--accent); outline-offset: 2px; }
.candles .avg, .candles polyline.mine { fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.candles .avg.o1 { stroke: var(--warn); } .candles .avg.o2 { stroke: var(--link); } .candles .avg.o3 { stroke: var(--muted); }
.candles polyline.mine { stroke: var(--text); stroke-width: 1.6; }
.candles .lvl.mine { stroke: var(--text); stroke-width: 1.3; }
.candles .lvl.fib { stroke: var(--warn); stroke-dasharray: 7 3 2 3; }
.candles text.fib { fill: var(--warn); } .candles text.mine { fill: var(--text); }
.candles .pin { fill: var(--accent); stroke: none; }
.candles.rsi { margin-top: .2rem; border-top: 1px solid var(--line); }
.candles .lvl.r30 { stroke: var(--up); stroke-dasharray: 5 4; }
.candles .lvl.r50 { stroke: var(--muted); }
.candles .lvl.r70 { stroke: var(--down); stroke-dasharray: 5 4; }
.candles text.r30 { fill: var(--up); } .candles text.r70 { fill: var(--down); }
.key .o1::before, .key .o2::before, .key .o3::before { content: ""; display: inline-block; width: .9rem; height: 2px; margin-right: .35rem; vertical-align: middle; }
.key .o1::before { background: var(--warn); } .key .o2::before { background: var(--link); } .key .o3::before { background: var(--muted); }
details.part.fold { margin-top: 1rem; padding-top: 0; }
.chartbox + form + details.fold, .chartbox ~ details.fold { margin-top: .7rem; }
.fold > :not(summary):not(.scroll) { margin-left: 1rem; margin-right: 1rem; }
/* D110: the market view on the kit */
.tiles.six .tile.wide2 { grid-column: span 2; }
b.warn, .warn { color: var(--warn); }
/* D111: the strategy tool */
form.legs select, form.legs input[type="number"] { width: auto; min-width: 5.5rem; padding: .3rem .5rem; }
form.legs input[type="number"] { min-width: 4rem; max-width: 5rem; }
form.choose input[type="text"] { width: auto; min-width: 14rem; padding: .35rem .55rem; }
.candles.payoff .today { fill: none; stroke: var(--soft); stroke-width: 1.5; stroke-dasharray: 6 4; }
.candles.payoff .band { fill: var(--accent); opacity: .09; }
.candles.payoff .vwap { stroke-width: 2.2; }
table td.wrap { white-space: normal; min-width: 16rem; }
.candles.payoff .held { fill: none; stroke: var(--warn); stroke-width: 2.2; }
p.choose { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .5rem 0; }
p.choose select { width: auto; padding: .3rem .5rem; }
p.choose .k { font: 500 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
/* D116 (DEC-172): the NIFTY 50 tape on the private pages */
.tape { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.tape .run { display: flex; width: max-content; animation: tape 150s linear infinite; }
.tape:hover .run, .tape:focus-within .run { animation-play-state: paused; }
.tape .set { display: flex; flex: none; }
.tape .tk { font: 500 .8rem var(--mono); padding: .42rem .9rem; color: var(--soft); text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); }
.tape .tk b { color: var(--text); font-weight: 600; }
.tape .tk:hover { background: var(--bg); }
.tape.stale { opacity: .6; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape { overflow-x: auto; } .tape .run { animation: none; } .tape .set + .set { display: none; } }
/* D116: the desk's front page */
.deskhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin-bottom: 1.1rem; }
.deskhead h1 { margin: 0; }
.deskhead .clock { font: 500 .85rem var(--mono); color: var(--muted); }
.pill { display: inline-block; font: 600 .72rem var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.pill.ok { color: var(--up); border-color: var(--up); }
.pill.bad { color: var(--down); border-color: var(--down); }
.idx { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .7rem; }
.idx .tile { padding: .8rem .95rem; gap: .15rem; }
.idx .tile .v { font: 700 1.25rem/1.25 var(--mono); letter-spacing: -.02em; }
.idx .tile .s { font: 500 .82rem var(--mono); }
.idx .tile.main { border-color: var(--accent); }
.deskgrid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(15rem, 1fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hubbox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.05rem 1.15rem .6rem; }
.hubbox .hd { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .25rem; }
.hubbox h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; }
.hubbox h2 .n { font: 700 .75rem var(--mono); width: 1.5rem; height: 1.5rem; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--cta); color: var(--cta-ink); }
.hubbox .s { color: var(--soft); margin: 0 0 .55rem; font-size: .88rem; min-height: 1.3rem; }
.hubbox ul { list-style: none; margin: 0; padding: 0; }
.hubbox li { margin: 0; border-top: 1px solid var(--line); }
.hubbox li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem .1rem; text-decoration: none; }
.hubbox li a b { font-weight: 600; }
.hubbox li a span { color: var(--muted); font-size: .84rem; text-align: right; }
.hubbox li a:hover b { text-decoration: underline; }
.side .card { padding: 1rem 1.1rem; }
.side .card + .card { margin-top: 1rem; }
.side h3 { margin: 0 0 .5rem; font-size: .95rem; }
@media (max-width: 980px) { .deskgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr; } .hubbox li a span { display: none; } }
/* D116: the home page - search, proof card, products, steps */
form.find { display: block; margin: 0 0 1.1rem; max-width: 38rem; }
form.find > label { display: block; font-weight: 600; font-size: 1rem; color: var(--text); margin: 0 0 .5rem; }
form.find .bar { display: flex; align-items: center; gap: .4rem; background: var(--bg); border: 2px solid var(--accent); border-radius: 14px; padding: .35rem .35rem .35rem .9rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
form.find .bar:focus-within { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 35%, transparent); }
form.find .glass { flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
form.find input { flex: 1; min-width: 0; width: auto; margin: 0; border: 0; background: transparent; color: var(--text); font-size: 1.05rem; padding: .7rem .3rem; outline: none; box-shadow: none; }
form.find input::placeholder { color: var(--muted); }
form.find .btn { margin: 0; flex: none; width: auto; padding: .8rem 1.3rem; border-radius: 10px; }
form.find .try { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
form.find .try a { padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; }
form.find .try a:hover { border-color: var(--accent); }
@media (max-width: 560px) { form.find .bar { flex-wrap: wrap; padding: .5rem; } form.find .glass { display: none; } form.find .btn { width: 100%; } }
.hero .quiet { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .9rem; font-size: .95rem; }
.proof .what { display: block; font-size: 1.05rem; font-weight: 600; margin: .7rem 0 .2rem; }
.proof .big.up, .proof .big.down { display: block; }
.proof .foot { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .7rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.products .card { display: flex; flex-direction: column; gap: .55rem; }
.products .card h3 { margin: 0; }
.products .sample { font: 500 .85rem/1.5 var(--mono); color: var(--soft); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .75rem; }
.products .card a.more { margin-top: auto; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps div { counter-increment: step; }
.steps div::before { content: counter(step); font: 700 1.9rem/1.2 var(--mono); color: var(--accent); display: block; }
.steps b { display: block; margin: .2rem 0; }
.steps span { color: var(--soft); font-size: .95rem; }
.weekly { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.weekly h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.weekly p { margin: 0; color: var(--soft); max-width: 40rem; }
.daybox { margin-bottom: .85rem; max-width: 46rem; }
/* FIX DEC-174: a rise is green and a fall red wherever it is marked, also inside a tile or
   a card whose own text colour is more specific than .up / .down */
.up.up, .tile .up, .card .up, .chartbox .up, .hubbox .up { color: var(--up); }
.down.down, .tile .down, .card .down, .chartbox .down, .hubbox .down { color: var(--down); }
/* FIX DEC-174: layout found on the live pages */
.tile .v.nw { white-space: nowrap; }
table.heads th { white-space: normal; vertical-align: bottom; }
.stack2 { display: grid; gap: 1rem; }
/* D117: the privacy notice and the terms */
.narrow.prose { max-width: 46rem; }
.prose h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.prose li { margin: .35rem 0; }

/* D120a (DEC-179): the "i" of a plain-words tip and the tip itself (app.js setupTips). */
.tipi { display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem;
  margin-left: .3rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent;
  color: var(--muted); font: 600 .66rem/1 var(--sans); font-style: italic; cursor: pointer; vertical-align: middle; }
.tipi:hover, .tipi[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.tipbox { display: block; margin-top: .3rem; font: 400 .78rem/1.4 var(--sans); color: var(--soft);
  text-transform: none; letter-spacing: 0; white-space: normal; max-width: 22rem; }
/* D120b (DEC-180): the example question under the landing headline. */
.hero .example { margin: .2rem 0 .6rem; color: var(--soft); font-size: 1.02rem; border-left: 2px solid var(--accent); padding-left: .7rem; }
/* D120b (DEC-181): "In one look" on a share's page - a question and its one-line answer. */
.looks { display: grid; gap: .5rem; }
a.look { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: .2rem 1rem; align-items: baseline;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); }
a.look:hover { border-color: var(--accent); text-decoration: none; }
a.look .q { font: 600 .95rem var(--sans); color: var(--soft); }
a.look .a { font-size: .95rem; }
a.look .a::after { content: " \2192"; color: var(--accent); }
@media (max-width: 640px) { a.look { grid-template-columns: 1fr; } }
