/* Layout: a bright newsroom page. White paper, ink text, one dark-gold accent.
   One dark "vault" band carries the brand's black-and-gold look; everything else is light.
   Verdict colours (green/red/grey) are semantic and only ever used for verdicts. */
/* Fonts are self-hosted (SIL Open Font License), so no third-party font requests. */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 500; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  --bg: #ffffff;           /* page */
  --panel: #f5f6f8;        /* raised blocks */
  --line: #e3e6eb;         /* rules and borders */
  --text: #151b26;         /* body ink */
  --muted: #5b6473;        /* secondary ink */
  --gold: #8f6410;         /* accent text, passes contrast on white */
  --gold-bright: #b07d1a;  /* accent fills */
  --gold-soft: #f7efdc;    /* tint */
  --blue: #2f6fb0;         /* chart second series */
  --vault: #0f0e0c;        /* the one dark band */
  --vault-text: #f1ead9;
  --bull: #1e8a55;
  --bear: #c23b33;
  --flat: #6b7280;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 66ch;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--body); letter-spacing: 0.01em; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 760px; margin-inline: auto; padding-inline: 20px; }
.wrap.wide { max-width: 1120px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { max-width: 1120px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font: 700 1.05rem/1 var(--display); letter-spacing: 0.12em; color: var(--gold); }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 0.95rem; align-items: center; margin-left: auto; }
.nav .nav-tg { color: var(--gold); font-weight: 700; }
/* header price ticker */
.tick { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.92rem; white-space: nowrap; background: var(--panel); }
.tick:hover { border-color: var(--gold-bright); color: var(--text); }
.tick .t-l { color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.tick .t-p { font-weight: 700; }
.t-c { font-weight: 700; font-size: 0.85rem; }
.t-c.up, .pc-tile.up .pct { color: var(--bull); }
.t-c.down, .pc-tile.down .pct { color: var(--bear); }
.t-c.flat, .pc-tile.flat .pct { color: var(--muted); }
@media (max-width: 700px) { .nav { margin-left: 0; width: 100%; font-size: 0.9rem; } .tick { margin-left: auto; } }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* type */
h1, h2, h3 { text-wrap: balance; color: var(--text); }
h1 { font: 700 clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem)/1.15 var(--display); letter-spacing: 0.01em; margin: 0; }
h2 { font: 700 1.35rem/1.3 var(--body); margin: 0; }
h3 { font: 700 1.08rem/1.35 var(--body); margin: 0; }
p { margin: 0; max-width: var(--measure); }
.eyebrow { font: 700 0.78rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.22rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

main { padding-block: 40px 64px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.section { display: flex; flex-direction: column; gap: 14px; padding-top: 34px; }
.section + .section { border-top: 1px solid var(--line); margin-top: 34px; }
ul.plain { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; max-width: var(--measure); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-bottom: 8px; }
.hero-text { gap: 16px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero .hero-card { order: -1; } }

/* chart figures */
figure.chart { margin: 0; display: flex; flex-direction: column; gap: 8px; }
figure.chart img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
figure.chart figcaption { font-size: 0.86rem; color: var(--muted); }
.hero-chart img { box-shadow: 0 18px 40px -24px rgba(21, 27, 38, 0.35); }

/* the one dark band */
.vault { background: var(--vault); color: var(--vault-text); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin-top: 18px; }
.vault-bars { width: 100%; border-radius: 10px; }
@media (max-width: 860px) { .vault { grid-template-columns: 1fr; padding: 20px; } }

/* verdict chips */
.chip { display: inline-flex; align-items: center; gap: 8px; font: 700 0.95rem/1 var(--body); letter-spacing: 0.04em; padding: 7px 12px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; background: #fff; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.chip.bull { color: var(--bull); }
.chip.bear { color: var(--bear); }
.chip.flat { color: var(--flat); }

/* the short answer */
.answer { background: var(--gold-soft); border: 1px solid #ead9b3; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.answer .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.answer .row + .row { border-top: 1px dashed #e2cf9f; padding-top: 14px; }
@media (max-width: 520px) { .answer .row { grid-template-columns: 1fr; } }

/* verdict specimen (sits inside the dark vault band) */
.specimen { border: 1px solid #5c4818; border-radius: 12px; padding: 22px; background: #17150f; display: flex; flex-direction: column; gap: 14px; color: var(--vault-text); }
.specimen .meta { font: 500 0.88rem/1.4 var(--mono); color: #b9b09c; }
.specimen .figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.specimen .fig { border: 1px solid #3a3222; border-radius: 8px; padding: 10px 12px; }
.specimen .fig b { display: block; font: 700 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: #b9b09c; margin-bottom: 6px; }
.specimen .fig span { font: 500 1.6rem/1 var(--mono); color: #fff; }
.specimen .chip { background: transparent; }
.specimen .chip.bull { color: #4cc68c; }
.specimen .foot { font-size: 0.85rem; color: #b9b09c; border-top: 1px solid #3a3222; padding-top: 12px; }

/* tables */
.tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.98rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
td.time { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gold); font-weight: 500; }

/* notes */
.note { border-left: 3px solid var(--gold-bright); padding: 4px 0 4px 16px; max-width: var(--measure); }
.note strong { color: var(--gold); }

/* guide list */
.guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guides li { border-bottom: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 2px; text-decoration: none; color: var(--text); }
.guides a:hover h3 { color: var(--gold); }
.guides a p { grid-column: 1 / 2; color: var(--muted); font-size: 0.95rem; }
.guides a .go { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--gold-bright); font-size: 1.3rem; }

/* call to action */
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 9px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--gold-bright); color: #fff; background: var(--gold-bright); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold-soft); color: var(--gold); }

.crumbs { font-size: 0.88rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--panel); padding-block: 28px 40px; color: var(--muted); font-size: 0.88rem; }
footer .wrap { max-width: 1120px; display: flex; flex-direction: column; gap: 12px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-chart img { animation: rise 0.6s ease-out both; }
  @keyframes rise { from { transform: translateY(8px); opacity: 0.7; } to { transform: none; opacity: 1; } }
}

/* live price card */
.pricecard { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px -28px rgba(21, 27, 38, 0.35); }
.pricecard .pc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-status { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.dot.on { background: var(--bull); box-shadow: 0 0 0 3px rgba(30, 138, 85, 0.15); }
.dot.off { background: var(--flat); }
.pc-price { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-price [data-gp="usd"] { font: 700 clamp(2.6rem, 2rem + 3vw, 3.6rem)/1 var(--body); letter-spacing: -0.01em; color: var(--text); }
.pc-unit { color: var(--muted); font-size: 0.95rem; }
.pc-gbp { color: var(--muted); font-size: 0.92rem; min-height: 1.2em; }
.pc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pc-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 3px; background: var(--panel); }
.pc-tile .lbl { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.pc-tile .pct { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.pc-tile .abs { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 520px) { .pc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-spark { color: var(--gold-bright); display: flex; flex-direction: column; gap: 2px; }
.pc-spark svg { width: 100%; height: 56px; }
.pc-spark .spark-dot { fill: var(--gold-bright); stroke: #fff; stroke-width: 2; }
.spark-lbl { font-size: 0.78rem; color: var(--muted); }
.pc-foot { font-size: 0.8rem; color: var(--muted); }

/* tools grid */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s, transform .15s; }
.tool:hover { border-color: var(--gold-bright); color: var(--text); transform: translateY(-2px); }
.tool p { color: var(--muted); font-size: 0.95rem; }
.t-ico { font-size: 1.6rem; line-height: 1; }

/* today's posts */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.post h3 { font-size: 1.05rem; line-height: 1.45; }
.post p { font-size: 0.98rem; }
.post-meta { font-size: 0.82rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.days { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.days li { border-bottom: 1px solid var(--line); }
.days a { display: flex; gap: 12px; padding: 12px 2px; text-decoration: none; color: var(--text); }
.days a b { white-space: nowrap; color: var(--gold); min-width: 7.5em; }
.days a span { color: var(--muted); }
.days a:hover span { color: var(--text); }
.pager { display: flex; justify-content: space-between; gap: 10px; padding-top: 24px; }

/* release dates */
.nextup { border: 1px solid #ead9b3; background: var(--gold-soft); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.nx-when { font-weight: 700; font-size: 1.25rem; }
table.dates tr.past td { color: #9aa1ad; }
table.dates tr.past td a { color: #9aa1ad; }
table.dates tr.next td { background: var(--gold-soft); font-weight: 700; }
td.state { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
tr.next td.state { color: var(--gold); }
.flag { display: inline-block; font: 700 0.7rem/1 var(--body); color: var(--bear); border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; margin-left: 6px; vertical-align: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subscribe { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); }
.subscribe.compact { padding: 14px 16px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* market hours clock */
.clock { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.ck-state { font: 700 clamp(1.6rem, 1.2rem + 2vw, 2.2rem)/1.1 var(--body); }
.ck-state.on { color: var(--bull); }
.ck-state.off { color: var(--bear); }
.ck-next { font-weight: 700; font-size: 1.1rem; }
.ck-bar { position: relative; padding-bottom: 20px; }
.ck-bar svg { width: 100%; height: 40px; display: block; }
.ck-bar .tks { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font-size: 0.75rem; color: var(--muted); }
.ck-bar .tks span { position: absolute; transform: translateX(-50%); }
.ck-bar .tks span:first-child { transform: none; } .ck-bar .tks span:last-child { transform: translateX(-100%); }
.ck-bar .nowlbl { position: absolute; top: -2px; font-size: 0.75rem; font-weight: 700; transform: translateX(-50%); white-space: nowrap; background: #fff; padding: 0 4px; }
.ck-bar { padding-top: 18px; }
.ck-key span.item { white-space: nowrap; margin-right: 10px; }
.ck-bar .seg.closed { fill: #e3e6eb; }
.ck-bar .seg.open { fill: #e6c983; }
.ck-bar .seg.busy { fill: var(--gold-bright); }
.ck-bar .nowline { stroke: var(--text); stroke-width: 2; }
.ck-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 4px; }
.k.open { background: #e6c983; } .k.busy { background: var(--gold-bright); } .k.closed { background: #e3e6eb; }
tr.now td { background: var(--gold-soft); font-weight: 700; }

/* cheat sheet */
.sheet { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.sheet-img img { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 40px -26px rgba(21, 27, 38, 0.45); }
@media (max-width: 760px) { .sheet { grid-template-columns: 1fr; } }
