/* ===========================================================
   TABNO — Trenton Area Breaking News Official
   Breaking-news satire aesthetic
   =========================================================== */

:root {
  --navy:        #0A0E1A;
  --navy-soft:   #11162a;
  --panel:       #161c30;
  --red:         #E11D2A;
  --red-bright:  #ff2b39;
  --blue:        #2B5BD7;
  --white:       #ffffff;
  --ink:         #1a1d27;
  --muted:       #8b93a7;
  --line:        rgba(255,255,255,0.10);
  --radius:      10px;
  --max:         1120px;
  --headline: "Anton", "Oswald", Impact, sans-serif;
  --label:    "Oswald", "Roboto Condensed", sans-serif;
  --body:     "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Visually hidden but available to screen readers + search engines */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Breaking ticker ---------- */
.ticker {
  background: var(--red);
  color: #fff;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__tag {
  background: #000;
  padding: 8px 14px;
  font-weight: 700;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 6px 0 8px rgba(0,0,0,.5);
}
.ticker__tag::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(255,43,57,.7);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,43,57,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,43,57,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,43,57,0); }
}
.ticker__track {
  display: inline-flex;
  gap: 48px;
  padding-left: 48px;
  animation: scroll 32s linear infinite;
}
.ticker__track span { font-weight: 600; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 50;
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  position: relative;
}
/* Clean TABNO wordmark */
.brand {
  font-family: var(--headline);
  font-size: 30px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.brand .accent { color: var(--red); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  font-weight: 600;
  color: #cdd3e1;
  transition: color .15s;
}
.nav a:hover { color: var(--white); }

/* Always-visible red Merch button (lives outside the collapsing nav) */
.btn-shop {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  font-weight: 600;
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
}
.btn-shop:hover { background: var(--red-bright); }
.merch-btn { margin-left: 4px; }

.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }

/* ---------- Hero / lead story ---------- */
/* Photo-first: the image shows in full (never cropped). 4:5 fills the frame;
   other ratios letterbox on the dark backdrop. */
.hero {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .15s;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  align-items: stretch;
}
.hero:hover { border-color: rgba(225,29,42,.6); }
.hero__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #06080f;
  display: block;
}
.hero__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.tag-breaking {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--headline);
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 11ch;
  text-wrap: balance;
}
.hero__dek { color: #d3d8e6; font-size: 18px; line-height: 1.65; max-width: 34ch; }
.dateline { color: var(--muted); font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-bright);
}
.hero:hover .hero__cta { color: #fff; }
.hero--loading { pointer-events: none; }
.hero--loading .hero__img,
.hero--loading .hero__title,
.hero--loading .hero__dek,
.hero--loading .dateline {
  opacity: .72;
}

/* ---------- Section headers ---------- */
.section { margin: 48px 0; }
.section__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.section__head h2 {
  font-family: var(--headline);
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: .03em;
}
.section__head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.section__head .dot { width: 12px; height: 12px; background: var(--red); border-radius: 2px; }

/* ---------- Story grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(225,29,42,.6); }
.card__img { aspect-ratio: 4/5; object-fit: contain; background: #06080f; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__kicker { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--red-bright); font-weight: 600; }
.card__title {
  font-family: var(--headline);
  font-size: 19px;
  line-height: 1.08;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-wrap: balance;
}
.card__meta { color: var(--muted); font-family: var(--label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-top: auto; padding-top: 6px; }

/* Loading skeletons (shown briefly instead of fake stories) */
.skeleton, .sk-line { background: linear-gradient(100deg, #161c30 30%, #1f273f 50%, #161c30 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
.card--skeleton { pointer-events: none; }
.card--skeleton .card__img { aspect-ratio: 4/5; }
.sk-line { height: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .hero:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.load-more-wrap { text-align: center; margin-top: 30px; }

/* ---------- Merch ---------- */
.merch { background: var(--navy-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.merch__lead { max-width: 640px; margin-bottom: 26px; }
.merch__lead p { color: var(--muted); margin-top: 8px; }
.merch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.product:hover { transform: translateY(-3px); border-color: rgba(225,29,42,.6); }
.product__img { aspect-ratio: 1; object-fit: cover; background: var(--navy); }
.product__body { padding: 14px 16px 18px; }
.product__name {
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.product__price { color: var(--red-bright); font-weight: 700; margin: 6px 0 12px; }
.product .buy {
  display: block; text-align: center;
  background: var(--red); color: #fff;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .05em;
  font-size: 13px; font-weight: 600;
  padding: 9px; border-radius: 6px;
  transition: background .15s;
}
.product .buy:hover { background: var(--red-bright); }
.merch__all { text-align: center; margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--label);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  padding: 12px 24px; border-radius: 6px; cursor: pointer; border: 0;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: #fff; }
.btn--ghost:hover { border-color: var(--red); }
.btn[disabled] { opacity: .72; cursor: wait; }

/* ---------- Tip form ---------- */
.tip { padding: 60px 0; }
.tip__box {
  background: linear-gradient(135deg, var(--panel), var(--navy-soft));
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.tip__box h2 { font-family: var(--headline); text-transform: uppercase; font-size: 30px; line-height: 1; }
.tip__box p { color: var(--muted); margin-top: 12px; }
.tip form { display: flex; flex-direction: column; gap: 12px; }
.tip input, .tip textarea {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 14px;
}
.tip input:focus, .tip textarea:focus { outline: none; border-color: var(--red); }
.tip textarea { resize: vertical; min-height: 90px; }
.tip__status { font-size: 13px; min-height: 18px; }
.tip__status.ok { color: #4ade80; }
.tip__status.err { color: var(--red-bright); }

/* ---------- Tip modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  background: linear-gradient(135deg, var(--panel), var(--navy-soft));
  border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 34px;
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__panel h2 { font-family: var(--headline); text-transform: uppercase; font-size: 28px; line-height: 1; }
.modal__panel p { color: var(--muted); margin: 10px 0 18px; }
.modal__panel form { display: flex; flex-direction: column; gap: 12px; }
.modal__panel input, .modal__panel textarea {
  background: var(--navy); border: 1px solid var(--line); border-radius: 6px;
  color: #fff; padding: 12px 14px; font-family: var(--body); font-size: 14px;
}
.modal__panel input:focus, .modal__panel textarea:focus { outline: none; border-color: var(--red); }
.modal__panel textarea { resize: vertical; min-height: 100px; }
.modal__panel button[disabled] { opacity: .7; cursor: wait; }
.modal__close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; color: var(--muted);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: #fff; }

/* ---------- Merch page header ---------- */
.page-header { padding: 40px 0 8px; }
.page-header h1 { font-family: var(--headline); text-transform: uppercase; font-size: clamp(32px, 5vw, 52px); line-height: 1; }
.page-header p { color: var(--muted); max-width: 620px; margin-top: 12px; }

/* Prose (About page) */
.prose { max-width: 680px; padding: 8px 0 60px; }
.prose p { font-size: 18px; line-height: 1.7; color: #e6e9f2; margin-bottom: 20px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { background: #06080f; border-top: 3px solid var(--red); padding: 40px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .brand { font-size: 24px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); font-family: var(--label); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.footer__links a:hover { color: #fff; }
.footer__legal { color: var(--muted); font-size: 12px; margin-top: 22px; text-align: center; }
.satire-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 6px; font-style: italic; }

/* ---------- Article page ---------- */
.article { max-width: 1080px; margin: 30px auto; padding: 0 20px; }

/* Desktop: photo left, story right. Stacks on mobile. */
.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 40px;
  align-items: start;
  margin: 8px 0 10px;
}
.article__media { position: sticky; top: 96px; }
.article__hero { border-radius: var(--radius); width: 100%; height: auto; display: block; background: #06080f; }
.article__hero--skeleton { aspect-ratio: 4 / 5; }
.article__main { padding-top: 4px; }
.article h1 {
  font-family: var(--headline);
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  margin: 2px 0 14px;
  max-width: 14ch;
  text-wrap: balance;
}
.article__meta { color: var(--muted); font-family: var(--label); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 14px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article__body { max-width: 34rem; }
.article__body p { font-size: 18px; line-height: 1.6; margin-bottom: 20px; color: #e6e9f2; }
.article__back { display: inline-block; margin: 10px 0 18px; color: var(--red-bright); font-family: var(--label); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.article__share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.article__share-label { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); }
.share-btn { font-family: var(--label); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: #cdd3e1; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.share-btn:hover { border-color: var(--red); color: #fff; }
.article__title-skeleton,
.article__meta-skeleton,
.article__body-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article__title-skeleton { margin-bottom: 16px; }
.article__meta-skeleton { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article__body-skeleton .sk-line { height: 18px; }
.article__loading-note {
  color: var(--muted);
  margin-top: 12px;
  max-width: 34rem;
}
.article__loading-note[data-state="slow"] { color: #cdd3e1; }
.article__loading-note[data-state="very-slow"] { color: #ffd6d9; }

@media (max-width: 820px) {
  .article__grid { grid-template-columns: 1fr; gap: 22px; }
  .article__media { position: static; top: auto; }
  .article h1,
  .hero__title { max-width: none; }
  .article__body { max-width: none; }
}

/* ===========================================================
   Admin panel — photo-first publishing
   =========================================================== */
.admin { max-width: 980px; margin: 30px auto; padding: 0 20px; }
.admin__head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.admin__head .brand { font-size: 28px; }
.admin__tag { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); padding-top: 4px; }
.admin__head .signout { margin-left: auto; }
.admin__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px 0 24px;
  flex-wrap: wrap;
}
.admin__tools .admin-status {
  margin-top: 0;
  min-height: 0;
}
.admin__section-title { font-family: var(--headline); text-transform: uppercase; font-size: 20px; letter-spacing: .02em; margin: 38px 0 16px; display: flex; align-items: center; gap: 10px; }
.admin__section-title:first-of-type { margin-top: 0; }
.badge { font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--red); color: #fff; padding: 3px 9px; border-radius: 20px; }

/* Tips inbox */
.tip-row { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.tip-row.is-handled { opacity: .5; border-left-color: var(--line); }
.tip-row__main { flex: 1; min-width: 0; }
.tip-row__meta { font-size: 13px; color: #cdd3e1; margin-bottom: 6px; }
.tip-row__meta a { color: var(--red-bright); }
.tip-row__date { color: var(--muted); margin-left: 6px; }
.tip-row__text { color: #e6e9f2; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.tip-row__btn { flex: none; background: transparent; border: 1px solid var(--line); color: #cdd3e1; border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 13px; font-family: var(--label); letter-spacing: .03em; }
.tip-row__btn:hover { border-color: var(--red); color: #fff; }
@media (max-width: 560px) { .tip-row { flex-direction: column; } .tip-row__btn { align-self: flex-start; } }

.login-box {
  max-width: 380px; margin: 80px auto;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 32px;
}
.login-box h1 { font-family: var(--headline); text-transform: uppercase; font-size: 24px; margin-bottom: 6px; }
.login-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.login-box form { display: flex; flex-direction: column; gap: 12px; }
.login-box input {
  background: var(--navy); border: 1px solid var(--line); border-radius: 6px;
  color: #fff; padding: 12px 14px; font-family: var(--body); font-size: 14px;
}
.login-box input:focus { outline: none; border-color: var(--red); }

.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }

/* Photo dropzone — the star of the form */
.dropzone {
  position: relative;
  border: 2px dashed rgba(225,29,42,.55);
  border-radius: var(--radius);
  background: var(--navy-soft);
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--red-bright); background: #1a2138; }
.dropzone__hint { padding: 24px; }
.dropzone__hint .big { font-family: var(--headline); text-transform: uppercase; font-size: 22px; color: #fff; }
.dropzone__hint .small { color: var(--muted); font-size: 13px; margin-top: 8px; }
.dropzone__icon { font-size: 40px; margin-bottom: 8px; }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #06080f; }
.dropzone__replace {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.7); color: #fff; font-family: var(--label);
  text-transform: uppercase; letter-spacing: .05em; font-size: 11px;
  padding: 6px 10px; border-radius: 5px;
}
.dropzone input[type=file] { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--label); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: #cdd3e1; }
.field input, .field textarea, .field select {
  background: var(--navy); border: 1px solid var(--line); border-radius: 6px;
  color: #fff; padding: 11px 13px; font-family: var(--body); font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 140px; }
.field .help { color: var(--muted); font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.progress { height: 6px; background: var(--navy); border-radius: 4px; overflow: hidden; margin: 10px 0; display: none; }
.progress.show { display: block; }
.progress__bar { height: 100%; width: 0; background: var(--red); transition: width .2s; }

.admin-status { font-size: 13px; min-height: 18px; margin-top: 8px; }
.admin-status.ok { color: #4ade80; }
.admin-status.err { color: var(--red-bright); }

.story-list { margin-top: 40px; }
.story-list h2 { font-family: var(--headline); text-transform: uppercase; font-size: 20px; margin-bottom: 16px; }
.story-row { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.story-row img { width: 72px; height: 56px; object-fit: cover; border-radius: 5px; }
.story-row .info { flex: 1; min-width: 0; }
.story-row .info .t { font-family: var(--label); font-weight: 600; font-size: 15px; }
.story-row .info .m { color: var(--muted); font-size: 12px; }
.story-row .edit, .story-row .del { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 13px; font-family: var(--label); letter-spacing: .03em; }
.story-row .edit { color: #cdd3e1; }
.story-row .edit:hover { border-color: var(--white); color: #fff; }
.story-row .del { color: var(--red-bright); }
.story-row .del:hover { border-color: var(--red); }
.form-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .tip__box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Secondary links collapse into the hamburger dropdown… */
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--navy-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 220px;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  /* …but the Merch button stays put, pushed to the right, always visible. */
  .merch-btn { margin-left: auto; }
  .menu-toggle { display: block; }
  .masthead__inner { gap: 12px; padding: 12px 16px; }
  .brand { font-size: 26px; }
  .btn-shop { padding: 8px 14px; font-size: 13px; }

  .grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr; }
  .hero__body { padding: 22px; gap: 12px; }
  .hero__title { font-size: 30px; }
  .hero__dek { font-size: 16px; max-width: none; }
  .card__body { padding: 15px 16px 18px; }
  .card__title { font-size: 18px; }
  .article { margin: 22px auto; padding: 0 16px; }
  .article h1 { font-size: 31px; }
  .article__body p { font-size: 17px; }
  .article__share { gap: 8px; }
  .footer__inner { justify-content: center; }
  .footer__links { justify-content: center; flex-wrap: wrap; }
  .modal { padding: 14px; }
  .modal__panel { padding: 28px 20px; }
}

/* Stack the lead story before the two columns get cramped. */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__img { height: auto; max-height: 72vh; }
  .hero__body { padding: 28px; }
}
