:root {
  --ink: #1c2430; --muted: #5d6877; --line: #e3e7ec; --paper: #fff; --bg: #eef1f4;
  --brand: #203363; --brand-soft: #e9ecf6; --mint: #24e48f; --good: #1f8a4c; --good-soft: #e5f4ea;
  --neutral: #9aa5b1;
  --gold: #d4a017; --gold-dark: #9c7208; --gold-soft: #fdf5dc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }


.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }
.page { background: var(--paper); border-radius: 12px; box-shadow: 0 2px 14px rgba(0,0,0,.08); overflow: hidden; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--brand); padding: 16px 32px; border-bottom: 4px solid var(--mint); }
.band img { height: 30px; display: block; }
.band .logos { display: flex; align-items: center; gap: 10px; flex: none; }
.band .logos img:first-child { height: 40px; }
.band .logos img + img { height: 22px; }
.band .bt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; opacity: 1; }
.band span { color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.body { padding: 26px 32px 32px; }
h1 { font-size: 32px; line-height: 1.15; margin: 4px 0 8px; }
h2 { font-size: 19px; color: var(--brand); margin: 0 0 6px; }
.title-row { display: flex; align-items: baseline; gap: 20px; }
.title-row h1 { flex: 1 1 auto; min-width: 0; }
.howto { flex: none; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.howto:hover { text-decoration-color: var(--brand); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 10px; margin-right: 6px; }
.p-msg { background: var(--brand-soft); color: var(--brand); }
.p-ad { background: #e8f0ff; color: #1d4fb8; }
.p-fn { background: var(--brand); color: #fff; }
.p-date { background: #f0f2f5; color: var(--muted); }

.lesson { margin-top: 20px; }
.teach { display: block; background: var(--brand-soft); border-radius: 10px; padding: 14px 16px; margin: 0; font-size: 15px; }
.teach-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.teach b { color: var(--brand); }

.block { margin-top: 26px; }
.why { font-size: 17px; }

.result { background: var(--gold-soft); border-radius: 12px; padding: 18px; margin-top: 26px; text-align: center; }
/* Rows of 10 make the count readable at a glance */
.result .coins { display: grid; grid-template-columns: repeat(10, 30px); justify-content: center; gap: 12px; margin: 8px 0 14px; }
.result .coins .coin { width: 30px; height: 30px; }
.result .coins .coin::after { font-size: 15px; }
.result .headline { font-size: 22px; font-weight: 700; }
.result .headline b { color: var(--gold-dark); }
.result .sub { color: var(--muted); font-size: 14px; }

.coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe58a, var(--gold) 55%, var(--gold-dark)); box-shadow: inset 0 0 0 2px #f6d365, 0 1px 1px rgba(0,0,0,.25); vertical-align: middle; position: relative; flex: none; }
.coin::after { content: "★"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #8a6400; font-style: normal; }
.coin.super { background: radial-gradient(circle at 35% 30%, #fff6c4, #ffcf33 45%, #c98a00); box-shadow: inset 0 0 0 2px #fff0a8, 0 0 0 2px #fff, 0 0 0 4px var(--gold), 0 0 10px 2px rgba(255,190,0,.65); }
.coin.super::after { color: #7a4d00; }
.coin.off { background: #e6e9ed; box-shadow: inset 0 0 0 2px #d5dae0; }
.legend { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend .coin { width: 22px; height: 22px; }
.hsuper { display: flex; align-items: center; gap: 9px; justify-content: flex-end; font-size: 13px; color: var(--gold-dark); font-weight: 600; margin: 3px 0 2px; }
.hsuper .coin { width: 14px; height: 14px; }
.hsuper .coin::after { font-size: 8px; }
.coin.off::after { color: #b7bec7; }


.next { border-left: 4px solid var(--mint); padding: 4px 0 4px 14px; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.btn { display: block; text-align: center; text-decoration: none; border-radius: 10px; padding: 14px; font-weight: 700; }
.btn.solid { background: var(--brand); color: #fff; }
.btn.ghost { border: 2px solid var(--brand); color: var(--brand); }
.btn small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }
.back { display: inline-block; font-size: 14px; color: var(--brand); text-decoration: none; margin-bottom: 10px; font-weight: 600; }
.key { font-size: 14px; color: var(--muted); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.stat.super { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.stat .n { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--brand); }
.stat.gold { background: var(--gold-soft); border-color: #f1dc9a; }
.stat.gold .n { color: var(--gold-dark); }
.stat .l { font-size: 13px; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.filters button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.month { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.hrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; text-decoration: none; }
.hrow:hover { border-color: var(--brand); }
.hrow img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.htitle { font-weight: 700; }
.hmeta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.hres { text-align: right; }
.hcoins { display: flex; align-items: center; gap: 5px; justify-content: flex-end; font-size: 15px; }
.hcoins b { color: var(--gold-dark); font-size: 18px; }
.hbest { font-size: 12px; color: var(--muted); }

.foot { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: center; background: var(--brand); color: #fff; padding: 18px 32px; border-top: 4px solid var(--mint); font-size: 13px; }
.foot .fh { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.foot a { color: var(--mint); text-decoration: none; }
.foot.foot-single { grid-template-columns: minmax(0, 1fr); gap: 6px; }


@media (max-width: 720px) {
  .band, .body, .foot { padding-left: 16px; padding-right: 16px; }
  .band { gap: 12px; }
  .band span { font-size: 11px; letter-spacing: .06em; }
  .band .logos { gap: 8px; }
  .band .logos img:first-child { height: 30px; }
  .band .logos img + img { height: 15px; }
  h1 { font-size: 26px; }
  .title-row { display: block; }
  .title-row h1 { margin-bottom: 4px; }
  .howto { display: inline-block; font-size: 13px; margin-bottom: 10px; }
  .result .coins { grid-template-columns: repeat(10, 20px); gap: 8px; }
  .result .coins .coin { width: 20px; height: 20px; }
  .result .coins .coin::after { font-size: 11px; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .hrow { grid-template-columns: 52px minmax(0, 1fr); }
  .hrow img { width: 52px; height: 52px; }
  .hres { grid-column: 2; text-align: left; }
  .hcoins { justify-content: flex-start; }
}

.summary { background: var(--gold-soft); border-radius: 12px; padding: 22px 24px; margin: 26px 0 8px; text-align: center; }
.summary .big-line { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.summary .big-line b { color: var(--gold-dark); }
.summary .coin-lines { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 16px; }
.summary .coin-lines span { display: flex; align-items: center; gap: 8px; }
.summary .coin-lines .coin { width: 22px; height: 22px; }
.summary .note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.range-group { margin-top: 44px; scroll-margin-top: 96px; }
.range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 21px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 18px; }
.range-head small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: auto; }
.range-head { align-items: center; flex-wrap: wrap; }
.range-coin { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--gold-dark); }
.range-coin .coin { width: 24px; height: 24px; }
.range-coin.none { color: var(--neutral); }
.range-group.low .range-head { border-color: var(--line); color: var(--muted); }
.range-group.hit .range-head { background: var(--gold-soft); border-radius: 6px 6px 0 0; padding: 6px 10px 8px; }
.feed.roomy { gap: 28px 22px; }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.adpt { margin: 0; }
.adpt .score { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; font-size: 13px; white-space: nowrap; }
.adpt .score .coin { width: 22px; height: 22px; }
.adpt .score .coin::after { font-size: 12px; }
.adpt .rank { background: #1c2430; color: #fff; font-weight: 700; font-size: 12px; border-radius: 99px; padding: 1px 8px; }
.adpt .pct { font-weight: 700; font-size: 16px; }
.adpt .pct small { font-size: 11px; color: var(--muted); font-weight: 600; }
.adpt.big .rank { background: var(--gold); color: #3d2c00; }
.adpt.big .pct { font-size: 22px; color: var(--gold-dark); }
.adpt.big .fb { border: 2px solid var(--gold); }
.adpt.nocoin .fb { opacity: .7; }
.fb { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; font-size: 14px; line-height: 1.45; }
.fb header { display: flex; gap: 8px; align-items: center; padding: 10px 12px 6px; }
.fb header b { display: block; font-size: 14px; }
.fb header small { display: block; font-size: 12px; color: var(--muted); }
.fb .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
/* Collapsed to the first lines, the way the feed shows it, because those lines decide the click */
.fb .copy { padding: 0 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fb.open .copy { display: block; }
.fb .copy:first-child { padding-top: 10px; }
.fb .more { border: 0; background: none; padding: 2px 12px 10px; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.fb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fb .linkbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f0f2f5; padding: 8px 12px; }
.fb .linkbar > span:first-child { min-width: 0; }
.fb .linkbar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb .linkbar small { display: block; font-size: 11px; color: var(--muted); }
.fb .linkbar b { display: block; font-size: 14px; }
.fb .learn { background: #e2e5e9; border-radius: 6px; padding: 6px 10px; font-weight: 600; font-size: 13px; white-space: nowrap; flex: none; }
.ladder { border-top: 1px solid #f1dc9a; margin-top: 16px; padding-top: 14px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
.ladder h3 { font-size: 16px; margin: 0 0 8px; text-align: center; color: var(--gold-dark); }
.rung { display: grid; grid-template-columns: 120px 1fr 28px; align-items: center; gap: 10px; padding: 5px 0; }
.rung .range { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.rung .rcoins { display: flex; flex-wrap: wrap; gap: 8px; }
.rung .rcoins a { display: flex; }
.rung .rcoins .coin { width: 24px; height: 24px; }
.rung .rcoins .coin::after { font-size: 12px; }
.rung .rcount { font-weight: 700; color: var(--gold-dark); text-align: right; }
.rung.low .range, .rung.low .rcount { color: var(--neutral); }
.ladder .rejected { font-size: 14px; color: var(--muted); text-align: center; margin: 10px 0 0; }
@media (max-width: 720px) {
  .feed { grid-template-columns: minmax(0, 1fr); }
  .rung { grid-template-columns: 96px 1fr 22px; gap: 8px; }
  .rung .range { font-size: 13px; }
  .rung .rcoins { gap: 6px; }
  .rung .rcoins .coin { width: 20px; height: 20px; }
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
/* Backup for long names: balances the last line without changing any width. */
h1, h2, p, .note, .why, .next { text-wrap: pretty; }
.wrap, .page, .body { min-width: 0; }
.hmain { min-width: 0; }
.rung .rcoins a { text-decoration: none; }
.hrow { color: inherit; }
.hrow[hidden], .month-group[hidden] { display: none; }
.hrow .noimg { width: 64px; height: 64px; border-radius: 6px; background: var(--brand-soft); }

/* Square image card (headline and image tests). Same score line as the feed card. */
.adsq { margin: 0; }
.adsq .score { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; font-size: 13px; white-space: nowrap; }
.adsq .score .coin { width: 22px; height: 22px; }
.adsq .score .coin::after { font-size: 12px; }
.adsq .rank { background: #1c2430; color: #fff; font-weight: 700; font-size: 12px; border-radius: 99px; padding: 1px 8px; }
.adsq .pct { font-weight: 700; font-size: 16px; }
.adsq .pct small { font-size: 11px; color: var(--muted); font-weight: 600; }
.adsq.big .rank { background: var(--gold); color: #3d2c00; }
.adsq.big .pct { font-size: 22px; color: var(--gold-dark); }
.adsq .sq { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.adsq.big .sq { border: 2px solid var(--gold); }
.adsq.nocoin .sq { opacity: .7; }
.adsq img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Play badge over a video thumbnail */
.thumb { position: relative; }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.6); }
.play::after { content: ""; position: absolute; left: 21px; top: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }

@media (max-width: 720px) {
  .feed.imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed.imgs .adsq.big { grid-column: span 2; }
  .play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .play::after { left: 16px; top: 11px; border-width: 9px 0 9px 14px; }
}
.key.tnote { margin: 0 0 16px; }

/* Sample report only. Real reports never carry this class. The pen notes on the marked-up sample
   live in markup.css, which only that page loads. */
.sample-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; background: #fff7e0; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; }
.sample-label b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.sample-label small { flex: 1 1 220px; min-width: 0; font-size: 14px; color: var(--muted); }
.sample-label a { font-size: 14px; font-weight: 700; color: var(--brand); }
