/* =====================================================================
   NewsPilot — main stylesheet
   Contents
     1. Design tokens
     2. Base and typography
     3. Utility bar, header, navigation
     4. Breaking-news ticker and search overlay
     5. Homepage: lead story, sections, cards, latest feed
     6. News listing: filters, grid, pagination
     7. Article pages
     8. Static pages: about, editorial, contact, legal
     9. Forms, buttons, modal, cookie banner
    10. Footer
    11. Responsive rules and reduced motion
   ===================================================================== */

/* 1. Design tokens -------------------------------------------------- */
:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --ink-muted: #5e5e5e;
  --line: #e8e8e8;
  --paper: #f5f5f5;
  --red: #b80018;
  --red-dark: #8f0013;
  --focus: #0a58ca;

  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --gap: 24px;
}

/* 2. Base and typography -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1em;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The hidden attribute always wins over component display rules. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

/* 3. Utility bar, header, navigation -------------------------------- */
.utility-bar {
  background: var(--ink);
  color: #d6d6d6;
  font-size: 0.8125rem;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.utility-nav a,
.utility-nav .link-btn {
  color: #d6d6d6;
  text-decoration: none;
}

.utility-nav a:hover,
.utility-nav .link-btn:hover {
  color: var(--white);
  text-decoration: underline;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.logo-word {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover,
.menu-toggle:hover {
  background: var(--paper);
}

.menu-toggle {
  justify-self: start;
  visibility: hidden;
}

.primary-nav {
  border-top: 1px solid var(--line);
}

.primary-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav a {
  display: block;
  padding: 12px 12px 10px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover {
  border-bottom-color: var(--ink);
}

.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}

/* 4. Breaking-news ticker and search overlay ------------------------ */
.ticker {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.ticker[hidden] {
  display: none;
}

.ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 44px;
}

.ticker-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-list {
  display: flex;
  gap: 48px;
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  align-items: center;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track:hover .ticker-list,
.ticker-track:focus-within .ticker-list {
  animation-play-state: paused;
}

.ticker-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ticker-list a:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(17, 17, 17, 0.6);
}

.search-overlay.is-open {
  display: block;
}

.search-panel {
  background: var(--white);
  padding: 28px 0 32px;
  border-bottom: 4px solid var(--red);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  font: inherit;
  font-size: 1.25rem;
}

.search-results {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.search-results li + li {
  border-top: 1px solid var(--line);
}

.search-results a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  text-decoration: none;
}

.search-results a:hover {
  text-decoration: underline;
}

.search-results .card-category {
  display: block;
  margin-bottom: 2px;
}

.search-hint {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Sample-content notice used across the site */
.sample-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.sample-strip p {
  margin: 0;
  padding: 8px 0;
}

/* 5. Homepage ------------------------------------------------------- */
main {
  display: block;
  padding-bottom: 88px;
}

main.contact-page {
  padding-bottom: 120px;
}

.home-top {
  padding-top: 28px;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
}

.lead-story a {
  display: block;
  text-decoration: none;
}

.lead-story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper);
}

.lead-story .lead-text {
  padding-top: 16px;
}

.lead-story h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead-story a:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.lead-story p.excerpt {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 60ch;
}

.secondary-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.secondary-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.secondary-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}

.section-head h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

.section-head h2 a {
  text-decoration: none;
}

.section-head h2 a:hover {
  text-decoration: underline;
}

.section-more {
  font-size: 0.875rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px var(--gap);
}

.card a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper);
}

.card-body {
  padding-top: 10px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.card a:hover h3 {
  text-decoration: underline;
}

.card p.excerpt {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.card-category {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
}

.card-meta,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.tag-breaking {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: 1px;
}

/* Two-column homepage band: latest feed + editor's picks */
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
}

.latest-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.latest-item a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.latest-item:first-child a {
  border-top: 0;
  padding-top: 0;
}

.latest-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.latest-item h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

.latest-item a:hover h3 {
  text-decoration: underline;
}

.load-more-wrap {
  margin-top: 20px;
}

.picks-box {
  padding: 20px;
  background: var(--paper);
}

.picks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pick;
}

.picks-list li {
  counter-increment: pick;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 14px 0;
  border-top: 1px solid #dcdcdc;
}

.picks-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.picks-list li::before {
  content: counter(pick);
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.picks-list a {
  font-weight: 700;
  text-decoration: none;
}

.picks-list a:hover {
  text-decoration: underline;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 56px;
  padding: 28px;
  background: var(--ink);
  color: var(--white);
}

.cta-band h2 {
  font-size: 1.5rem;
}

.cta-band p {
  margin: 6px 0 0;
  color: #cfcfcf;
}

.empty-state {
  padding: 24px;
  background: var(--paper);
  color: var(--ink-soft);
}

.empty-state a {
  font-weight: 700;
}

/* Two sections side by side (homepage) */
.dual-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap);
}

/* 6. News listing ---------------------------------------------------- */
.page-head {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 10px 0 0;
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #cfcfcf;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.listing-search {
  display: flex;
  gap: 8px;
}

.listing-search input {
  width: 240px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid #9a9a9a;
  font: inherit;
}

.results-count {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--ink);
}

.pagination [aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.pagination .is-disabled {
  color: #9a9a9a;
}

/* 7. Article pages --------------------------------------------------- */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #9a9a9a;
}

.breadcrumb li[aria-current] {
  color: var(--ink-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.article-kicker {
  margin-bottom: 12px;
}

.category-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.category-link:hover {
  text-decoration: underline;
}

.article-title {
  max-width: 22ch;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.article-summary {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.article-meta strong {
  color: var(--ink);
}

.article-figure {
  margin: 24px 0 0;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper);
}

.article-figure figcaption {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.credit {
  color: #7a7a7a;
}

.article-body {
  max-width: 68ch;
  margin-top: 28px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-body h2 {
  margin: 2em 0 0.75em;
  font-size: 1.5rem;
  font-weight: 800;
}

.article-body p {
  margin: 0 0 1.5em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.article-body li {
  margin-bottom: 0.65em;
}

.article-body > p:first-child {
  padding: 12px 16px;
  background: var(--paper);
  border-left: 4px solid var(--red);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.article-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.article-tags a {
  display: inline-block;
  padding: 5px 10px;
  background: var(--paper);
  font-size: 0.875rem;
  text-decoration: none;
}

.article-tags a:hover {
  text-decoration: underline;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share-title {
  font-size: 1rem;
  font-weight: 700;
}

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

.share-links a,
.share-links button {
  padding: 7px 12px;
  border: 1px solid #cfcfcf;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share-links a:hover,
.share-links button:hover {
  border-color: var(--ink);
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-title {
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-item a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.related-item:first-child a {
  border-top: 0;
  padding-top: 0;
}

.related-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-title {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.related-item a:hover .related-title {
  text-decoration: underline;
}

.related-text .card-category {
  margin-bottom: 2px;
}

.sidebar-cta {
  padding: 0 20px 20px;
  background: var(--paper);
}

.sidebar-cta .sidebar-title {
  margin: 0 -20px 14px;
  padding: 14px 20px 0;
}

.not-found {
  max-width: 640px;
  padding: 56px 0;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* 8. Static pages ---------------------------------------------------- */
.prose {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose h2 {
  margin: 2em 0 0.75em;
  font-size: 1.5rem;
  font-weight: 800;
}

.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.1875rem;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.65em;
}

.verify-note {
  margin: 0 0 28px;
  padding: 14px 18px;
  background: #fff4f5;
  border-left: 4px solid var(--red);
  font-size: 0.9375rem;
}

.placeholder {
  background: #fff1b8;
  padding: 0 4px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.info-panel {
  padding: 24px;
  background: var(--paper);
}

.info-panel h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.info-panel dl {
  margin: 0;
}

.info-panel dt {
  margin-top: 14px;
  font-weight: 700;
}

.info-panel dd {
  margin: 2px 0 0;
}

/* 9. Forms, buttons, modal, cookie banner ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--paper);
}

.btn-red {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
}

.btn-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #8a8a8a;
  background: var(--white);
  font: inherit;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 4px;
  color: var(--red);
  font-size: 0.875rem;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 0.9375rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  background: #eef7ee;
  border-left: 4px solid #2c7a2c;
}

.form-status.is-error {
  background: #fff4f5;
  border-left: 4px solid var(--red);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(17, 17, 17, 0.65);
}

.modal.is-open {
  display: grid;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px 28px 28px;
  background: var(--white);
  border-top: 5px solid var(--red);
}

.modal-dialog h2 {
  margin-bottom: 8px;
  padding-right: 32px;
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-intro {
  color: var(--ink-soft);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

body.no-scroll {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  background: var(--white);
  border: 1px solid #cfcfcf;
  border-top: 4px solid var(--ink);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.cookie-banner p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-options {
  margin: 4px 0 16px;
  padding: 0;
  border: 0;
}

.cookie-options[hidden] {
  display: none;
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.cookie-option strong {
  display: block;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 400;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
}

/* 10. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #d6d6d6;
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 32px;
}

.footer-brand .logo {
  justify-self: start;
  color: var(--white);
}

.footer-brand p {
  margin-top: 14px;
  max-width: 34ch;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a,
.site-footer .link-btn {
  color: #d6d6d6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer .link-btn:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  border-top: 1px solid #333;
  font-size: 0.8125rem;
  color: #a8a8a8;
}

.footer-bottom p {
  margin: 0;
}

/* 11. Responsive rules ----------------------------------------------- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .article-sidebar {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .lead-grid,
  .split-band,
  .dual-sections,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-toggle {
    visibility: visible;
  }

  .header-subscribe {
    display: none;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    padding: 8px 0;
  }

  .primary-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a[aria-current="page"] {
    border-left: 4px solid var(--red);
    padding-left: 10px;
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .utility-date {
    display: none;
  }

  .utility-inner {
    justify-content: center;
  }

  .logo-word {
    font-size: 1.375rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .latest-item a {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }

  .latest-item h3 {
    font-size: 1rem;
  }

  .latest-item .excerpt {
    display: none;
  }

  .article-summary {
    font-size: 1.125rem;
  }

  .article-body {
    font-size: 1.0625rem;
  }

  .listing-search,
  .listing-search input {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-form input {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-list {
    animation: none;
    width: auto;
    overflow-x: auto;
  }

  .ticker-track {
    overflow-x: auto;
  }

  * {
    scroll-behavior: auto !important;
  }
}

/* Consent checkbox row: overrides the block label style used for text fields */
.form-field .consent-field {
  display: flex;
  font-weight: 400;
}

.form-field .consent-field input {
  width: 18px;
}

.latest-item .excerpt {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Images placed inside an article body (add with <figure class="body-figure">) */
.article-body .body-figure {
  max-width: 520px;
  margin: 2em 0;
}

.article-body .body-figure img {
  width: 100%;
  height: auto;
  background: var(--paper);
}

.article-body .body-figure figcaption {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Wider in-article image for landscape-shaped photos */
.article-body .body-figure-wide {
  max-width: 100%;
}
