/* ── tokens ─────────────────────────────────────────────── */
:root {
  /* named palette */
  --color-obsidian: #111111;
  --color-bone:     #F6F4EE;
  --color-graphite: #767676;
  --color-steel:    #656565;
  --color-navy:     #1D2E3A;

  /* semantic aliases */
  --bg:       var(--color-bone);
  --bg-hover: rgba(17,17,17,0.025);
  --ink:    var(--color-obsidian);
  --ink-2:  var(--color-graphite);
  --ink-3:  var(--color-steel);
  --border: rgba(17,17,17,0.10);
  --accent: var(--color-navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --bg-hover: rgba(246,244,238,0.04);
    --ink: #F6F4EE;
    --ink-2: #999999; --ink-3: #777777;
    --border: rgba(246,244,238,0.10); --accent: #5A7FA8;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --bg-hover: rgba(246,244,238,0.04);
  --ink: #F6F4EE;
  --ink-2: #999999; --ink-3: #777777;
  --border: rgba(246,244,238,0.10); --accent: #5A7FA8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #__next { height: 100%; }
body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.thrawn-root {
  display: grid;
  grid-template-columns: 38% 62%;
  height: 100vh;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════════════════════ */
.left-panel {
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  background: #0a1820;
}
.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scale(1.05);
  background-image: url('/golfcourse.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(1.3px) contrast(1.08) saturate(0.90) brightness(0.98);
  z-index: 0;
}

/* desktop: subtle tonal depth + restrained edge vignette */
.left-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.05) 100%),
    rgba(0,0,0,0.05);
  z-index: 1;
  pointer-events: none;
}

/* distressed photographic-print edge overlay */
.hero-distressed-edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url('/hero-distressed-edge.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 1.0;
}

/* photographic grain — 512px grayscale tile at ~2.5% */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url('/paper-grain.png');
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* archival identity block — upper-right, hero only */
.hero-archive {
  position: absolute;
  top: 21px;
  right: 39px;
  z-index: 10;
  pointer-events: none;
}
.hero-archive-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}


/* bottom labels */
.panel-foot {
  z-index: 1;
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; z-index: 10; pointer-events: none;
}
.panel-foot-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* corner crosshairs */
.ch {
  position: absolute; width: 20px; height: 20px;
  z-index: 10; pointer-events: none;
}
.ch::before, .ch::after {
  content: ''; position: absolute;
  background: rgba(255,255,255,0.20);
}
.ch::before { width: 1px; height: 100%; left: 50%; top: 0; }
.ch::after  { width: 100%; height: 1px; top: 50%; left: 0; }
.ch-tl { top: 20px; left: 20px; }
.ch-tr { top: 20px; right: 20px; }
.ch-bl { bottom: 20px; left: 20px; }
.ch-br { bottom: 20px; right: 20px; }

/* brand card — leftpaper.png 2460×1696, black bg → screen blend = transparent corners
   wrapper rotates so paper + content move as one unit
   card-content positioned via absolute top:34% for exact vertical placement
   (flex+padding gave ~55-60% instead — absolute is the right tool here) */
.brand-card {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  aspect-ratio: 2460 / 1696;
  width: 84%;
  max-width: 442px;
  min-width: 240px;
  background: none;
  transform: none;
  container-type: inline-size;
  overflow: visible;
}
.card-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  display: block;
  mix-blend-mode: screen;
  transform: rotate(5deg);
}
.tape { display: none; }
.card-content {
  position: absolute;
  top: 28%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 76%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  transform: translateX(-10px) rotate(-1deg);
}
.brand-logo {
  width: 61%;
  height: auto;
  display: block;
  color: #111111;
  margin: 0 auto 3.2cqw;
}
.card-tagline {
  /* width:100% is critical — without it the p shrink-wraps and text-align:center
     has no room to center against in a flex-column align-items:center container */
  width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 3.1cqw;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.48);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════════════════════ */
.right-panel {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  border-left: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

/* — header — */
.top-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 32px; height: 58px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.page-nav { display: flex; align-items: center; gap: 20px; }
.pn-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); transition: color 0.15s;
  text-decoration: none;
}
.pn-link:hover { color: var(--ink); }
.pn-link.active {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* — scrollable content — */
.content-area { flex: 1; overflow-y: auto; overflow-x: hidden; }
.content-inner { padding: 58px 32px 0; }

/* intro */
.intro-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 24px;
}
.intro-headline {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 48px; font-weight: 700;
  line-height: 0.97; letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 24px; max-width: 720px;
  text-wrap: balance;
}
.intro-dateline {
  display: flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--ink-3);
  margin-bottom: 48px;
}
.intro-rule { width: 28px; height: 1px; background: currentColor; flex-shrink: 0; }


/* — story table — */
.story-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
  text-decoration: none; color: inherit; cursor: pointer;
  position: relative;
  transition: padding-left 0.20s ease, background-color 120ms ease-out;
}
.story-row:hover { padding-left: 12px; background: var(--bg-hover); }

/* left accent bar — outside the row's left edge */
.row-bar {
  position: absolute; left: -2px; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 140ms ease-out; /* exit */
}
.story-row:hover .row-bar {
  transform: scaleY(1);
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1); /* enter */
}

.row-body {
  padding: 22px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.row-hed-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.row-hed {
  font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.3;
}
.badge-new {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  background: var(--accent); color: #ffffff;
  padding: 2px 6px; flex-shrink: 0;
}
.row-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.06em;
}
.row-cat { font-family: 'IBM Plex Mono', monospace; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; color: var(--ink-2); }
.row-sep { color: var(--ink-3); opacity: 0.35; }
.row-src { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: 0.08em; color: var(--ink-3); }

.row-right {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 8px;
  padding-top: 22px; align-self: start;
}
.row-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 400; letter-spacing: 0.08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row-arrow {
  opacity: 0; transform: translateX(-3px);
  transition: opacity 120ms ease-out, transform 120ms ease-out; /* exit */
  color: var(--ink-3); display: flex; align-items: center;
}
.story-row:hover .row-arrow {
  opacity: 1; transform: translateX(0);
  transition: opacity 160ms 20ms ease-out, transform 160ms 20ms ease-out; /* enter, 20ms after hover */
}

/* reduced motion: snap hover state, no transforms */
@media (prefers-reduced-motion: reduce) {
  .story-row { transition: none; }
  .row-bar,
  .story-row:hover .row-bar { transition: none; }
  .row-arrow,
  .story-row:hover .row-arrow { transition: none; transform: none !important; }
}

/* touch: suppress the in/out timing tricks (base transitions still apply) */
@media (hover: none) {
  .story-row:hover .row-bar { transition: none; }
  .story-row:hover .row-arrow { transition: none; }
}

/* — footer — */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 20px 42px;
  display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.foot-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--ink-3);
}
.foot-nav { display: flex; align-items: center; gap: 12px; }
.foot-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none;
  transition: color 0.15s;
}
.foot-link:hover { color: var(--ink); }
.foot-sep { font-size: 10px; color: var(--border); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.live { animation: pulse 2.6s ease-in-out infinite; }

/* ── view switching ──────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ── about view ──────────────────────────────────────────── */
.about-inner { padding: 64px 42px 80px; max-width: 600px; }
.about-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 24px;
}
.about-headline {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 48px; font-weight: 700;
  line-height: 0.97; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 56px;
  text-wrap: balance;
}
.about-section { margin-bottom: 40px; }
.about-subhead {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink); margin-bottom: 12px;
}
.about-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 400;
  line-height: 1.7; color: var(--ink-2);
}
.about-rule { width: 100%; height: 1px; background: var(--border); margin: 48px 0; }
.about-closing {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px; font-weight: 700;
  line-height: 0.97; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 36px; text-wrap: balance;
}
.about-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: gap 0.2s;
}
.about-cta:hover { gap: 12px; }
.about-social {
  display: flex; gap: 12px; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  color: var(--ink-2); text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.about-social-link:hover {
  color: var(--ink);
  border-color: var(--ink-2);
  background: var(--bg-hover);
}
.about-social-link svg { width: 14px; height: 14px; }

/* ── placeholder views ───────────────────────────────────── */
.placeholder-inner { padding: 64px 42px; }
.placeholder-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 24px;
}
.placeholder-hed {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 0.97; color: var(--ink);
  margin-bottom: 16px;
}
.placeholder-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px; color: var(--ink-3); line-height: 1.6;
}

/* ── heat index view ─────────────────────────────────────── */
.heat-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 42px; height: 44px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.heat-periods { display: flex; gap: 2px; }
.heat-period {
  background: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); padding: 4px 8px; transition: all 0.15s;
}
.heat-period.active { background: var(--ink); color: var(--bg); }
.heat-bar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 400; letter-spacing: 0.08em; color: var(--ink-3);
}
.heat-th {
  position: sticky; top: 44px; z-index: 4;
  display: grid;
  grid-template-columns: 52px 1fr 88px 80px 104px;
  padding: 0 42px; height: 34px; align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.heat-th-cell {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3);
}
.heat-th-cell.r { text-align: right; }
.heat-row {
  display: grid;
  grid-template-columns: 52px 1fr 88px 80px 104px;
  padding: 0 42px; min-height: 64px; align-items: center;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; position: relative;
}
.heat-row:hover { background: var(--bg-hover); }
.heat-row:hover .row-bar { transform: scaleY(1); }
.heat-rank { display: flex; flex-direction: column; gap: 3px; }
.heat-rank-n {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.heat-rank-delta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500; letter-spacing: 0.04em;
}
.heat-rank-delta.up  { color: #2e7a47; }
.heat-rank-delta.down { color: #b34040; }
.heat-rank-delta.flat { color: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .heat-rank-delta.up  { color: #5bc57f; }
  :root:not([data-theme="light"]) .heat-rank-delta.down { color: #e57070; }
}
:root[data-theme="dark"] .heat-rank-delta.up  { color: #5bc57f; }
:root[data-theme="dark"] .heat-rank-delta.down { color: #e57070; }
.heat-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.heat-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.heat-brand-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.heat-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.heat-tags { display: flex; gap: 4px; align-items: center; }
.heat-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; padding: 2px 5px;
}
.heat-tag.hot     { background: var(--accent); color: #ffffff; }
.heat-tag.cat     { color: var(--ink-3); border: 1px solid var(--border); }
.heat-tag.legacy  { color: var(--ink-3); border: 1px solid var(--border); }
.heat-pos { display: flex; align-items: center; justify-content: flex-end; }
.heat-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px; font-weight: 500;
  font-variant-numeric: tabular-nums; color: var(--ink); text-align: right;
}
.heat-change { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.heat-change-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.heat-change-val.up   { color: #2e7a47; }
.heat-change-val.down { color: #b34040; }
.heat-change-val.flat { color: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .heat-change-val.up   { color: #5bc57f; }
  :root:not([data-theme="light"]) .heat-change-val.down { color: #e57070; }
}
:root[data-theme="dark"] .heat-change-val.up   { color: #5bc57f; }
:root[data-theme="dark"] .heat-change-val.down { color: #e57070; }
.heat-change-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--ink-3);
}
.heat-spark { display: flex; align-items: center; justify-content: flex-end; }
.heat-spark.up   { color: #2e7a47; }
.heat-spark.down { color: #b34040; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .heat-spark.up   { color: #5bc57f; }
  :root:not([data-theme="light"]) .heat-spark.down { color: #e57070; }
}
:root[data-theme="dark"] .heat-spark.up   { color: #5bc57f; }
:root[data-theme="dark"] .heat-spark.down { color: #e57070; }
/* ── vote button ─────────────────────────────────────────── */
.heat-vote { display: flex; align-items: center; justify-content: flex-end; }
.heat-vote-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border);
  padding: 6px 10px; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em; color: var(--ink-3);
  transition: all 0.15s; white-space: nowrap;
}
.heat-vote-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.heat-vote-btn.voted {
  background: var(--accent); border-color: var(--accent);
  color: #ffffff; cursor: default;
}
.heat-vote-btn:disabled { opacity: 0.45; cursor: default; }

/* ── suggest a brand row ─────────────────────────────────── */
.heat-suggest-row {
  display: flex; align-items: center;
  width: 100%; padding: 0 42px; height: 56px;
  border: none; border-top: 1px solid var(--border);
  background: transparent;
  -webkit-appearance: none; appearance: none;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.heat-suggest-row:hover { background: var(--bg-hover); }
.heat-suggest-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); transition: color 0.15s;
}
.heat-suggest-row:hover .heat-suggest-label { color: var(--ink); }
.heat-suggest-icon {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; flex-shrink: 0;
}

/* ── suggest sheet ───────────────────────────────────────── */
.suggest-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 21;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 24px 42px 32px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2,0.8,0.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.10);
}
.suggest-sheet.open { transform: translateY(0); }
.suggest-hed {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px;
}
.suggest-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px; color: var(--ink-3); margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.suggest-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.suggest-input {
  width: 100%; background: none;
  border: 1px solid var(--border); color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 400;
  padding: 10px 12px; outline: none;
  transition: border-color 0.15s;
}
.suggest-input::placeholder { color: var(--ink-3); }
.suggest-input:focus { border-color: var(--ink); }
.suggest-actions { display: flex; gap: 8px; align-items: center; }
.suggest-thanks {
  display: none; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--ink);
  margin-bottom: 12px;
}
.suggest-thanks.visible { display: flex; }

/* ── share sheet ─────────────────────────────────────────── */
.share-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 24px 42px 32px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2,0.8,0.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.10);
}
.share-sheet.open { transform: translateY(0); }
.share-hed {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px;
}
.share-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px; color: var(--ink-3); margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.share-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; cursor: pointer; border: none;
  transition: all 0.15s; text-decoration: none;
}
.share-btn.primary { background: var(--ink); color: var(--bg); }
.share-btn.primary:hover { opacity: 0.8; }
.share-btn.secondary {
  background: none; border: 1px solid var(--border);
  color: var(--ink-3);
}
.share-btn.secondary:hover { border-color: var(--ink); color: var(--ink); }
.share-dismiss {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding: 4px 0; transition: color 0.15s;
}
.share-dismiss:hover { color: var(--ink); }

/* ══════════════════════════════════════════════════════════
   CALENDAR — left panel nav (mobile only)
══════════════════════════════════════════════════════════ */
.cal-panel {
  z-index: 1;
  position: absolute; inset: 0; z-index: 15;
  display: none; flex-direction: column;
  padding: 48px 36px 36px;
}
body.cal-active .cal-panel { display: flex; }
body.cal-active .brand-card { display: none; }

/* on desktop, brand card always wins */
@media (min-width: 1024px) {
  .cal-panel { display: none !important; }
  body.cal-active .brand-card { display: block !important; }
}

.cal-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 28px;
}
.cal-month-nav {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.cal-month-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 52px; font-weight: 700; line-height: 0.95;
  letter-spacing: -0.025em; color: #ffffff; flex: 1;
}
.cal-step {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,0.70);
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cal-step:hover:not(:disabled) { border-color: rgba(255,255,255,0.70); color: #fff; background: rgba(255,255,255,0.10); }
.cal-step:disabled { opacity: 0.22; cursor: default; }
.cal-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.30); margin-bottom: 14px;
}
.cal-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.50);
  max-width: 26ch;
}
.cal-legend {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.cal-legend-item {
  display: flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.cal-legend-swatch {
  width: 10px; height: 10px; flex-shrink: 0;
}
.cal-legend-swatch.major    { background: var(--accent); }
.cal-legend-swatch.standard { background: rgba(255,255,255,0.60); }
.cal-legend-swatch.drop     { background: transparent; border: 1px solid rgba(255,255,255,0.30); }

/* ── calendar right panel ────────────────────────────────── */
.view[data-view="calendar"] {
  display: none; flex-direction: column;
  height: calc(100vh - 56px - 57px);
  overflow: hidden;
}
.view[data-view="calendar"].active { display: flex; }

/* desktop: 3-col card grid, all events, continuous scroll */
.cal-schedule {
  flex: 1; overflow-y: auto; min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--bg);
  align-content: start;
}

/* month marker card — same shape as event card, ink fill */
.cal-mo-card {
  position: relative;
  background: var(--ink);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
}
.cal-mo-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg); opacity: 0.35;
  margin-bottom: 6px;
}
.cal-mo-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px; font-weight: 700;
  line-height: 0.95; letter-spacing: -0.025em;
  color: var(--bg);
}

/* event card — self-contained rounded island */
.cal-ev-card {
  position: relative;
  background: transparent;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.cal-ev-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.cal-ev-card.major { border-left-color: var(--accent); }
.cal-ev-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cal-ev-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.cal-ev-tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
}
.cal-ev-card.major .cal-ev-tier { color: var(--ink-3); }
.cal-ev-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: auto;
  margin-bottom: 6px;
}
.cal-ev-place {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 400; color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ── calendar mobile event list ─────────────────────────── */
.cal-event-list {
  display: none; /* shown only on mobile via media query */
  flex-direction: column;
  flex: 1; overflow-y: auto;
  padding: 0 20px 40px;
  gap: 2px;
}
.cal-list-empty {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink-3);
  padding: 32px 0; text-align: center; letter-spacing: 0.03em;
}
.cal-list-item {
  display: flex; align-items: stretch; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cal-list-item:last-child { border-bottom: none; }
a.cal-list-item.linkable { text-decoration: none; color: inherit; cursor: pointer; }
a.cal-list-item.linkable:hover { background: var(--bg-hover); }
.cal-list-bar {
  width: 3px; flex-shrink: 0; border-radius: 2px;
  background: var(--ink-3);
}
.cal-list-bar.major    { background: var(--accent); }
.cal-list-bar.standard { background: var(--ink); }
.cal-list-bar.drop     { background: var(--ink-3); }
.cal-list-body { flex: 1; min-width: 0; }
.cal-list-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: 5px;
}
.cal-list-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 3px;
}
.cal-list-place {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 400; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.cal-list-tier {
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
}
.cal-list-tier.major { color: var(--ink-3); }

/* ── mobile ──────────────────────────────────────────────── */
@media (max-width: 1023px) {
  html, body { height: auto; overflow: auto; }
  .thrawn-root {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .left-panel {
    height: 40vh;
    border-bottom: 1px solid var(--border);
  }
  .left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.30) 0%,
      rgba(0,0,0,0.55) 60%,
      rgba(0,0,0,0.70) 100%
    );
    z-index: 1;
  }
  .brand-card, .cal-panel, .panel-foot, .ch { z-index: 2; }
  /* fixed card size on mobile — does not scale with panel width */
  .brand-card { width: 349px; max-width: 349px; min-width: 0; }
  /* strengthen text legibility */
  .cal-eyebrow, .cal-month-name, .cal-legend,
  .cal-legend-item, .panel-foot-label { text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
  .right-panel {
    height: auto;
    overflow: visible;
    border-left: none;
  }
  .content-area { overflow: visible; }
  .top-bar { padding: 0 20px; }
  .content-inner { padding: 40px 20px 0; }
  .landing-footer { padding: 16px 20px; }
  .intro-headline { font-size: 34px; max-width: 100%; }
  .heat-bar { padding: 0 20px; }
  .heat-th  { padding: 0 20px; grid-template-columns: 44px 1fr 72px 88px; }
  .heat-row { padding: 0 20px; grid-template-columns: 44px 1fr 72px 88px; }
  .about-inner { padding: 40px 20px 60px; }
  .heat-icon { display: none; }
  .heat-brand { gap: 0; }
  .heat-pos, .heat-pos-col { display: none; }
  .share-sheet { padding: 20px 20px 28px; }
  .suggest-sheet { padding: 20px 20px 28px; position: fixed; z-index: 100; }
  .share-sheet   { padding: 20px 20px 28px; position: fixed; z-index: 100; }
  .heat-suggest-row { padding: 0 20px; width: 100%; }

  /* calendar mobile — show list, hide desktop schedule */
  .view[data-view="calendar"],
  .view[data-view="calendar"].active { height: auto; padding: 0; flex-direction: column; }
  .cal-schedule { display: none; }
  .cal-event-list { display: flex; }
  body.cal-active .cal-panel {
    padding: 20px 24px;
    flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    height: 100%;
  }
  .cal-eyebrow { margin-bottom: 12px; }
  .cal-month-nav { justify-content: center; gap: 20px; margin-bottom: 10px; }
  .cal-month-name { font-size: 42px; flex: none; text-align: center; }
  .cal-sub { display: none; }
  .cal-legend {
    flex-direction: row; gap: 14px; margin-top: 14px;
    justify-content: center; align-items: center;
  }
  .cal-legend-item { justify-content: center; }
}
