/* Light, simple, football themed: a pitch-green hero, mowing stripes drawn in CSS, pill chips. No images, no web fonts, no external resources. */
:root {
  color-scheme: light dark;
  --bg: #f3f7f1;
  --fg: #0e1a12;
  --muted: #4f5f53;
  --line: #dbe5d8;
  --card: #ffffff;
  --tint: #e5f0e1;
  --link: #0a6b33;
  --pitch: #0f7a3a;
  --pitch-dark: #0a5a2b;
  --gold: #ffd23f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b130e;
    --fg: #eaf3ec;
    --muted: #9fb2a5;
    --line: #223027;
    --card: #121d16;
    --tint: #19291f;
    --link: #62d68f;
    --pitch: #13803f;
    --pitch-dark: #0b4f27;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

header.site, main, footer.site { max-width: 44rem; margin: 0 auto; padding: 0.75rem 1rem; }

/* header: the ball, the name, pill links that scroll sideways on a narrow phone */
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 3px solid var(--pitch);
  background: var(--card);
  max-width: none;
  padding-left: max(1rem, calc((100vw - 44rem) / 2 + 1rem));
  padding-right: max(1rem, calc((100vw - 44rem) / 2 + 1rem));
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.brand::before { content: "\26BD" / ""; margin-right: 0.4rem; }
nav { display: flex; gap: 0.25rem; overflow-x: auto; max-width: 100%; }
nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
nav a:hover { background: var(--tint); }

main { min-height: 60vh; }

h1 { font-size: 1.6rem; line-height: 1.2; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
h2::before { content: ""; width: 0.4rem; height: 1.1rem; background: var(--gold); border-radius: 0.15rem; }

/* the hero: the answer to "Hoje tem futebol?" on a pitch (mowing stripes + a centre circle, all CSS) */
section#hoje {
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: 0.5rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 96% 50%, transparent 0 3.4rem, rgba(255, 255, 255, 0.2) 3.4rem 3.5rem, transparent 3.5rem),
    linear-gradient(90deg, transparent calc(96% - 1px), rgba(255, 255, 255, 0.2) calc(96% - 1px) calc(96% + 1px), transparent calc(96% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2.2rem, transparent 2.2rem 4.4rem),
    linear-gradient(160deg, var(--pitch), var(--pitch-dark));
  box-shadow: 0 2px 10px rgba(10, 90, 43, 0.25);
}
section#hoje h1 {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
p.answer {
  font-size: clamp(1.5rem, 6.4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0.35rem 0 1rem;
  max-width: 28rem;
  text-wrap: balance;
}
p.tomorrow { margin: 0.9rem 0 0; }
p.tomorrow a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
p.tomorrow a:hover { background: rgba(255, 255, 255, 0.26); }

/* match rows: time, teams, round; "onde assistir" chips on their own line */
ul.matches { list-style: none; margin: 0; padding: 0; }
li.match {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  align-items: center;
  gap: 0.15rem 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
li.match:last-child { border-bottom: 0; }
li.match time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.2;
}
li.match .teams { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.teams strong {
  display: inline-block;
  margin: 0 0.3rem;
  padding: 0 0.45rem;
  border-radius: 0.4rem;
  background: var(--pitch);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.round, .day, .stamp, .note { color: var(--muted); font-size: 0.8rem; }
li.match .watch { grid-column: 1 / -1; font-size: 0.85rem; overflow-wrap: anywhere; }
li.match .watch .label { color: var(--muted); margin-right: 0.25rem; }
li.match .watch a {
  display: inline-block;
  margin: 0.1rem 0.3rem 0.1rem 0;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--pitch);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
li.match .watch a:hover { background: var(--tint); }

/* inside the hero the list is a white card */
section#hoje ul.matches {
  background: var(--card);
  color: var(--fg);
  border-radius: 0.75rem;
  padding: 0.15rem 0.85rem;
}

/* news are secondary: quiet link cards, no images */
.cards { display: grid; gap: 0.6rem; }
article.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pitch);
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
}
article.card h3 { font-size: 0.98rem; line-height: 1.3; margin: 0 0 0.2rem; }
article.card h3 a { color: var(--fg); text-decoration: none; }
article.card h3 a:hover { text-decoration: underline; }
article.card p { margin: 0.2rem 0 0; }
article.card .meta { color: var(--muted); font-size: 0.78rem; }
article.card .snippet { font-size: 0.88rem; color: var(--muted); overflow-wrap: anywhere; }

ul.sources { list-style: none; margin: 0; padding: 0; }
ul.sources li { padding: 0.25rem 0; overflow-wrap: anywhere; }

/* table: scrolls sideways on a phone, never breaks the page */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.5rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); font-size: 0.8rem; padding: 0.4rem 0.6rem; }
th, td { padding: 0.4rem 0.55rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
th[scope="row"], thead th:nth-child(2) { text-align: left; }
thead th { font-size: 0.75rem; color: var(--muted); background: var(--tint); }
tbody td:first-child, tbody th:first-child { font-weight: 700; }
tbody tr:first-child td:first-child { box-shadow: inset 4px 0 0 var(--gold); }

footer.site { color: var(--muted); font-size: 0.85rem; margin-top: 2rem; border-top: 1px solid var(--line); }

@media (min-width: 40rem) {
  header.site { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  main { padding-left: 1.5rem; padding-right: 1.5rem; }
  section#hoje { padding: 1.4rem 1.4rem 1.2rem; }
  li.match { grid-template-columns: 5.2rem 1fr auto; }
}

@media (prefers-reduced-motion: no-preference) {
  nav a, p.tomorrow a, li.match .watch a { transition: background 0.15s; }
}

/* Side-rail ads (item 63). The Pages Function inserts these two asides on production hosts only; the content column is 44rem, so two 160px
   rails fit in the gutters from about 1100px. Below that they are display:none and a lazy iframe in a hidden box is not fetched. */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { display: block; position: fixed; top: 6rem; width: 160px; }
  .rail-left { left: calc(50% - 22rem - 160px - 1.5rem); }
  .rail-right { right: calc(50% - 22rem - 160px - 1.5rem); }
  .rail-label { margin: 0 0 0.25rem; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  .rail iframe { display: block; width: 160px; height: 600px; border: 0; }
}

/* Small-screen ad slot (item 65). One 300x250 aside above the footer for widths where the rails do not fit; from 1100px the rails take over and
   this is hidden, so a visitor never sees two sets. A lazy iframe in a display:none box is not fetched. */
.slot-inline { display: block; margin: 1.5rem auto; width: 300px; max-width: 100%; }
.slot-inline .rail-label { margin: 0 0 0.25rem; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.slot-inline iframe { display: block; width: 300px; max-width: 100%; height: 250px; border: 0; }
@media (min-width: 1100px) {
  .slot-inline { display: none; }
}
