/*
Theme Name: Aggrogamer
Theme URI: https://aggrogamer.com
Author: Aggrogamer
Description: A modern gaming news theme with a hero lead story, platform filters, YouTube uploads, a Twitch live card, a release calendar and a podcast panel. Light and dark modes.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aggrogamer
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

:root {
  --bg: #f5f3fb;
  --surface: #ffffff;
  --surface-2: #ebe7f7;
  --ink: #17122e;
  --muted: #5b5575;
  --line: #d9d3ec;
  --accent: #b5142b;
  --accent-ink: #ffffff;
  --accent-bright: #e8324a;
  --accent-line: #b5142b;
  --chrome: #15112b;
  --chrome-ink: #f1eefc;
  --chrome-muted: #b3acd4;
  --focus: #5b3df5;
  --ps: #3b82f6;
  --xbox: #3fb950;
  --nin: #ef4444;
  --pc: #a78bfa;
  --other: #8d86ad;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100d22;
    --surface: #1a1535;
    --surface-2: #241d48;
    --ink: #f1eefc;
    --muted: #a9a2c9;
    --line: #2f2758;
    --chrome: #0a0818;
    --accent-line: #e8324a;
    --focus: #ff7a85;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100d22;
  --surface: #1a1535;
  --surface-2: #241d48;
  --ink: #f1eefc;
  --muted: #a9a2c9;
  --line: #2f2758;
  --chrome: #0a0818;
  --accent-line: #e8324a;
  --focus: #ff7a85;
  color-scheme: dark;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 64px); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--chrome);
  z-index: 40;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; margin: 0; overflow: visible;
  position: fixed !important; top: 8px; left: 8px; z-index: 100; padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink); border-radius: 4px; font-weight: 700;
}

/* ---------- Header ---------- */
.utility { background: var(--chrome); color: var(--chrome-muted); font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility a:hover { color: var(--chrome-ink); }
.utility .social { display: flex; gap: 18px; }
.masthead { background: var(--chrome); color: var(--chrome-ink); }
.masthead .wrap { display: flex; align-items: center; gap: 24px; padding-block: 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.01em; line-height: 1; }
.logo-mark {
  width: 34px; height: 34px; background: var(--accent-bright); color: #fff;
  display: grid; place-items: center; font-size: 1.25rem;
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
}
.logo b { color: var(--accent-bright); font-weight: 800; }
.brand .custom-logo-link { display: inline-block; line-height: 0; }
.brand .custom-logo { max-height: 52px; width: auto; }
.tagline { margin: 0; max-width: 34ch; color: var(--chrome-muted); font-size: .9rem; line-height: 1.35; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search input {
  width: 220px; height: 38px; padding: 0 12px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: var(--chrome-ink); font: inherit; font-size: .92rem;
}
.search input::placeholder { color: var(--chrome-muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px;
  border-radius: 4px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; border: 1px solid transparent;
}
.btn-ghost { background: transparent; color: var(--chrome-ink); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.mainnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--chrome); border-bottom: 3px solid var(--accent-bright); }
.mainnav .nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav .top { display: flex; gap: 2px; }
.mainnav .top li { position: relative; }
.mainnav .top > li > a {
  display: block; padding: 13px 14px; color: var(--chrome-ink); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.mainnav .top > li > a:hover, .mainnav .top > li:focus-within > a { background: rgba(255,255,255,.08); }
.mainnav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 190px; padding: 6px;
  background: var(--chrome); border: 1px solid rgba(255,255,255,.14); border-top: 0; z-index: 60;
}
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { display: block; }
.mainnav .sub-menu a { display: block; padding: 8px 12px; color: var(--chrome-ink); font-size: .92rem; border-radius: 3px; }
.mainnav .sub-menu a:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Live now bar ---------- */
.livebar { background: var(--accent); color: var(--accent-ink); }
.livebar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-block: 9px; font-size: .92rem; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--accent); font-weight: 800; font-size: .78rem; padding: 2px 9px; border-radius: 3px; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.livebar a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.livebar a span { margin-left: 8px; opacity: .9; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Shared bits ---------- */
.plat { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.plat span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.plat i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--other)); display: inline-block; }
.byline { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art {
  position: relative; overflow: hidden; display: block; color: #fff;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(140deg, hsl(var(--h, 260) 72% 40%), hsl(calc(var(--h, 260) + 55) 66% 20%));
}
.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.art .glyph {
  position: absolute; left: 10px; bottom: -6px; right: 10px; font-family: var(--display); font-weight: 800;
  line-height: .85; letter-spacing: -.03em; opacity: .2; white-space: nowrap; overflow: hidden; pointer-events: none;
}
.sec-title {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.015em; line-height: 1.1;
  margin: 0; padding-left: 12px; border-left: 6px solid var(--accent-line);
}

/* ---------- Hero ---------- */
.hero { padding-block: 28px 12px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; }
.lead {
  position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: flex-end;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  color: #fff;
}
.lead .glyph { top: 14px; bottom: auto; left: 22px; font-size: clamp(4.5rem, 13vw, 11rem); opacity: .17; }
.lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,20,.92) 0%, rgba(8,6,20,.55) 45%, rgba(8,6,20,0) 75%); pointer-events: none; }
.lead-body { position: relative; z-index: 1; padding: 28px; max-width: 760px; }
.lead .plat span { color: #fff; }
.lead h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.025em;
  margin: 14px 0 12px; text-wrap: balance;
}
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--accent-bright); }
.lead p { margin: 0 0 14px; font-size: 1.05rem; max-width: 58ch; color: rgba(255,255,255,.92); }
.lead .byline { color: rgba(255,255,255,.8); }
.lead .tab {
  position: absolute; z-index: 2; left: 0; top: 0; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .85rem; padding: 8px 14px;
}
.stack { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.stack h2 { font-family: var(--display); font-size: 1.15rem; font-weight: 800; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.stack article { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); flex: 1; align-items: start; }
.stack article:last-child { border-bottom: 0; }
.stack .art { aspect-ratio: 1; }
.stack .art .glyph { font-size: 1.5rem; left: 6px; right: 6px; bottom: 4px; }
.stack h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.08rem; line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
.stack h3 a:hover, .card h3 a:hover, .reviews a:hover span, .feat h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Main layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; padding-block: 36px 24px; }
.feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); cursor: pointer;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 0; }
.card .art { aspect-ratio: 16 / 9; }
.card .art .glyph { font-size: 2.6rem; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.18; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card .byline { margin-top: auto; padding-top: 4px; }
.empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); margin: 0; }
.empty a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.more { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.more .pager { display: flex; gap: 10px; }

/* ---------- Sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.panel h2 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -.01em; }
.cal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cal li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; }
.cal .d { background: var(--surface-2); border-radius: 4px; text-align: center; padding: 8px 4px; font-family: var(--display); font-weight: 800; line-height: 1.1; font-size: .95rem; overflow-wrap: anywhere; }
.cal strong { display: block; font-size: .95rem; line-height: 1.25; }
.cal span { color: var(--muted); font-size: .84rem; }
.cast { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cast h2 { font-size: 1.6rem; }
.cast p { margin: 0 0 14px; font-size: .95rem; }
.cast .links { display: flex; flex-wrap: wrap; gap: 8px; }
.cast .links a { padding: 8px 12px; background: #17122e; color: #fff; border-radius: 4px; font-weight: 600; font-size: .85rem; }
.cast .links a:hover { background: #2a2250; }
.reviews { list-style: none; margin: 0; padding: 0; }
.reviews li { border-top: 1px solid var(--line); }
.reviews li:first-child { border-top: 0; }
.reviews a { display: block; padding: 11px 0; font-weight: 600; line-height: 1.3; }
.panel .all { display: inline-block; margin-top: 6px; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Watch: Twitch + YouTube ---------- */
.watch { background: var(--chrome); color: var(--chrome-ink); padding-block: 34px 40px; margin-top: 18px; }
.watch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.watch .sec-title { border-left-color: var(--accent-bright); }
.watch-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.watch-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.watch-grid.has-live.has-videos { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.watch-grid.has-live:not(.has-videos) { grid-template-columns: minmax(0, 860px); }
.watch-grid:not(.has-live) .yt { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.watch-grid:not(.has-live) .yt li { grid-template-columns: 1fr; }
.live-col { display: grid; gap: 28px; align-content: start; }
.yt-fallback { padding: 22px; border: 1px dashed rgba(255,255,255,.28); border-radius: 4px; color: var(--chrome-muted); }
.yt-fallback p { margin: 0 0 14px; }
.admin-note { margin: 0 0 22px; padding: 10px 14px; border-left: 4px solid var(--accent-bright); background: rgba(255,255,255,.08); color: var(--chrome-ink); font-size: .9rem; line-height: 1.5; }
.col-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.stream .art { aspect-ratio: 16 / 9; border-radius: 4px; }
.stream-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; background: #000; }
.badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 3px; background: var(--accent-bright); color: #fff; font-weight: 700; font-size: .82rem; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.badge.off { background: #4a4470; }
.badge.off::before { background: var(--chrome-muted); }
.viewers { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 4px 10px; border-radius: 3px; background: rgba(10,8,24,.72); color: #fff; font-size: .82rem; font-weight: 600; }
.play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.play span { width: 68px; height: 68px; border-radius: 50%; background: rgba(10,8,24,.66); display: grid; place-items: center; }
.play span::after { content: ""; width: 22px; height: 26px; margin-left: 5px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stream-info { padding-top: 14px; }
.stream-info h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; }
.stream-info p { margin: 0 0 14px; color: var(--chrome-muted); }
.yt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.yt li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.yt .art { aspect-ratio: 16 / 9; border-radius: 3px; }
.yt .play span { width: 34px; height: 34px; }
.yt .play span::after { width: 11px; height: 13px; margin-left: 3px; }
.yt h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.22; }
.yt a:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.yt small { color: var(--chrome-muted); font-size: .84rem; }

/* ---------- Features band ---------- */
.band { padding-block: 12px 40px; }
.band .sec-title { margin-bottom: 18px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feat { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.feat .art { aspect-ratio: 21 / 9; }
.feat .art .glyph { font-size: 3rem; }
.feat .b { padding: 14px 16px 18px; }
.feat h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.feat p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Pages, articles, archives ---------- */
.page-head { padding-block: 34px 6px; }
.page-head .desc { margin: 12px 0 0 18px; color: var(--muted); max-width: 70ch; }
.single-main { min-width: 0; }
.entry-head .plat { margin-bottom: 12px; }
.entry-title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.entry-head .byline { font-size: .92rem; margin-bottom: 22px; }
.entry-figure { margin: 0 0 26px; border-radius: 4px; overflow: hidden; }
.entry-figure img { display: block; width: 100%; }
.entry-figure figcaption { font-size: .85rem; color: var(--muted); padding: 8px 2px; }
.entry-content { font-size: 1.08rem; line-height: 1.7; max-width: 72ch; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin-top: 1.6em; }
.entry-content a { color: var(--accent-line); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent-line); color: var(--muted); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-content .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-content pre { overflow-x: auto; background: var(--surface-2); padding: 14px; border-radius: 4px; }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.tagrow a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface); }
.tagrow a:hover { border-color: var(--ink); }
.related { padding-block: 8px 40px; }
.related .sec-title { margin-bottom: 18px; }
.comments { margin-top: 40px; max-width: 72ch; }
.comments .comment-list { list-style: none; padding: 0; }
.comments .comment-list .children { list-style: none; padding-left: 24px; }
.comments .comment-body { padding: 14px 0; border-top: 1px solid var(--line); }
.comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comments input[type="text"], .comments input[type="email"], .comments input[type="url"], .comments textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit;
}
.comments input[type="submit"] { height: 40px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.plain-page { padding-block: 34px 50px; }
.plain-page .search input { background: var(--surface); color: var(--ink); border-color: var(--line); width: 100%; max-width: 420px; }
.plain-page .search input::placeholder { color: var(--muted); }

/* ---------- Team + footer ---------- */
.team { background: var(--surface-2); padding-block: 30px; }
.team .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.team h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.team ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.team li { line-height: 1.3; }
.team li span { display: block; font-size: .82rem; color: var(--muted); }
.team a, .team li > strong { font-weight: 700; }
.team a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { background: var(--chrome); color: var(--chrome-muted); font-size: .85rem; padding-block: 26px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--chrome-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .tagline { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lead { min-height: 420px; }
  .feats { grid-template-columns: 1fr; }
  .watch-grid, .watch-grid.has-live.has-videos, .watch-grid.has-live:not(.has-videos) { grid-template-columns: 1fr !important; }
  .watch-links { margin-left: 0; width: 100%; }
  .mainnav .nav-inner { padding-inline: 8px; overflow-x: auto; scrollbar-width: none; }
  .mainnav .nav-inner::-webkit-scrollbar { display: none; }
  .mainnav .sub-menu { display: none !important; }
}
@media (max-width: 640px) {
  .masthead .wrap { flex-wrap: wrap; gap: 14px; }
  .tools { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .lead-body { padding: 20px; }
  .utility .wrap > span { display: none; }
  .utility .social { margin-left: auto; }
  .stack article { grid-template-columns: 80px 1fr; }
  .alignleft, .alignright { float: none; margin-inline: 0; }
}
@media (max-width: 480px) { .yt li { grid-template-columns: 120px 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
