/* ==========================================================================
   atletico.com / thunderbear.com - shared stylesheet (v1.0, Nov 2026)
   One file, copied into each section's assets/ folder. Edit here, then copy.
   Sections pick their accent colour with a body class:
     t-landing, t-atletico, t-footy, t-tsc
   ========================================================================== */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --text: #17201a;
  --muted: #5a665e;
  --border: #dde3de;
  --accent: #1f6b45;
  --accent-strong: #154d31;
  --accent-soft: #e3f0e8;
  --on-accent: #ffffff;
  --highlight: #f2b705;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1f7a3f;
  --ok-soft: #e6f4ea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 6px 24px rgba(16, 24, 20, .06);
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

.t-atletico { --accent: #0d6a3a; --accent-strong: #094a29; --accent-soft: #e1f1e7; }
.t-footy    { --accent: #1b5e2e; --accent-strong: #123f1f; --accent-soft: #e4efe5; }
.t-tsc      { --accent: #8a5a14; --accent-strong: #66420d; --accent-soft: #f6ecdb; --highlight: #c8922b; }
.t-landing  { --accent: #1d3b2c; --accent-strong: #10241a; --accent-soft: #e6ece8; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101411;
    --surface: #171d19;
    --surface-2: #1e2620;
    --text: #e7ece8;
    --muted: #a3afa7;
    --border: #2b352e;
    --accent-soft: #1d2a22;
    --danger: #ff8a80;
    --danger-soft: #3a1d1b;
    --ok: #7dd89a;
    --ok-soft: #173022;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
  .t-atletico, .t-footy, .t-landing { --accent: #5cc98a; --accent-strong: #8fe0b0; --on-accent: #0b1a11; }
  .t-tsc { --accent: #e0aa52; --accent-strong: #f0c47c; --accent-soft: #2c2416; --on-accent: #1d1406; }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem); font-weight: 700; margin-top: 1.8em; }
h3 { font-size: 1.15rem; font-weight: 650; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--text); text-decoration: none; margin-right: auto; padding: .5rem 0;
}
.brand:hover { color: var(--text); }
.brand { flex: 1 1 0; min-width: 0; }
.brand-text { min-width: 0; }
.brand-name, .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-btn { flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-sub { font-size: .76rem; color: var(--muted); }

.nav-btn {
  display: none;
  align-items: center; gap: .45rem;
  font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem .9rem; cursor: pointer;
}
.nav-btn svg { width: 18px; height: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: .15rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: .45rem .75rem; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }

@media (max-width: 760px) {
  .js .nav-btn { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav { flex-basis: 100%; flex-direction: column; gap: 0; padding: .25rem 0 .9rem; }
  .nav a { border-radius: var(--radius-sm); padding: .7rem .8rem; font-size: 1rem; }
}

/* ---- Main ---------------------------------------------------------------- */
main { flex: 1; padding: 2.25rem 0 3.5rem; }
.page-head { margin-bottom: 1.75rem; }
.page-head .eyebrow, .eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose p, .prose li { overflow-wrap: anywhere; }
.emph { font-weight: 800; letter-spacing: .04em; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 1rem + 4vw, 3.5rem);
  background: var(--accent-strong);
  color: #fff;
  margin-bottom: 2.5rem;
  isolation: isolate;
}
.hero::before {
  /* mown-pitch stripes */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 64px, transparent 64px 128px),
    linear-gradient(160deg, var(--accent) 0%, var(--accent-strong) 100%);
}
.t-tsc .hero::before {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(160deg, #a06c1c 0%, #4f330a 100%);
}
@media (prefers-color-scheme: dark) {
  .hero { background: #0c2416; }
  .hero::before {
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .08), transparent 55%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 64px, transparent 64px 128px),
      linear-gradient(160deg, #15442a 0%, #0a1f13 100%);
  }
  .t-tsc .hero::before {
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .08), transparent 55%),
      linear-gradient(160deg, #5a3c0f 0%, #241703 100%);
  }
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow { color: var(--highlight); }
.hero p { color: rgba(255, 255, 255, .86); max-width: 58ch; }
.hero .lead { color: rgba(255, 255, 255, .92); }
.hero a:not(.btn) { color: #fff; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-shot {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero-shot img { width: 100%; }
.stat { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; margin-top: 1.5rem; }
.stat div { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; line-height: 1.1; color: #fff; }
.stat span { font-size: .85rem; color: rgba(255, 255, 255, .75); }

/* ---- Buttons ------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: .8rem 1.25rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.hero .btn { background: #fff; color: #10241a; }
.hero .btn:hover { background: var(--highlight); color: #10241a; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---- Cards & grids ------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
  min-width: 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }
.card .more, .more { color: var(--accent); font-weight: 650; display: inline-flex; gap: .35rem; align-items: center; margin-top: .5rem; }
.more svg { width: 18px; height: 18px; flex: none; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.callout {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.notice { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice > :last-child { margin-bottom: 0; }

.layout-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .layout-split { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

/* ---- Link lists ---------------------------------------------------------- */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 0; border-top: 1px solid var(--border); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; text-decoration: none; font-weight: 550; }
.link-list a::after { content: "\2197"; color: var(--muted); font-weight: 400; }
.link-list a[href$=".asp"]::after, .link-list a[href$=".htm"]::after, .link-list a[href$=".html"]::after { content: "\2192"; }
.link-list .note { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; margin-top: -.45rem; padding-bottom: .65rem; }

/* ---- Downloads ----------------------------------------------------------- */
.dl { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dl-body { flex: 1 1 220px; min-width: 0; }
.dl h3 { margin: 0 0 .2rem; }
.dl p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  padding: .15rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong);
  vertical-align: middle; margin-left: .35rem;
}
.tag-amber { background: #fff3cd; color: #7a5300; }
@media (prefers-color-scheme: dark) { .tag-amber { background: #3a2f10; color: #ffd772; } }

/* ---- Screenshots ---------------------------------------------------------- */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0; padding: 0; list-style: none; }
.shots li { margin: 0; }
.shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow); transition: transform .15s ease; }
.shots a:hover { transform: translateY(-2px); }
.shots img { width: 100%; aspect-ratio: 548 / 279; object-fit: cover; }

/* ---- FAQ (details) -------------------------------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---- Changelog / timeline ------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline > li { position: relative; padding: 0 0 1.75rem 1.5rem; margin: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline h3 { margin: 0 0 .4rem; }
.letter {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); max-width: 74ch;
}
.letter .from { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }

/* ---- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .7rem .85rem; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; margin: 0; background: var(--surface); }
legend { font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: .35rem; }
legend + * { clear: both; }
.choices { display: grid; gap: .5rem; margin-top: .5rem; }
@media (min-width: 640px) { .choices { grid-template-columns: repeat(2, 1fr); } }
.choice {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); font-weight: 500; min-width: 0;
}
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input[type="radio"], .choice input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin: 0; }
.choice-other { flex-wrap: wrap; }
.choice-other input[type="text"] { flex: 1 1 140px; min-height: 38px; padding: .4rem .6rem; }
.inline-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.captcha {
  font-family: var(--mono); font-weight: 700; letter-spacing: .25em; font-size: 1.15rem;
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; padding: .1rem .6rem;
}
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---- Survey results ------------------------------------------------------- */
.results { display: grid; gap: .6rem; max-width: 640px; }
.result-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3.5rem; gap: .75rem; align-items: center; font-size: .95rem; }
.result-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.result-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.result-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---- Leagues / squads ----------------------------------------------------- */
.league ol { columns: 1; padding-left: 1.6em; margin: 0; }
@media (min-width: 560px) { .league ol { columns: 2; column-gap: 2rem; } }
.league li { break-inside: avoid; }
.squad { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.squad li { margin: 0; padding: .45rem .7rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; font-size: .95rem; }
.squad .pos-GOA { border-left-color: #d64545; }
.squad .pos-DEF { border-left-color: #2e9d55; }
.squad .pos-MID { border-left-color: #2f7fd1; }
.squad .pos-FOR { border-left-color: #d8a514; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 1.75rem 0 2rem; font-size: .9rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 0; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-btn, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
}
