/* ============================================================
   WorldCupSchedule.us.Com — main stylesheet
   Palette: white bg, navy headers, gold accents, light-gray rows
   ============================================================ */

:root {
  --navy: #0b1f3a;
  --navy-2: #12305c;
  --navy-soft: #1c3b6b;
  --gold: #f5b21d;
  --gold-deep: #d8990a;
  --ink: #16202e;
  --muted: #5a6b80;
  --line: #e2e8f0;
  --row: #f4f6f9;
  --row-alt: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --green: #1f9d55;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 1px 3px rgba(11,31,58,.08);
  --shadow-md: 0 4px 14px rgba(11,31,58,.10);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --content: 800px;
  --sidebar: 200px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold-deep); text-decoration: underline; }

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin-top: 1.6em; }
h3 { font-size: 1.18rem; margin-top: 1.3em; }
p { margin: 0 0 1em; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy); padding: 10px 16px;
  z-index: 999; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.18rem;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand .ball {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 1.1rem;
}
.brand .dot { color: var(--gold); }

.nav-toggle {
  display: none; background: transparent; border: 2px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem;
}

.main-nav ul {
  list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap;
}
.main-nav a {
  color: #e7eefc; padding: 8px 12px; border-radius: 8px; font-size: .94rem; font-weight: 600;
  display: block;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* ---------- Layout grid ---------- */
.layout {
  max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: 32px;
  align-items: start;
}
.content { min-width: 0; max-width: var(--content); }
.content-wide { max-width: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li:last-child { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-soft) 100%);
  color: #fff; border-radius: var(--radius); padding: 40px 32px; margin-bottom: 28px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,178,29,.35), transparent 65%);
}
.hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: .35em; position: relative; }
.hero p { color: #d7e2f5; font-size: 1.08rem; max-width: 56ch; position: relative; }
.hero .eyebrow {
  display: inline-block; background: rgba(245,178,29,.18); color: var(--gold);
  font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-deep); color: var(--navy); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.20); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; position: relative; }

/* ---------- Cards / sections ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: ""; width: 5px; height: 24px; background: var(--gold); border-radius: 3px; display: inline-block;
}

/* ---------- Quick facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.fact {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.fact .num { font-size: 1.7rem; font-weight: 800; color: var(--navy); font-family: var(--font-head); }
.fact .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ---------- PDF download grid ---------- */
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pdf-item {
  display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px;
}
.pdf-item .pdf-name { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.pdf-item .pdf-desc { font-size: .85rem; color: var(--muted); margin: -4px 0 4px; }
.pdf-icon {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  background: var(--navy); color: var(--gold); font-size: .7rem; font-weight: 800;
}
.badge-soon {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #fff4d6; color: var(--gold-deep); border: 1px solid #f0d68a; padding: 3px 8px; border-radius: 999px;
}
/* PDF link that has been degraded because the file is unavailable */
a.is-soon {
  cursor: not-allowed; opacity: .65; pointer-events: none;
  background: #eef2f7 !important; color: var(--muted) !important; border-color: var(--line) !important;
}

/* ---------- Filter controls ---------- */
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
  margin-bottom: 18px;
}
.filters label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.filters input, .filters select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: .92rem; font-family: inherit; background: #fff; color: var(--ink);
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table.schedule { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; background: #fff; }
table.schedule thead th {
  position: sticky; top: 0; background: var(--navy); color: #fff; text-align: left;
  padding: 11px 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; z-index: 2;
}
table.schedule tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.schedule tbody tr:nth-child(odd) { background: var(--row); }
table.schedule tbody tr:nth-child(even) { background: var(--row-alt); }
table.schedule tbody tr:hover { background: #fff7e3; }
table.schedule .match-cell { font-weight: 600; color: var(--navy); }
table.schedule .stage-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #e8eefb; color: var(--navy-2); white-space: nowrap;
}
table.schedule .stage-tag.ko { background: #fdeccb; color: var(--gold-deep); }
.note-open { font-size: .72rem; color: var(--green); font-weight: 700; }
.no-results { padding: 22px; text-align: center; color: var(--muted); font-weight: 600; }
.table-meta { font-size: .82rem; color: var(--muted); margin: 8px 2px 0; }

/* ---------- Group cards ---------- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.group-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .15s;
}
.group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.group-card .gc-title { font-weight: 800; color: var(--navy); font-family: var(--font-head); margin-bottom: 6px; }
.group-card .gc-title .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; display: inline-block; margin-right: 7px; }
.group-card ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.group-card li { padding: 2px 0; }

/* ---------- Knockout summary ---------- */
.ko-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ko-item { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 14px; }
.ko-item .ko-name { font-weight: 700; color: var(--navy); }
.ko-item .ko-date { font-size: .82rem; color: var(--muted); }

/* ---------- Popular pages grid ---------- */
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pop-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); transition: transform .1s, border-color .15s;
}
.pop-card:hover { transform: translateY(-2px); border-color: var(--gold); text-decoration: none; }
.pop-card span { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: 3px; }

/* ---------- FAQ accordion ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-deep); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 14px 18px; color: var(--ink); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Note / disclaimer ---------- */
.note {
  background: #fff8e6; border: 1px solid #f1dca0; border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 12px 16px; font-size: .9rem; color: #6b5618; margin: 18px 0;
}
.note strong { color: var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  border-radius: var(--radius); padding: 26px 28px; text-align: center; margin: 26px 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d7e2f5; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.side-box h3 { margin: 0 0 12px; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.side-box h3::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: none; }
.side-links a { display: block; padding: 8px 0; font-size: .9rem; font-weight: 600; color: var(--navy-2); }
.side-links a:hover { color: var(--gold-deep); text-decoration: none; padding-left: 4px; transition: padding .12s; }
.side-updated { font-size: .82rem; color: var(--muted); }
.side-updated strong { color: var(--navy); display: block; font-size: .95rem; }

/* ---------- Ad box (reserved space to prevent CLS) ---------- */
.ad-box {
  background: repeating-linear-gradient(45deg, #f0f3f8, #f0f3f8 10px, #e9eef5 10px, #e9eef5 20px);
  border: 1px dashed #c2cddd; border-radius: 10px;
  display: grid; place-items: center; color: #9aa8bd; font-size: .78rem; text-align: center;
  margin: 0 auto;
}
.ad-160x600 { width: 160px; height: 600px; min-height: 600px; }
.ad-label { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c7d3e8; margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 20px 28px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 4px 0; }
.footer-cols a { color: #b9c6de; font-size: .9rem; }
.footer-cols a:hover { color: var(--gold); text-decoration: none; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.disclaimer { font-size: .82rem; color: #8fa1bf; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px;
  font-size: .82rem; color: #8fa1bf; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Misc text helpers ---------- */
.lead { font-size: 1.08rem; color: #36465c; }
.meta-updated { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.pill { background: #eef2f9; color: var(--navy-2); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .87rem; font-weight: 600; }
.related-links a:hover { border-color: var(--gold); text-decoration: none; }
ul.clean { padding-left: 1.2em; }
ul.clean li { margin-bottom: .4em; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 1.7rem; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 1.85rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy-2); padding: 10px 16px; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .footer-cols { grid-template-columns: 1fr; }
  .layout { padding: 16px 14px 36px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .sidebar, .site-footer, .hero-cta, .filters, .nav-toggle, .cta-band, .ad-box, .skip-link, .breadcrumb { display: none !important; }
  body { background: #fff; font-size: 12px; color: #000; }
  .layout { display: block; max-width: 100%; padding: 0; }
  .content { max-width: 100%; }
  .card, .hero { box-shadow: none; border: 1px solid #ccc; background: #fff; color: #000; }
  .hero h1, .hero p { color: #000; }
  table.schedule { min-width: 0; font-size: 11px; }
  table.schedule thead th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-wrap { overflow: visible; border: none; }
  a { color: #000; text-decoration: none; }
}
