/* =========================================================
   PH News — main stylesheet
   Plain CSS, no frameworks. Edit the variables below to
   re-theme the whole site.
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --blue: #0038a8;        /* Philippine flag blue */
  --blue-light: #e8efff;
  --red: #ce1126;         /* Philippine flag red */
  --sun: #fcd116;         /* Philippine flag yellow */
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input { font: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0; }

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

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-top { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.55rem; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo span b { color: var(--blue); }
.search { flex: 1; max-width: 460px; margin: 0 auto; position: relative; }
.search input {
  width: 100%; padding: 10px 44px 10px 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); color: var(--ink);
}
.search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--muted);
}
.search button:hover { color: var(--blue); }
.header-meta { display: flex; align-items: center; gap: 16px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px; transition: background .15s;
}
.btn:hover { background: #002a80; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sun); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn--ghost:hover { background: var(--blue-light); color: var(--blue); }

.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a {
  display: block; padding: 12px 14px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Latest strip ---------- */
.latest-strip { background: #fff; border-bottom: 1px solid var(--line); }
.latest-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.mini { display: flex; gap: 12px; align-items: center; }
.mini .thumb { width: 64px; height: 52px; border-radius: 8px; flex: none; overflow: hidden; }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini h3 { font-size: .85rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .meta { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Text-only tiles used for wire news (no photo rights) */
.tile {
  display: flex; align-items: flex-end; padding: 10px; color: #fff; font-weight: 800; font-size: .6rem;
  letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(135deg, var(--blue), var(--navy));
}
.tile--world { background: linear-gradient(135deg, #334155, #0f172a); }
.tile--biz { background: linear-gradient(135deg, #047857, #064e3b); }
.tile--weather { background: linear-gradient(135deg, #0891b2, #164e63); }
.tile--gov { background: linear-gradient(135deg, var(--red), #7f1d1d); }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; background: var(--blue); color: #fff; line-height: 1.2;
}
.tag--press { background: var(--sun); color: var(--ink); }
.tag--world { background: #334155; }
.tag--red { background: var(--red); }
.tag--outline { background: transparent; border: 1px solid currentColor; }

/* ---------- Section titles ---------- */
.section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-head h2 { font-size: 1.25rem; font-weight: 800; padding-left: 12px; border-left: 4px solid var(--blue); }
.section-head a { font-size: .82rem; font-weight: 700; color: var(--blue); }
.section-head a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 24px; }
.hero-main { position: relative; min-height: 460px; color: #fff; background: var(--navy); }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,58,0) 20%, rgba(11,31,58,.95) 100%), linear-gradient(90deg, rgba(11,31,58,.55) 0%, rgba(11,31,58,0) 60%); }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; }
.hero-body .kicker { color: var(--sun); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 10px 0 8px; }
.hero-body h1, .hero-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; max-width: 640px; }
.hero-body p { margin-top: 10px; max-width: 560px; color: #dbe3f0; }
.hero-body .btn { margin-top: 18px; }
.hero-body .tag { position: relative; }
.hero-side { background: var(--navy); color: #fff; padding: 22px; }
.hero-side h2 { font-size: 1rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hero-side h2 a { font-size: .75rem; color: #b9c6dc; font-weight: 600; }
.hero-live-state { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: #b9c6dc; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.hero-side.is-live .hero-live-state { color: #86efac; }
.hero-side.is-live .hero-live-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.hero-side ol { list-style: none; margin: 0; padding: 0; }
.hero-side li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hero-side li:first-child { border-top: 0; }
.hero-side .meta { font-size: .72rem; color: #9fb0cc; margin-bottom: 4px; }
.hero-side a.h { font-weight: 700; font-size: .95rem; color: #fff; }
.hero-side a.h:hover { color: var(--sun); }

/* ---------- Cards / grids ---------- */
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.dm-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: minmax(240px, 1fr) minmax(240px, 1fr); gap: 14px; }
.card-img {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 200px;
  background: var(--navy); display: block;
}
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-img:hover img { transform: scale(1.04); }
.card-img:hover { color: #fff; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.card-img .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.card-img .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; }
.card-img h3 { font-size: .98rem; font-weight: 800; }
.card-img .meta { font-size: .72rem; color: #d1d5db; margin-top: 6px; }
.card-img--big { grid-row: span 2; }
.card-img--big h3 { font-size: 1.45rem; }

.top-list { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; }
.top-list h2 { font-size: 1.05rem; font-weight: 800; display: flex; justify-content: space-between; margin-bottom: 6px; }
.top-list h2 a { font-size: .75rem; color: var(--blue); }
.top-list ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.top-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); counter-increment: n; }
.top-list li:first-child { border-top: 0; }
.top-list li::before { content: counter(n); font-size: 1.4rem; font-weight: 900; color: var(--blue); line-height: 1; }
.top-list a { font-weight: 700; font-size: .9rem; }
.top-list .meta { font-size: .72rem; color: var(--muted); margin-top: 4px; }

.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.05rem; font-weight: 800; }
.card p { font-size: .9rem; color: var(--ink-2); }
.card .meta { font-size: .75rem; color: var(--muted); margin-top: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- Photo feature (like "Popular Videos") ---------- */
.photo-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.photo-feature .card-img { min-height: 380px; }
.photo-list { display: flex; flex-direction: column; gap: 14px; }
.photo-list a { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; }
.photo-list img { width: 140px; height: 92px; object-fit: cover; border-radius: var(--radius-sm); }
.photo-list h3 { font-size: .92rem; font-weight: 700; }
.photo-list .meta { font-size: .72rem; color: var(--muted); margin-top: 4px; }

/* ---------- Wire briefs ---------- */
.brief { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; scroll-margin-top: 140px; }
.brief h2 { font-size: 1.25rem; font-weight: 800; margin: 8px 0; }
.brief p { color: var(--ink-2); margin-bottom: 10px; }
.brief .source { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.brief .source a { color: var(--blue); font-weight: 600; }
.brief .source a:hover { text-decoration: underline; }
.brief:target { outline: 3px solid var(--sun); }

/* ---------- Page heads ---------- */
.page-head { background: var(--navy); color: #fff; padding: 40px 0 34px; }
.page-head .eyebrow { color: var(--sun); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-top: 6px; }
.page-head p { color: #c9d4e6; margin-top: 10px; max-width: 720px; }

.notice {
  background: #fff8db; border: 1px solid #f3d36b; color: #5b4400; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .9rem; margin: 22px 0 0;
}
.notice strong { color: #3d2e00; }

/* ---------- Article ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 32px 0 20px; }
.article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; margin: 12px 0; letter-spacing: -.01em; }
.article .dek { font-size: 1.12rem; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .88rem; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.byline strong { display: block; }
.byline .meta { color: var(--muted); font-size: .8rem; }
.share { margin-left: auto; display: flex; gap: 8px; }
.share button, .share a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-2);
}
.share button:hover, .share a:hover { border-color: var(--blue); color: var(--blue); }
.share svg { width: 16px; height: 16px; }
.article figure { margin: 0 0 22px; }
.article figure img { border-radius: var(--radius-sm); width: 100%; max-height: 560px; object-fit: cover; object-position: center 20%; }
.article figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.article-body { font-family: var(--serif); font-size: 1.14rem; line-height: 1.75; color: #1f2937; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { font-family: var(--font); font-size: 1.25rem; font-weight: 800; margin: 1.6em 0 .6em; }
.article-body blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun);
  font-style: italic; font-size: 1.22rem; color: var(--ink);
}
.disclosure {
  display: flex; gap: 12px; background: #fff8db; border: 1px solid #f3d36b; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .88rem; color: #5b4400; margin: 6px 0 22px; font-family: var(--font);
}
.disclosure svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.disclosure strong { color: #3d2e00; }
.article-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.article-foot a { font-weight: 700; color: var(--blue); font-size: .9rem; }
.article-foot a:hover { text-decoration: underline; }
.aside-stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button {
  padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; background: rgba(5, 12, 24, .92); display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 24px; flex-direction: column; gap: 12px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox p { color: #e5e7eb; font-size: .9rem; text-align: center; max-width: 720px; }
.lightbox .close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1;
}

/* ---------- Newsletter ---------- */
.newsletter {
  margin: 40px 0 0; background: linear-gradient(120deg, var(--blue-light), #fff7d6); border-radius: var(--radius);
  padding: 26px 28px; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 22px; align-items: center;
}
.newsletter .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue); display: grid; place-items: center; color: #fff; }
.newsletter .icon svg { width: 28px; height: 28px; }
.newsletter h2 { font-size: 1.15rem; font-weight: 800; }
.newsletter p { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type="email"] { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.form-msg { font-size: .85rem; margin-top: 8px; color: #065f46; min-height: 1em; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field textarea, .field select {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #cbd5e1; background: #fff; color: var(--ink); font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.hidden-field { display: none; }

/* ---------- Prose pages ---------- */
.prose { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: .8em; }
.prose a { color: var(--blue); text-decoration: underline; }

/* ---------- Search results ---------- */
.result { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 12px; display: block; }
.result h2 { font-size: 1.08rem; font-weight: 800; margin: 6px 0 4px; }
.result p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d4e6; margin-top: 48px; padding: 44px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer .logo { color: #fff; }
.site-footer .logo span b { color: var(--sun); }
.site-footer h2 { color: #fff; font-size: .92rem; font-weight: 800; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--sun); }
.site-footer .about { margin-top: 12px; max-width: 300px; }
.footer-network { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 24px; }
.footer-network ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 24px; }
.footer-network li { margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: #9fb0cc; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
/* ---------- Live headlines (homepage) ---------- */
.live-news .section-head { align-items: center; }
.live-status { font-size: .78rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.live-news.is-live .live-status { color: #047857; }
.live-news.is-live .live-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.live-note { font-size: .85rem; color: var(--muted); margin: -4px 0 14px; }
.live-news .notice { margin: 0 0 16px; }
.live-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.live-col { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; }
.live-col-title { margin-bottom: 4px; }
.live-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.live-item { padding: 14px 0; border-top: 1px solid var(--line); }
.live-item:first-child { border-top: 0; }
.live-item .meta { font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.live-pub { font-weight: 700; color: var(--ink-2); }
.live-title { font-weight: 800; font-size: 1rem; line-height: 1.3; display: block; }
.live-title:hover { color: var(--blue); text-decoration: underline; }
.live-excerpt { font-size: .86rem; color: var(--ink-2); margin-top: 6px; overflow-wrap: anywhere; }
.live-more { font-size: .82rem; font-weight: 700; color: var(--blue); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .live-cols { grid-template-columns: 1fr; } }

@media (max-width: 1024px) {
  .header-meta .date { display: none; }
  .latest-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .layout-2, .article-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-network ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { grid-template-columns: auto 1fr; }
  .newsletter form, .newsletter > div:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .header-top { flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-meta { display: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left: 3px solid var(--blue); }
  .latest-strip .wrap { grid-template-columns: 1fr; }
  .latest-strip .mini:nth-child(n+3) { display: none; }
  .hero-main { min-height: 480px; }
  .hero-main::after { background: linear-gradient(180deg, rgba(11,31,58,.1) 0%, rgba(11,31,58,.75) 40%, rgba(11,31,58,.96) 100%); }
  .hero-body { padding: 20px; }
  .dm-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .card-img--big { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .photo-feature { grid-template-columns: 1fr; }
  .photo-feature .card-img { min-height: 280px; }
  .article { padding: 20px; }
  .article-body { font-size: 1.06rem; }
  .byline { flex-wrap: wrap; }
  .share { margin-left: 0; width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 22px; }
  .newsletter form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .newsletter, .share, .to-top, .aside-stack, .latest-strip { display: none !important; }
  .article-wrap { display: block; }
  .article { box-shadow: none; padding: 0; }
}
