:root {
  color-scheme: light;
  --ink: #141b24;
  --muted: #667080;
  --paper: #f5f2ec;
  --surface: #ffffff;
  --line: #d9dee6;
  --brand: #b6192b;
  --brand-dark: #7d1422;
  --gold: #bc841f;
  --navy: #17314c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  margin: 0;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-topbar {
  align-items: center;
  background: rgba(245, 242, 236, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.mobile-brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.mobile-brand-logo {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 84px;
}

.mobile-brand strong {
  font-size: 1.08rem;
}

.admin-link {
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.mobile-hero {
  background:
    linear-gradient(180deg, rgba(20, 27, 36, 0.36), rgba(20, 27, 36, 0.9)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=900&q=78");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: 310px;
  padding: 104px 16px 24px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.mobile-hero h1 {
  font-size: 2.4rem;
  line-height: 1;
  margin: 0;
  max-width: 390px;
}

.mobile-hero p:last-child {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  margin: 12px 0 0;
  max-width: 330px;
}

.quick-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  position: sticky;
  top: 58px;
  z-index: 15;
}

.quick-tabs a {
  background: #f1e8df;
  border-radius: 999px;
  color: var(--brand-dark);
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 12px;
}

.mobile-section {
  padding: 26px 14px;
}

.section-title {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title h2,
.focus-card h2,
.method-card h2 {
  font-size: 1.7rem;
  line-height: 1.05;
  margin: 0;
}

.feed-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -6px 0 14px;
}

.mobile-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-tools label {
  color: var(--ink);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.mobile-tools input,
.mobile-tools select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.team-filter-chips {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.team-filter-chips button {
  background: #f1e8df;
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  flex: 0 0 auto;
  font-weight: 800;
  padding: 8px 11px;
}

.team-filter-chips button.is-active {
  background: var(--brand);
  color: #fff;
}

.mobile-feed,
.mobile-sources,
.mobile-teams {
  display: grid;
  gap: 14px;
}

.news-card,
.source-card,
.focus-card,
.method-card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.news-image {
  background: var(--line);
  display: block;
  aspect-ratio: 16 / 9;
}

.news-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.news-content {
  padding: 18px;
}

.news-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 7px;
  margin-bottom: 12px;
}

.meta-link {
  color: var(--brand-dark);
  font-weight: 800;
}

.team-chip {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
}

.team-chip img {
  border-radius: 6px;
  height: 26px;
  width: 26px;
}

.tag {
  background: #f3e4dd;
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 800;
  padding: 4px 8px;
}

.news-card h3 {
  font-size: 1.32rem;
  line-height: 1.12;
  margin: 0 0 10px;
}

.news-card p,
.source-card p,
.focus-card p,
.method-card p {
  color: var(--muted);
  margin: 0;
}

.source-link {
  color: var(--brand-dark);
  display: inline-block;
  font-weight: 800;
  margin-top: 16px;
  padding: 4px 0;
}

.source-card {
  padding: 16px;
}

.team-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-height: 72px;
  padding: 13px;
}

.team-card img {
  border-radius: 8px;
  height: 44px;
  width: 44px;
}

.team-card span {
  font-weight: 800;
}

.source-kind {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.source-card h3 {
  font-size: 1.08rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.source-card h3 a {
  color: var(--brand-dark);
}

.source-site-link {
  color: var(--brand-dark);
  display: inline-block;
  font-weight: 800;
  margin-top: 10px;
}

.focus-card,
.method-card,
.empty-state {
  padding: 18px;
}

.focus-card {
  border-left: 5px solid var(--brand);
}

.method-card {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.method-card p {
  color: rgba(255, 255, 255, 0.78);
}

.mobile-footer {
  background: #111820;
  color: rgba(255, 255, 255, 0.78);
  padding: 24px 14px;
}

.mobile-footer .shell {
  width: 100%;
}

.footer-grid {
  display: grid;
  gap: 16px;
}

.footer-grid p {
  margin: 0;
}

.footer-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  margin-top: 6px !important;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 10px;
}

.cookie-banner {
  background: rgba(17, 24, 32, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  color: #fff;
  left: 12px;
  padding: 14px;
  position: fixed;
  right: 12px;
  z-index: 100;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 12px;
}

.cookie-banner button {
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  min-height: 42px;
  width: 100%;
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 30;
}

.bottom-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 6px;
  text-align: center;
}

.bottom-nav a:first-child {
  background: var(--brand);
  color: #fff;
}

@media (min-width: 641px) {
  body {
    max-width: 520px;
    margin: 0 auto;
  }

  .mobile-topbar,
  .bottom-nav {
    left: 50%;
    max-width: 520px;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
  }
}
