/* =========================================================
   Wecap — Fantasy cricket editorial
   Visual contract: editorial-lead, magazine, dense-list, paper-and-ink
   Palette: Light Grass Field
   Type: Manrope + Noto Sans Devanagari
   ========================================================= */

:root {
  --primary: #2C7A36;
  --primary-700: #1F5A27;
  --primary-900: #133D18;
  --accent: #B05D00;
  --accent-700: #8C4700;
  --background: #F6FBF3;
  --surface: #FFFFFF;
  --surface-2: #E6F2DF;
  --surface-3: #DAEBCC;
  --ink: #1F3020;
  --text: #1F3020;
  --muted: #5C705D;
  --border: #CBE0C4;
  --border-strong: #9CC492;
  --on-primary: #FFFFFF;
  --on-accent: #FFFFFF;
  --shadow-card: 0 1px 2px rgba(31, 48, 32, 0.04), 0 4px 14px rgba(31, 48, 32, 0.06);
  --shadow-lift: 0 4px 14px rgba(31, 48, 32, 0.08), 0 12px 28px rgba(31, 48, 32, 0.10);
  --radius-card: 14px;
  --radius-tile: 12px;
  --radius-input: 8px;
  --radius-pill: 999px;
  --max-width: 1240px;
  --gap-section: clamp(60px, 7vw, 96px);
  --gap-card: 16px;
  --bg-band: #F0F8E9;
  --bg-band-2: #E8F2DA;
  --tag-bg: #E6F2DF;
  --tag-ink: #1F5A27;
  --error: #8E2E2E;
  --warning: #B05D00;
  --focus-ring: 0 0 0 3px rgba(44, 122, 54, 0.35);
}

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

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

body {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover {
  color: var(--primary-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 0 8px 0;
  z-index: 9999;
}
.skip-link:focus {
  left: 0;
}

/* =========================================================
   Utility / typography
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: var(--gap-section) 0;
}

.section-tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section-band {
  background: var(--bg-band);
}

.section-band-2 {
  background: var(--bg-band-2);
}

.section-ink {
  background: var(--ink);
  color: #E8F2DA;
}

.section-ink h1,
.section-ink h2,
.section-ink h3,
.section-ink h4 {
  color: #fff;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-700);
  display: inline-block;
}

.eyebrow-accent {
  color: var(--accent-700);
}

.section-ink .eyebrow {
  color: #B7D9A0;
}

.headline-xl {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
}

.headline-lg {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
}

.headline-md {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.headline-sm {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.3;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 60ch;
}

.body-prose {
  max-width: 64ch;
  color: var(--text);
}

.body-prose p {
  margin: 0 0 16px;
}

.body-prose strong {
  color: var(--ink);
  font-weight: 700;
}

.body-prose ul,
.body-prose ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.body-prose li {
  margin: 0 0 8px;
}

.body-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body-prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-style: italic;
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

/* =========================================================
   Buttons + CTA
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-700);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(176, 93, 0, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--primary-700);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--primary-900);
  color: #fff;
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 28px;
  font-size: 17px;
  min-height: 54px;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   Tag / chip
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--tag-ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-accent {
  background: rgba(176, 93, 0, 0.12);
  color: var(--accent-700);
}

.tag-ink {
  background: rgba(31, 48, 32, 0.08);
  color: var(--ink);
}

.tag-live {
  background: rgba(142, 46, 46, 0.10);
  color: var(--error);
}

.tag-soft {
  background: var(--surface-2);
  color: var(--primary-700);
  font-weight: 600;
}

/* =========================================================
   Card primitives
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card-tight {
  padding: 18px;
}

.card-pad-lg {
  padding: 32px;
}

.card-band {
  background: var(--bg-band);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.tilt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.tilt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 16px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.tile-icon svg {
  display: block;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-tile .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-tile .stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* =========================================================
   Utility bar (top of page)
   ========================================================= */
.utility-bar {
  background: var(--ink);
  color: #D8E5D2;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #D8E5D2;
  text-decoration: none;
  margin-right: 18px;
  font-weight: 500;
}

.utility-bar a:last-child {
  margin-right: 0;
}

.utility-bar a:hover {
  color: #fff;
}

.utility-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #9DB69D;
}

.utility-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6FBF73;
  box-shadow: 0 0 0 4px rgba(111, 191, 115, 0.18);
}

/* =========================================================
   Primary masthead (header)
   ========================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 4px rgba(31, 90, 39, 0.25);
}

.brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

/* Desktop nav */
.primary-nav {
  display: none;
  gap: 4px;
  align-items: center;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover {
  background: var(--surface-2);
  color: var(--primary-700);
}

.primary-nav a.is-active {
  color: var(--primary-700);
  background: var(--surface-2);
}

.primary-nav a.is-cta {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
}

.primary-nav a.is-cta:hover {
  background: var(--accent-700);
  color: #fff;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: inline-flex;
  }
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 320;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

.header-cta .btn {
  padding: 10px 18px;
  min-height: 42px;
  font-size: 14px;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 280;
  padding: 96px 24px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer a {
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer a:hover {
  color: var(--primary-700);
}

.mobile-drawer .btn {
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 1024px) {
  .mobile-drawer {
    display: none !important;
  }
}

body.has-drawer-open {
  overflow: hidden;
}

/* =========================================================
   Score strip
   ========================================================= */
.score-strip {
  background: var(--ink);
  color: #E8F2DA;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.score-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.score-strip .container::-webkit-scrollbar {
  display: none;
}

.score-strip-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9DB69D;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.score-strip-label .live-dot {
  width: 7px;
  height: 7px;
  background: #6FBF73;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(111, 191, 115, 0.20);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.score-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-size: 14px;
  color: #D8E5D2;
  flex-shrink: 0;
}

.score-row .teams {
  font-weight: 700;
  color: #fff;
}

.score-row .state {
  font-size: 11px;
  font-weight: 700;
  color: #6FBF73;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.score-row .ovs {
  color: #9DB69D;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .score-strip-label .live-dot {
    animation: none;
  }
}

/* =========================================================
   Asymmetric lead (hero)
   ========================================================= */
.lead {
  background: var(--background);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}

.lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(44, 122, 54, 0.10), transparent 60%),
    radial-gradient(700px 420px at -8% 110%, rgba(176, 93, 0, 0.07), transparent 60%);
  pointer-events: none;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .lead-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
  }
}

.lead-eyebrow {
  margin-bottom: 18px;
}

.lead-headline {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 22ch;
}

.lead-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 28px;
}

.lead-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.lead-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.lead-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lead-trust .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* Cheat sheet rail */
.cheat-rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.cheat-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.cheat-rail-head h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cheat-rail-head .rail-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.cheat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.cheat-item:last-child {
  border-bottom: 0;
}

.cheat-visual {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cheat-text {
  flex: 1;
  min-width: 0;
}

.cheat-text strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.cheat-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.cheat-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: center;
}

@media (min-width: 768px) {
  .trust-strip .container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-cell .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-cell .text strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.trust-cell .text span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* =========================================================
   Section header
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.section-head .title-block {
  max-width: 60ch;
}

.section-head .see-all {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-head .see-all:hover {
  color: var(--primary-700);
}

/* =========================================================
   Card grids
   ========================================================= */
.card-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
}

@media (min-width: 700px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
}

@media (min-width: 700px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
}

@media (min-width: 800px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   Hub card (image-on-top)
   ========================================================= */
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

.hub-card .hub-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}

.hub-card .hub-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hub-card .hub-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.hub-card h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hub-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.hub-card .hub-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   Mascot timeline (explainer)
   ========================================================= */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.timeline-step {
  position: relative;
  padding: 22px 22px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .timeline-step {
    padding: 22px 24px;
  }

  .timeline-step::after {
    content: "";
    position: absolute;
    top: 32px;
    right: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
  }

  .timeline-step:last-child::after {
    display: none;
  }
}

.timeline-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.timeline-step h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 4px 0 0;
  color: var(--ink);
}

.timeline-step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   Tabbed evidence desk (signature)
   ========================================================= */
.desk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--bg-band);
}

.desk-tab {
  flex: 1 1 auto;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  min-width: 0;
}

.desk-tab:hover {
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.5);
}

.desk-tab.is-active {
  color: var(--primary-700);
  border-bottom-color: var(--primary);
  background: var(--surface);
}

.desk-tab .tab-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.desk-tab.is-active .tab-tag {
  color: var(--primary-700);
}

.desk-panels {
  padding: 28px;
}

.desk-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.desk-panel.is-active {
  display: grid;
}

@media (min-width: 900px) {
  .desk-panel.is-active {
    grid-template-columns: 1fr 1fr;
  }
}

.desk-panel h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.desk-panel p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

.desk-panel .panel-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.callout {
  background: var(--bg-band);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 14px;
}

.callout .callout-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.callout .callout-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   Mosaic (1+2 evidence gallery)
   ========================================================= */
.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .mosaic {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.mosaic-main {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.mosaic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mosaic-main .mosaic-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(31, 48, 32, 0.78) 0%, rgba(31, 48, 32, 0) 100%);
  color: #fff;
}

.mosaic-main .mosaic-caption h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.mosaic-main .mosaic-caption span {
  font-size: 13px;
  color: #E8F2DA;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mosaic-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .mosaic-side {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .mosaic-side {
    grid-template-columns: 1fr;
  }
}

.mosaic-tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.mosaic-tile .tile-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.mosaic-tile .tile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mosaic-tile .tile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.mosaic-tile .tile-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   Schedule list (match rows)
   ========================================================= */
.schedule {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

@media (min-width: 700px) {
  .schedule-row {
    grid-template-columns: 90px 1fr auto 120px;
    gap: 16px;
  }
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row .when {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-row .teams {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.schedule-row .teams .vs {
  font-weight: 600;
  color: var(--muted);
  margin: 0 8px;
  font-size: 13px;
}

.schedule-row .state {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.schedule-row .state-live {
  color: var(--error);
}

.schedule-row .state-up {
  color: var(--primary);
}

.schedule-row .state-done {
  color: var(--muted);
}

.schedule-row .row-cta {
  text-align: right;
}

.schedule-row .row-cta .btn {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  transition: background 160ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--bg-band);
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .answer {
  padding: 0 22px 20px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}

.faq-item .answer p {
  margin: 0 0 12px;
}

.faq-item .answer p:last-child {
  margin: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #B7C9B0;
  padding: 64px 0 32px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 800px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: #B7C9B0;
  text-decoration: none;
  font-size: 14.5px;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-brand-text {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 38ch;
  color: #B7C9B0;
}

.site-footer .footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #9DB69D;
}

.site-footer .footer-meta a {
  color: #9DB69D;
}

.site-footer .footer-meta a:hover {
  color: #fff;
}

.site-footer .responsible-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer .responsible-play:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.app-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-stores a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.app-stores a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-stores a span {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-stores a span .tag {
  font-size: 10px;
  color: #9DB69D;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.app-stores a span strong {
  font-size: 14px;
  color: #fff;
}

/* =========================================================
   Mobile sticky CTA
   ========================================================= */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: block;
}

@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.mobile-sticky-cta .btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

/* =========================================================
   Generic content sidebar
   ========================================================= */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.toc h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 800;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  color: var(--primary);
  font-weight: 800;
  min-width: 22px;
}

.toc a:hover {
  color: var(--primary-700);
  background: var(--bg-band);
  padding-left: 8px;
  margin-left: -8px;
  margin-right: -8px;
  padding-right: 8px;
  border-radius: 6px;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
  }
}

.article-hero {
  margin-bottom: 32px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-hero .article-hero-meta {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.article-hero .article-hero-meta strong {
  color: var(--ink);
}

.callout-quote {
  background: var(--bg-band);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 28px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.callout-quote .qmark {
  font-size: 64px;
  line-height: 0.6;
  color: var(--primary);
  font-weight: 800;
  font-family: 'Manrope', serif;
  flex-shrink: 0;
}

.callout-quote .qbody {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
  font-style: italic;
}

.callout-quote .qattrib {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  margin-top: 8px;
}

/* Related */
.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   Forms
   ========================================================= */
.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.form .helper {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   Pill nav (tabbed sub-nav)
   ========================================================= */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill-nav .pill {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.pill-nav .pill:hover {
  background: var(--surface-2);
  color: var(--primary-700);
  border-color: var(--border-strong);
}

.pill-nav .pill.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   Misc
   ========================================================= */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--ink);
}

.notice {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.notice strong {
  color: var(--ink);
}

.notice-warn {
  border-left-color: var(--accent);
  background: rgba(176, 93, 0, 0.06);
}

.notice-info {
  border-left-color: var(--primary);
}

.compliance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--ink);
  color: #B7C9B0;
  border-radius: 8px;
  font-size: 13px;
  margin: 24px 0;
}

.compliance strong {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-700);
}

.breadcrumb .sep {
  color: var(--border-strong);
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 700;
}

/* =========================================================
   Responsive utilities
   ========================================================= */
.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: initial;
  }
}

.show-mobile {
  display: initial;
}

@media (min-width: 1024px) {
  .show-mobile {
    display: none;
  }
}

/* =========================================================
   Mobile-specific fixes
   ========================================================= */
@media (max-width: 1023px) {
  .desk-panels {
    padding: 20px;
  }
  .desk-tab {
    padding: 14px 14px;
    font-size: 13.5px;
  }
  .lead {
    padding-top: 48px;
  }
  .lead-cta .btn {
    flex: 1 1 auto;
  }
}

/* Make sure scroll-margin is set for anchor links */
section[id],
.article h2[id],
.article h3[id] {
  scroll-margin-top: 88px;
}

/* Grid track safety for desktop grid columns containing media */
@media (min-width: 1024px) {
  .lead-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

/* Prevent text wrap-breaking inside CTAs */
.btn,
.tag,
.eyebrow,
.desk-tab,
.pill-nav .pill {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* High-contrast focus on inputs */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Print cleanup */
@media print {
  .utility-bar,
  .mobile-sticky-cta,
  .masthead,
  .site-footer {
    display: none;
  }
}
