/* RealMoneyFun - main stylesheet */

:root {
  --paper: #f3ebdd;
  --paper-2: #eadfca;
  --card: #fbf7ef;
  --ink: #1e1b16;
  --ink-2: #4a443a;
  --muted: #776d5f;
  --line: #d4c6ad;
  --line-2: #bfae90;
  --green: #17402b;
  --green-2: #0e2a1c;
  --green-3: #2c6146;
  --red: #c4402a;
  --red-2: #a3321f;
  --mustard: #e0a526;
  --mustard-2: #f3d58e;
  --blue: #2a4d73;

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1180px;
  --r: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  /* faint paper grain */
  background-image: radial-gradient(rgba(30, 27, 22, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- top strip ---------- */
.strip {
  background: var(--ink);
  color: #e9dfcc;
  font: 500 13px/1.4 var(--f-mono);
}
.strip .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.strip b { color: var(--mustard); font-weight: 600; }
.strip a { color: #e9dfcc; }
.strip a:hover { color: #fff; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo span { font: 800 1.42rem/1 var(--f-display); letter-spacing: -0.03em; }
.logo em { font-style: normal; color: var(--red); }
.logo:hover { color: var(--ink); }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font: 600 15px/1 var(--f-body);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--r);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .nav-cta { background: var(--green); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--green-2); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 8px 10px;
  font: 700 14px/1 var(--f-body);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--r); border: 0; }
}

/* ---------- buttons, tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1 var(--f-body);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--r);
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
  cursor: pointer;
}
.btn:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: var(--card); }
.btn--green { background: var(--green); }
.btn--sm { padding: 10px 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }

.tag {
  display: inline-block;
  font: 600 11.5px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 8px 5px;
  border-radius: 3px;
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--welcome { background: #f6d9cf; color: #8b2b1a; }
.tag--rebate, .tag--cashback { background: #d8e6da; color: #1d4b31; }
.tag--freespins { background: var(--mustard-2); color: #6b4a00; }
.tag--sports { background: #d7e1ec; color: #1f3e60; }
.tag--referral, .tag--raffle { background: #e9dcef; color: #573068; }
.tag--vip, .tag--reload, .tag--payment { background: #e6e0d2; color: #4a443a; }

.kicker {
  font: 600 13px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}

/* ---------- rubber stamps ---------- */
.stamp {
  display: inline-block;
  font: 700 11px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 7px 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-4deg);
  opacity: 0.88;
  white-space: nowrap;
}
.stamp--official { color: var(--green-3); }
.stamp--reported { color: var(--blue); }
.stamp--ended { color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background-color: var(--green-2);
  color: #eae3d2;
  /* sunburst rays, like a hand-painted sari-sari store sign */
  background-image:
    radial-gradient(circle at 78% 58%, rgba(224, 165, 38, 0.22), transparent 46%),
    repeating-conic-gradient(from 0deg at 78% 58%, rgba(255, 255, 255, 0.045) 0deg 6deg, transparent 6deg 15deg);
  border-bottom: 0;
}
.hero::after {
  /* paper grain on top of the rays */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero .kicker { color: var(--mustard); }
.hero h1 { color: #fbf4e4; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.03; margin-bottom: 24px; }
.hero h1 .rise { display: inline-block; }
.hero h1 mark {
  background: none;
  color: var(--ink);
  position: relative;
  padding: 0 0.12em;
  white-space: nowrap;
  z-index: 0;
}
.hero h1 mark::before {
  content: "";
  position: absolute;
  inset: 0.1em -0.02em 0.04em;
  background: var(--mustard);
  transform: rotate(-1.5deg);
  border-radius: 3px;
  z-index: -1;
}
.hero .lede { font-size: 1.2rem; color: #cfd9cf; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn--mustard { background: var(--mustard); color: var(--ink); }
.btn--mustard:hover { color: var(--ink); }
.btn--line { background: transparent; color: #fbf4e4; border-color: #fbf4e4; box-shadow: 3px 3px 0 #000; }
.btn--line:hover { color: #fbf4e4; background: rgba(255, 255, 255, 0.08); box-shadow: 4px 4px 0 #000; }
.hero .btn { box-shadow: 3px 3px 0 #000; }

.hero-stats { display: flex; gap: 0; margin: 40px 0 0; border-top: 1px solid rgba(234, 227, 210, 0.22); padding-top: 22px; max-width: 520px; }
.hero-stats div { flex: 1; padding-right: 18px; }
.hero-stats div + div { padding-left: 18px; border-left: 1px solid rgba(234, 227, 210, 0.22); }
.hero-stats dt { font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: #9fb5a7; }
.hero-stats dd { margin: 0 0 6px; font: 800 2.4rem/1 var(--f-display); color: #fff; letter-spacing: -0.03em; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

/* fanned ticket deck */
.deck { position: relative; height: 560px; }
.deal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(370px, 92%);
  display: grid;
  grid-template-columns: 44px 1fr;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.deal:hover { color: var(--ink); }
.deal--0 { z-index: 3; transform: translate(-50%, -50%) rotate(-2deg) translate(-10px, 142px); }
.deal--1 { z-index: 2; transform: translate(-50%, -50%) rotate(3.5deg) translate(34px, -2px); }
.deal--2 { z-index: 1; transform: translate(-50%, -50%) rotate(-5deg) translate(-26px, -146px); }
.deck:hover .deal--0 { transform: translate(-50%, -50%) rotate(-1deg) translate(-10px, 154px); }
.deck:hover .deal--1 { transform: translate(-50%, -50%) rotate(4.5deg) translate(44px, -2px); }
.deck:hover .deal--2 { transform: translate(-50%, -50%) rotate(-6deg) translate(-36px, -158px); }
.deal:hover { box-shadow: 0 30px 50px -14px rgba(0, 0, 0, 0.7); }

.deal__stub {
  background: var(--green);
  color: #fff;
  border-right: 2px dashed var(--card);
  border-radius: 6px 0 0 6px;
  display: flex; align-items: center; justify-content: center;
}
.deal[data-brand="okbet"] .deal__stub { background: var(--red); }
.deal[data-brand="bingoplus"] .deal__stub { background: var(--blue); }
.deal[data-brand="arenaplus"] .deal__stub { background: var(--ink); }
.deal__stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.deal__body { display: block; padding: 18px 20px 18px; min-width: 0; }
.deal__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.deal__title { display: block; font: 700 1.05rem/1.25 var(--f-display); margin-bottom: 4px; }
.deal__amount { display: block; font: 800 2.1rem/1.05 var(--f-display); color: var(--red); letter-spacing: -0.03em; margin-bottom: 14px; }
.deal__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line-2); padding-top: 10px; font: 500 12.5px/1.3 var(--f-mono); color: var(--muted); }
.deal__meta b { color: var(--ink); }

/* promo ticker */
.ticker {
  background: var(--mustard);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  font: 600 14px/1 var(--f-mono);
}
.ticker__track { display: inline-flex; animation: ticker 70s linear infinite; padding: 13px 0; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { padding: 0 26px; position: relative; }
.ticker span::after { content: "✦"; position: absolute; right: -6px; color: var(--red); }
.ticker b { text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
.ticker i { font-style: normal; color: #5e4300; margin-left: 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero .kicker, .hero h1 .rise, .hero .lede, .hero-actions, .hero-stats { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero h1 .rise:nth-child(1) { animation-delay: 0.05s; }
  .hero h1 .rise:nth-child(2) { animation-delay: 0.15s; }
  .hero h1 .rise:nth-child(3) { animation-delay: 0.25s; }
  .hero .lede { animation-delay: 0.35s; }
  .hero-actions { animation-delay: 0.45s; }
  .hero-stats { animation-delay: 0.55s; }
  .deal { animation: deal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.05) both; }
  .deal--2 { animation-delay: 0.25s; }
  .deal--1 { animation-delay: 0.4s; }
  .deal--0 { animation-delay: 0.55s; }
  .deal .stamp { animation: thunk 0.35s ease-out both; animation-delay: 1.3s; }
  .hero h1 mark::before { animation: swipe 0.6s 0.55s cubic-bezier(0.6, 0, 0.2, 1) both; transform-origin: left center; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes deal { from { opacity: 0; translate: 220px 120px; rotate: 18deg; } }
@keyframes thunk { 0% { opacity: 0; scale: 1.9; } 70% { opacity: 1; scale: 0.92; } 100% { scale: 1; } }
@keyframes swipe { from { scale: 0 1; } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 40px; background-image:
    radial-gradient(circle at 50% 82%, rgba(224, 165, 38, 0.22), transparent 50%),
    repeating-conic-gradient(from 0deg at 50% 82%, rgba(255, 255, 255, 0.045) 0deg 6deg, transparent 6deg 15deg); }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .deck { height: 500px; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero-stats dd { font-size: 1.9rem; }
  .hero-stats div { padding-right: 10px; }
  .hero-stats div + div { padding-left: 12px; }
  .deck { height: 470px; }
  .deal__amount { font-size: 1.75rem; }
  .deal--0 { transform: translate(-50%, -50%) rotate(-1.5deg) translate(0, 118px); }
  .deal--1 { transform: translate(-50%, -50%) rotate(2.5deg) translate(10px, -4px); }
  .deal--2 { transform: translate(-50%, -50%) rotate(-3deg) translate(-8px, -124px); }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section--green { background: var(--green); color: #eae3d2; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green a { color: var(--mustard-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 40em; }
@media (max-width: 700px) { .section { padding: 52px 0; } }

/* ---------- promo tickets ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
@media (max-width: 420px) { .board { grid-template-columns: 1fr; } }

.ticket {
  display: grid;
  grid-template-columns: 46px 1fr;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  position: relative;
  min-width: 0;
}
.ticket__stub {
  background: var(--green);
  color: #fff;
  border-right: 2px dashed var(--paper);
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* punched holes on the perforation */
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  right: -9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.ticket__stub::before { top: -9px; }
.ticket__stub::after { bottom: -9px; }
.section--alt .ticket__stub::before, .section--alt .ticket__stub::after { background: var(--paper-2); }

.ticket__brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 13px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticket[data-brand="okbet"] .ticket__stub { background: var(--red); }
.ticket[data-brand="bingoplus"] .ticket__stub { background: var(--blue); }
.ticket[data-brand="arenaplus"] .ticket__stub { background: var(--ink); }
.ticket[data-brand="bet88"] .ticket__stub { background: #6f4a2a; }

.ticket__body { padding: 18px 20px 18px 22px; display: flex; flex-direction: column; min-width: 0; }
.ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ticket h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ticket__amount { font: 800 1.75rem/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--red); margin: 0 0 14px; }
.ticket__terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket__terms div { padding: 9px 8px 8px 0; min-width: 0; }
.ticket__terms div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.ticket__terms dt { font: 600 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.ticket__terms dd { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.ticket ul { margin: 0 0 14px; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.ticket li { margin-bottom: 3px; }
.ticket__src { font: 500 12px/1.4 var(--f-mono); color: var(--muted); margin: 0 0 14px; }
.ticket__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.ticket__actions .calc-link { font-size: 14px; font-weight: 600; }

.ticket.is-ended { opacity: 0.68; }
.ticket.is-ended .ticket__stub { background: var(--muted) !important; }
.ticket.is-ended .ticket__amount { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  padding: 16px 0; margin-bottom: 26px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2);
}
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters legend { float: left; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-right: 6px; padding: 0; }
.chip {
  font: 600 14px/1 var(--f-body);
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  border-radius: 40px;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters select {
  font: 600 14px/1 var(--f-body); padding: 9px 30px 9px 12px; border: 1.5px solid var(--line-2);
  border-radius: 40px; background: var(--card); color: var(--ink);
}
.filter-count { font: 500 13px/1 var(--f-mono); color: var(--muted); margin-left: auto; }
.empty { padding: 40px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }

/* ---------- ledger tables ---------- */
.ledger { width: 100%; border-collapse: collapse; background: var(--card); border: 1.5px solid var(--ink); font-size: 15.5px; }
.ledger caption { text-align: left; font: 500 13px/1.4 var(--f-mono); color: var(--muted); padding-bottom: 10px; caption-side: top; }
.ledger th { font: 600 11.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; text-align: left; color: var(--ink-2); background: var(--paper-2); padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.ledger td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.num { font-family: var(--f-mono); font-weight: 600; }
.ledger .brand-cell { font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 700px) {
  .ledger--stack thead { display: none; }
  .ledger--stack, .ledger--stack tbody, .ledger--stack tr, .ledger--stack td { display: block; width: 100%; }
  .ledger--stack tr { border-bottom: 1.5px solid var(--ink); padding: 8px 0; }
  .ledger--stack tr:last-child { border-bottom: 0; }
  .ledger--stack td { border: 0; padding: 4px 14px; }
  .ledger--stack td[data-label]::before { content: attr(data-label) ": "; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
}

.dir-search { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dir-search input {
  flex: 1 1 260px; font: 500 16px/1 var(--f-body); padding: 13px 14px;
  border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink);
}

/* ---------- stamp legend ---------- */
.legend { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); background: var(--card); }
.legend > div { padding: 24px 22px; }
.legend > div + div { border-left: 1.5px solid var(--ink); }
.legend .stamp { margin-bottom: 14px; }
.legend p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 800px) {
  .legend { grid-template-columns: 1fr; }
  .legend > div + div { border-left: 0; border-top: 1.5px solid var(--ink); }
}

/* ---------- worked example (60x) ---------- */
.math { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.math .sum { font: 500 17px/1.5 var(--f-mono); background: var(--green-2); border: 1.5px solid #3b6e53; border-radius: var(--r); padding: 26px; color: #eae3d2; }
.math .sum div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.math .sum .eq { border-top: 1.5px solid #6d8f7b; margin-top: 8px; padding-top: 14px; color: var(--mustard); font-weight: 700; font-size: 19px; }
@media (max-width: 800px) { .math { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- guides list ---------- */
.guides { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.guides a { display: block; padding: 22px 22px 26px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.guides a + a { padding-left: 22px; border-left: 1px solid var(--line-2); }
.guides .num { font: 600 13px/1 var(--f-mono); color: var(--red); display: block; margin-bottom: 12px; }
.guides h3 { margin-bottom: 8px; }
.guides p { color: var(--ink-2); font-size: 15px; margin: 0; }
.guides a:hover h3 { color: var(--red); }
@media (max-width: 900px) {
  .guides { grid-template-columns: 1fr 1fr; }
  .guides a:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .guides { grid-template-columns: 1fr; }
  .guides a, .guides a + a { padding-left: 0; border-left: 0; }
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 700 1.12rem/1.35 var(--f-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 26px/1 var(--f-mono); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }

/* ---------- article / prose pages ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 2px solid var(--ink); }
.page-head p.lede { font-size: 1.17rem; color: var(--ink-2); max-width: 40em; margin: 0; }
.crumbs { font: 500 13px/1 var(--f-mono); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.meta-line { font: 500 13px/1.5 var(--f-mono); color: var(--muted); margin-top: 18px; }

.prose { padding: 52px 0 72px; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font: 600 1.15rem/1.5 var(--f-display); }

.callout { background: var(--card); border: 1.5px solid var(--ink); border-left: 8px solid var(--mustard); padding: 20px 22px; border-radius: var(--r); margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.callout--red { border-left-color: var(--red); }
.callout--green { border-left-color: var(--green-3); }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.side-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 22px; position: sticky; top: 96px; }
.side-card h3 { font-size: 1.05rem; }
.side-card dl { margin: 0 0 18px; }
.side-card dl div { padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.side-card dt { font: 600 11px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.side-card dd { margin: 3px 0 0; font-weight: 600; font-size: 15px; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .side-card { position: static; }
}

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--card); }
.calc form { padding: 28px; display: grid; gap: 16px; }
.calc label { display: block; font: 600 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 7px; }
.calc input, .calc select {
  width: 100%; font: 600 17px/1 var(--f-mono); padding: 12px; border: 1.5px solid var(--line-2);
  border-radius: var(--r); background: #fff; color: var(--ink);
}
.calc input:focus, .calc select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--mustard-2); }
.calc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.calc-out { background: var(--green); color: #eae3d2; padding: 28px; font-family: var(--f-mono); }
.calc-out .calc-out__h { color: #fff; font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.calc-out .big { font: 800 2.6rem/1 var(--f-display); color: #fff; margin-bottom: 4px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.calc-out .big-label { font-size: 13px; color: #b8c9bd; margin-bottom: 22px; }
.calc-out dl { margin: 0 0 20px; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #4d7a61; font-size: 15px; }
.calc-out dd { margin: 0; font-weight: 700; color: #fff; text-align: right; }
.verdict { padding: 14px 16px; border-radius: var(--r); font: 600 15px/1.45 var(--f-body); background: var(--green-2); border-left: 5px solid var(--mustard); }
.verdict.bad { border-left-color: var(--red); }
.verdict.good { border-left-color: #7fc79a; }
@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .calc .row2 { grid-template-columns: 1fr; }
}

/* ---------- brand page bits ---------- */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--card); font: 800 1.3rem/1 var(--f-display); letter-spacing: -0.04em; margin-bottom: 18px;
}
.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.brand-card { display: block; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 20px; text-decoration: none; color: var(--ink); transition: transform 0.1s; }
.brand-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.brand-card h3 { margin: 0 0 4px; }
.brand-card .op { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.brand-card .count { font: 600 13px/1 var(--f-mono); color: var(--green-3); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9bfae; padding: 56px 0 30px; font-size: 15px; }
.site-foot a { color: #e9dfcc; text-decoration: none; }
.site-foot a:hover { color: var(--mustard); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-grid .foot-h { color: #fff; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-brand .logo span { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 30em; }
.foot-legal { border-top: 1px solid #3d382f; padding-top: 22px; font-size: 13px; line-height: 1.6; color: #9d9384; }
.foot-legal p { margin-bottom: 10px; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--mustard); border-radius: 50%; color: var(--mustard); font: 700 14px/1 var(--f-mono); margin-right: 10px; vertical-align: middle; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(14, 42, 28, 0.72);
  -webkit-backdrop-filter: blur(7px) saturate(0.8);
          backdrop-filter: blur(7px) saturate(0.8);
}
.gate[hidden] { display: none; }
.gate__box {
  display: grid; grid-template-columns: 56px 1fr;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
  max-width: 480px; width: 100%;
  box-shadow: 8px 8px 0 var(--ink);
}
.gate__stub {
  background: var(--red); color: #fff; border-right: 2px dashed var(--paper); border-radius: 8px 0 0 8px;
  display: flex; align-items: center; justify-content: center;
}
.gate__stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 13px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.gate__main { padding: 30px 28px 28px; }
.gate__main .logo { margin-bottom: 20px; }
.gate__main h2 { font-size: 1.75rem; }
.gate__main p { color: var(--ink-2); font-size: 15.5px; }
.gate__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .gate:not([hidden]) .gate__box { animation: gate-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.1) both; }
}
@keyframes gate-in { from { opacity: 0; transform: translateY(30px) rotate(-3deg); } }
@media (max-width: 420px) {
  .gate__box { grid-template-columns: 40px 1fr; }
  .gate__main { padding: 24px 20px; }
}
/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- author ---------- */
.author-card { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 24px; margin: 0 0 56px; }
.prose .author-card { margin: 56px 0 0; }
.author-card__mark { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--mustard); font: 800 1.5rem/1 var(--f-display); border: 2px solid var(--ink); }
.author-card .kicker { margin-bottom: 8px; }
.author-card h3 { margin-bottom: 8px; }
.author-card h3 a { color: var(--ink); text-decoration: none; }
.author-card h3 a:hover { color: var(--red); }
.author-card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 10px; }
.author-card__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 !important; font: 600 13px/1.4 var(--f-mono); }
.author-photo { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; margin-bottom: 18px; }
.side-card dd a { overflow-wrap: anywhere; }
@media (max-width: 520px) { .author-card { grid-template-columns: 1fr; } }

.author-card img.author-card__mark { object-fit: cover; padding: 0; background: var(--paper-2); }
.prose .board { margin-bottom: 18px; }

/* ---------- pop-up ad ---------- */
.adpop {
  position: fixed; inset: 0; z-index: 190;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px;
  background: rgba(14, 42, 28, 0.78);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.adpop[hidden] { display: none; }
.adpop__box {
  position: relative; width: min(360px, 100%); text-align: center; overflow: hidden;
  padding: 26px 26px 20px; border-radius: 6px;
  border: 3px solid var(--ink);
  outline: 6px solid var(--mustard); outline-offset: 0;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.45);
  color: #fff;
  background-color: var(--green-2);
  background-image:
    radial-gradient(circle at 50% 30%, rgba(224, 165, 38, 0.35), transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, 0.05) 0deg 6deg, transparent 6deg 15deg);
}
.adpop__close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--mustard); color: var(--ink); border: 2.5px solid var(--ink);
  font: 800 24px/1 var(--f-body); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.adpop__close:hover { background: #fff; }
.adpop__confetti { position: absolute; inset: 0; pointer-events: none; }
.adpop__confetti i { position: absolute; width: 9px; height: 9px; transform: rotate(25deg); opacity: 0.9; }
.adpop__brand {
  position: relative; display: inline-block;
  font: 700 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 7px 10px 6px; border-radius: 3px; border: 2px solid var(--ink);
}
.adpop__art { position: relative; width: 190px; height: auto; margin: 10px auto 4px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }
.adpop__eyebrow { position: relative; font: 800 1.35rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 2px; color: #fbf4e4; }
.adpop__amount {
  position: relative; margin: 0;
  font: 800 5.2rem/0.95 var(--f-display); letter-spacing: -0.05em;
  color: var(--mustard);
  background: linear-gradient(180deg, #fff3c4 0%, #f3c44e 45%, #d58e12 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 4px 0 #000);
}
.adpop__note { position: relative; font: 600 13px/1.4 var(--f-mono); color: #cfe0d4; margin: 8px 0 14px; }
.adpop__pill {
  position: relative; display: block;
  background: linear-gradient(90deg, #5fd35b, #1f8b3b); color: #0b1f12;
  font: 800 1rem/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.01em;
  padding: 13px 14px; border-radius: 40px; border: 2px solid var(--ink); margin-bottom: 14px;
}
.adpop__cta {
  position: relative; display: block;
  background: linear-gradient(180deg, #ffe27a, var(--mustard)); color: var(--ink); text-decoration: none;
  font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; font-style: italic; letter-spacing: -0.01em;
  padding: 16px; border-radius: 40px; border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.adpop__cta:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.adpop__cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.adpop__fine { position: relative; font-size: 12.5px; color: #b8c9bd; margin: 14px 0 0; }
.adpop__label { margin: 0; font: 500 12.5px/1.4 var(--f-body); color: #e9dfcc; text-align: center; }
.adpop__label b { background: var(--mustard); color: var(--ink); font: 700 11px/1 var(--f-mono); padding: 4px 6px 3px; border-radius: 2px; margin-right: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .adpop:not([hidden]) .adpop__box { animation: adpop-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
  .adpop__confetti i { animation: confetti 2.6s ease-in-out infinite alternate; }
  .adpop__cta { animation: cta-pulse 1.8s ease-in-out 1s infinite; }
}
@keyframes adpop-in { from { opacity: 0; transform: scale(0.8) rotate(-4deg); } }
@keyframes confetti { to { translate: 0 14px; rotate: 160deg; } }
@keyframes cta-pulse { 50% { scale: 1.04; } }
@media (max-height: 700px) {
  .adpop__art { width: 130px; }
  .adpop__amount { font-size: 4rem; }
}
.adpop__prefix { position: relative; margin: 4px 0 0; font: 700 13px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mustard-2); }

/* ---------- floating bottom banner (ticket style, matches the promo cards) ---------- */
.floater {
  position: fixed; left: 50%; bottom: 14px; z-index: 150;
  width: min(1000px, calc(100% - 24px));
  display: grid; grid-template-columns: 40px auto 1fr auto auto; align-items: center; gap: 0 22px;
  padding: 0 52px 0 0; min-height: 76px;
  color: #eae3d2;
  background-color: var(--green-2);
  background-image:
    radial-gradient(circle at 92% 50%, rgba(224, 165, 38, 0.2), transparent 40%),
    repeating-conic-gradient(from 0deg at 92% 50%, rgba(255, 255, 255, 0.04) 0deg 6deg, transparent 6deg 15deg);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-50%, 0);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.3s;
}
.floater[hidden] { display: grid; transform: translate(-50%, 150%); opacity: 0; pointer-events: none; visibility: hidden; }
.floater__stub {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: var(--red); border-right: 2px dashed var(--green-2); border-radius: 6px 0 0 6px;
}
.floater__stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--f-mono); letter-spacing: 0.2em; color: #fff; }
.floater__brand { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; }
.floater__brand .tag { align-self: flex-start; background: var(--mustard); color: var(--ink); padding: 4px 6px 3px; font-size: 10px; }
.floater__brand b { font: 800 1.05rem/1 var(--f-display); color: #fff; letter-spacing: -0.01em; }
.floater__brand small { font: 500 11.5px/1.2 var(--f-mono); color: #9fb5a7; }
.floater__copy { min-width: 0; padding: 10px 0; border-left: 1px dashed rgba(234, 227, 210, 0.3); padding-left: 22px; }
.floater__head { display: block; font: 800 clamp(1rem, 1.9vw, 1.35rem)/1.15 var(--f-display); letter-spacing: -0.02em; color: #fbf4e4; }
.floater__sub { display: block; font-size: 14px; color: #c7d6cb; margin-top: 4px; }
.floater__runs { color: var(--mustard-2); }
.floater__cta.btn { padding: 12px 22px; font-size: 15px; box-shadow: 3px 3px 0 #000; white-space: nowrap; }
.floater__age {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--mustard); color: var(--mustard);
  display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--f-mono);
}
.floater__close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; color: #eae3d2; border: 1.5px solid rgba(234, 227, 210, 0.45);
  font: 600 18px/1 var(--f-body); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.floater__close:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body.has-floater .site-foot { padding-bottom: 120px; }
@media (max-width: 820px) {
  .floater { grid-template-columns: 32px 1fr auto; gap: 0 12px; padding-right: 44px; min-height: 64px; bottom: 10px; box-shadow: 3px 3px 0 var(--ink); }
  .floater__brand, .floater__age, .floater__sub { display: none; }
  .floater__copy { border-left: 0; padding-left: 0; }
  .floater__head { font-size: 0.98rem; }
  .floater__cta.btn { padding: 10px 14px; font-size: 14px; }
  .floater__close { right: 8px; width: 28px; height: 28px; }
  body.has-floater .site-foot { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .floater { transition: none; } }

/* ---------- blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-list--tight { grid-template-columns: 1fr; gap: 14px; margin-bottom: 1.4em; }
.post-card { display: block; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 22px 24px; text-decoration: none; color: var(--ink); transition: transform 0.1s, box-shadow 0.1s; }
.post-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.post-card .kicker { margin-bottom: 10px; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 12px; }
.post-card__more { font: 600 13px/1 var(--f-mono); color: var(--red); }
.board--one { grid-template-columns: minmax(0, 520px); margin: 1.2em 0 1.6em; }
.prose table.ledger { margin-bottom: 1.4em; }

/* ---------- promo score ---------- */
.score-badge { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); background: var(--mustard-2); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 10px 14px; margin: 0 0 18px; }
.score-badge b { font: 800 2rem/1 var(--f-display); letter-spacing: -0.03em; }
.score-badge span { font: 600 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.score-badge:hover { color: var(--ink); background: var(--mustard); }
.score-table .score-total td { background: var(--paper-2); font-weight: 700; border-top: 2px solid var(--ink); }

/* ---------- blog post: "Promo Desk Notes" layout ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--mustard); box-shadow: 0 0 0 1px rgba(30, 27, 22, 0.15); }

.post-head { padding: 48px 0 36px; border-bottom: 2px solid var(--ink); }
.post-head__mast {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px;
  font: 600 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em;
}
.post-head__mast span { padding: 8px 12px 7px; border: 1.5px solid var(--ink); }
.post-head__mast span + span { margin-left: -1.5px; }
.post-head__mast span:first-child { background: var(--ink); color: var(--mustard); }
.post-head__mast span:nth-child(2) { background: var(--mustard); color: var(--ink); }
.post-head h1 { max-width: 18em; }
.post-head .lede { font-size: 1.17rem; color: var(--ink-2); max-width: 40em; margin: 0 0 20px; }
.post-head__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font: 500 13px/1.5 var(--f-mono); color: var(--muted); }
.post-head__meta li + li::before { content: "·"; margin: 0 10px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-body { padding-top: 44px; max-width: 720px; }
.post-body h2 { scroll-margin-top: 96px; }
.post-side { align-self: stretch; padding: 44px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.post-side__sticky { position: sticky; top: 92px; display: grid; gap: 16px; }
.post-body .sources { margin: 48px 0 0; }
.post-body .sources .side-box__h { margin-top: 0; }

.side-box { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 16px 18px; }
.side-box__h { font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin: 0 0 12px; }

.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 6px 0; text-decoration: none;
  color: var(--ink-2); font-size: 14px; line-height: 1.35; border-left: 3px solid transparent; padding-left: 8px; margin-left: -11px;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 600 11px/1.6 var(--f-mono); color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 700; border-left-color: var(--mustard); background: linear-gradient(90deg, rgba(224, 165, 38, 0.14), transparent); }

.tldr { background: var(--card); position: relative; --zig: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  padding-bottom: 24px; border-bottom: 0; }
.tldr dl { margin: 0; font: 500 13px/1.4 var(--f-mono); }
.tldr dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.tldr dt { color: var(--ink-2); }
.tldr dd { margin: 0; font-weight: 700; text-align: right; }

.side-promo { background: var(--green-2); color: #eae3d2; border-color: var(--ink); }
.side-promo .side-box__h { color: var(--mustard); }
.side-promo__ticket { display: grid; grid-template-columns: 14px 1fr; gap: 12px; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; padding: 12px 12px 12px 0; margin-bottom: 12px; overflow: hidden; }
.side-promo__stub { background: var(--green); border-right: 2px dashed var(--card); margin: -12px 0; }
.side-promo .stamp { margin-bottom: 6px; }
.side-promo__title { font: 700 0.95rem/1.25 var(--f-display); margin: 0; }
.side-promo__amount { font: 800 1.45rem/1.1 var(--f-display); color: var(--red); letter-spacing: -0.02em; margin: 2px 0 4px; }
.side-promo__meta { font: 500 12px/1.3 var(--f-mono); color: var(--muted); margin: 0; }
.side-promo .btn { width: 100%; justify-content: center; }
.side-promo__fine { font-size: 12px; color: #9fb5a7; margin: 10px 0 0; }
.side-promo__fine a { color: var(--mustard-2); }

.sources ul { list-style: none; margin: 0 0 10px; padding: 0; }
.sources li { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.sources li .mono { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.sources p { font-size: 12.5px; color: var(--muted); margin: 0; }

.toc-mobile { display: none; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-body { max-width: none; }
  .post-side { padding-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .post-side__sticky { position: static; }
  .post-side .toc { display: none; }
  .toc-mobile { display: block; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px 16px; margin-bottom: 28px; }
  .toc-mobile summary { cursor: pointer; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
  .toc-mobile ol { margin: 12px 0 0; padding-left: 20px; font-size: 15px; }
  .toc-mobile li { margin-bottom: 6px; }
}
.prose .side-box__h { font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin: 0 0 12px; }
.post-card__no { display: inline-block; background: var(--mustard); color: var(--ink); font: 700 11px/1 var(--f-mono); letter-spacing: 0.1em; padding: 5px 7px 4px; margin-right: 8px; border: 1.5px solid var(--ink); }

/* ---------- blog index ---------- */
.blog-main { padding: 44px 0 64px; min-width: 0; }
.feature {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 250px; gap: 0 28px; align-items: start;
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink);
  padding: 28px; text-decoration: none; color: var(--ink); transition: transform 0.1s, box-shadow 0.1s;
}
.feature:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.feature__no { font: 800 5.5rem/0.8 var(--f-display); letter-spacing: -0.06em; color: var(--mustard); -webkit-text-stroke: 2px var(--ink); }
.feature__copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 12px; }
.feature__copy p { color: var(--ink-2); margin: 0 0 14px; }
.feature__meta { display: block; font: 500 13px/1.4 var(--f-mono); color: var(--muted); margin-bottom: 16px; }
.feature__tldr { background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 14px 14px 10px; }
.feature__tldr .side-box__h { display: block; }
.feature__tldr dl { margin: 0; font: 500 12.5px/1.35 var(--f-mono); }
.feature__tldr dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.feature__tldr dl div:last-child { border-bottom: 0; }
.feature__tldr dt { color: var(--ink-2); }
.feature__tldr dd { margin: 0; font-weight: 700; text-align: right; }

.issues-h { font-size: 1.5rem; margin: 48px 0 14px; }
.issues { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.issues li { border-bottom: 1px solid var(--line-2); }
.issues a { display: grid; grid-template-columns: 70px minmax(0, 1fr) 30px; gap: 18px; align-items: center; padding: 20px 4px; text-decoration: none; color: var(--ink); }
.issues a:hover { background: var(--card); }
.issues a:hover .issues__go { transform: translateX(4px); color: var(--red); }
.issues__no { font: 800 2.8rem/1 var(--f-display); letter-spacing: -0.05em; color: var(--line-2); }
.issues__copy { display: grid; gap: 4px; }
.issues__copy .kicker { margin: 0; font-size: 11.5px; }
.issues__copy b { font: 700 1.2rem/1.25 var(--f-display); }
.issues__copy > span:last-child { color: var(--ink-2); font-size: 15px; }
.issues__go { font-size: 1.4rem; transition: transform 0.15s; }

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a span { font: 600 11px/1 var(--f-mono); color: var(--muted); background: var(--paper-2); padding: 4px 6px; border-radius: 3px; }
.side-links a:hover { color: var(--red); }
.side-author { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.side-author img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.side-author b { display: block; font: 700 15px/1.2 var(--f-display); }
.side-author small { color: var(--muted); font-size: 12.5px; }
.side-author:hover { color: var(--ink); background: var(--paper-2); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .feature__no { font-size: 4rem; }
}
@media (max-width: 1000px) {
  .blog-main { padding-bottom: 20px; }
}

/* ---------- featured images ---------- */
.post-hero { margin: 32px 0 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); background: var(--green-2); }
.post-hero img { width: 100%; height: auto; aspect-ratio: 1200 / 675; object-fit: cover; }
.post-card--img { padding-top: 0; overflow: hidden; }
.post-card__img { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 18px; height: auto; aspect-ratio: 1200 / 675; object-fit: cover; border-bottom: 1.5px solid var(--ink); }
.issues a:has(.issues__img) { grid-template-columns: 120px minmax(0, 1fr) 30px; }
.issues__img { width: 120px; height: 68px; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 4px; }
@media (max-width: 560px) {
  .issues a:has(.issues__img) { grid-template-columns: 84px minmax(0, 1fr) 20px; gap: 12px; }
  .issues__img { width: 84px; height: 48px; }
}
