/* ==========================================================================
   THE DAILY DEVELOPER - NEWSPAPER PORTFOLIO DESIGN SYSTEM
   Authentic Broadsheet & Vintage Press Stylesheet (Full Responsive Edition)
   ========================================================================== */

/* --------------------------------------------------
   1. CSS Custom Properties / Themes
   -------------------------------------------------- */
:root {
  /* Morning Broadsheet (Default Light Paper) */
  --bg-paper: #f4efe6;
  --bg-paper-pattern: radial-gradient(#dfd6c6 1px, transparent 1px);
  --bg-card: #fdfbf7;
  --bg-card-alt: #ece5d8;
  --ink-primary: #181512;
  --ink-secondary: #4a433a;
  --ink-muted: #726a5e;
  --ink-faint: #aba191;
  --border-rule: #26211b;
  --border-light: #cfc4b2;
  --border-dashed: #a89d8a;
  --accent-red: #9e2a2b;
  --accent-red-bg: #fceded;
  --accent-stamp: #9e2a2b;
  --accent-wax: #7b1e1f;
  --accent-navy: #1f3a52;
  --accent-gold: #936a18;
  --accent-green: #2b593f;
  --shadow-paper: 0 4px 14px rgba(24, 21, 18, 0.08);
  --shadow-card: 0 6px 18px rgba(24, 21, 18, 0.06);
  --shadow-clipping: 3px 4px 12px rgba(0, 0, 0, 0.12);
  --font-base-size: 16px;

  /* Typography Stacks */
  --font-masthead: 'UnifrakturMaguntia', 'Cinzel Decorative', 'Playfair Display', Georgia, serif;
  --font-headline: 'Playfair Display', 'Georgia', serif;
  --font-subhead: 'Cinzel', 'Old Standard TT', Georgia, serif;
  --font-body: 'EB Garamond', 'Newsreader', Georgia, serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-speed: 0.25s ease;
}

/* Vintage Antique Sepia Theme */
[data-theme="sepia"] {
  --bg-paper: #e9dcbe;
  --bg-paper-pattern: radial-gradient(#d3c39f 1px, transparent 1px);
  --bg-card: #f5edd8;
  --bg-card-alt: #dfd0ab;
  --ink-primary: #22180e;
  --ink-secondary: #503f2e;
  --ink-muted: #78644e;
  --ink-faint: #a69279;
  --border-rule: #362615;
  --border-light: #beac8c;
  --border-dashed: #9e8967;
  --accent-red: #8e1f20;
  --accent-red-bg: #eddcdb;
  --accent-stamp: #8e1f20;
  --accent-wax: #691516;
  --accent-navy: #1a3348;
  --accent-gold: #825b0e;
  --accent-green: #234c35;
  --shadow-paper: 0 4px 16px rgba(34, 24, 14, 0.12);
  --shadow-card: 0 6px 18px rgba(34, 24, 14, 0.09);
  --shadow-clipping: 4px 5px 14px rgba(34, 24, 14, 0.18);
}

/* Midnight Press (Dark Editorial Mode) */
[data-theme="dark"] {
  --bg-paper: #121316;
  --bg-paper-pattern: radial-gradient(#24262b 1px, transparent 1px);
  --bg-card: #1c1d22;
  --bg-card-alt: #25272e;
  --ink-primary: #f0ebe1;
  --ink-secondary: #b5ada0;
  --ink-muted: #837a6e;
  --ink-faint: #524c43;
  --border-rule: #e0d7c8;
  --border-light: #3a3d45;
  --border-dashed: #50545f;
  --accent-red: #e74c3c;
  --accent-red-bg: #2d1716;
  --accent-stamp: #ff6b6b;
  --accent-wax: #c0392b;
  --accent-navy: #4ea5d9;
  --accent-gold: #f1c40f;
  --accent-green: #2ecc71;
  --shadow-paper: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-clipping: 3px 4px 16px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-base-size);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-paper);
  background-image: var(--bg-paper-pattern);
  background-size: 16px 16px;
  color: var(--ink-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

/* Global Selection */
::selection {
  background: var(--accent-red);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-paper);
  border-left: 1px solid var(--border-light);
}
::-webkit-scrollbar-thumb {
  background: var(--border-dashed);
  border-radius: 0;
  border: 2px solid var(--bg-paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted);
}

/* Reading Progress Bar */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-red);
  width: 0%;
  z-index: 1050;
  transition: width 0.1s ease-out;
}

/* --------------------------------------------------
   3. Newspaper Page Wrapper & Frame
   -------------------------------------------------- */
.newspaper-wrapper {
  max-width: 1320px;
  width: 100%;
  margin: 20px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  box-shadow: var(--shadow-paper);
  position: relative;
  padding: 24px 32px 48px;
  overflow: visible;
}

/* Rules / Separators */
.rule-double {
  border: none;
  border-top: 3px double var(--border-rule);
  margin: 14px 0;
  opacity: 1;
}

.rule-heavy {
  border: none;
  border-top: 4px solid var(--border-rule);
  margin: 10px 0;
  opacity: 1;
}

.rule-thin {
  border: none;
  border-top: 1px solid var(--border-rule);
  margin: 8px 0;
  opacity: 1;
}

.rule-dashed {
  border: none;
  border-top: 1px dashed var(--border-dashed);
  margin: 14px 0;
  opacity: 1;
}

/* --------------------------------------------------
   4. Top Toolbar (Controls, Date, Weather, Audio, Themes)
   -------------------------------------------------- */
.top-edition-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-secondary);
  gap: 12px;
}

.edition-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.edition-badge {
  background: var(--accent-red);
  color: #fff;
  padding: 3px 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.edition-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-press-control {
  background: transparent;
  border: 1px solid var(--border-dashed);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.btn-press-control:hover, .btn-press-control.active {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
}

select.sound-profile-dropdown {
  appearance: auto;
  padding: 4px 8px;
  background: var(--bg-card);
  color: var(--ink-primary);
  border: 1px solid var(--border-dashed);
  outline: none;
}

select.sound-profile-dropdown option {
  background: var(--bg-paper);
  color: var(--ink-primary);
}

/* --------------------------------------------------
   5. Newspaper Masthead
   -------------------------------------------------- */
.newspaper-masthead {
  text-align: center;
  padding: 18px 0 10px;
  position: relative;
}

.masthead-sub-top {
  font-family: var(--font-subhead);
  font-size: 0.88rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.masthead-title {
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(2.2rem, 6.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.08;
  color: var(--ink-primary);
  text-shadow: 1px 1px 0px rgba(0,0,0,0.12);
  word-wrap: break-word;
}

.masthead-motto {
  font-family: var(--font-subhead);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  margin: 6px 0 0;
  letter-spacing: 0.5px;
}

/* Sub-Masthead Issue Banner & Direct Contact Wire */
.issue-info-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-subhead);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 12px;
  color: var(--ink-primary);
  border-top: 1px solid var(--border-rule);
  border-bottom: 1px solid var(--border-rule);
  gap: 12px;
  background: rgba(0, 0, 0, 0.015);
}

.issue-info-banner .banner-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform var(--transition-speed);
}

.issue-info-banner .banner-item:hover {
  transform: translateY(-1px);
}

.issue-info-banner .banner-link {
  color: var(--ink-primary);
  text-decoration: none;
  transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

.issue-info-banner .banner-link:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.issue-info-banner .banner-bullet {
  color: var(--accent-red);
  font-size: 0.95rem;
  opacity: 0.75;
  user-select: none;
}

/* --------------------------------------------------
   6. Breaking News Ticker (Teletype / Services Wire)
   -------------------------------------------------- */
.breaking-news-bar {
  display: flex;
  align-items: center;
  background: var(--ink-primary);
  color: var(--bg-paper);
  margin: 12px 0 18px;
  border: 1px solid var(--border-rule);
  overflow: hidden;
  height: 40px;
  position: relative;
}

.ticker-label {
  background: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent-red);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

.ticker-content-track {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding-left: 14px;
}

.ticker-items {
  display: inline-block;
  animation: tickerScroll 34s linear infinite;
}

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

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

.ticker-bullet {
  color: var(--accent-gold);
  margin: 0 12px;
}

/* --------------------------------------------------
   7. Navigation Ribbon (Editorial Menu) - FIXED / STICKY
   -------------------------------------------------- */
.newspaper-nav-bar {
  background: var(--bg-card-alt);
  border-top: 2px solid var(--border-rule);
  border-bottom: 2px solid var(--border-rule);
  margin-bottom: 24px;
  padding: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: all var(--transition-speed);
  width: 100%;
}

.newspaper-nav-bar.is-scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  border-top: none;
}

.newspaper-nav-bar .container-fluid {
  padding: 0;
}

.newspaper-nav-bar .navbar-toggler {
  border: 1px solid var(--border-rule);
  border-radius: 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-primary);
  background: var(--bg-card);
}

.newspaper-nav-bar .navbar-collapse {
  width: 100%;
}

.newspaper-nav-bar .navbar-nav {
  width: 100%;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newspaper-nav-bar .nav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.newspaper-nav-bar .nav-link {
  font-family: var(--font-subhead);
  font-size: clamp(0.72rem, 0.82vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-primary);
  padding: 10px 4px;
  border-right: 1px solid var(--border-light);
  transition: all var(--transition-speed);
  position: relative;
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newspaper-nav-bar .nav-item:last-child .nav-link {
  border-right: none;
}

.newspaper-nav-bar .nav-link:hover,
.newspaper-nav-bar .nav-link.active {
  background: var(--ink-primary);
  color: var(--bg-paper) !important;
}

.newspaper-nav-bar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-red);
}

.nav-submit-btn {
  background: var(--accent-red) !important;
  color: #fff !important;
  font-weight: 800 !important;
}
.nav-submit-btn:hover {
  background: var(--accent-wax) !important;
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .newspaper-nav-bar .navbar-nav {
    flex-direction: column;
  }
  .newspaper-nav-bar .nav-item {
    width: 100%;
    flex: none;
  }
  .newspaper-nav-bar .nav-link {
    padding: 11px 16px;
    justify-content: flex-start;
    text-align: left;
    border-right: none;
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.88rem;
  }
  .newspaper-nav-bar .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/* --------------------------------------------------
   8. Section Headers & Newspaper Banner Headings
   -------------------------------------------------- */
.newspaper-section {
  padding: 34px 0 12px;
  scroll-margin-top: 80px;
}

.section-editorial-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}

.section-section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-red);
  display: block;
  margin-bottom: 4px;
}

.section-main-heading {
  font-family: var(--font-headline);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900;
  color: var(--ink-primary);
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin: 0 0 6px;
}

.section-deck-subhead {
  font-family: var(--font-subhead);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.45;
}

.section-header-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.section-header-rule::before,
.section-header-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-rule);
}

.section-header-icon {
  font-size: 1rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------
   9. Editorial Column & Typography Enhancements
   -------------------------------------------------- */
.drop-cap::first-letter {
  font-family: var(--font-headline);
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 2px;
  color: var(--ink-primary);
  font-weight: 900;
}

.drop-cap-red::first-letter {
  color: var(--accent-red);
}

.article-byline {
  font-family: var(--font-subhead);
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dateline {
  font-weight: 700;
  color: var(--ink-primary);
}

.article-col-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-primary);
  text-align: left;
}

.article-pullquote {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.38;
  color: var(--accent-navy);
  border-top: 2px solid var(--border-rule);
  border-bottom: 2px solid var(--border-rule);
  padding: 12px 16px;
  margin: 18px 0;
  text-align: center;
  background: var(--bg-card-alt);
}

/* Halftone/Engraved Photo Frame */
.newspaper-photo-frame {
  border: 1px solid var(--border-rule);
  background: var(--bg-card-alt);
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-clipping);
  position: relative;
}

.newspaper-photo-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-light);
  filter: grayscale(85%) contrast(115%);
  transition: filter var(--transition-speed);
}

.newspaper-photo-frame:hover .newspaper-photo-img {
  filter: grayscale(10%) contrast(105%);
}

.photo-caption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-top: 8px;
  padding: 0 2px;
}

.photo-caption strong {
  color: var(--ink-primary);
  text-transform: uppercase;
}

/* Vintage Stamps & Badges */
.vintage-stamp {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 2px solid var(--accent-stamp);
  color: var(--accent-stamp);
  border-radius: 3px;
  transform: rotate(-2deg);
  opacity: 0.95;
  user-select: none;
  background: var(--accent-red-bg);
}

.vintage-stamp-approved {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: rotate(2deg);
}

.vintage-stamp-featured {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* --------------------------------------------------
   10. Home Section: Front Page Lead Story & Side Columns
   -------------------------------------------------- */
.hero-lead-story {
  border-right: 1px solid var(--border-light);
  padding-right: 24px;
}

.lead-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ink-primary);
  margin-bottom: 10px;
  text-transform:capitalize;
}

.lead-subheadline {
  font-family: var(--font-subhead);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

/* Quick Index & Stats Box */
.market-index-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-rule);
  padding: 16px;
  margin-top: 20px;
}

.market-index-title {
  font-family: var(--font-subhead);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border-rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-light);
  padding: 8px 4px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* Side Column / Wire Dispatches */
.side-wire-column {
  padding-left: 12px;
}

.wire-dispatch-card {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.wire-heading {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.wire-heading a {
  color: inherit;
  text-decoration: none;
}
.wire-heading a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* Editorial CTA Buttons */
.btn-newspaper-primary {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border: 1px solid var(--border-rule);
  font-family: var(--font-subhead);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.btn-newspaper-primary:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-newspaper-outline {
  background: transparent;
  color: var(--ink-primary);
  border: 2px solid var(--border-rule);
  font-family: var(--font-subhead);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.btn-newspaper-outline:hover {
  background: var(--ink-primary);
  color: var(--bg-paper);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   11. About Section: Behind The Press / Feature Profile
   -------------------------------------------------- */
.about-interview-box {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  padding: 24px;
  position: relative;
}

.press-pass-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-card-alt);
  border: 2px dashed var(--border-rule);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
  transform: rotate(2deg);
}

.interview-q {
  font-family: var(--font-subhead);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--accent-navy);
  margin-top: 16px;
  margin-bottom: 6px;
}

.interview-a {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.editorial-signature {
  font-family: 'Playfair Display', cursive, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-primary);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wax-seal-stamp {
  width: 46px;
  height: 46px;
  background: var(--accent-wax);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-masthead);
  font-size: 1.3rem;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4), 0 3px 6px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

/* --------------------------------------------------
   12. Education & Experience Timelines (Chronicles & Dispatches)
   -------------------------------------------------- */
.chronicle-timeline {
  position: relative;
  padding-left: 28px;
  margin: 16px 0;
}

.chronicle-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-rule);
}

.chronicle-item {
  position: relative;
  margin-bottom: 24px;
}
.chronicle-item:last-child {
  margin-bottom: 0;
}

.chronicle-marker {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent-red);
  box-shadow: 0 0 0 2px var(--bg-paper);
}

.chronicle-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-rule);
  padding: 16px 18px;
  box-shadow: 2px 2px 0 var(--border-rule);
  transition: transform var(--transition-speed);
}

.chronicle-card:hover {
  transform: translateX(4px);
}

.chronicle-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}

.chronicle-title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.chronicle-subtitle {
  font-family: var(--font-subhead);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-navy);
  margin-bottom: 8px;
}

.chronicle-text {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.chronicle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.press-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dashed);
  color: var(--ink-secondary);
  padding: 2px 6px;
  border-radius: 2px;
}

/* --------------------------------------------------
   13. Skills: The Classifieds & Technical Index
   -------------------------------------------------- */
.classifieds-container {
  border: 2px solid var(--border-rule);
  background: var(--bg-card);
  padding: 20px;
  position: relative;
}

.classifieds-top-banner {
  text-align: center;
  border-bottom: 2px solid var(--border-rule);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.classified-category-box {
  background: var(--bg-card-alt);
  border: 1px dashed var(--border-dashed);
  padding: 16px;
  height: 100%;
}

.classified-header {
  font-family: var(--font-subhead);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Skills Full-Icon Matrix Styles */
.skills-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.newspaper-skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-speed);
  cursor: default;
}

.newspaper-skill-card:hover {
  background: var(--bg-card-alt);
  border-color: var(--border-rule);
  transform: translateX(3px);
  box-shadow: 2px 2px 0 var(--border-rule);
}

.skill-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.skill-info-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.skill-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink-primary);
  white-space: nowrap;
}

.skill-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  background: var(--bg-paper);
  border: 1px solid var(--border-dashed);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.newspaper-skill-card:hover .skill-badge-tag {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* --------------------------------------------------
   14. Projects: The Showcase Gazette & Filter Tabs
   -------------------------------------------------- */
.project-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-rule);
  padding-bottom: 14px;
}

.project-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-filter-tab {
  background: transparent;
  border: 1px solid var(--border-dashed);
  color: var(--ink-primary);
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-filter-tab:hover, .btn-filter-tab.active {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
}

.project-search-box {
  position: relative;
  min-width: 240px;
}

.project-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 7px 12px 7px 34px;
  color: var(--ink-primary);
  border-radius: 0;
}
.project-search-input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.search-icon-pos {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* Newspaper Clipping Project Card */
.newspaper-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  box-shadow: var(--shadow-clipping);
  min-height: 100%;
  height: auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.newspaper-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.project-card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 12px;
  position: relative;
  padding-right: 95px; /* Ensures title and category never collide with badges */
  min-height: 48px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.project-card-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.project-card-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-primary);
  margin: 4px 0 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 100%;
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-rule);
  margin-bottom: 12px;
  background: var(--bg-card-alt);
  width: 100%;
}

.project-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  filter: grayscale(80%) contrast(110%);
  transition: all 0.4s ease;
}

.newspaper-project-card:hover .project-card-img {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.03);
}

.project-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-card-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 14px;
  flex-grow: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
}

.preview-live-container .project-card-desc {
  white-space: pre-line;
}

.project-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-card-action {
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-primary);
  text-decoration: none;
  border: 1px solid var(--border-rule);
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card-alt);
  transition: all var(--transition-speed);
}

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

.btn-card-action.demo-link {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}
.btn-card-action.demo-link:hover {
  background: var(--accent-wax);
}

.user-submitted-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

/* --------------------------------------------------
   15. Upload My Project (Submit to the Press)
   -------------------------------------------------- */
.upload-press-container {
  border: 2px solid var(--border-rule);
  background: var(--bg-card);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.press-form-label {
  font-family: var(--font-subhead);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: 6px;
  display: block;
}

.press-form-control {
  background: var(--bg-paper);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 16px; /* Prevents auto-zoom on mobile safari */
  padding: 9px 12px;
  width: 100%;
  transition: border-color var(--transition-speed);
}

.press-form-control:focus {
  background: var(--bg-card);
  border-color: var(--accent-red);
  outline: none;
  box-shadow: 0 0 0 2px rgba(158, 42, 43, 0.2);
}

.image-dropzone-box {
  border: 2px dashed var(--border-dashed);
  background: var(--bg-paper);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
}

.image-dropzone-box:hover, .image-dropzone-box.dragover {
  border-color: var(--accent-red);
  background: var(--bg-card-alt);
}

.preview-live-container {
  border: 1px dashed var(--border-dashed);
  padding: 16px;
  background: var(--bg-card-alt);
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
}

@media (min-width: 992px) {
  .preview-live-container {
    position: sticky;
    top: 85px;
  }
}

/* --------------------------------------------------
   16. Services: Editorial & Technical Offerings
   -------------------------------------------------- */
.service-rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-speed);
}

.service-rate-card:hover {
  transform: translateY(-4px);
}

.service-rate-card.featured-rate {
  border: 2px solid var(--accent-red);
  background: var(--bg-card-alt);
}

.service-icon-banner {
  font-size: 2.2rem;
  color: var(--accent-navy);
  margin-bottom: 12px;
}

.service-rate-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.service-rate-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-red);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.service-feature-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.service-feature-list li i {
  color: var(--accent-green);
  font-size: 0.85rem;
}

/* --------------------------------------------------
   17. Contact: Letters to the Editor & Telegram Station
   -------------------------------------------------- */
.telegram-station-box {
  background: var(--bg-card);
  border: 2px solid var(--border-rule);
  padding: 24px;
  box-shadow: var(--shadow-clipping);
}

.telegram-header-stamp {
  border-bottom: 2px solid var(--border-rule);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-icon-frame {
  width: 40px;
  height: 40px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.contact-detail-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.contact-detail-val a {
  color: inherit;
  text-decoration: none;
}
.contact-detail-val a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.social-press-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-press-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-social-press {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-rule);
  background: var(--bg-card-alt);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all var(--transition-speed);
  cursor: pointer;
  padding: 0;
}

.btn-social-press:hover {
  background: var(--ink-primary);
  color: var(--bg-paper) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.resume-document-box {
  background: var(--bg-paper);
  border: 2px solid var(--border-rule);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.resume-header-bar {
  border-bottom: 2px double var(--border-rule);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.resume-section-title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-rule);
  padding-bottom: 4px;
  margin-bottom: 10px;
  margin-top: 14px;
  color: var(--accent-red);
}

/* --------------------------------------------------
   18. Newspaper Postscript Footer
   -------------------------------------------------- */
.newspaper-footer {
  border-top: 3px double var(--border-rule);
  padding-top: 28px;
  margin-top: 44px;
  text-align: center;
}

.colophon-title {
  font-family: var(--font-masthead);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.colophon-text {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-nav-links a {
  color: var(--ink-primary);
  text-decoration: none;
}
.footer-nav-links a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* --------------------------------------------------
   19. Modals, Toasts & Interactive Components
   -------------------------------------------------- */
.newspaper-modal .modal-content {
  background: var(--bg-card);
  border: 2px solid var(--border-rule);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  color: var(--ink-primary);
}

.newspaper-modal .modal-header {
  border-bottom: 2px solid var(--border-rule);
  background: var(--bg-card-alt);
  border-radius: 0;
  padding: 14px 18px;
}

.newspaper-modal .modal-title {
  font-family: var(--font-headline);
  font-weight: 800;
}

.newspaper-modal .modal-footer {
  border-top: 1px solid var(--border-rule);
  background: var(--bg-card-alt);
  border-radius: 0;
  padding: 10px 18px;
}

/* Resume Tabs & PDF Broadsheet Viewer */
.resume-nav-tabs {
  border-bottom: 2px solid var(--border-rule);
  gap: 6px;
  width: 100%;
}

.resume-nav-tabs .nav-item {
  margin-bottom: -2px;
}

.resume-nav-tabs .nav-link {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
  border: 1px solid transparent;
  border-radius: 0;
  padding: 8px 16px;
  background: transparent;
  transition: all var(--transition-speed);
}

.resume-nav-tabs .nav-link:hover {
  color: var(--accent-red);
  border-color: var(--border-light) var(--border-light) transparent;
}

.resume-nav-tabs .nav-link.active {
  color: var(--ink-primary);
  background: var(--bg-paper);
  border: 2px solid var(--border-rule);
  border-bottom: 2px solid var(--bg-paper);
  font-weight: 800;
}

.pdf-viewer-toolbar {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  border-radius: 2px;
}

.resume-poster-viewer {
  width: 100%;
  max-height: 70vh;
  min-height: 480px;
  background: var(--bg-card-alt);
  border: 2px solid var(--border-rule);
  box-shadow: var(--shadow-card);
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  position: relative;
  scrollbar-width: thin;
}

.resume-poster-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, width 0.2s ease;
  cursor: zoom-in;
  user-select: none;
}

.resume-pdf-container {
  width: 100%;
  height: 68vh;
  min-height: 480px;
  max-height: 760px;
  background: #2b2b2b;
  border: 2px solid var(--border-rule);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.resume-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pdf-fallback-card {
  background: var(--bg-card);
  color: var(--ink-primary);
  border: 2px dashed var(--border-dashed);
  margin: 20px;
}

@media (max-width: 767.98px) {
  .resume-poster-viewer {
    max-height: 55vh;
    min-height: 350px;
    padding: 8px;
  }
  .resume-pdf-container {
    height: 52vh;
    min-height: 360px;
  }
  .resume-nav-tabs .nav-link {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

/* Floating Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--ink-primary);
  color: var(--bg-paper);
  border: 1px solid var(--border-rule);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-clipping);
  transition: all var(--transition-speed);
}

.btn-back-to-top:hover {
  background: var(--accent-red);
  color: #fff;
  transform: translateY(-3px);
}

/* Toast Notification */
.newspaper-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: calc(100vw - 40px);
  background: var(--ink-primary);
  color: var(--bg-paper);
  border: 1px solid var(--border-rule);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  z-index: 1060;
  box-shadow: var(--shadow-clipping);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newspaper-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==================================================
   20. COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ================================================== */

/* Tablet & Smaller Laptops (<= 991.98px) */
@media (max-width: 991.98px) {
  .hero-lead-story {
    border-right: none;
    padding-right: 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
  }

  .side-wire-column {
    padding-left: 0;
  }

  .newspaper-nav-bar .navbar-collapse {
    background: var(--bg-card);
    border: 1px solid var(--border-rule);
    margin-top: 8px;
    padding: 8px 0;
  }

  .newspaper-nav-bar .nav-link {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    padding: 10px 16px;
  }

  .newspaper-nav-bar .nav-link:last-child {
    border-bottom: none;
  }

  .press-pass-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
    transform: none;
  }

  .preview-live-container {
    margin-top: 24px;
  }
}

/* Mobile Devices & Phablets (<= 767.98px) */
@media (max-width: 767.98px) {
  .newspaper-wrapper {
    margin: 0 auto;
    padding: 12px 14px 32px;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
  }

  .top-edition-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
  }

  .edition-meta {
    gap: 8px;
    font-size: 0.78rem;
  }

  .edition-controls {
    width: 100%;
    justify-content: space-between;
  }

  .masthead-title {
    font-size: 2.3rem;
    line-height: 1.1;
  }

  .masthead-sub-top {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }

  .masthead-motto {
    font-size: 0.85rem;
  }

  .issue-info-banner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.78rem;
    gap: 6px 14px;
    padding: 10px 6px;
  }

  .breaking-news-bar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .ticker-label {
    height: 30px;
    justify-content: center;
    font-size: 0.74rem;
  }

  .ticker-label::after {
    display: none;
  }

  .ticker-content-track {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .drop-cap::first-letter {
    font-size: 2.8rem;
    padding-right: 6px;
  }

  .lead-headline {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .lead-subheadline {
    font-size: 1rem;
  }

  .article-col-text {
    text-align: left;
    font-size: 0.96rem;
  }

  .article-pullquote {
    font-size: 1.1rem;
    padding: 10px 12px;
    margin: 14px 0;
  }

  .market-index-box {
    padding: 12px 10px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 6px 0;
  }
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .project-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .project-filter-tabs {
    justify-content: flex-start;
    gap: 4px;
  }

  .btn-filter-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .project-search-box {
    min-width: 100%;
  }

  .chronicle-timeline {
    padding-left: 20px;
  }
  .chronicle-timeline::before {
    left: 4px;
  }
  .chronicle-marker {
    left: -20px;
    width: 14px;
    height: 14px;
  }

  .classifieds-container {
    padding: 12px;
  }

  .upload-press-container {
    padding: 16px;
  }

  .telegram-station-box {
    padding: 16px;
  }

  .service-rate-card {
    padding: 18px;
  }
}

/* Very Small Mobile Phones (<= 400px) */
@media (max-width: 400px) {
  .masthead-title {
    font-size: 1.9rem;
  }

  .section-main-heading {
    font-size: 1.5rem;
  }

  .btn-newspaper-primary,
  .btn-newspaper-outline {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .project-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card-footer .d-flex {
    width: 100%;
    justify-content: space-between;
  }

  .btn-card-action {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* --------------------------------------------------
   21. Print Stylesheet (@media print)
   -------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .top-edition-bar .edition-controls,
  .breaking-news-bar,
  .newspaper-nav-bar,
  #readingProgressBar,
  .btn-back-to-top,
  .newspaper-toast,
  .project-filter-bar,
  #upload-project,
  .modal:not(#resumeModal),
  .modal-backdrop,
  .btn-press-control,
  .pdf-viewer-toolbar,
  .resume-pdf-container,
  .resume-nav-tabs,
  .modal-footer,
  .btn-close {
    display: none !important;
  }

  #resumeModal.show {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
  }

  #resumeModal .modal-dialog {
    max-width: 100% !important;
    margin: 0 !important;
  }

  #resumeModal .modal-content {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #resumeTextPane {
    display: block !important;
    opacity: 1 !important;
  }

  .newspaper-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .newspaper-photo-img,
  .project-card-img {
    filter: grayscale(100%) !important;
  }

  .newspaper-section {
    page-break-inside: avoid;
    padding: 16px 0 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}
