/* ═══════════════════════════════════════════════════════════════════
   Dojo Daily — theme-specific styles
   Home-page Track Record + About Us modules, header subscribe modal.
   Also hoists the track-record design tokens to :root so the sport
   cards resolve their colors on the home page (track.css scopes them
   to .tr-shell, which only the dedicated track page used).
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --n8:  #121919;
  --n20: #2f3b3b;
  --n35: #566666;
  --n50: #7c8e8e;
  --n65: #9eaeae;
  --n75: #b8c5c5;
  --n85: #d2dbdb;
  --n90: #e1e8e8;
  --n95: #eef3f3;
  --n98: #f6f9f9;
  --green: #10a35d;
  --green-deep: #15803d;
  --red: #ef4444;
  --gold: #d4a316;
  --tr-display: var(--font-marketing);
  --tr-text:    var(--font-marketing-body);
  --tr-mono:    var(--font-mono);
}

/* ── Header subscribe button + modal ── */
.nav.nav--bar button.nav-cta {
  border: 0; cursor: pointer;
  font-family: var(--font-marketing); font-weight: 600;
  justify-self: end;
}

.sub-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease-out, visibility 0ms linear 200ms;
}
.sub-modal.is-open { opacity: 1; visibility: visible; transition: opacity 200ms ease-out; }
.sub-modal-scrim {
  position: absolute; inset: 0;
  background: rgba(18,25,25,0.55);
  backdrop-filter: blur(2px);
}
.sub-modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 40px 32px;
  box-shadow: 0 24px 64px rgba(18,25,25,0.28);
  transform: translateY(8px) scale(0.985);
  transition: transform 240ms cubic-bezier(0.22,0.61,0.36,1);
}
.sub-modal.is-open .sub-modal-card { transform: translateY(0) scale(1); }
.sub-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: transparent; color: #566666;
  border-radius: 8px;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.sub-modal-close:hover { background: var(--sage); color: #121919; }
.sub-modal-close svg { width: 18px; height: 18px; }
.sub-modal-eyebrow {
  font-family: var(--font-mono), monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #9eaeae; margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.sub-modal-eyebrow .square { width: 8px; height: 8px; background: #121919; }
.sub-modal-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-marketing); font-weight: 700;
  font-size: 34px; line-height: 1.05; letter-spacing: -0.02em;
  color: #000;
}
.sub-modal-card h2 em { color: rgba(18,25,25,0.45); font-style: normal; font-weight: 400; }
.sub-modal-card p.sub-modal-dek {
  margin: 0 0 26px;
  font-family: var(--font-marketing-body);
  font-size: 16px; line-height: 1.5; color: #2f3b3b;
}
.sub-modal-form {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px; padding: 5px 5px 5px 8px;
}
.sub-modal-form input {
  border: 0; outline: 0; background: transparent;
  padding: 12px 16px;
  font-family: var(--font-marketing); font-weight: 500;
  font-size: 15px; color: #121919;
}
.sub-modal-form input::placeholder { color: #9eaeae; font-weight: 400; }
.sub-modal-form button {
  border: 0; cursor: pointer;
  background: #121919; color: #fff;
  padding: 0 22px; border-radius: 999px;
  font-family: var(--font-marketing); font-weight: 700;
  font-size: 14px; letter-spacing: 0.02em;
  transition: background 160ms ease-out;
}
.sub-modal-form button:hover { background: #000; }
.sub-modal-meta {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--font-mono), monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #9eaeae;
}
.sub-modal-done {
  display: none;
  font-family: var(--font-marketing-body);
  font-size: 16px; line-height: 1.5; color: #2f3b3b;
}
.sub-modal-done b { color: #121919; font-weight: 700; }
/* Ghost adds .success to a [data-members-form] on a successful signup */
.sub-modal.is-done .sub-modal-form,
.sub-modal.is-done .sub-modal-meta,
.sub-modal-form.success ~ .sub-modal-meta,
.sub-modal-form.success { display: none; }
.sub-modal.is-done .sub-modal-done,
.sub-modal-form.success ~ .sub-modal-done { display: block; }
.sub-modal-form.error input { color: var(--dojo-error); }

/* ── Daily Insights: empty state ── */
.picks-empty {
  font-family: var(--font-marketing-body);
  font-size: 18px; color: #566666;
  padding: 28px 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   Track Record (home) — docx-style header + dark photo + sport stack
   ═══════════════════════════════════════════════════════════════════ */
.tr-mini-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; margin-bottom: 56px;
}
.tr-mini-title { display: flex; align-items: center; gap: 28px; }
.tr-mini-symbol { width: 150px; height: 150px; display: block; filter: invert(1); }
.tr-mini-title h2 {
  margin: 0;
  font-family: var(--font-marketing);
  font-weight: 700;
  font-size: 64px; line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #000;
}
.tr-mini-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 52px; padding: 0 26px;
  background: #121919; color: #fff; border-radius: 4px;
  font-family: var(--font-marketing); font-weight: 700;
  font-size: 16px; letter-spacing: 0.01em;
  transition: background 160ms ease-out;
}
.tr-mini-cta:hover { background: #000; }

.tr-mini {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.tr-mini-photo {
  position: relative; margin: 0;
  background: #0e1414;
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
}
.tr-mini-photo-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 100% 72px;
}
.tr-mini-ring {
  position: absolute; border: 1.5px solid rgba(255,255,255,0.32);
  border-radius: 50%;
}
.tr-mini-ring.r1 { width: 26px; height: 26px; top: 56px; right: 120px; }
.tr-mini-ring.r2 {
  width: 34px; height: 34px; bottom: 130px; right: 64px;
  border-color: transparent; border-top-color: rgba(255,255,255,0.32);
  border-right-color: rgba(255,255,255,0.32);
  transform: rotate(20deg);
}
.tr-mini-cutout {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-48%);
  height: 92%; width: auto; max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 12px 48px rgba(0,0,0,0.55));
}

.tr-sport-stack {
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tr-mini .tr-sport-stack .tr-sport-card {
  flex: 1;
  border-right: 0;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding: 26px 30px;
  display: flex; flex-direction: column; justify-content: center;
}
.tr-mini .tr-sport-stack .tr-sport-card:last-child { border-bottom: 0; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-head { padding-bottom: 14px; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-name { font-size: 30px; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 18px;
}
.tr-mini .tr-sport-stack .tr-sport-card .sc-stat-val { font-size: 23px; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-edge { margin-top: 16px; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-edge .sc-stat-val { font-size: 21px; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-bar { margin-top: 16px; height: 6px; }
.tr-mini .tr-sport-stack .tr-sport-card .sc-bar-lbl { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   About Us (home)
   ═══════════════════════════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.about-copy {
  font-family: var(--font-marketing-body);
  font-size: 20px; line-height: 1.62; color: #2f3b3b;
  max-width: 620px; letter-spacing: -0.005em;
}
.about-copy p { margin: 0 0 24px; }
.about-copy p b { color: #121919; font-weight: 700; }
.about-copy .about-sign { margin: 40px 0 0; color: #121919; line-height: 1.5; }
.about-copy .about-sign b { font-weight: 700; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%; height: 100%; min-height: 420px;
  object-fit: cover; object-position: center;
  border-radius: 12px;
  filter: contrast(1.03);
}
.about-statement {
  margin: 96px auto 0;
  padding-top: 56px;
  border-top: 1px solid rgba(0,0,0,0.18);
  font-family: var(--font-marketing);
  font-weight: 700;
  font-size: 64px; line-height: 1.05;
  letter-spacing: -0.022em; color: #000;
  max-width: 1280px; text-wrap: balance;
}
.about-statement em { color: rgba(18,25,25,0.45); font-weight: 400; font-style: normal; }

@media (max-width: 1100px) {
  .tr-mini, .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .tr-mini-head { flex-wrap: wrap; gap: 20px; }
  .tr-mini-title { gap: 24px; }
  .tr-mini-symbol { width: 96px; height: 96px; }
  .tr-mini-title h2 { font-size: 44px; }
  .tr-mini-photo { min-height: 420px; }
  .about-photo img { min-height: 360px; }
  .about-statement { font-size: 44px; }
}
@media (max-width: 560px) {
  .tr-mini-title h2 { font-size: 32px; }
  .about-statement { font-size: 32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Featured-card post content (dark card on the home page)
   ═══════════════════════════════════════════════════════════════════ */
.feature-card-content {
  font-family: var(--font-marketing-body);
  color: rgba(246,249,249,0.78);
  font-size: 15px; line-height: 1.55;
  margin: 0 0 8px;
}
.feature-card-content p { margin: 0 0 12px; }
.feature-card-content p:last-child { margin-bottom: 0; }
.feature-card-content strong, .feature-card-content b { color: #fff; font-weight: 700; }
.feature-card-content h2, .feature-card-content h3, .feature-card-content h4 {
  font-family: var(--font-marketing); color: #fff; margin: 16px 0 8px; line-height: 1.15;
}
.feature-card-content a { color: #fff; text-decoration: underline; }
.feature-card-content ul, .feature-card-content ol { padding-left: 18px; margin: 0 0 12px; }
.feature-card-content li { margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════════
   Single post / pick page
   ═══════════════════════════════════════════════════════════════════ */
.po {
  width: var(--site-w); margin: 0 auto;
  padding: 140px var(--gutter) 96px;
}
.po-wrap { max-width: 760px; margin: 0 auto; }
.po-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono), monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #566666; margin-bottom: 24px;
}
.po-tag { color: #121919; font-weight: 700; }
.po-title {
  font-family: var(--font-marketing); font-weight: 700;
  font-size: 72px; line-height: 0.98; letter-spacing: -0.03em;
  color: #000; margin: 0 0 28px;
}
.po-dek {
  font-family: var(--font-marketing-body);
  font-size: 24px; line-height: 1.35; color: #2f3b3b;
  margin: 0 0 40px; letter-spacing: -0.005em;
}
.po-feature { margin: 0 0 48px; border-radius: 12px; overflow: hidden; }
.po-feature img { width: 100%; height: auto; display: block; }
.po-body {
  font-family: var(--font-marketing-body);
  font-size: 19px; line-height: 1.7; color: #121919; letter-spacing: -0.002em;
}
.po-body p { margin: 0 0 24px; }
.po-body h2 {
  font-family: var(--font-marketing); font-weight: 700;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.025em; margin: 48px 0 20px; color: #000;
}
.po-body h3 {
  font-family: var(--font-marketing); font-weight: 700;
  font-size: 28px; letter-spacing: -0.02em; margin: 40px 0 16px; color: #000;
}
.po-body a { color: #121919; text-decoration: underline; text-underline-offset: 2px; }
.po-body img { max-width: 100%; height: auto; border-radius: 8px; }
.po-body figure { margin: 0 0 24px; }
.po-body blockquote {
  margin: 0 0 24px; padding-left: 24px;
  border-left: 2px solid #121919; color: #2f3b3b; font-style: italic;
}
.po-body ul, .po-body ol { padding-left: 22px; margin: 0 0 24px; }
.po-body li { margin-bottom: 8px; }
.po-tags {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.12);
  font-family: var(--font-mono), monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #566666;
}
.po-tags a { color: #121919; }

@media (max-width: 900px) {
  .po { padding: 120px 24px 64px; }
  .po-title { font-size: 48px; }
  .po-dek { font-size: 20px; }
}
@media (max-width: 560px) {
  .po-title { font-size: 36px; }
}
