/* ==========================================================================
   Times of Switzerland - Shared Design System
   One stylesheet for every page. Brand tokens first, then layout,
   components and page helpers. No frameworks, plain CSS.
   ========================================================================== */

/* ---------- Brand tokens ---------- */
:root {
  /* Brand colors */
  --swiss-red: #da291c;
  --swiss-red-dark: #a81e13;
  --ink: #121212;
  --paper: #ffffff;
  --paper-warm: #faf9f6;
  --gray-1: #f4f4f1;
  --gray-2: #e2e2e2;
  --gray-3: #c7c7c7;
  --gray-text: #5a5a5a;
  --gray-meta: #888888;
  --up: #0d7a3f;
  --down: #c2120f;

  /* Typography */
  --font-wordmark: 'Pirata One', 'Times New Roman', serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Layout */
  --max-width: 1280px;
  --rule: 1px solid var(--gray-2);
  --rule-dark: 1px solid var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.kicker {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--swiss-red);
  margin: 0 0 6px;
}
.kicker.kicker-dark { color: var(--ink); }
.timestamp {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-meta);
  letter-spacing: 0.02em;
}
.byline {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.byline .by { font-weight: 400; color: var(--gray-text); text-transform: none; }
.live-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--swiss-red);
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  vertical-align: middle;
}
.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--paper);
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--gray-1); }
.btn-primary { background: var(--swiss-red); border-color: var(--swiss-red); color: #fff; }
.btn-primary:hover { background: var(--swiss-red-dark); border-color: var(--swiss-red-dark); }

/* ---------- Utility bar ---------- */
.utilitybar {
  border-bottom: var(--rule);
  font-family: var(--font-sans);
  font-size: 12px;
}
.utilitybar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.utilitybar-date { color: var(--ink); font-weight: 500; white-space: nowrap; }
.utilitybar-date .edition { color: var(--gray-meta); margin-left: 8px; }
.utilitybar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 6px; color: var(--gray-meta); }
.lang-switch a { padding: 2px 3px; }
.lang-switch a.active { color: var(--ink); font-weight: 700; }
.lang-switch a:hover { color: var(--swiss-red); }
.login-link { font-weight: 500; }
.login-link:hover { color: var(--swiss-red); }
.btn-subscribe { padding: 6px 12px; font-size: 11px; }

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding: 18px 0 10px; }
.wordmark {
  font-family: var(--font-wordmark);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  color: var(--ink);
  display: inline-block;
}
.wordmark:hover { color: var(--ink); }
.masthead-tagline {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-top: 8px;
}

/* ---------- Main navigation ---------- */
.mainnav { border-top: var(--rule); border-bottom: 1px solid var(--ink); }
.mainnav .container { display: flex; align-items: stretch; }
.mainnav ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  justify-content: center;
}
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 13px;
  white-space: nowrap;
  color: var(--ink);
}
.mainnav a:hover { background: var(--gray-1); color: var(--swiss-red); }
.mainnav a.active { box-shadow: inset 0 -3px 0 var(--swiss-red); color: var(--swiss-red); }

/* ---------- Market ticker ---------- */
.ticker { border-bottom: var(--rule); background: var(--paper-warm); overflow: hidden; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
}
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--swiss-red);
  flex: 0 0 auto;
}
.ticker-item { display: inline-flex; align-items: baseline; gap: 6px; flex: 0 0 auto; }
.ticker-item .t-name { color: var(--gray-text); font-weight: 500; }
.ticker-item .t-price { font-family: var(--font-mono); font-weight: 600; }
.t-change.up { color: var(--up); }
.t-change.down { color: var(--down); }
.t-change { font-family: var(--font-mono); font-size: 11px; }

/* ---------- Headline blocks ---------- */
.headline {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.headline a:hover { color: var(--swiss-red); }
.headline-xl { font-size: clamp(30px, 4vw, 44px); }
.headline-lg { font-size: clamp(24px, 3vw, 30px); }
.headline-md { font-size: 21px; }
.headline-sm { font-size: 17px; line-height: 1.25; }
.summary { font-size: 15px; color: var(--gray-text); line-height: 1.45; margin: 0 0 8px; }
.story { padding: 18px 0; border-bottom: var(--rule); }
.story:last-child { border-bottom: 0; }
.story-flush { padding-top: 0; }

/* ---------- Homepage hero grid ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  padding: 24px 0;
}
.hero-main { border-right: var(--rule); padding-right: 30px; }
.hero-main figure { margin: 14px 0 0; }
.hero-main .headline { text-align: left; }
.hero-rail .story:first-child { padding-top: 0; }
figcaption, .caption {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--gray-meta);
  padding-top: 8px;
  line-height: 1.4;
}
.caption .credit { color: var(--gray-3); text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; }

/* ---------- Section headers ---------- */
.section-block { border-top: var(--rule); padding: 22px 0 30px; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.section-more {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-text);
}
.section-more:hover { color: var(--swiss-red); }

/* ---------- Card grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { border-bottom: var(--rule); padding-bottom: 18px; }
.card figure { margin: 0 0 12px; }
.card-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.divide-cols > * + * { border-left: var(--rule); padding-left: 26px; }

/* ---------- Opinion ---------- */
.opinion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.opinion-card .headline { font-style: italic; }
.opinion-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.opinion-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}
.opinion-name { font-family: var(--font-sans); font-size: 12px; font-weight: 700; }
.opinion-role { font-family: var(--font-sans); font-size: 11px; color: var(--gray-meta); }

/* ---------- Market widgets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.market-card {
  border: var(--rule);
  border-radius: 4px;
  padding: 16px 18px 10px;
  background: var(--paper);
  transition: box-shadow 0.15s ease;
}
.market-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.market-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.market-name { font-family: var(--font-sans); font-size: 13px; font-weight: 700; }
.market-unit { font-family: var(--font-sans); font-size: 10.5px; color: var(--gray-meta); }
.market-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.market-price { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.market-change { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; }
.market-change.up { color: var(--up); }
.market-change.down { color: var(--down); }
.market-chart { margin: 6px -6px 0; }
.market-foot {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--gray-meta);
  padding: 6px 0 8px;
  border-top: 1px dotted var(--gray-2);
  margin-top: 6px;
}
.market-group-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 34px 0 16px;
  padding-bottom: 8px;
  border-bottom: var(--rule);
}
.market-group-title:first-of-type { margin-top: 0; }
.sparkline-up { stroke: var(--up); }
.sparkline-down { stroke: var(--down); }

/* ---------- Weather ---------- */
.weather-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.weather-cell {
  border: var(--rule);
  border-radius: 4px;
  padding: 12px;
  text-align: center;
  background: var(--paper);
}
.weather-city { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.weather-temp { font-family: var(--font-mono); font-size: 24px; font-weight: 600; margin: 4px 0 2px; }
.weather-desc { font-family: var(--font-sans); font-size: 11px; color: var(--gray-text); }
.weather-icon { width: 34px; height: 34px; margin: 4px auto; }
.weather-day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.weather-day {
  border: var(--rule);
  border-radius: 4px;
  padding: 12px 8px;
  text-align: center;
  background: var(--paper);
}
.weather-day .d-name { font-family: var(--font-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.weather-day .d-temps { font-family: var(--font-mono); font-size: 13px; margin-top: 6px; }
.weather-day .d-temps .lo { color: var(--gray-meta); }
.weather-day .d-desc { font-family: var(--font-sans); font-size: 10.5px; color: var(--gray-text); margin-top: 4px; min-height: 26px; }
.city-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.city-picker button {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--gray-3);
  background: var(--paper);
  color: var(--gray-text);
}
.city-picker button:hover { border-color: var(--ink); color: var(--ink); }
.city-picker button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: var(--paper-warm);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 44px 0;
  text-align: center;
}
.newsletter-band .headline { font-size: 28px; }
.newsletter-band p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray-text);
  max-width: 560px;
  margin: 0 auto 18px;
}
.newsletter-form { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type='email'] {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--gray-3);
  border-radius: 3px;
  width: 300px;
  max-width: 80vw;
}
.newsletter-form input[type='email']:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.newsletter-note { font-family: var(--font-sans); font-size: 11px; color: var(--gray-meta); margin-top: 12px; }

/* ---------- Newsletter popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.popup-overlay.open { display: flex; }
.popup-card {
  background: var(--paper);
  max-width: 460px;
  width: 100%;
  border-top: 5px solid var(--swiss-red);
  padding: 34px 34px 28px;
  position: relative;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  animation: popup-in 0.25s ease;
}
@keyframes popup-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-close {
  position: absolute;
  top: 10px; right: 12px;
  border: 0; background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-meta);
}
.popup-close:hover { color: var(--ink); }
.popup-card .headline { font-size: 24px; }
.popup-card p { font-family: var(--font-sans); font-size: 13.5px; color: var(--gray-text); margin: 0 0 16px; }
.popup-card .newsletter-form { justify-content: flex-start; }
.popup-card .newsletter-form input[type='email'] { width: 100%; flex: 1 1 auto; }
.popup-success { display: none; font-family: var(--font-sans); font-size: 14px; color: var(--up); font-weight: 700; margin-top: 10px; }

/* ---------- Article page ---------- */
.article-header { max-width: 720px; margin: 34px auto 0; text-align: center; }
.article-header .headline { margin-top: 6px; }
.article-standfirst { font-size: 18px; color: var(--gray-text); line-height: 1.5; margin: 12px 0 18px; }
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 10px 2px;
  font-family: var(--font-sans);
}
.article-figure { max-width: 980px; margin: 26px auto; }
.article-body { max-width: 640px; margin: 0 auto; font-size: 18px; line-height: 1.72; }
.article-body p { margin: 0 0 1.3em; }
.article-body p:first-of-type::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 4px 10px 0 0;
  font-weight: 500;
}
.article-body h2 { font-size: 22px; margin: 1.6em 0 0.6em; }
.pullquote {
  font-size: 24px;
  line-height: 1.35;
  font-style: italic;
  border-left: 3px solid var(--swiss-red);
  padding-left: 22px;
  margin: 1.6em 0;
  color: var(--ink);
}
.share-tools { display: flex; gap: 8px; }
.share-tools button {
  width: 30px; height: 30px;
  border: var(--rule);
  border-radius: 50%;
  background: var(--paper);
  font-size: 13px;
  color: var(--gray-text);
}
.share-tools button:hover { border-color: var(--ink); color: var(--ink); }
.author-box {
  max-width: 640px;
  margin: 40px auto;
  border-top: var(--rule);
  padding-top: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-box .opinion-avatar { width: 52px; height: 52px; font-size: 15px; }
.author-box p { font-family: var(--font-sans); font-size: 13px; color: var(--gray-text); margin: 4px 0 0; }

/* ---------- Section front ---------- */
.sectionfront-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 24px 0; }
.sectionfront-hero .hero-main { border-right: var(--rule); padding-right: 30px; }
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-meta);
  padding: 14px 0 0;
}
.breadcrumb a:hover { color: var(--swiss-red); }
.page-title { font-size: clamp(30px, 4vw, 40px); font-weight: 500; margin: 6px 0 4px; }
.page-intro { font-size: 15px; color: var(--gray-text); max-width: 640px; margin: 0 0 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); margin-top: 40px; }
.footer-top { padding: 34px 0 26px; }
.footer-wordmark { font-family: var(--font-wordmark); font-size: 30px; display: inline-block; margin-bottom: 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink);
}
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-family: var(--font-sans); font-size: 12px; color: var(--gray-text); }
.footer-col a:hover { color: var(--swiss-red); }
.footer-bottom {
  border-top: var(--rule);
  padding: 14px 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-meta);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--swiss-red); }

/* ---------- Lead forms (newsletter, contact, review) ---------- */
.form-status {
  display: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}
.form-status.ok { color: var(--up); }
.form-status.err { color: var(--down); }
.form-card {
  border: var(--rule);
  border-top: 4px solid var(--swiss-red);
  border-radius: 4px;
  padding: 26px;
  background: var(--paper);
  height: 100%;
}
.form-card h3 { font-size: 20px; margin: 0 0 6px; }
.form-card > p { font-family: var(--font-sans); font-size: 13px; color: var(--gray-text); margin: 0 0 16px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--gray-3);
  border-radius: 3px;
  background: var(--paper);
}
.form-field textarea { min-height: 120px; resize: vertical; font-family: var(--font-serif); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rating-picker { display: flex; gap: 8px; }
.rating-picker label {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-3);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700;
  color: var(--gray-text);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.rating-picker input { position: absolute; opacity: 0; pointer-events: none; }
.rating-picker input:checked + label,
.rating-picker label:hover { border-color: var(--swiss-red); color: var(--swiss-red); }
.rating-picker input:checked + label { background: var(--swiss-red); color: #fff; }
.contact-info { font-family: var(--font-sans); font-size: 14px; color: var(--gray-text); line-height: 1.7; }
.contact-info strong { color: var(--ink); }
button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Accessibility widget ---------- */
.a11y-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 0;
}
.a11y-btn:hover, .a11y-btn:focus-visible { background: var(--swiss-red); outline: none; }
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-panel {
  position: fixed;
  left: 18px;
  bottom: 76px;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
  z-index: 1100;
  display: none;
  font-family: var(--font-sans);
}
.a11y-panel.open { display: block; }
.a11y-panel h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--gray-2);
  font-size: 13px;
}
.a11y-row .a11y-actions { display: flex; gap: 6px; }
.a11y-row button {
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--gray-3);
  background: var(--paper);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}
.a11y-row button:hover { border-color: var(--ink); }
.a11y-row button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-reset {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--gray-3);
  background: var(--paper-warm);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}
.a11y-reset:hover { border-color: var(--ink); }

/* Accessibility mode overrides */
html.a11y-underline a { text-decoration: underline !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.a11y-contrast body { background: #fff !important; color: #000 !important; }
html.a11y-contrast .kicker,
html.a11y-contrast .ticker-label,
html.a11y-contrast .mainnav a.active,
html.a11y-contrast a:hover { color: #000 !important; box-shadow: none; }
html.a11y-contrast .summary,
html.a11y-contrast .timestamp,
html.a11y-contrast .caption,
html.a11y-contrast .footer-col a,
html.a11y-contrast .contact-info { color: #222 !important; }
html.a11y-contrast .market-card,
html.a11y-contrast .weather-cell,
html.a11y-contrast .weather-day,
html.a11y-contrast .form-card { border-color: #000; }
html.a11y-contrast .btn-primary { background: #000; border-color: #000; }
html.a11y-contrast .popup-card { border-top-color: #000; }
html.a11y-contrast .live-badge { background: #000; }

/* ---------- Privacy notice banner ---------- */
.privacy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: #f4f4f1;
  z-index: 1050;
  font-family: var(--font-sans);
  font-size: 12.5px;
  display: none;
}
.privacy-bar.open { display: block; }
.privacy-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.privacy-bar p { margin: 0; flex: 1 1 420px; line-height: 1.45; }
.privacy-bar a { color: #fff; text-decoration: underline; }
.privacy-bar .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  padding: 7px 14px;
  font-size: 11px;
}
.privacy-bar .btn:hover { background: var(--gray-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4, .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .market-grid { grid-template-columns: repeat(2, 1fr); }
  .weather-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .weather-day-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .hero-grid, .sectionfront-hero { grid-template-columns: 1fr; }
  .hero-main, .sectionfront-hero .hero-main { border-right: 0; padding-right: 0; }
  .grid-3, .grid-4, .grid-2, .market-grid { grid-template-columns: 1fr; }
  .divide-cols > * + * { border-left: 0; padding-left: 0; }
  .utilitybar .container { flex-wrap: wrap; padding: 6px 20px; }
  .weather-strip { grid-template-columns: repeat(2, 1fr); }
  .weather-day-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .article-meta { flex-direction: column; gap: 10px; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}
