/* CricMint website — mobile-first, premium static site.
   Colours are the app's own theme (lib/theme/app_theme.dart):
   primary orange #EA580C, bright #F97316, dark #C2410C,
   pale #FED7AA, pale bg #FFE7D6, navy #263E88 (logo blue). */

:root {
  --orange: #EA580C;
  --orange-bright: #F97316;
  --orange-dark: #C2410C;
  --orange-light: #FB923C;
  --pale: #FED7AA;
  --pale-bg: #FFE7D6;
  --soft: #FFF7F0;
  --navy: #263E88;
  --navy-dark: #1B2E66;
  --ink: #16181D;
  --muted: #5B6470;
  --line: #EAE3D9;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(38, 62, 136, 0.12);
  --shadow-sm: 0 4px 14px rgba(38, 62, 136, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange-dark);
  background: var(--pale-bg);
  border: 1px solid var(--pale);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section { padding: 64px 0; scroll-margin-top: 64px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 38px; height: auto; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; flex: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px;
}
.site-nav.open { display: block; }
.site-nav a {
  display: block; padding: 12px 4px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover { color: var(--orange-dark); }
.btn.header-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; box-shadow: none; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(720px 420px at 85% -10%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(560px 380px at -10% 110%, rgba(38, 62, 136, 0.10), transparent 60%),
    var(--soft);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 11vw, 48px); white-space: nowrap; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
/* v2.5: heading + scorecard live in the right column — the h1 top
   aligns with the left logo card top (grid align-items: start),
   "How a live match looks" + scorecard directly below the h1. */
.hero-looks { font-size: 18px; color: var(--navy); margin: 0 0 12px; text-align: left; }
.hero-scorecard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 24px 20px;
  width: 100%; max-width: 360px;
  text-align: left;
}
.hero-copy .hero-scorecard { margin-bottom: 20px; }
.hero-score-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.hero-score-head img { width: 26px; height: auto; }
.hero-score-brand { font-size: 17px; font-weight: 800; color: var(--navy); }
.hero-score-head .live-pill { margin: 0 0 0 auto; }
.hero-scorecard h3 { font-size: 19px; margin-bottom: 6px; }
.hero-scorecard .match-meta { margin-bottom: 6px; }
.logo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  text-align: center;
  width: 100%; max-width: 360px;
  position: relative;
}
.logo-card::before {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 20px;
  background: radial-gradient(220px 220px at 50% 42%, rgba(249, 115, 22, 0.14), transparent 70%);
  pointer-events: none;
}
.logo-card img { width: 200px; margin: 0 auto 16px; position: relative; }
.logo-card .logo-word { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo-card .logo-tag { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.logo-card .live-dot {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--orange-dark);
  background: var(--pale-bg); border: 1px solid var(--pale);
  padding: 6px 12px; border-radius: 999px; position: relative;
}
.logo-card .live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); display: inline-block;
}

/* ---------- Features ---------- */
.features-grid { display: grid; gap: 16px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--pale-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--orange-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 19px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Live ---------- */
.live-section { background: var(--navy); color: var(--white); }
.live-section .section-head h2 { color: var(--white); }
.live-section .section-head p { color: rgba(255, 255, 255, 0.75); }
.live-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.live-card .live-empty {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.live-card .live-empty svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-card h3 { font-size: 22px; color: var(--white); }
.live-card p { color: rgba(255, 255, 255, 0.75); max-width: 520px; margin: 0 auto 8px; }
.live-card .live-hint { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin: 0; }

/* ---------- Download ---------- */
.download-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 55%, var(--orange-light) 100%);
  border-radius: 24px;
  padding: 40px 28px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.30);
}
.download-band h2 { font-size: 30px; color: var(--white); }
.download-band p { color: rgba(255, 255, 255, 0.88); max-width: 520px; margin: 0 auto 24px; }
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  border-radius: 14px; padding: 12px 20px;
  text-decoration: none; text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.play-badge svg { width: 36px; height: 36px; flex: none; }
.play-badge .pb-small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.play-badge .pb-big { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.download-note { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.85); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-tile {
  background: var(--white); border-radius: 12px;
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
}
.footer-brand .brand-tile img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand .brand-name { color: var(--white); font-size: 22px; }
.site-footer p { font-size: 15px; color: rgba(255, 255, 255, 0.70); margin: 0 0 8px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin: 0 0 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.80); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 40px; padding-top: 20px;
  font-size: 14px; color: rgba(255, 255, 255, 0.55);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Privacy page ---------- */
.policy { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.policy .policy-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pale-bg); border: 1px solid var(--pale);
  color: var(--orange-dark); font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.policy .policy-badge img { width: 20px; height: auto; }
.policy h1 { font-size: 34px; }
.policy h2 { font-size: 21px; margin: 32px 0 8px; }
.policy p, .policy li { font-size: 16px; }
.policy .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- Tablet: 640px and up ---------- */
@media (min-width: 640px) {
  .section { padding: 80px 0; }
  .hero h1 { font-size: 54px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .download-band { padding: 48px 40px; }
}

/* ---------- Desktop: 1024px and up ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static;
    border: 0; padding: 0; margin-left: auto; gap: 4px;
  }
  .site-nav a { border: 0; padding: 8px 14px; font-size: 15px; }
  .btn.header-cta { display: inline-flex; margin-left: 12px; padding: 10px 20px; font-size: 15px; flex: none; }
  .hero { padding: 88px 0 16px; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
  /* v2.9: the whole "How a live match looks" + scorecard block sits
     in the right corner, its bottom just above the blue live section. */
  .hero-copy .hero-looks { margin: 24px 0 12px 0; text-align: right; }
  .hero-copy .hero-scorecard { margin-left: auto; margin-bottom: 0; }
  .hero h1 { font-size: 64px; }
  .hero-sub { font-size: 19px; }
  .features-grid { grid-template-columns: 1fr 1fr 1fr; }
  .section-head h2 { font-size: 36px; }
  .download-band h2 { font-size: 36px; }
}

/* ---------- v2: hero heading, one line, full phone width ---------- */
/* The h1 never wraps (white-space: nowrap in the base rule above). On
   phones the hero text column bleeds to the viewport edge so the heading
   stretches past the eyebrow capsule to the right edge. */
@media (max-width: 639px) {
  /* v2.10: the -20px bleed lives on the h1 only, so the heading still
     stretches to the right edge — the column itself stays put, and the
     "How a live match looks" card centres on the phone instead of
     running off to the right. */
  .hero h1 { margin-right: -20px; }
  .hero-copy .hero-looks { text-align: center; }
  .hero-copy .hero-scorecard { margin-left: auto; margin-right: auto; }
}

/* ---------- v2: live map + match cards ---------- */
.live-layout { display: grid; gap: 20px; }
.live-col { display: grid; gap: 16px; align-content: start; }
.map-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #E8EEF7;
}
.live-section .map-wrap { border-color: rgba(255, 255, 255, 0.25); }
.map-canvas { height: 420px; width: 100%; position: relative; z-index: 0; background: #E8EEF7; }
/* v2.2: pinch-to-zoom must zoom the MAP, not the page. The mapping
   library's pinch handling needs touch-action: none on the map
   container, which used to come only from the library's own
   stylesheet (two runtime-added classes) — if that stylesheet is
   slow or blocked, the browser keeps the pinch and zooms the whole
   page instead. Set it in our own first-party stylesheet so the
   map always owns two-finger gestures. */
.map-canvas { touch-action: none; }
.map-canvas-tall { height: 480px; }
/* v2.2: one-tap Map / Satellite switch — a small box in the
   top-right corner of the map showing a thumbnail of the OTHER
   view with its name below it. One tap switches immediately. */
.map-toggle {
  display: block; width: 72px; padding: 0; margin: 0;
  background: var(--white); border: 2px solid var(--white);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); text-align: center;
}
.map-toggle-thumb {
  display: block; height: 44px;
  background-color: #E8EEF7; background-size: cover; background-position: center;
}
.map-toggle-label {
  display: block; padding: 3px 0 4px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  font-family: var(--font); line-height: 1.2;
}
.map-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* v2.11: "Show my location" button (location symbol) under the
   +/- zoom buttons, plus the blinking blue dot marking where you are. */
.map-locate {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; margin: 0;
  background: var(--white); border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px; cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.map-locate svg { display: block; }
/* v2.12: compact controls on the small demo maps only — same right
   corners, smaller buttons, so nothing clashes on a 200px map. */
.map-compact .map-toggle { width: 56px; }
.map-compact .map-toggle-thumb { height: 32px; }
.map-compact .map-toggle-label { font-size: 10px; padding: 2px 0 3px; }
.map-compact.leaflet-container .leaflet-bar a { width: 26px; height: 26px; line-height: 26px; }
.map-compact .map-locate { width: 26px; height: 26px; }
.map-compact .map-locate svg { width: 16px; height: 16px; }
.map-locate:hover { background: #f4f4f4; }
.map-locate:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.user-locate-icon { background: none; border: 0; }
.user-dot {
  display: block; width: 14px; height: 14px; margin: 2px;
  border-radius: 50%; background: #1A73E8; border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.35); position: relative;
}
.user-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(26, 115, 232, 0.55);
  animation: user-dot-pulse 2s ease-out infinite;
}
@keyframes user-dot-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}
/* v2.1: map credit — required by the tile licences (OpenStreetMap
   ODbL, Esri), so it stays, but as small and tidy as possible:
   tiny grey text, one line, pinned firmly in the bottom-right
   corner of the map, almost no background. 8px is the floor —
   any smaller and the credit stops being legible. */
.leaflet-control-attribution {
  font-size: 8px !important;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.35) !important;
  padding: 0 3px;
  margin: 0;
  box-shadow: none !important;
  white-space: nowrap;
}
.leaflet-control-attribution a { color: rgba(0, 0, 0, 0.4); }
.map-fallback { padding: 24px; color: var(--muted); font-size: 15px; margin: 0; }
.leaflet-div-icon.map-pin-wrap { background: transparent; border: 0; }
/* Live-match pin: a small red map-pin (teardrop) with a white
   cricket bat, and a small blinking red dot in a white ring at
   the top-right corner. The pin itself is 26px; it sits inside
   the 44px icon box (see script.js) so it stays easy to tap. */
.map-pin {
  display: block; width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #B3261E; border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  position: absolute; left: 9px; top: 5px;
}
.map-pin svg {
  position: absolute; left: 50%; top: 50%; width: 15px; height: 15px;
  transform: translate(-50%, -50%) rotate(45deg); fill: #fff;
}
.map-pin-live-dot {
  position: absolute; top: 2px; right: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff;
}
.map-pin-live-dot::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 6px; height: 6px; border-radius: 50%; background: #B3261E;
  animation: pin-blink 1.2s infinite;
}
@keyframes pin-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.live-list { display: grid; gap: 16px; align-content: start; }
.match-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.match-card.active { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.live-pill {
  display: inline-block; background: #B3261E; color: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.match-card h3 { font-size: 19px; margin-bottom: 4px; }
.match-card h3 a { color: var(--ink); text-decoration: none; }
.match-card h3 a:hover { color: var(--orange-dark); text-decoration: underline; }
.match-score { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.match-score span { color: var(--muted); font-weight: 600; }
.match-meta { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.match-link { font-size: 15px; font-weight: 700; }
.live-section .match-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.live-section .match-card h3 a, .live-section .match-score { color: var(--white); }
.live-section .match-card .match-score span { color: rgba(255, 255, 255, 0.75); }
.live-section .match-card .match-meta { color: rgba(255, 255, 255, 0.75); }
.live-section .match-link { color: var(--white); }
.live-more { margin-top: 24px; }
.live-more a { color: var(--white); font-weight: 700; }
.live-note { color: var(--muted); font-size: 15px; margin-top: 24px; }
.empty-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.empty-card h3 { font-size: 20px; }
.empty-card p { color: var(--muted); margin: 0 auto; max-width: 520px; }
.live-section .empty-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.live-section .empty-card h3 { color: var(--white); }
.live-section .empty-card p { color: rgba(255, 255, 255, 0.75); }

/* ---------- v2.3: preview — how a live match looks ----------
   Sits in the list column, just below "No live matches right
   now", up to the map's height: a small India map plus a match
   card that opens the full scorecard. */
.preview-block[hidden] { display: none; }
.preview-block h3 { font-size: 19px; margin-bottom: 6px; }
.preview-block > p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.preview-block .map-wrap { margin-bottom: 4px; }
.map-canvas.preview-map { height: 200px; }
.live-section .preview-block h3 { color: var(--white); }
.live-section .preview-block > p { color: rgba(255, 255, 255, 0.75); }

/* ---------- v2: grounds ---------- */
.grounds-grid { display: grid; gap: 16px; }
.ground-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.ground-card h3 { font-size: 19px; margin-bottom: 4px; }
.ground-place { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.ground-type {
  display: inline-block; background: var(--pale-bg); border: 1px solid var(--pale);
  color: var(--orange-dark); font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.ground-matches { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.page-note { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* ---------- v2: narrow pages (FAQ, contact, about, match) ---------- */
.page-narrow { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.page-narrow h1 { font-size: 34px; }
.page-narrow > p.lede { font-size: 18px; color: var(--muted); }
.faq-list { display: grid; gap: 12px; margin-top: 32px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--white); }
.faq-list summary { font-size: 17px; font-weight: 700; cursor: pointer; }
.faq-list summary::-webkit-details-marker { color: var(--orange-dark); }
.faq-list p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.faq-more { margin-top: 32px; }
.contact-grid { display: grid; gap: 16px; margin-top: 32px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.contact-card h2 { font-size: 20px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.about-body p { font-size: 17px; }
.about-sign { font-weight: 700; color: var(--navy); margin-top: 32px; }

/* ---------- v2: match page ---------- */
.match-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.match-head h1 { font-size: 30px; }
.match-head .match-score { font-size: 20px; }
.match-video {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 24px; background: var(--ink);
}
.match-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.match-page h2 { font-size: 21px; margin: 32px 0 12px; }
.score-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.score-table th, .score-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.score-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.score-table td.num, .score-table th.num { text-align: right; }
.balls-list { list-style: none; margin: 0; padding: 0; }
.balls-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.balls-list li:last-child { border-bottom: 0; }
.balls-list .ball-over { font-weight: 700; color: var(--orange-dark); margin-right: 8px; }
.share-box { display: flex; gap: 10px; margin-top: 12px; }
.share-box input {
  flex: 1; min-width: 0; font-family: var(--font); font-size: 14px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink);
}
.share-box .btn { padding: 12px 18px; font-size: 15px; }
.share-note { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- v2: tablet and desktop placements ---------- */
@media (min-width: 640px) {
  .grounds-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map-canvas { height: 460px; }
  .map-canvas-tall { height: 520px; }
  .map-canvas.preview-map { height: 240px; }
}
@media (min-width: 1024px) {
  /* Live: side by side — list left, map right ~60% (right-side
     rule: the main interactive thing, the map, goes on the right).
     The DOM order stays map-first so that on mobile the map stays
     on top of the list. */
  .live-layout { grid-template-columns: 2fr 3fr; align-items: start; }
  .live-layout .map-wrap { grid-column: 2; grid-row: 1; }
  .live-layout .live-col { grid-column: 1; grid-row: 1; }
  .map-canvas { height: 520px; }
  .map-canvas-tall { height: 560px; }
  .match-head h1 { font-size: 36px; }
}
