/* 11XPlay — Grass Field minimal-authority theme */

:root {
  --primary: #2C7A36;
  --primary-ink: #1F3020;
  --accent: #B05D00;
  --background: #F6FBF3;
  --surface: #FFFFFF;
  --surface-2: #E6F2DF;
  --text: #1F3020;
  --muted: #5C705D;
  --border: #CBE0C4;
  --border-strong: #6F9D7A;
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 0 rgba(31,48,32,0.05), 0 2px 8px rgba(31,48,32,0.05);
  --shadow-pop: 0 2px 0 rgba(31,48,32,0.06), 0 12px 32px rgba(31,48,32,0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Roboto, "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 {
  font-family: Roboto, "Noto Sans Devanagari", system-ui, sans-serif;
  color: var(--primary-ink);
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.18;
}
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 22px; margin: 0 0 1em; }
li { margin-bottom: 6px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section.wide { padding: 72px 0; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 251, 243, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--primary-ink);
}
.brand-mark {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  background: var(--primary); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  font-family: Roboto, sans-serif;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-tag { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-desktop {
  display: none; align-items: center; gap: 6px;
}
.nav-desktop a {
  color: var(--primary-ink); padding: 8px 12px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 14.5px;
}
.nav-desktop a:hover { background: var(--surface-2); text-decoration: none; }
.nav-desktop a.is-cta {
  background: var(--accent); color: #fff;
}
.nav-desktop a.is-cta:hover { background: #8E4900; }

@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}

/* Hamburger */
.hamburger {
  display: inline-flex; flex-direction: column;
  justify-content: space-between; width: 26px; height: 20px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--primary-ink); border-radius: 2px;
}

/* Drawer */
.drawer {
  position: fixed; inset: 0 0 0 0; z-index: 250;
  background: rgba(31,48,32,0.55);
  opacity: 0; pointer-events: none;
  overflow-x: hidden;
  transition: opacity 0.18s ease;
  display: none;
}
.drawer.is-open {
  opacity: 1; pointer-events: auto;
  display: block;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  max-width: calc(100vw - 24px);
  background: var(--surface); padding: 22px;
  transform: translateX(100%); transition: transform 0.24s ease;
  overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-close {
  background: transparent; border: 0; font-size: 28px; line-height: 1;
  position: absolute; top: 14px; right: 14px; cursor: pointer;
  color: var(--primary-ink);
}
.drawer-list { list-style: none; padding: 50px 4px 18px; margin: 0; }
.drawer-list li { margin: 0; }
.drawer-list a {
  display: block; padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--primary-ink); font-weight: 500;
}
.drawer-cta {
  display: block; margin-top: 22px; text-align: center;
  background: var(--accent); color: #fff;
  padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px;
  border-radius: var(--radius-sm); font-weight: 700;
  font-size: 15px; line-height: 1; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #8E4900; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--primary-ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-dark {
  background: var(--primary-ink); color: #fff;
}
.btn-dark:hover { background: #000; text-decoration: none; }

/* ----- Hero split scoreboard ----- */
.hero-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero {
  display: grid; gap: 28px;
  padding: 44px 0 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 7fr 5fr; padding: 56px 0 64px; gap: 40px; align-items: center; }
}
.hero-eyebrow {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700;
}
.hero h1 { margin-top: 12px; margin-bottom: 14px; }
.hero-lede { color: var(--muted); font-size: 17px; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.scoreboard {
  background: var(--primary-ink); color: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-pop);
}
.scoreboard-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #B7C9B0;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.scoreboard-meta .live {
  display: inline-flex; align-items: center; gap: 6px;
  background: #E54B4B; padding: 3px 10px;
  border-radius: 999px; color: #fff; font-weight: 700;
}
.scoreboard-meta .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.scoreboard-fixture {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.scoreboard-fixture:first-of-type { border-top: 0; }
.scoreboard-team { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.scoreboard-flag {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--surface-2); color: var(--primary-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 11px;
}
.scoreboard-vs { font-size: 11px; color: #97A990; letter-spacing: 0.08em; }
.scoreboard-time { font-size: 13px; color: #C2D2BD; }

/* ----- Trust strip ----- */
.trust-strip {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.trust-strip .row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 18px 0; font-size: 13.5px; color: var(--primary-ink);
  text-align: center;
}
@media (min-width: 700px) {
  .trust-strip .row { grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: left; }
}
.trust-strip p { margin: 0; }

/* ----- Section heading ----- */
.sec-head { margin-bottom: 26px; max-width: 720px; }
.sec-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--primary);
  margin-bottom: 8px;
}

/* ----- Match digest ----- */
.digest-grid {
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .digest-grid { grid-template-columns: 5fr 7fr; }
}
.digest-feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
  box-shadow: var(--shadow-soft);
}
.digest-feature h3 { margin-bottom: 4px; }
.digest-feature .meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.digest-feature ul { padding-left: 18px; }
.digest-list { display: grid; gap: 10px; }
.digest-list .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.digest-list .teams { font-weight: 600; color: var(--primary-ink); font-size: 15px; }
.digest-list .when { font-size: 12.5px; color: var(--muted); }

/* ----- Bento topic matrix ----- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 1fr; }
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex; flex-direction: column;
  min-height: 200px;
}
.tile.tall { grid-row: span 2; }
.tile h3 { font-size: 22px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 14.5px; }
.tile .tile-link { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: 14px; }
.tile-image {
  height: 140px; background: var(--surface-2);
  border-radius: var(--radius-sm); margin-bottom: 14px;
  background-position: center; background-size: cover;
  position: relative; overflow: hidden;
}
.tile-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.30));
}
.tile-bar {
  display: flex; gap: 6px; align-items: baseline; margin: 8px 0;
}
.tile-bar .num { font-size: 32px; font-weight: 700; color: var(--primary-ink); }
.tile-bar .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.10em; }

/* ----- Prediction accordion ----- */
.pred-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .pred-grid { grid-template-columns: 1fr 1fr; } }
.pred-grid details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.pred-grid summary {
  list-style: none; cursor: pointer;
  font-weight: 600; color: var(--primary-ink);
  display: flex; justify-content: space-between; align-items: center;
}
.pred-grid summary::-webkit-details-marker { display: none; }
.pred-grid details[open] { box-shadow: var(--shadow-soft); }
.pred-grid details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ----- Typographic data poster ----- */
.data-poster {
  background: var(--primary);
  color: #fff; border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
}
.data-poster .big {
  font-size: clamp(80px, 14vw, 156px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.04em; color: #fff;
  margin: 0;
}
.data-poster .label { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: #CDE6C8; margin-bottom: 8px; }
.data-poster .line { width: 64px; height: 2px; background: var(--accent); margin: 16px auto; }
.data-poster .copy { max-width: 520px; margin: 6px auto 22px; color: #DCEDD6; font-size: 16px; }

/* ----- Step rail ----- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px; position: relative;
}
.step .n {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--primary-ink); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); }

/* ----- Wide banner ----- */
.banner {
  position: relative; overflow: hidden;
  background: var(--primary-ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  min-height: 320px;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .banner { grid-template-columns: 1fr 1fr; min-height: 360px; }
}
.banner-img {
  min-height: 240px;
  background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, rgba(31,48,32,0.4), rgba(31,48,32,0.05)), url('/assets/img/cricket/tournament-ipl-cover.webp?v=20260729');
  background-color: #2C5A36;
}
.banner-body { padding: 36px; align-self: center; }
.banner-body h2 { color: #fff; }
.banner-body p { color: #C2D2BD; max-width: 50ch; }

/* ----- Contest type mosaic ----- */
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
.mosaic .tile { padding: 18px; min-height: 0; }
.mosaic .tile h4 { margin-bottom: 6px; }
.mosaic .tile p { font-size: 13.5px; margin-bottom: 0; }
.mosaic .ico {
  width: 38px; height: 38px;
  background: var(--surface-2); color: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  margin-bottom: 12px;
}

/* ----- Photo essay portraits ----- */
.portrait {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .portrait { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .portrait { grid-template-columns: repeat(3, 1fr); } }
.portrait .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.portrait .card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--surface-2); }
.portrait .card .meta { padding: 14px 16px; }
.portrait .card h3 { font-size: 17px; margin-bottom: 4px; }
.portrait .card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ----- Responsible play ----- */
.respons {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.respons p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ----- Checklist + table ----- */
.method-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .method-grid { grid-template-columns: 1fr 1fr; } }
.method-list { padding-left: 22px; }
.method-list li { margin-bottom: 12px; color: var(--primary-ink); }
.method-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.method-table th, .method-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.method-table th {
  background: var(--surface-2); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.method-table tr:last-child td { border-bottom: 0; }

/* ----- News roster ----- */
.news-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .news-grid { grid-template-columns: repeat(4, 1fr); } }
.news-grid .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.news-grid .card .img { aspect-ratio: 16/10; background: var(--surface-2); background-size: cover; background-position: center; }
.news-grid .card .meta { padding: 14px 16px; }
.news-grid .card .tag { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.news-grid .card h3 { font-size: 16px; margin: 8px 0 6px; line-height: 1.3; }
.news-grid .card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ----- FAQ two-col ----- */
.faq-2col {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 880px) { .faq-2col { grid-template-columns: 1fr 1fr; gap: 28px; } }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary-ink); }
.faq-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ----- Colophon ----- */
.colophon {
  background: var(--primary-ink); color: #C2D2BD;
  padding: 36px 0; font-size: 13px;
}
.colophon .row {
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 880px) { .colophon .row { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; } }
.colophon a { color: #fff; }
.colophon h4 { color: #fff; font-size: 13px; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 12px; }
.colophon p { margin: 6px 0; }

/* ----- Mobile sticky CTA ----- */
.sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  .sticky-cta {
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    z-index: 150;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .sticky-cta a {
    display: block; width: 100%;
    text-align: center;
    padding: 14px; font-weight: 800;
  }
  body { padding-bottom: 78px; }
  .site-main { padding-bottom: 4px; }
}

/* ----- Article body ----- */
.article {
  max-width: 720px; margin: 0 auto;
  font-size: 17.5px; line-height: 1.75;
}
.article h2 { margin-top: 36px; }
.article h3 { margin-top: 28px; }
.article .lede { font-size: 19px; color: var(--muted); margin-bottom: 22px; }
.article .toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 20px 0 30px;
  font-size: 14.5px;
}
.article .toc strong { display: block; margin-bottom: 8px; }
.article figure { margin: 24px 0; }
.article figure img { border-radius: var(--radius-md); }
.article figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ----- Sidebar nav for legal/care pages ----- */
.crumb {
  font-size: 13px; color: var(--muted); margin: 14px 0;
}
.crumb a { color: var(--muted); }
.callout {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin: 20px 0;
}
.callout p { margin: 0; font-size: 14.5px; }

/* ----- Skip link, a11y ----- */
.skip {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  -webkit-clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  background: var(--primary-ink); color: #fff;
  z-index: 999;
  white-space: nowrap;
}
.skip:focus {
  left: 14px; top: 14px;
  width: auto; height: auto;
  padding: 10px 14px; margin: 0;
  clip-path: none;
  -webkit-clip-path: none;
  clip: auto;
  overflow: visible;
}

/* section anchor scroll-margin */
section[id], h1[id], h2[id] { scroll-margin-top: 86px; }
