/* ==========================================================================
   THE NEWS DISTRIBUTION SERVICE (newsdistributionservice.net)
   Professional Broadsheet Gazette & Modular Square Pattern Grid System
   ========================================================================== */

:root {
  /* Warm Newsprint Broadsheet Palette (Default) */
  --bg-page: #f4eee1;
  --bg-paper: #faf6ec;
  --bg-paper-card: #ffffff;
  --bg-paper-dim: #eee7d5;
  --bg-paper-translucent: rgba(250, 246, 236, 0.95);

  --ink-primary: #191512;
  --ink-secondary: #3c342d;
  --ink-muted: #6b6055;
  --ink-light: #94887c;
  --ink-faint: rgba(25, 21, 18, 0.08);

  --rule-black: #191512;
  --rule-double: #191512;
  --rule-light: rgba(25, 21, 18, 0.22);
  --rule-hairline: rgba(25, 21, 18, 0.12);

  --stamp-red: #8b1e1e;
  --stamp-red-hover: #a12323;
  --stamp-red-bg: rgba(139, 30, 30, 0.08);
  --stamp-blue: #1e3a8a;
  --stamp-amber: #92400e;

  /* Typography */
  --font-masthead: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-headline: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'Newsreader', 'Georgia', serif;
  --font-meta: 'Special Elite', 'Courier Prime', Courier, monospace;

  --shadow-paper: 0 2px 8px rgba(35, 25, 15, 0.06);
  --shadow-hover: 0 8px 24px rgba(35, 25, 15, 0.12);
  --shadow-popover: 0 16px 40px rgba(25, 18, 12, 0.22);

  --radius-subtle: 2px;
}

/* ==========================================================================
   NIGHT PRESS / PHOTOGRAPHIC DARKROOM PLATE MODE
   ========================================================================== */
body.theme-night-press {
  --bg-page: #100e0c;
  --bg-paper: #181512;
  --bg-paper-card: #1f1b17;
  --bg-paper-dim: #26211c;
  --bg-paper-translucent: rgba(24, 21, 18, 0.96);

  --ink-primary: #f5eedf;
  --ink-secondary: #d4cabc;
  --ink-muted: #9c9183;
  --ink-light: #6e6457;
  --ink-faint: rgba(245, 238, 223, 0.08);

  --rule-black: #f5eedf;
  --rule-double: #f5eedf;
  --rule-light: rgba(245, 238, 223, 0.22);
  --rule-hairline: rgba(245, 238, 223, 0.12);

  --stamp-red: #f43f5e;
  --stamp-red-hover: #fb7185;
  --stamp-red-bg: rgba(244, 63, 94, 0.15);
  --stamp-blue: #60a5fa;
  --stamp-amber: #f59e0b;

  --shadow-paper: 0 3px 12px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.7);
  --shadow-popover: 0 20px 48px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Newsprint Paper Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 0),
    radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 0);
  background-size: 20px 20px, 10px 10px;
  pointer-events: none;
  z-index: 999;
}

/* Broadsheet Container */
.broadsheet-wrapper {
  max-width: 1400px;
  margin: 12px auto 40px;
  background-color: var(--bg-paper);
  border: 1px solid var(--rule-light);
  box-shadow: var(--shadow-paper);
  padding: 20px 32px 48px;
  position: relative;
}

/* Decorative Newsprint Rules */
.rule-thick-thin {
  border-top: 4px solid var(--rule-black);
  border-bottom: 1px solid var(--rule-black);
  height: 6px;
  margin: 4px 0 8px;
}

.rule-thin-thick {
  border-top: 1px solid var(--rule-black);
  border-bottom: 4px solid var(--rule-black);
  height: 6px;
  margin: 8px 0 4px;
}

.rule-single {
  border-top: 1px solid var(--rule-black);
  margin: 8px 0;
}

.rule-double {
  border-top: 3px double var(--rule-black);
  margin: 8px 0;
}

/* ==========================================================================
   TOP TELEGRAPH WIRE TICKER TAPE
   ========================================================================== */
.wire-ticker-strip {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule-black);
  font-family: var(--font-meta);
  font-size: 0.76rem;
  background: var(--bg-paper-dim);
  padding: 4px 14px;
  gap: 16px;
  overflow: hidden;
}

.ticker-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stamp-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  background: var(--stamp-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.ticker-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: news-marquee 65s linear infinite;
  gap: 36px;
}

.ticker-marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes news-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  color: var(--ink-secondary);
}

.ticker-item:hover {
  color: var(--stamp-red);
  text-decoration: underline;
}

.ticker-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.paper-toggle-btn {
  background: none;
  border: 1px solid var(--rule-light);
  padding: 3px 9px;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  color: var(--ink-primary);
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.paper-toggle-btn:hover {
  background: var(--ink-primary);
  color: var(--bg-paper);
}

.paper-toggle-btn.active {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
  font-weight: 700;
}

/* ==========================================================================
   MASTHEAD (REFINED BROADSHEET BANNER)
   ========================================================================== */
.newspaper-masthead {
  padding: 8px 0 4px;
  text-align: center;
}

.masthead-ears-row {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.ear-box {
  border: 1px solid var(--rule-black);
  padding: 6px 10px;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  background: var(--bg-paper-card);
}

.ear-box strong {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin-bottom: 2px;
}

.masthead-center-motto {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.masthead-title {
  font-family: var(--font-masthead);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin: 2px 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.04);
}

.masthead-subtitle {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.masthead-dateline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-meta);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  color: var(--ink-primary);
  flex-wrap: wrap;
  gap: 8px;
}

/* Masthead Action Stamps */
.masthead-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--rule-black);
  border-bottom: 1px solid var(--rule-black);
  margin: 6px 0 14px;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
}

.newspaper-stamp-btn {
  background: none;
  border: 1px solid var(--rule-black);
  color: var(--ink-primary);
  font-family: var(--font-meta);
  font-size: 0.74rem;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  border-radius: 2px;
}

.newspaper-stamp-btn:hover {
  background: var(--ink-primary);
  color: var(--bg-paper);
}

.newspaper-stamp-btn.active {
  background: var(--stamp-red);
  border-color: var(--stamp-red);
  color: #ffffff;
}

/* ==========================================================================
   INTERACTIVE CONTROLS BAR (SEARCH, DESK FILTERS, VIEW MODES)
   ========================================================================== */
.controls-panel {
  border-top: 1px solid var(--rule-black);
  border-bottom: 1px solid var(--rule-black);
  padding: 12px 0 10px;
  margin-bottom: 20px;
}

.controls-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.desk-search-input {
  width: 100%;
  background: var(--bg-paper-card);
  border: 1px solid var(--rule-black);
  padding: 7px 32px 7px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-primary);
  border-radius: 2px;
}

.desk-search-input:focus {
  outline: 2px solid var(--ink-primary);
}

.desk-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-meta);
  font-size: 0.9rem;
}

.desk-sort-select {
  background: var(--bg-paper-card);
  border: 1px solid var(--rule-black);
  padding: 7px 10px;
  font-family: var(--font-meta);
  font-size: 0.76rem;
  color: var(--ink-primary);
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Square Density / Layout Modes */
.view-modes-group {
  display: flex;
  gap: 4px;
}

/* Category Desk Tabs */
.newspaper-desks-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 2px;
  scrollbar-width: thin;
}

.desk-tab-btn {
  background: none;
  border: 1px solid var(--rule-light);
  padding: 3px 9px;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-radius: 2px;
}

.desk-tab-btn:hover {
  background: var(--ink-faint);
  color: var(--ink-primary);
}

.desk-tab-btn.active {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
  font-weight: 700;
}

/* ==========================================================================
   THE PATTERN OF SQUARES (MODULAR 1:1 GRID SYSTEM)
   ========================================================================== */
.squares-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 16px 0 32px;
}

/* Default Split Square Card */
.square-article-card {
  aspect-ratio: 1 / 1;
  background: var(--bg-paper-card);
  border: 1px solid var(--rule-light);
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-subtle);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.square-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-black);
  box-shadow: var(--shadow-hover);
}

/* Top Media Plate: Authentic Fine-Art Darkroom Treatment */
.square-media-plate {
  height: 44%;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0f0d0b;
  border-bottom: 1px solid var(--rule-hairline);
  flex-shrink: 0;
}

.square-media-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Authentic silver-gelatin documentary archival filter — No fake glossy stock! */
  filter: grayscale(100%) contrast(118%) brightness(95%);
  transition: filter 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.square-article-card:hover .square-media-plate img {
  filter: grayscale(15%) contrast(112%) brightness(100%);
  transform: scale(1.06);
}

/* Floating Badges on Media Plate */
.square-desk-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(18, 14, 11, 0.88);
  color: #f7f1e5;
  font-family: var(--font-meta);
  font-size: 0.65rem;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  z-index: 2;
}

.square-id-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--stamp-red);
  color: #ffffff;
  font-family: var(--font-meta);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 2;
}

/* Bottom Content Pane inside 1:1 Square */
.square-content-pane {
  height: 56%;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-paper-card);
  overflow: hidden;
}

.square-headline {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.square-article-card:hover .square-headline {
  color: var(--stamp-red);
}

.square-summary {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.38;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.square-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule-hairline);
  padding-top: 5px;
  margin-top: 2px;
}

.square-read-link {
  color: var(--stamp-red);
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   VIEW DENSITY MODES (COVER SQUARES & COMPACT SQUARES)
   ========================================================================== */

/* Mode 2: Cover / Full-Photo Photographic Squares */
.squares-matrix.mode-cover .square-article-card {
  position: relative;
}

.squares-matrix.mode-cover .square-media-plate {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: none;
}

.squares-matrix.mode-cover .square-content-pane {
  height: 100%;
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(16, 13, 11, 0.95) 0%, rgba(16, 13, 11, 0.72) 48%, rgba(16, 13, 11, 0.25) 100%);
  color: #f7f1e5;
  padding: 16px 14px 12px;
  justify-content: flex-end;
}

.squares-matrix.mode-cover .square-headline {
  color: #ffffff;
  font-size: 1.12rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.squares-matrix.mode-cover .square-summary {
  color: rgba(245, 238, 223, 0.88);
  -webkit-line-clamp: 3;
}

.squares-matrix.mode-cover .square-footer-bar {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(245, 238, 223, 0.7);
}

.squares-matrix.mode-cover .square-read-link {
  color: #ff8597;
}

/* Mode 3: Compact Squares (Dense Contact Sheet Pattern) */
.squares-matrix.mode-compact {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.squares-matrix.mode-compact .square-headline {
  font-size: 0.94rem;
  -webkit-line-clamp: 2;
}

.squares-matrix.mode-compact .square-summary {
  font-size: 0.78rem;
  -webkit-line-clamp: 2;
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */
.pagination-wrapper {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   SPECIAL EDITION READER MODAL (BROADSHEET PAGE)
   ========================================================================== */
.broadsheet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 12, 10, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.broadsheet-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.broadsheet-modal-page {
  background: var(--bg-paper);
  border: 2px solid var(--rule-black);
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.modal-newspaper-header {
  padding: 14px 20px 8px;
  border-bottom: 1px solid var(--rule-black);
  background: var(--bg-paper-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-newspaper-body {
  padding: 24px 32px;
  overflow-y: auto;
  line-height: 1.7;
}

.modal-headline {
  font-family: var(--font-headline);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.modal-deck {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.modal-photo-plate {
  margin: 16px 0;
  border: 1px solid var(--rule-black);
  padding: 4px;
  background: var(--bg-paper-card);
}

.modal-photo-plate img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) sepia(8%) contrast(106%);
}

.photo-caption {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-secondary);
  padding: 6px 4px 2px;
  line-height: 1.35;
}

.photo-credit {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.modal-audio-telegraph {
  background: var(--bg-paper-card);
  border: 1px solid var(--rule-black);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
  font-family: var(--font-meta);
  font-size: 0.76rem;
}

.modal-takeaways-box {
  background: var(--bg-paper-card);
  border-left: 4px solid var(--stamp-red);
  padding: 12px 16px;
  margin: 16px 0;
}

.modal-takeaways-box h4 {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin-bottom: 6px;
}

.modal-takeaways-box ul {
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.modal-prose {
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: justify;
}

.modal-prose p {
  margin-bottom: 16px;
}

.modal-prose p:first-of-type::first-letter {
  font-family: var(--font-headline);
  float: left;
  font-size: 3.6rem;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  font-weight: 800;
  color: var(--stamp-red);
}

.modal-newspaper-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--rule-black);
  background: var(--bg-paper-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   TOAST NOTIFICATION (PRINT STAMP STYLE)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.newspaper-toast {
  background: var(--bg-paper-card);
  border: 2px solid var(--stamp-red);
  color: var(--ink-primary);
  padding: 10px 16px;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  box-shadow: var(--shadow-popover);
  text-transform: uppercase;
  animation: toast-fade-in 0.3s ease;
  border-radius: 2px;
}

@keyframes toast-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER (IMPRIMATUR & COLOPHON)
   ========================================================================== */
.newspaper-colophon {
  margin-top: 32px;
  border-top: 3px double var(--rule-black);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.colophon-section h5 {
  font-family: var(--font-meta);
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin-bottom: 6px;
}

.colophon-bottom-bar {
  margin-top: 20px;
  border-top: 1px solid var(--rule-black);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & PRINT MEDIA
   ========================================================================== */
@media (max-width: 1080px) {
  .masthead-ears-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .broadsheet-wrapper {
    padding: 16px 20px 32px;
  }
  .newspaper-colophon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .masthead-title {
    font-size: 2.2rem;
  }
  .squares-matrix {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .squares-matrix {
    grid-template-columns: 1fr;
  }
  .square-article-card {
    aspect-ratio: auto;
    min-height: 380px;
  }
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .broadsheet-wrapper {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .wire-ticker-strip, .controls-panel, .pagination-wrapper, .masthead-nav-bar, .modal-newspaper-footer {
    display: none !important;
  }
}
