/* ============================================================
   massry.news — Public Site Styles
   Inspired by The Times: clean, authoritative, serif-driven
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAF9F6;
  --color-bg-section: #F5F4F0;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-accent: #8B1A1A;
  --color-accent-light: #B22222;
  --color-rule: #1A1A1A;
  --color-rule-light: #D0D0D0;
  --color-link: #1A1A1A;
  --color-annotation-bg: #F7F6F3;
  --color-annotation-border: #D8D3C8;

  --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1280px;
  --gutter: 24px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

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

/* --- Pre-header (institutional bar) --- */
.pre-header {
  background: #f0efed;
  border-bottom: 1px solid #e0dfdc;
  padding: 5px 0;
  text-align: center;
}

.pre-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
}

/* --- Masthead --- */
.masthead {
  border-bottom: 3px solid var(--color-rule);
  padding: 24px 0 16px;
  text-align: center;
}

.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.masthead-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--color-text);
}

.masthead-tagline {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* --- Section Navigation --- */
.section-nav {
  border-bottom: 1px solid var(--color-rule-light);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Fade-indicator container */
  overflow: hidden;
}

.section-nav::before,
.section-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.section-nav::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.section-nav::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.section-nav.fade-left::before {
  opacity: 1;
}

.section-nav.fade-right::after {
  opacity: 1;
}

/* Scroll-hint chevron (right edge) */
.nav-scroll-hint {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 3px;          /* stop above the nav's border-bottom */
  width: 36px;
  z-index: 3;
  border: none;
  background: linear-gradient(to left, var(--color-bg) 50%, transparent);
  color: var(--color-text-secondary);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 0;
}

.section-nav.fade-right .nav-scroll-hint {
  opacity: 1;
  pointer-events: auto;
}

.nav-scroll-hint:hover {
  color: var(--color-text);
}

.section-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.section-nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* --- Content Area --- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 60vh;
}

/* --- Loading State --- */
.loading {
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-rule-light);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 80px 0;
}

.empty-state h2 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-secondary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

/* --- Hero Article --- */
.hero {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-rule-light);
  margin-bottom: 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-image-link {
  display: block;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-bg-section);
}

.hero-content {
  padding-top: 8px;
}

.hero-source {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title a {
  color: inherit;
}

.hero-title a:hover {
  color: var(--color-accent);
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* --- Structured Annotation (hero + lead) --- */
.structured-annotation {
  margin-top: 8px;
}

.structured-annotation .annotation-section {
  padding: 8px 0;
  border-top: 1px solid var(--color-rule-light);
}

.structured-annotation .annotation-section:first-child {
  border-top: none;
  padding-top: 0;
}

.structured-annotation .annotation-section-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 3px;
}

.structured-annotation .annotation-section-text {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

/* Legacy single-block annotation fallback */
.hero-annotation {
  background: var(--color-annotation-bg);
  border-left: 3px solid var(--color-annotation-border);
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.hero-annotation strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.hero-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* Hero video embed (iframe) */
.hero-inner .lead-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  margin-bottom: 0;
}

.hero-inner .lead-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Hero video thumbnail (overrides the iframe aspect-ratio hack above) */
.hero-inner .video-thumb-link.lead-video-embed {
  height: auto;
  padding-bottom: 0;
}

/* --- Section Blocks --- */
.section-block {
  margin-bottom: 48px;
}

.section-header {
  border-top: 3px solid var(--color-rule);
  padding-top: 20px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

/* --- Section Lead Area: lead + sidebar (Times-style asymmetric) --- */
.section-lead-area {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-rule-light);
}

/* Lead (left column): image above, text below */
.lead-main {
  padding-right: 28px;
}

.lead-main .lead-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  max-height: 260px;
  background: var(--color-bg-section);
  margin-bottom: 14px;
}

.lead-main .lead-source {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.lead-main .lead-title {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead-main .lead-title a { color: inherit; }
.lead-main .lead-title a:hover { color: var(--color-accent); }

.lead-main .lead-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.lead-main .lead-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* Lead annotation — shown inline, not behind a toggle */
.lead-annotation {
  background: var(--color-annotation-bg);
  border-left: 3px solid var(--color-annotation-border);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin-top: 10px;
}

.lead-annotation strong {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 3px;
}

/* Sidebar (right column): vertical divider + stacked items */
.lead-sidebar {
  border-left: 1px solid var(--color-rule-light);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
}

/* Lead-only: no sidebar, lead fills full width */
.section-lead-area.lead-only {
  grid-template-columns: 1fr;
}

.section-lead-area.lead-only .lead-main {
  padding-right: 0;
  max-width: 780px;
}

/* Individual sidebar item */
.sidebar-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-rule-light);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sidebar-item:first-child {
  padding-top: 0;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item-text {
  flex: 1;
  min-width: 0;
}

.sidebar-item-text .article-card-source {
  margin-bottom: 4px;
}

.sidebar-item-text .article-card-title {
  font-size: 1rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.sidebar-item-text .article-card-meta {
  margin-top: 4px;
}

.sidebar-item-thumb {
  width: 90px;
  min-width: 90px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-bg-section);
  flex-shrink: 0;
}

/* --- Secondary Articles Row (standard cards with images, 2-col) --- */
.section-secondary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 20px;
}

.section-secondary-row .article-card {
  padding: 0 24px;
  border-left: 1px solid var(--color-rule-light);
}

.section-secondary-row .article-card:first-child {
  padding-left: 0;
  border-left: none;
}

/* --- Tertiary Articles Row (compact headlines, 3-col with dividers) --- */
.section-tertiary-row {
  border-top: 1px solid var(--color-rule-light);
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.section-tertiary-row .article-card-compact {
  padding: 0 20px;
  border-left: 1px solid var(--color-rule-light);
}

.section-tertiary-row .article-card-compact:first-child {
  padding-left: 0;
  border-left: none;
}

/* Tertiary row with only 1 or 2 items: shrink columns */
.section-tertiary-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.section-tertiary-row.cols-1 {
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* --- Article Card (standard — secondary treatment) --- */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-bg-section);
  margin-bottom: 12px;
}

.article-card-source {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.article-card-title {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--color-accent); }

.article-card-description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* --- Tertiary Card (compact headline-only) --- */
.article-card-compact {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.article-card-compact .article-card-source {
  font-size: 0.6rem;
  margin-bottom: 4px;
}

.article-card-compact .article-card-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.article-card-compact .article-card-meta {
  margin-top: 4px;
}

/* --- Annotation Toggle (click-to-reveal on cards) --- */
.annotation-toggle {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: color 0.2s;
}

.annotation-toggle:hover {
  color: var(--color-accent-light);
}

.annotation-toggle .toggle-arrow {
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.annotation-toggle.open .toggle-arrow {
  transform: rotate(90deg);
}

.annotation-body {
  background: var(--color-annotation-bg);
  border-left: 2px solid var(--color-annotation-border);
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin-top: 6px;
  display: none;
}

.annotation-body.visible {
  display: block;
}

/* --- Video Thumbnail (homepage cards) --- */
.video-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
  border-radius: 4px;
  text-decoration: none;
}

.video-thumb-link.lead-video-embed {
  margin-bottom: 14px;
}

.video-thumb-link.wide-lead-video {
  margin-bottom: 0;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.video-thumb-link:hover .video-thumb-img {
  opacity: 0.85;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px; /* optical center for triangle */
  transition: background 0.2s;
  pointer-events: none;
}

.video-thumb-link:hover .video-play-icon {
  background: rgba(200, 30, 30, 0.85);
}

/* --- Subtle lift for all card media (images + video thumbnails) --- */
.hero-image,
.lead-main .lead-image,
.wide-lead-image,
.article-card-image,
.sidebar-item-thumb,
.video-thumb-link {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10), 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Video-type article card: subtle indicator */
.article-card-video-type .article-card-source::before {
  content: '▶ ';
  font-size: 0.55rem;
}

/* --- Source Badges (color-coded) --- */
.source-ft { color: #8B4513; }
.source-nyt { color: #1A1A1A; }
.source-wsj { color: #0274B6; }
.source-economist { color: #E3120B; }
.source-bloomberg { color: #472a91; }
.source-hbr { color: #8B0000; }

/* --- Layout Variant: Reversed lead (sidebar left, lead right) --- */
.section-lead-area.layout-reversed {
  grid-template-columns: 2fr 3fr;
}

.section-lead-area.layout-reversed .lead-sidebar {
  border-left: none;
  border-right: 1px solid var(--color-rule-light);
  padding-left: 0;
  padding-right: 28px;
  order: -1;
}

.section-lead-area.layout-reversed .lead-main {
  padding-right: 0;
  padding-left: 28px;
}

/* --- Layout Variant: Wide lead (full-width headline + image side by side) --- */
.wide-lead-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-rule-light);
  align-items: start;
}

.wide-lead-text .lead-source {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.wide-lead-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.wide-lead-title a { color: inherit; }
.wide-lead-title a:hover { color: var(--color-accent); }

.wide-lead-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.wide-lead-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-bg-section);
}

.wide-lead-annotation {
  background: var(--color-annotation-bg);
  border-left: 3px solid var(--color-annotation-border);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.wide-lead-annotation strong {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 3px;
}

/* --- Layout Variant: Equal-weight row (2 or 3 cards) --- */
.section-equal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-rule-light);
}

.section-equal-row .article-card {
  padding: 0 24px;
  border-left: 1px solid var(--color-rule-light);
}

.section-equal-row .article-card:first-child {
  padding-left: 0;
  border-left: none;
}

.section-equal-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.section-equal-row.cols-1 {
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* --- Annotation sidebar (for single-article sections) --- */
.annotation-sidebar .annotation-sidebar-inner {
  padding-top: 4px;
}

.annotation-sidebar .annotation-section-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.annotation-sidebar .annotation-section-text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* --- Dividers --- */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-rule-light);
  margin: 32px 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 3px solid var(--color-rule);
  background: var(--color-bg-warm);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.footer-left {
  border-right: 1px solid var(--color-rule-light);
  padding-right: 40px;
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.footer-right {
  padding-top: 2px;
}

.footer-text {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .section-lead-area,
  .section-lead-area.layout-reversed {
    grid-template-columns: 1fr;
  }

  .lead-main,
  .section-lead-area.layout-reversed .lead-main {
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 20px;
  }

  .lead-sidebar {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--color-rule-light);
    padding-left: 0;
    padding-right: 0;
    padding-top: 16px;
    order: 0;
  }

  .wide-lead-area {
    grid-template-columns: 1fr;
  }

  .section-equal-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-secondary-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-tertiary-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.7rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .masthead {
    padding: 16px 0 12px;
  }

  .masthead-title {
    font-size: 1.75rem;
  }

  .section-lead-area,
  .section-lead-area.layout-reversed {
    grid-template-columns: 1fr;
  }

  .section-lead-area.layout-reversed .lead-main {
    padding-left: 0;
  }

  .section-lead-area.layout-reversed .lead-sidebar {
    border-right: none;
    padding-right: 0;
    order: 2;
  }

  .lead-main .lead-title {
    font-size: 1.25rem;
  }

  .wide-lead-area {
    grid-template-columns: 1fr;
  }

  .wide-lead-title {
    font-size: 1.25rem;
  }

  .section-equal-row {
    grid-template-columns: 1fr;
  }

  .section-equal-row .article-card {
    padding: 0;
    border-left: none;
    border-bottom: 1px solid var(--color-rule-light);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .section-secondary-row {
    grid-template-columns: 1fr;
  }

  .section-secondary-row .article-card {
    padding: 0;
    border-left: none;
    border-bottom: 1px solid var(--color-rule-light);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .section-tertiary-row {
    grid-template-columns: 1fr;
  }

  .section-tertiary-row .article-card-compact {
    padding: 0;
    border-left: none;
    border-bottom: 1px solid var(--color-rule-light);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .hero-annotation {
    font-size: 0.8rem;
  }

  .article-card-title {
    font-size: 1rem;
  }

  .sidebar-item-thumb {
    width: 70px;
    min-width: 70px;
  }

  .nav-link {
    padding: 10px 10px;
    font-size: 0.65rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-rule-light);
    padding-bottom: 16px;
  }
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
