/* ==========================================================================
   The Facts Desk — Main Theme Stylesheet (v1.0)
   Hand-crafted, lightweight, zero-framework CSS
   ========================================================================== */

:root {
  --navy: #0B3D74;
  --navy-dark: #07264A;
  --blue: #1E5AA8;
  --blue-light: #EBF3FC;
  --green: #2F8B3B;
  --green-light: #E8F5E9;
  --orange: #E8541E;
  --orange-light: #FDEEE9;
  --gold: #F0A020;
  --gold-light: #FEF6E9;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-card: #FFFFFF;
  --text: #1A2432;
  --text-muted: #5B6B7C;
  --text-light: #8796A8;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(11, 61, 116, 0.06), 0 1px 2px rgba(11, 61, 116, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 61, 116, 0.08), 0 2px 4px rgba(11, 61, 116, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(11, 61, 116, 0.12), 0 4px 8px -2px rgba(11, 61, 116, 0.06);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Breaking Ticker */
.breaking-ticker {
  background: var(--orange);
  color: #FFFFFF;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  font-weight: 600;
}
.breaking-ticker .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.breaking-label {
  background: #FFFFFF;
  color: var(--orange);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.breaking-text {
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breaking-text a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breaking-text a:hover {
  color: #FFF2EC;
}

/* Header & Nav */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: inline-block;
}
.nav-link:hover, .nav-link.active {
  background: var(--bg-soft);
  color: var(--blue);
}
.nav-link.telegram-nav-cta {
  background: var(--blue-light);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.nav-link.telegram-nav-cta:hover {
  background: var(--navy);
  color: #fff;
}

.mobile-toggle {
  display: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--navy);
  background: none;
  border: none;
}

/* Mobile Nav Drawer */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

/* Secondary Sub-nav / Category bar */
.category-bar {
  background: var(--navy);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar {
  display: none;
}
.category-bar-list {
  display: flex;
  list-style: none;
  padding: 0;
}
.category-bar-link {
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.6rem 1rem;
  display: inline-block;
  opacity: 0.9;
  transition: opacity 0.15s, background 0.15s;
}
.category-bar-link:hover, .category-bar-link.active {
  color: #FFFFFF;
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.badge-category {
  background: var(--blue-light);
  color: var(--navy);
}
.badge-category[data-cat="world"] { background: #E0F2FE; color: #0369A1; }
.badge-category[data-cat="india"] { background: #FEF3C7; color: #B45309; }
.badge-category[data-cat="politics"] { background: #FCE7F3; color: #BE185D; }
.badge-category[data-cat="business"] { background: #DCFCE7; color: #15803D; }
.badge-category[data-cat="technology"] { background: #EDE9FE; color: #6D28D9; }
.badge-category[data-cat="science"] { background: #E0E7FF; color: #4338CA; }
.badge-category[data-cat="health"] { background: #CCFBF1; color: #0F766E; }
.badge-category[data-cat="sports"] { background: #FFEDD5; color: #C2410C; }
.badge-category[data-cat="entertainment"] { background: #FEE2E2; color: #B91C1C; }

.badge-verified {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(47, 139, 59, 0.25);
}
.badge-breaking {
  background: var(--orange-light);
  color: var(--orange);
}

/* Card & Grid Layout */
.main-content {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-story:hover {
  box-shadow: var(--shadow-md);
}
.hero-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 280px;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hero-story:hover .hero-img-wrap img {
  transform: scale(1.02);
}
.hero-content {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-meta-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.hero-headline a {
  color: inherit;
}
.hero-headline a:hover {
  color: var(--blue);
}
.hero-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.card-byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card-author {
  font-weight: 600;
  color: var(--text);
}
.card-dot {
  color: var(--text-light);
}

/* Articles Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .card-img-wrap img {
  transform: scale(1.03);
}
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-headline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.card-headline a {
  color: inherit;
}
.card-headline a:hover {
  color: var(--blue);
}
.card-excerpt {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

/* Article Page Details */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}
.article-main {
  background: var(--bg);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--navy);
  font-weight: 500;
}
.breadcrumbs .sep {
  color: var(--text-light);
}

.article-header {
  margin-bottom: 1.75rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.01em;
}
.article-dek {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-meta img,
.author-meta .avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.avatar-badge--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.author-details {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.article-date {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.share-telegram { background: #229ED9; }
.share-whatsapp { background: #25D366; }
.share-x { background: #000000; }
.share-copy { background: var(--navy); }

/* Hero Image & Figcaption */
.article-hero-figure {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.article-hero-figure img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.article-caption {
  padding: 0.6rem 0.85rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Article Body Typography */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  overflow-wrap: anywhere;
}
.article-body p {
  margin-bottom: 1.5rem;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.35;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body blockquote {
  border-left: 4px solid var(--navy);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy-dark);
  font-size: 1.15rem;
  line-height: 1.6;
}
.article-body strong {
  font-weight: 700;
  color: var(--navy-dark);
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.article-body a:hover {
  color: var(--navy);
}

/* Fact-Check Sources Box */
.sources-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.sources-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sources-list {
  list-style: disc;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.sources-list li {
  margin-bottom: 0.4rem;
}
.sources-list a {
  color: var(--blue);
  word-break: break-all;
}

/* Telegram Community Box */
.telegram-cta-box {
  background: linear-gradient(135deg, #EBF3FC 0%, #F5F7FA 100%);
  border: 1px solid #C7DDF5;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.telegram-cta-content h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.telegram-cta-content p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin: 0;
}
.telegram-btn {
  background: #229ED9;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.telegram-btn:hover {
  background: #1B86BA;
  color: #fff;
  transform: translateY(-2px);
}

/* Author Box */
.author-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy);
  flex-shrink: 0;
}
.author-box-info h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.author-box-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.author-box-bio {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Related Articles Block */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Ad Slot Placeholders */
.ad-slot {
  width: 100%;
  background: var(--bg-soft);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0;
  overflow: hidden;
  position: relative;
}
.ad-slot--leaderboard {
  min-height: 90px;
  max-width: 970px;
  margin-left: auto;
  margin-right: auto;
}
.ad-slot--in-article {
  min-height: 250px;
}
.ad-slot--sidebar {
  min-height: 300px;
}
.ad-slot-label {
  font-weight: 600;
  color: var(--text-light);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sidebar-item-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-light);
  -webkit-text-stroke: 1px var(--blue);
  line-height: 1;
  width: 24px;
}
.sidebar-item-content h5 {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.sidebar-item-content h5 a:hover {
  color: var(--blue);
}

/* Static Page Content (About, Privacy, etc.) */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
}
.page-body {
  max-width: 840px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}
.page-body h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}
.page-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}
.page-body p {
  margin-bottom: 1.25rem;
}
.page-body ul, .page-body ol {
  margin: 0 0 1.5rem 1.5rem;
}
.page-body li {
  margin-bottom: 0.5rem;
}

/* Masthead Cards */
.masthead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.masthead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.masthead-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--navy);
}
.masthead-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.masthead-role {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.masthead-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.15);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #E2E8F0;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-mission {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  max-width: 340px;
}
.footer-telegram-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #229ED9;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}
.footer-telegram-cta:hover {
  background: #1987BA;
  color: #fff;
}
.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #CBD5E1;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94A3B8;
}
.footer-disclaimer-box a {
  color: var(--gold);
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    /* minmax(0, 1fr), not bare 1fr: `1fr` resolves to minmax(auto, 1fr) and the
       `auto` minimum is min-content, which refuses to shrink -- so one long
       unbroken word or URL pushes the grid wider than the viewport. */
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    margin-top: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .masthead-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-story {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .hero-headline {
    font-size: 1.5rem;
  }
  .site-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 1.85rem;
  }
  .article-dek {
    font-size: 1.05rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .masthead-grid {
    grid-template-columns: 1fr;
  }
}

/* The mobile drawer is opened by .mobile-toggle, which is display:block ONLY below
   768px. Nothing previously forced the drawer closed above that width, so opening it
   on a phone and then rotating to landscape left it open with no visible way to close
   it. Hide it unconditionally once the toggle is gone. */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none;
  }
}
