/* Playfield Review — base styles
   Plain CSS, no framework. Mobile-first. */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #0F1B2D;
  --muted: #5B6779;
  --accent: #0B7A5A;
  --accent-dark: #075C43;
  --accent-2: #F2B134;
  --line: #E3E7EE;
  --warn: #B42318;
  --radius: 8px;
  --container: 1200px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Age / responsible banner ---------- */
.age-bar {
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 16px;
}
.age-bar strong { color: var(--accent-2); }
.age-bar a { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-block; width: 28px; height: 28px;
  background: var(--accent); border-radius: 6px; position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 8px 6px;
  border: 2px solid #fff; border-radius: 3px;
}
.logo-mark::before {
  content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px;
  width: 2px; background: #fff; transform: translateX(-50%);
}

.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; cursor: pointer; font: inherit; color: var(--text);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.site-nav li a {
  display: block; padding: 10px 0; color: var(--text); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav li a[aria-current="page"] { color: var(--accent); }

.search-form { display: flex; gap: 8px; padding-top: 12px; }
.search-form input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.btn {
  display: inline-block; padding: 8px 14px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 600; border: 0; cursor: pointer; font: inherit;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }

@media (min-width: 900px) {
  .site-header .container { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 24px; width: auto; }
  .site-nav ul { display: flex; gap: 20px; padding: 0; }
  .site-nav li a { border: 0; padding: 20px 0; }
  .search-form { padding: 0; }
  .search-form input { width: 180px; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: 0.9rem; overflow: hidden;
}
.ticker .container { display: flex; gap: 16px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.ticker-label {
  font-family: var(--font-head); text-transform: uppercase; font-weight: 700;
  color: var(--accent); white-space: nowrap; letter-spacing: 0.05em;
}
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; overflow-x: auto; white-space: nowrap; }
.ticker li a { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.hero-grid { display: grid; gap: 24px; }
.hero h1 { margin-bottom: 12px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-weight: 600; background: var(--bg);
}
.hero-links a:hover { border-color: var(--accent); text-decoration: none; }
.hero-links .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

@media (min-width: 900px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

/* ---------- Trust box ---------- */
.trust {
  background: #EEF6F2; border: 1px solid #CFE6DC; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px;
}
.trust h3 { margin-bottom: 6px; }
.trust p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections and cards ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(15, 27, 45, 0.08); }
.card-media {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #DCE7E1, #BFD6CB);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark); font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase;
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card h3 a { color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; color: var(--accent); background: #E6F3EE; padding: 2px 8px; border-radius: 4px;
}
.tag-opinion { color: #7A4A00; background: #FDF1D8; }

.card-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .card-featured { flex-direction: row; }
  .card-featured .card-media { flex: 1.3; aspect-ratio: auto; min-height: 300px; }
  .card-featured .card-body { flex: 1; padding: 28px; justify-content: center; }
  .card-featured h3 { font-size: 1.9rem; }
}

/* List columns (Regulation / Business / Sports) */
.list-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.list-col h3 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.list-col ul { list-style: none; margin: 0; padding: 0; }
.list-col li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-col li:last-child { border-bottom: 0; }
.list-col li a { color: var(--text); font-weight: 600; }
.list-col li time { display: block; font-size: 0.8rem; color: var(--muted); }

/* Fixtures table */
.fixtures { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.fixtures th, .fixtures td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.fixtures th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; background: var(--bg); }
.fixtures tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Article ---------- */
.article-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); } }

.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 640px) { .article { padding: 40px; } }
.article-header { margin-bottom: 24px; }
.article-header .tags { display: flex; gap: 8px; margin-bottom: 12px; }
.article-header .byline { color: var(--muted); font-size: 0.9rem; display: flex; gap: 12px; flex-wrap: wrap; }
.article-header .dek { font-size: 1.15rem; color: var(--muted); }
.article-cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--radius); background: linear-gradient(135deg, #DCE7E1, #BFD6CB); margin: 0 0 24px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.article-body { font-size: 1.05rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body th { background: var(--bg); }
.article-body blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--accent-2); background: #FFF8E8; }

.notice {
  border-radius: var(--radius); padding: 12px 16px; font-size: 0.95rem; margin: 1.5em 0;
  background: #FFF4E5; border: 1px solid #F8D9A8; color: #5C3A00;
}
.notice-danger { background: #FDECEA; border-color: #F3B9B3; color: #7A1B12; }

.corrections { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

.sidebar > * + * { margin-top: 24px; }
.ad-slot {
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
  min-height: 250px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.ad-slot-banner { min-height: 90px; margin: 24px 0; }

/* Page (legal / about) */
.page { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 640px) { .page { padding: 40px 48px; } }
.page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.page h2 { margin-top: 1.8em; font-size: 1.5rem; }
.page h3 { margin-top: 1.4em; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--bg); }
.page ul, .page ol { padding-left: 1.3em; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin: 20px 0; }
.breadcrumbs ol { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

.page-head { padding: 32px 0 8px; }
.page-head p { color: var(--muted); max-width: 60ch; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); }
.pagination [aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(4rem, 15vw, 8rem); color: var(--accent); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #CBD3DF; margin-top: 48px; padding: 48px 0 24px; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 42ch; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.82rem; color: #9AA6B8; }
.footer-legal p { margin: 0 0 6px; }
.footer-rg { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 12px 16px; margin-top: 24px; }
.footer-rg strong { color: var(--accent-2); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15,27,45,0.18); padding: 16px;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 8px; }
@media (min-width: 900px) { .cookie-banner { left: auto; max-width: 720px; } }

/* Utilities */
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; }
