/* Magazine presentation ported from static/css/style.css. Ghost adaptations
   follow the original rules so article/editor styles retain their contracts. */
:root {
  /* Exact DW Focus Reference Color Palette */
  --bg-outer: #F5F1E8;
  --bg-canvas: #F5F1E8;
  --bg-dark: #192531;
  --bg-dark-hover: #263746;
  --bg-dark-border: #304252;
  --bg-ad-slot: #E9E4DB;
  --bg-subtle: #E9E4DB;

  --text-main: #192531;
  --text-body: #365A6D;
  --text-muted: #667078;
  --text-light: #667078;

  /* Exact Section Accents from Reference Photo */
  --accent-red: #B44936;
  --accent-red-dark: #8C352A;
  --accent-green: #365A6D;
  --accent-magenta: #D3A34A;
  --accent-coral: #B44936; /* Backward-compatible token */

  /* Social Icon Colors */
  --social-fb: #2B589A;
  --social-tw: #00ACEE;
  --social-rss: #F26522;
  --social-li: #0077B5;
  --social-dark: #2B2B2B;

  /* Structural Hairlines */
  --border-light: #D6D0C6;
  --border-hairline: #D6D0C6;
  --border-strong: #192531;

  /* Typography */
  --font-logo: 'Montserrat', 'Arial Black', Impact, sans-serif;
  --font-serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Bitter', Georgia, serif;
  --font-main: 'Roboto', sans-serif;

  --container-max: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-red);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 20px;
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 8px 16px;
  z-index: 3000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.skip-link:focus {
  top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  background: var(--bg-canvas);
}

/* ==========================================================================
   1. DW FOCUS MASTHEAD (LOGO + SPONSOR STRIP + 2-ROW NAV & TRENDING BAR)
   ========================================================================== */
.dw-masthead {
  padding-top: 18px;
  margin-bottom: 18px;
  background: var(--bg-canvas);
}

.dw-masthead-repeated {
  padding-top: 28px;
  margin-top: 28px;
  margin-bottom: 18px;
  border-top: 1px solid var(--border-light);
}

/* Top Row: Logo + 2 Sponsor Columns + 230x60 Banner */
.dw-header-top {
  display: grid;
  grid-template-columns: minmax(320px, auto) 1fr 1fr 246px;
  align-items: center;
  padding-bottom: 16px;
  gap: 0;
}

.dw-logo-block {
  padding-right: 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dw-logo-link {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.05vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.dw-logo-link:hover {
  opacity: 0.92;
}

.dw-logo-black {
  color: #192531;
}

.dw-logo-red {
  color: var(--accent-red);
}

/* Edition & Integrity Header Badges */
.dw-sponsor-col {
  border-left: 1px solid var(--border-light);
  padding: 2px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dw-sponsor-label {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-red);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.dw-sponsor-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.dw-sponsor-inner:hover {
  opacity: 0.85;
}

.dw-sponsor-inner:hover .dw-sponsor-title {
  color: var(--accent-red);
}

.dw-badge-icon {
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
}

.dw-badge-icon.sponsor-tag {
  background: #263746;
  color: #FFFFFF;
  border: 1px solid #333333;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.dw-sponsor-title {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  transition: color 0.15s ease;
}

.dw-sponsor-sub {
  font-size: 9.5px;
  color: var(--text-light);
  margin-top: 1px;
}

/* Top Right Daily Dispatch Box */
.dw-banner-top-col {
  border-left: 1px solid var(--border-light);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.dw-top-dispatch-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  text-align: right;
}

.dw-dispatch-tag {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  text-transform: uppercase;
}

.dw-dispatch-text {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
}

/* Double-Row Navigation & Trending Bar */
.dw-navbar-wrap {
  display: grid;
  grid-template-columns: 74px 1fr;
  border-top: 2px solid var(--bg-dark);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  background: var(--bg-canvas);
  position: relative;
}

/* Left Black Counter Square (15 MUST READ ARTICLES) */
.dw-must-read-box {
  background: var(--bg-dark);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  border: none;
}

.dw-must-read-num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.dw-must-read-label {
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #CCCCCC;
}

.dw-nav-rows {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Upper Nav Row: Links + Social Icons */
.dw-nav-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  min-height: 36px;
  padding-right: 8px;
}

.dw-nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  flex-wrap: wrap;
}

.dw-nav-list li {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border-light);
}

.dw-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.dw-nav-list a .caret {
  font-size: 8px;
  color: var(--text-muted);
}

.dw-nav-list a:hover,
.dw-nav-list a.active-red {
  color: var(--accent-red);
}

.dw-nav-list a.active-green {
  color: var(--accent-green);
}

.dw-nav-list a.active-magenta {
  color: var(--accent-magenta);
}

/* Right Social Icons inside Upper Nav */
.dw-social-strip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 8px;
}

.dw-social-btn {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 700;
  border-radius: 1px;
  transition: opacity 0.15s ease;
}

.dw-social-btn:hover {
  opacity: 0.85;
}

.dw-social-btn.fb { background: var(--social-fb); }
.dw-social-btn.tw { background: var(--social-tw); }
.dw-social-btn.li { background: var(--social-li); font-size: 10px; font-weight: 800; font-family: var(--font-sans); }
.dw-social-btn.rss { background: var(--social-rss); }
.dw-social-btn.staff { background: var(--social-dark); }

/* Lower Nav Row: Trending Ticker + Search Input */
.dw-nav-lower {
  display: grid;
  grid-template-columns: 1fr 246px;
  align-items: center;
  min-height: 32px;
}

.dw-trending-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dw-trending-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.dw-trending-link {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dw-trending-time {
  font-size: 11px;
  font-style: italic;
  color: var(--text-light);
  flex-shrink: 0;
}

.dw-search-form {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border-light);
  height: 100%;
  padding: 0 8px 0 12px;
}

.dw-search-form input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-main);
  outline: none;
  padding: 4px 0;
}

.dw-search-form input::placeholder {
  color: #BBBBBB;
}

.dw-search-btn {
  background: none;
  border: none;
  color: #999999;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.dw-search-btn:hover {
  color: var(--text-main);
}

/* Expandable Must-Read Dropdown Drawer */
.dw-mustread-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #263746;
  color: #FFFFFF;
  z-index: 1200;
  padding: 16px 20px;
  border-bottom: 3px solid var(--accent-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dw-mustread-drawer.open {
  display: block;
}

.dw-mustread-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.dw-mustread-item {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.3;
  color: #E0E0E0;
  border-left: 2px solid var(--accent-red);
  padding-left: 10px;
}

.dw-mustread-item:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   2. MAIN 2-COLUMN FRAME (LEFT CONTENT 74% + RIGHT SIDEBAR 26%)
   ========================================================================== */
.dw-two-col-section {
  display: grid;
  grid-template-columns: 1fr 246px;
  gap: 0;
  align-items: start;
}

.dw-two-col-section.with-divider {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.dw-main-col {
  padding-right: 18px;
  border-right: 1px solid var(--border-light);
  min-width: 0;
}

.dw-sidebar-col {
  padding-left: 16px;
  min-width: 0;
}

/* Black Bar Section Headers */
.dw-black-bar {
  background: var(--bg-dark);
  color: #FFFFFF;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dw-black-bar.center-title {
  justify-content: center;
}

/* ==========================================================================
   3. TOP FOLD: "THE BIG STORY" SPLIT HERO (BIG PHOTO LEFT + BLACK PLAYLIST RIGHT)
   ========================================================================== */
.dw-hero-wrapper {
  display: grid;
  grid-template-columns: 1.88fr 1fr;
  background: var(--bg-dark);
  min-height: 368px;
  margin-bottom: 18px;
}

/* Left Big Story Photo Stage */
.dw-hero-photo-stage {
  position: relative;
  width: 100%;
  min-height: 368px;
  overflow: hidden;
  background: #1A1A1A;
  display: block;
}

.dw-hero-photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.dw-hero-photo-stage:hover img {
  transform: scale(1.02);
}

/* Top-Left Red Category Ribbon ("DIPLOMATIC") */
.dw-hero-cat-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-red);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  z-index: 3;
}

/* Bottom Gradient & Serif Headline Overlay */
.dw-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%);
  z-index: 2;
}

.dw-hero-date {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #CCCCCC;
  margin-bottom: 4px;
}

.dw-hero-headline {
  font-family: var(--font-serif);
  font-size: 1.78rem;
  font-weight: 400;
  line-height: 1.18;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Right Black Playlist Sidebar ("THE BIG STORY") */
.dw-hero-playlist {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #222222;
}

.dw-hero-playlist-header {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #D6D6D6;
  border-bottom: 1px solid var(--bg-dark-border);
}

.dw-hero-playlist-items {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dw-playlist-item {
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-dark-border);
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.32;
  color: #B5B5B5;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dw-playlist-item:hover,
.dw-playlist-item.active {
  background: #222222;
  color: #FFFFFF;
}

.dw-playlist-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-red);
}

/* 5 Dots at Bottom of Playlist */
.dw-hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  background: #0C0C0C;
}

.dw-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666666;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  background-clip: content-box;
  box-sizing: content-box;
}

.dw-hero-dot.active {
  background: var(--accent-red);
  background-clip: content-box;
}

/* ==========================================================================
   4. TABBED FEATURES STRIP (MOST RECENT FEATURES | POPULAR FEATURES)
   ========================================================================== */
.dw-tabs-bar {
  background: var(--bg-dark);
  height: 32px;
  display: flex;
  align-items: stretch;
  margin-bottom: 18px;
}

.dw-tab-btn {
  background: transparent;
  border: none;
  color: #999999;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 15px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dw-tab-btn.active {
  background: var(--accent-red);
  color: #FFFFFF;
}

.dw-tab-btn:hover:not(.active) {
  color: #FFFFFF;
}

.dw-features-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 10px;
}

.dw-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dw-thumb-16x10 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EEEEEE;
  margin-bottom: 10px;
  display: block;
}

@supports not (aspect-ratio: 16 / 10) {
  .dw-thumb-16x10 {
    padding-top: 62.5%;
  }
}

.dw-horiz-item .dw-thumb-16x10 {
  margin-bottom: 0;
}

.dw-thumb-16x10 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dw-feature-card:hover .dw-thumb-16x10 img,
.dw-std-card:hover .dw-thumb-16x10 img {
  transform: scale(1.04);
}

.dw-meta-date {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.dw-card-serif-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dw-card-serif-title a:hover {
  color: var(--accent-red);
}

.dw-card-excerpt {
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   5. RIGHT SIDEBAR WIDGETS (EVEN MORE NEWS, POPULAR, VIDEO, ADS)
   ========================================================================== */
.dw-sidebar-widget {
  margin-bottom: 22px;
}

.dw-sidebar-lead {
  padding-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.dw-sidebar-lead .dw-card-serif-title {
  font-size: 14px;
  margin-bottom: 0;
}

.dw-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.dw-sidebar-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}

.dw-sidebar-list .dw-card-serif-title {
  font-size: 12.5px;
  margin-bottom: 0;
}

/* Editorial Spotlight Box (Replaces Deceptive Video Box) */
.dw-video-box,
.dw-spotlight-box {
  background: #263746;
  border: 1px solid #304252;
  padding: 12px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.dw-spotlight-thumb,
.dw-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  background: #192531;
}

@supports not (aspect-ratio: 16 / 10) {
  .dw-spotlight-thumb,
  .dw-video-thumb {
    padding-top: 62.5%;
  }
}

.dw-spotlight-thumb img,
.dw-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dw-spotlight-box:hover .dw-spotlight-thumb img,
.dw-video-box:hover .dw-video-thumb img {
  transform: scale(1.03);
}

.dw-spotlight-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-red);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 2;
}

.dw-spotlight-headline {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 10px;
  margin-bottom: 4px;
}

.dw-spotlight-headline a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dw-spotlight-headline a:hover {
  color: var(--accent-red);
}

.dw-video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
}

.dw-video-play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(238, 50, 36, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ==========================================================================
   Grey-Black Advertisement Spaces (Billboard in Main Column & Sidebar Units)
   ========================================================================== */
.dw-ad-billboard-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.dw-ad-billboard-stack .dw-ad-billboard {
  margin-top: 0;
  padding: 13px 18px;
  gap: 8px;
}

.dw-ad-billboard-single {
  margin-top: 18px;
  padding: 13px 18px;
  gap: 8px;
}

.dw-ad-billboard {
  background: #141414;
  border: 1px solid #304252;
  border-left: 3px solid var(--accent-red);
  margin-top: 24px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dw-ad-billboard.accent-green {
  border-left-color: var(--accent-green);
}

.dw-ad-billboard.accent-green .dw-ad-tag {
  color: var(--accent-green);
}

.dw-ad-billboard.accent-green .dw-ad-billboard-btn:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #FFFFFF;
}

.dw-ad-billboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242424;
  padding-bottom: 8px;
}

.dw-ad-tag {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  text-transform: uppercase;
}

.dw-ad-spec {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #777777;
  text-transform: uppercase;
}

.dw-ad-billboard-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dw-ad-billboard-main {
  flex: 1 1 300px;
  min-width: 0;
}

.dw-ad-billboard-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dw-ad-billboard-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
  color: #B0B0B0;
  margin: 0;
}

.dw-ad-billboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #222222;
  color: #FFFFFF;
  border: 1px solid #3A3A3A;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dw-ad-billboard-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

/* Grey-Black Sidebar Ad Card */
.dw-sidebar-ad-card {
  background: #141414;
  border: 1px solid #304252;
  border-top: 2px solid var(--accent-red);
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dw-sidebar-ad-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0;
}

.dw-sidebar-ad-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
  color: #A8A8A8;
  margin: 0;
}

.dw-sidebar-ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #222222;
  color: #FFFFFF;
  border: 1px solid #3A3A3A;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.dw-sidebar-ad-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

/* ==========================================================================
   6. CATEGORY SECTIONS (GREEN BUSINESS SECTION & MAGENTA KERALA/TECH SECTION)
   ========================================================================== */
.dw-cat-header-bar {
  background: var(--bg-dark);
  color: #FFFFFF;
  height: 32px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-left: 14px;
  margin-bottom: 18px;
}

.dw-cat-header-title {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dw-view-toggles {
  display: flex;
  align-items: stretch;
}

.dw-toggle-btn {
  min-width: 38px;
  min-height: 32px;
  border: none;
  border-left: 1px solid #2A2A2A;
  background: var(--bg-dark);
  color: #888888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dw-toggle-btn.active-green {
  background: var(--accent-green);
  color: #FFFFFF;
}

.dw-toggle-btn.active-magenta {
  background: var(--accent-magenta);
  color: #FFFFFF;
}

/* Sidebar Editorial Promo & Lexicon Callouts */
.dw-sidebar-promo-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.dw-promo-tag {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dw-promo-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.dw-promo-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-body);
  margin-bottom: 10px;
}

.dw-promo-link {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dw-promo-link:hover {
  text-decoration: underline;
}

/* Business Articles Dual View (Grid / List) */
.dw-business-container.list-mode .dw-cat-top-row {
  grid-template-columns: 1fr;
  gap: 16px;
}

.dw-business-container.list-mode .dw-cat-bottom-3col {
  grid-template-columns: 1fr;
  gap: 14px;
}

.dw-business-container.list-mode .dw-std-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.dw-business-container.list-mode .dw-wide-feature-card {
  border-right: none;
  padding-right: 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

/* Business Section Top Row: 2-Column Wide Overlay Card + 1-Column Standard Card */
.dw-cat-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.dw-wide-feature-card {
  display: flex;
  flex-direction: column;
  padding-right: 18px;
  border-right: 1px solid var(--border-light);
  min-width: 0;
}

.dw-wide-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222222;
  margin-bottom: 12px;
  display: block;
}

@supports not (aspect-ratio: 16 / 9) {
  .dw-wide-photo-wrap {
    padding-top: 56.25%;
  }
}

.dw-wide-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dw-wide-photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.78);
  padding: 14px 18px;
  color: #FFFFFF;
}

.dw-wide-overlay-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.24;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.dw-wide-overlay-meta {
  font-size: 10.5px;
  color: #BBBBBB;
}

.dw-wide-overlay-meta .cat-green {
  color: var(--accent-green);
}

.dw-wide-overlay-meta strong {
  color: #FFFFFF;
  font-weight: 500;
}

.dw-meta-inline {
  font-size: 10.5px;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 8px;
}

.dw-meta-inline .cat-green {
  color: var(--accent-green);
}

.dw-meta-inline .cat-magenta {
  color: var(--accent-magenta);
}

.dw-meta-inline .author-name {
  color: var(--text-main);
  font-weight: 500;
}

.dw-tags-line {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 10px;
}

.dw-tags-line span {
  color: var(--text-body);
}

/* Business Section Bottom Row: 3 Equal Columns with Vertical Dividers */
.dw-cat-bottom-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 12px;
}

.dw-std-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Entertainment / Kerala Horizontal List Layout (Matching Bottom Section of Reference) */
.dw-horizontal-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dw-horiz-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.dw-horiz-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.28;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dw-horiz-title a:hover {
  color: var(--accent-magenta);
}

/* Toggleable Grid Mode for Category Sections */
.dw-horizontal-list.grid-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dw-horizontal-list.grid-mode .dw-horiz-item {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ==========================================================================
   7. NEWSLETTER WIDGET & FOOTER
   ========================================================================== */
.dw-newsletter-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 14px;
  margin-top: 14px;
}

.dw-newsletter-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dw-newsletter-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.dw-newsletter-form {
  display: flex;
  gap: 6px;
}

.dw-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-main);
}

.dw-newsletter-btn {
  background: var(--accent-red);
  color: #FFFFFF;
  border: none;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.dw-newsletter-btn:hover {
  background: var(--accent-red-dark);
}

.site-footer {
  margin-top: 36px;
  padding: 22px 0 36px;
  border-top: 2px solid var(--bg-dark);
  font-size: 11px;
  color: var(--text-muted);
}

.dw-footer-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.dw-footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ==========================================================================
   8. INNER PAGES COMPATIBILITY (ARTICLE, CATEGORY, GLOSSARY, ABOUT)
   ========================================================================== */
.recent-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 10px;
  background: #EEEEEE;
  display: block;
}

@supports not (aspect-ratio: 16 / 10) {
  .card-image-wrap {
    padding-top: 62.5%;
  }
}

.card-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.micro-meta {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.card-headline {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-excerpt {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 10px;
}

.read-more-link {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  cursor: pointer;
}

.btn-pill:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

.article-detail-header {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 22px;
}

.article-display-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin: 8px 0 14px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent-red);
  padding-left: 16px;
  margin: 20px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-body);
}

/* ==========================================================================
   9. MOBILE NAVIGATION & DRAWER
   ========================================================================== */
.dw-mobile-toggle {
  display: none;
}

.dw-mobile-trending-bar {
  display: none;
}

.dw-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dw-mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.dw-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg-canvas);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 28px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

.dw-mobile-drawer.open {
  transform: translateX(0);
}

.dw-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--bg-dark);
  background: var(--bg-canvas);
  position: sticky;
  top: 0;
  z-index: 2;
}

.dw-mobile-close-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dw-mobile-close-btn:hover {
  background: var(--bg-dark);
  color: #FFFFFF;
}

.dw-mobile-search-form {
  display: flex;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  gap: 6px;
}

.dw-mobile-search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
}

.dw-mobile-search-btn {
  min-width: 44px;
  min-height: 44px;
  background: var(--accent-red);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
}

.dw-mobile-nav-links {
  flex: 1;
}

.dw-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.dw-mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease, color 0.15s ease;
}

.dw-mobile-nav-list a:hover,
.dw-mobile-nav-list a.active {
  background: var(--bg-subtle);
  color: var(--accent-red);
  border-left: 4px solid var(--accent-red);
}

.dw-mobile-mustread-sec {
  background: #192531;
  color: #FFFFFF;
  padding: 16px 20px;
}

.dw-mobile-sec-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dw-mobile-mustread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dw-mobile-mustread-link {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.35;
  color: #E0E0E0;
  padding-left: 8px;
  border-left: 2px solid var(--accent-red);
  display: block;
}

.dw-mobile-mustread-link:hover {
  color: #FFFFFF;
}

.dw-mobile-drawer-footer {
  margin-top: auto;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-canvas);
}

.dw-mobile-socials {
  display: flex;
  gap: 8px;
}

.dw-mobile-social-icon {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
}

.dw-mobile-social-icon.fb { background: var(--social-fb); }
.dw-mobile-social-icon.tw { background: var(--social-tw); }
.dw-mobile-social-icon.li { background: var(--social-li); font-size: 13px; font-weight: 800; }
.dw-mobile-social-icon.rss { background: var(--social-rss); }

.dw-mobile-staff-btn {
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg-dark);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .dw-navbar-wrap {
    display: none !important;
  }

  .dw-sponsor-col,
  .dw-banner-top-col {
    display: none !important;
  }

  .dw-header-top {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
  }

  .dw-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    background: var(--bg-dark);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    border-radius: 2px;
  }

  .dw-mobile-toggle:hover {
    background: var(--bg-dark-hover);
  }

  .dw-mobile-toggle-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 16px;
    height: 12px;
  }

  .dw-mobile-toggle-bar {
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 1px;
  }

  .dw-mobile-toggle-text {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FFFFFF;
  }

  .dw-mobile-trending-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-subtle);
    border-top: 2px solid var(--bg-dark);
    border-bottom: 1px solid var(--border-light);
    font-size: 11px;
    margin-bottom: 14px;
    overflow: hidden;
  }

  .dw-mobile-trending-bar .dw-trending-tag {
    background: var(--accent-red);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }

  .dw-mobile-trending-bar .dw-trending-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
    font-weight: 500;
  }

  .dw-two-col-section {
    grid-template-columns: 1fr;
  }

  .dw-main-col {
    padding-right: 0;
    border-right: none;
    margin-bottom: 24px;
  }

  .dw-sidebar-col {
    padding-left: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
  }

  .dw-hero-wrapper {
    grid-template-columns: 1fr;
  }

  .dw-mustread-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .dw-features-3col,
  .dw-cat-top-row,
  .dw-cat-bottom-3col,
  .recent-stories-grid {
    grid-template-columns: 1fr;
  }

  .dw-wide-feature-card {
    padding-right: 0;
    border-right: none;
  }

  .dw-horiz-item {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. PRINT STYLESHEET OPTIMIZATION (@media print)
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Hide interactive, navigation, and commercial billboard elements */
  .skip-link,
  .dw-mobile-toggle,
  .dw-mobile-backdrop,
  .dw-mobile-drawer,
  .dw-search-form,
  .dw-view-toggles,
  .dw-tab-header-strip,
  .dw-hero-dots,
  .dw-social-strip,
  .dw-mobile-trending-bar,
  .dw-trending-bar,
  .dw-must-read-box,
  .dw-mustread-drawer,
  .dw-newsletter-box,
  .dw-ad-billboard,
  .dw-ad-billboard-stack,
  .dw-sidebar-ad-card,
  .dw-sponsor-col,
  .dw-banner-top-col,
  .site-footer,
  button {
    display: none !important;
  }

  .dw-masthead {
    border-bottom: 2pt solid #000000;
    margin-bottom: 16pt;
    padding-bottom: 8pt;
  }

  .dw-header-top {
    display: block !important;
  }

  .dw-logo-link {
    font-size: 24pt !important;
    color: #000000 !important;
  }

  .dw-logo-black,
  .dw-logo-red {
    color: #000000 !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .dw-two-col-section {
    display: block !important;
  }

  .dw-main-col {
    padding-right: 0 !important;
    border-right: none !important;
    width: 100% !important;
  }

  .dw-sidebar-col {
    display: none !important;
  }

  article,
  .dw-feature-card,
  .dw-std-card,
  .dw-horiz-item {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 14pt;
  }

  a {
    text-decoration: underline !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 80%;
    color: #444444 !important;
  }
}

/* Native Ghost markup, progressive enhancement, and content boundaries. */
:root {
  --shell: 1080px;
  --serif: var(--font-serif);
  --sans: var(--font-sans);
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 3px; }
.site-header { border-bottom: 0; }
.dw-header-top { grid-template-columns: minmax(0, 1fr) 246px; }
.dw-navbar-wrap--empty { grid-template-columns: 1fr; }
.site-navigation { display: block; margin: 0; max-width: none; padding: 0; }
.site-navigation ul { align-items: stretch; display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-navigation li { align-items: center; border-right: 1px solid var(--border-light); display: flex; }
.site-navigation a { color: var(--text-main); display: inline-flex; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 8px 13px; text-decoration: none; text-transform: uppercase; }
.site-navigation a:hover, .site-navigation .nav-current a { color: var(--accent-red); }
.dw-nav-lower > .dw-search-btn { align-self: stretch; border-left: 1px solid var(--border-light); font: inherit; font-size: 11.5px; justify-content: flex-start; padding: 4px 12px; }
.dw-nav-lower > .dw-search-form { flex: 0 0 min(260px, 32%); min-width: 180px; border-left: 1px solid var(--border-light); }
.dw-search-form .dw-search-btn { align-self: stretch; padding-inline: 10px; font: inherit; font-size: 11.5px; }
.dw-nav-upper { min-width: 0; }
.dw-social-strip { flex-shrink: 0; }
.dw-hero-stage { display: grid; min-width: 0; }
.dw-hero-photo-stage { display: flex; align-items: flex-end; min-width: 0; }
.dw-hero-overlay { position: relative; width: 100%; padding-top: 120px; }
.dw-hero-headline { overflow-wrap: anywhere; }
.dw-hero-date { display: block; }
.dw-hero-empty .dw-hero-overlay { padding-top: 48px; }
.dw-playlist-item { -webkit-line-clamp: unset; display: block; overflow-wrap: anywhere; }
.dw-hero-dot { width: 8px; height: 8px; padding: 18px; min-height: 8px; min-width: 8px; }
.dw-hero-dots { gap: 0; flex-wrap: wrap; padding: 0; }
.dw-hero-playlist-header, .dw-black-bar, .dw-cat-header-title { margin: 0; }
.dw-tabs-bar, .dw-cat-header-bar, .dw-black-bar { height: auto; min-height: 32px; }
.dw-tab-btn { min-height: 44px; }
.dw-tabs-bar { flex-wrap: wrap; }
.dw-features-3col, .dw-cat-top-row, .dw-cat-bottom-3col, .dw-horizontal-list { margin-top: 18px; }
.dw-card-serif-title, .dw-horiz-title, .dw-wide-overlay-title { overflow-wrap: anywhere; }
.dw-wide-photo-wrap { display: flex; align-items: flex-end; min-height: min-content; }
.dw-wide-photo-overlay { position: relative; width: 100%; }
.dw-wide-photo-wrap--text { aspect-ratio: auto; min-height: 180px; display: flex; align-items: flex-end; }
.dw-wide-photo-wrap--text .dw-wide-photo-overlay { position: relative; }
.dw-horiz-item:not(:has(.dw-thumb-16x10)) { grid-template-columns: 1fr; }
.dw-main-col > .sponsorship-card { margin-inline: 0; }
.dw-overflow-stories { margin-top: 24px; border-top: 1px solid var(--border-light); padding-top: 24px; }
.dw-policy-links { border-top: 1px solid var(--border-light); display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 14px; }
.site-footer { background: var(--bg-canvas); color: var(--text-muted); }
.dw-footer-links { flex-wrap: wrap; }
.dw-mobile-drawer .dw-logo-link { font-size: 1.25rem; }
.dw-mobile-nav-links .nav { list-style: none; margin: 0; padding: 6px 0; }
.dw-mobile-nav-links .nav a { align-items: center; border-bottom: 1px solid var(--border-light); display: flex; font-size: 13px; font-weight: 700; min-height: 44px; padding: 12px 20px; text-transform: uppercase; }
.dw-mobile-nav-links .nav-current a { color: var(--accent-red); }
.dw-mobile-toggle { display: none; }
.article-body a, .feature-image figcaption a, .source-notes a { text-decoration: underline; text-decoration-color: var(--accent-red); text-underline-offset: .16em; }
.sl-section-rail { display: flex; align-items: center; gap: 4px; min-width: 0; border-block: 1px solid var(--border-light); position: relative; }
.sl-section-primary, .sl-section-overflow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sl-section-rail a, .sl-section-more { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; color: var(--text-main); font: 700 12px/1.25 var(--font-sans); text-decoration: none; }
.sl-section-rail a:hover, .sl-section-rail a:focus-visible, .sl-section-more:hover { color: var(--accent-red); }
.sl-section-more { border: 0; background: transparent; cursor: pointer; }
.sl-section-rail.is-compact .sl-section-overflow { position: absolute; z-index: 25; top: 100%; right: 0; min-width: min(240px, 90vw); display: flex; flex-direction: column; align-items: stretch; padding: 6px; background: var(--bg-canvas); border: 1px solid var(--border-light); box-shadow: 0 10px 24px rgb(0 0 0 / .12); }
.sl-section-rail.is-compact .sl-section-overflow a { width: 100%; }
.sl-section-primary a { white-space: nowrap; }
.dw-news-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.dw-news-section .dw-cat-header-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.dw-news-section .dw-cat-header-bar a, .dw-overflow-stories .dw-cat-header-bar a { color: var(--accent-red); font-weight: 700; text-decoration: underline; }
.dw-hero-empty { min-height: 220px; padding: 28px; }
.dw-hero-empty p { max-width: 66ch; }
.dw-image-credit { color: var(--text-muted); font-size: 11px; line-height: 1.4; margin-top: 6px; }
.dw-feature-card .dw-meta-inline a { text-decoration: underline; }
.sl-brand-board { margin-top: 34px; border-top: 1px solid var(--border-light); padding-top: 20px; }
.sl-brand-board .dw-cat-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sl-brand-board-note, .sl-brand-board-disclosure { color: var(--text-muted); font: 400 11px/1.45 var(--font-sans); }
.sl-brand-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sl-brand-card { display: flex; min-height: 92px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px; border: 1px solid var(--border-light); color: var(--text-main); text-align: center; text-decoration: none; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.sl-brand-card:hover, .sl-brand-card:focus-visible { border-color: var(--accent-red); background: var(--bg-subtle); transform: translateY(-2px); }
.sl-brand-card img { display: block; width: min(100%, 122px); height: 31px; object-fit: contain; }
.sl-brand-card .sl-brand-name { font: 700 12px/1.25 var(--font-sans); letter-spacing: .01em; }
.sl-brand-card small { color: var(--text-muted); font: 400 10px/1.3 var(--font-sans); }
.sl-brand-card--pending { background: color-mix(in srgb, var(--bg-subtle) 55%, transparent); }
.sl-brand-board-disclosure { margin: 12px 0 0; }
@media (max-width: 900px) { .sl-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sl-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sl-brand-card { min-height: 84px; } }

@media (max-width: 900px) {
  html:not(.has-js) .dw-navbar-wrap { display: grid !important; }
  .has-js .dw-mobile-toggle { display: inline-flex; }
  .dw-header-top { gap: 8px; }
  .dw-logo-block { min-width: 0; padding-right: 0; }
  .dw-hero-photo-stage { min-height: 368px; }
  .dw-hero-playlist { border-left: 0; }
}
@media (max-width: 700px) {
  .sl-section-rail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding-block: 0; }
  .sl-section-primary { min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sl-section-primary::-webkit-scrollbar { display: none; }
  .sl-section-more { min-width: 96px; justify-content: center; }
}
@media (max-width: 560px) {
  .dw-logo-link { font-size: clamp(1.1rem, 5.5vw, 1.5rem); }
  .dw-mobile-toggle { padding-inline: 10px; }
  .dw-mobile-toggle-text { font-size: 10px; }
  .dw-hero-headline { font-size: 1.6rem; }
  .dw-hero-overlay { padding-inline: 18px; }
  .dw-nav-lower { grid-template-columns: minmax(0, 1fr); }
  .dw-trending-time { display: none; }
  .dw-hero-photo-stage { min-height: 320px; }
  .dw-mobile-drawer-header { padding-inline: 14px; }
  .dw-mobile-drawer .dw-logo-link { font-size: 1.1rem; }
  .dw-mobile-drawer-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The publication has one editorial rail. Keep every destination on the
   same desktop line and let a narrow viewport scroll it instead of creating a
   second wrapped row. */
@media (min-width: 901px) {
  .site-navigation { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-navigation::-webkit-scrollbar { display: none; }
  .site-navigation ul { flex-wrap: nowrap; min-width: max-content; }
  .site-navigation li { flex: 0 0 auto; }
  .site-navigation a { font-size: 10px; letter-spacing: .015em; padding-inline: 9px; white-space: nowrap; }
}
