/*
 * NewsPress — "Newspaper" editorial skin.
 *
 * Loaded after style.css and re-skins the theme to a dense, flat, tagDiv-style
 * news layout: red accent (#d32f2f), white content on light grey, a dark
 * full-bleed menu bar, category labels pinned over thumbnails and square
 * (radius-free) surfaces.
 *
 * @package NewsPress
 */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --color-primary: #d32f2f;
  --color-primary-soft: #b71c1c;
  --color-secondary: #222222;
  --color-accent: #d32f2f;
  --color-accent-strong: #b71c1c;
  --color-accent-soft: #fdeaea;
  --color-text: #111111;
  --color-heading: #111111;
  --color-text-soft: #444444;
  --color-muted: #767676;
  --color-page-bg: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f1f1f1;
  --color-surface-2: #e6e6e6;
  --color-card: #ffffff;
  --color-elevated: #ffffff;
  --color-border: #e6e6e6;
  --color-border-strong: #c3c3c3;
  --color-footer-bg: #111111;
  --color-footer-text: #b5b5b5;
  --color-footer-heading: #ffffff;
  --color-footer-border: #2b2b2b;
  --color-overlay: rgba(0, 0, 0, 0.6);

  --font-ui: "Roboto", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Roboto", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-article: "Roboto", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Flat, square surfaces — no rounded corners or floating shadows. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --card-bg: #ffffff;
  --card-border: #e6e6e6;
  --card-shadow: none;
  --card-shadow-hover: none;

  --container-width: 1400px;
  --content-width: 740px;
  --sidebar-width: 320px;

  --header-height: 72px;
  --nav-height: 42px;

  /* Editorial red used for the masthead / site title. */
  --color-title: #d32f2f;
  --color-title-strong: #b71c1c;
}

/* Dark counterpoint so the theme's dark toggle still behaves. */
[data-theme="dark"] {
  --color-primary: #ff5252;
  --color-primary-soft: #ff7a7a;
  --color-secondary: #ff5252;
  --color-accent: #e53935;
  --color-accent-strong: #ff5252;
  --color-accent-soft: #2a1414;
  --color-text: #eaeaea;
  --color-heading: #ffffff;
  --color-text-soft: #c3c3c3;
  --color-muted: #999999;
  --color-page-bg: #111111;
  --color-bg: #1a1a1a;
  --color-surface: #222222;
  --color-surface-2: #2b2b2b;
  --color-card: #1a1a1a;
  --color-elevated: #222222;
  --color-border: #2b2b2b;
  --color-border-strong: #3d3d3d;
  --color-footer-bg: #0a0a0a;
  --color-footer-text: #b5b5b5;
  --color-footer-heading: #ffffff;
  --color-footer-border: #2b2b2b;
  --card-bg: #1a1a1a;
  --card-border: #2b2b2b;
  --color-title: #ff5a5a;
  --color-title-strong: #ff8080;
}

/* ==========================================================================
   2. BASE TYPE
   ========================================================================== */
body {
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a:hover {
  color: var(--color-primary-soft);
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ==========================================================================
   3. HEADER — centred logo, tagline, dark full-bleed menu
   ========================================================================== */
.utility-bar {
  background: #111111;
  color: #cfcfcf;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.utility-bar a,
.utility-bar__newsletter {
  color: #cfcfcf;
}

.utility-bar a:hover,
.utility-bar__newsletter:hover {
  color: #ffffff;
}

.utility-bar__breaking {
  color: #ffb3b3;
}

.site-header {
  border-bottom: 0;
  background: var(--color-bg);
}

.site-header__main {
  padding-top: 6px;
}

/*
 * Three-column grid: the branding sits in the true centre column while the
 * action buttons occupy the right column, so the icons stay vertically
 * centred in the branding row and never overlap the title on any screen size.
 */
.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 10px 0 8px;
  gap: 8px;
}

.site-branding {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.site-branding__link {
  justify-content: center;
}

.site-branding__link .custom-logo {
  max-height: 52px;
  max-width: min(360px, 74vw);
}

.site-title {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site-title a {
  color: var(--color-title);
}

.site-title a:hover {
  color: var(--color-title-strong);
}

.site-tagline {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 0;
  color: var(--color-text);
}

.icon-button:hover {
  background: transparent;
  color: var(--color-primary);
}

/* Main navigation becomes a dark, full-bleed bar below the branding row. */
.main-navigation {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  justify-content: center;
  align-items: stretch;
  min-height: var(--nav-height);
  margin-top: 10px;
  overflow: visible;
  z-index: 20;
}

.main-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #222222;
  z-index: -1;
}

.main-navigation ul {
  justify-content: center;
  align-items: stretch;
}

.main-navigation a {
  position: relative;
  height: var(--nav-height);
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-navigation a::after {
  display: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-menu-parent > a {
  background: var(--color-accent);
  color: #ffffff;
}

.np-more-menu > button {
  height: var(--nav-height);
  min-height: var(--nav-height);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.np-more-menu > button:hover,
.np-more-menu.is-open > button {
  background: var(--color-accent);
  color: #ffffff;
}

.main-navigation .sub-menu {
  top: 100%;
  min-width: 210px;
  padding: 0;
  background: #ffffff;
  border: 0;
  border-top: 3px solid var(--color-accent);
  border-radius: 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.main-navigation .sub-menu a {
  height: auto;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #222222;
  border-bottom: 1px solid var(--color-border);
}

.main-navigation .sub-menu a:hover {
  background: #f4f4f4;
  color: var(--color-primary);
}

.np-more-menu.is-open > .sub-menu {
  display: block;
}

/* Light category strip under the menu. */
.category-strip {
  background: #f9f9f9;
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
}

.category-strip__list a {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
  border-radius: 0;
}

.category-strip__list a:hover,
.category-strip__list .current-cat a {
  background: transparent;
  color: var(--color-primary);
}

/* Breaking ticker */
.breaking-news {
  background: #222222;
  color: #ffffff;
}

.breaking-news__label {
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop: wider content column and tighter top spacing. */
@media (min-width: 1024px) {
  .home-latest {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  }

  .site-main {
    padding-top: var(--space-5);
  }
}

/* ==========================================================================
   4. SECTIONS / HEADINGS
   ========================================================================== */
.section-head {
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  gap: 10px;
}

.section-title::before {
  width: 5px;
  height: 1em;
  border-radius: 0;
  background: var(--color-primary);
}

.section-link {
  min-height: 0;
  padding: 0;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.section-link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--color-primary-soft);
  box-shadow: none;
  transform: none;
}

.home-category__description {
  color: var(--color-muted);
  font-size: 13px;
}

/* ==========================================================================
   5. CARDS — flat, square, category label over the image
   ========================================================================== */
.card {
  transition: none;
}

.card--large,
.card--medium,
.card--standard,
.card--hero-secondary,
.card--band {
  position: relative;
}

.card--large .post-thumb,
.card--medium .post-thumb,
.card--standard .post-thumb,
.card--hero-secondary .post-thumb,
.card--band .post-thumb,
.card--horizontal .post-thumb {
  border-radius: 0;
}

.post-thumb {
  border-radius: 0;
  background: #ececec;
}

.card:hover .post-thumb img {
  transform: none;
  filter: none;
}

.card:hover .post-thumb::after {
  opacity: 0;
}

/* Solid blue category label pinned to the top-left of the thumbnail. */
.card--large .category-badge,
.card--medium .category-badge,
.card--standard .category-badge,
.card--hero-secondary .category-badge,
.card--band .category-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  align-self: auto;
  padding: 5px 9px;
  margin: 0;
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border-radius: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card--large .card__title,
.card--medium .card__title,
.card--standard .card__title,
.card--hero-secondary .card__title,
.card--band .card__title,
.cards-grid .card__title {
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.005em;
}

.card:hover .card__title a {
  color: var(--color-primary);
}

.card--large:hover,
.card--medium:hover,
.card--standard:hover,
.card--band:hover,
.np-pattern .card--large:hover,
.np-pattern .card--medium:hover,
.np-pattern .card--standard:hover,
.np-pattern .card--band:hover,
.cards-grid .card--medium:hover,
.cards-grid .card--large:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

.card__body {
  gap: 8px;
  padding-top: 12px;
}

.card__title a {
  color: var(--color-heading);
}

.card__excerpt {
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.card__meta {
  gap: 6px 14px;
  font-size: 11px;
  color: var(--color-muted);
}

.card__meta a {
  color: var(--color-primary);
}

.card__meta svg {
  opacity: 0.6;
}

/* Flat bordered surfaces */
.cards-grid > .card--medium,
.cards-grid > .card--large,
.np-pattern .card--large,
.np-pattern .card--medium,
.np-pattern .card--standard,
.np-pattern .card--band {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: none;
}

.cards-grid > .card--medium .card__body,
.cards-grid > .card--large .card__body,
.np-pattern .card--large .card__body,
.np-pattern .card--medium .card__body,
.np-pattern .card--standard .card__body,
.np-pattern .card--band .card__body {
  padding: 12px 14px 16px;
}

/* Numbered list */
.card--numbered .card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-accent);
  -webkit-text-stroke: 0;
}

.pagination .page-numbers,
.navigation.pagination .page-numbers {
  border-radius: 0;
}

/* ==========================================================================
   6. HERO — image on top, text beneath (no overlay)
   ========================================================================== */
.hero-lead {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-lead__kicker-bar {
  border-radius: 0;
}

.card--lead {
  box-shadow: none;
  border-radius: 0;
}

.card--lead .post-thumb {
  border-radius: 0;
}

.card--lead .post-thumb::after {
  display: none;
}

.card--lead .card__overlay {
  position: static;
  inset: auto;
  padding: 14px 0 0;
  gap: 8px;
}

.card--lead .card__overlay .category-badge {
  position: static;
  align-self: flex-start;
  color: #ffffff;
  background: var(--color-accent);
}

.card--lead .card__title {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  letter-spacing: -0.01em;
  max-width: none;
}

.card--lead .card__title a,
.card--lead .card__title a:hover {
  color: var(--color-heading);
}

.card--lead .card__excerpt {
  display: block;
  color: var(--color-text-soft);
  font-size: 14px;
  max-width: 46em;
}

.card--lead .card__meta {
  color: var(--color-muted);
}

/* Hero secondary cards: standard stacked cards at every breakpoint. */
.card--hero-secondary {
  display: block;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.card--hero-secondary .post-thumb {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.card--hero-secondary .post-thumb::after {
  opacity: 0;
}

.card--hero-secondary .card__body {
  position: static;
  min-height: 0;
  padding: 12px 0 0;
  z-index: auto;
}

.card--hero-secondary .card__title,
.card--hero-secondary .card__title a,
.card--hero-secondary .card__title a:hover {
  color: var(--color-heading);
}

.card--hero-secondary .card__meta {
  color: var(--color-muted);
}

.card--hero-secondary .category-badge {
  position: absolute;
  top: 0;
  left: 0;
  color: #ffffff;
  background: var(--color-accent);
}

/* ==========================================================================
   7. LATEST FEED & ARCHIVES
   ========================================================================== */
.np-latest__grid .card--standard {
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 0 0;
}

.np-latest__grid .card--standard .card__body {
  padding-top: 12px;
}

.np-latest__grid .card--standard:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

.archive-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.archive-header__kicker {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.archive-header h1 {
  color: var(--color-heading);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   8. SINGLE ARTICLE
   ========================================================================== */
.entry-title {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  letter-spacing: -0.015em;
}

.entry-header .category-badge,
.category-badge {
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-header .category-badge {
  background: var(--color-accent);
  color: #ffffff;
  padding: 5px 9px;
}

.entry-meta {
  color: var(--color-muted);
  font-size: 12px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.entry-meta__author {
  color: var(--color-primary);
}

.entry-content {
  font-family: var(--font-article);
  font-size: 17px;
  line-height: 1.75;
  color: #222222;
}

[data-theme="dark"] .entry-content {
  color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--color-heading);
}

.tags-list a {
  border-radius: 0;
}

.post-thumbnail figcaption {
  color: var(--color-muted);
  font-size: 12px;
}

/* ==========================================================================
   9. SIDEBAR / WIDGETS
   ========================================================================== */
.widget-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-heading);
  padding-bottom: 8px;
}

.widget-title::before {
  width: 5px;
  height: 1em;
  border-radius: 0;
  background: var(--color-primary);
}

.widget ul a {
  color: var(--color-text-soft);
  font-size: 13px;
}

.widget ul a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   10. BUTTONS / FORMS / PAGINATION
   ========================================================================== */
.btn {
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn--outline {
  border-color: var(--color-border-strong);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
  border-radius: 0;
  border-color: var(--color-border);
}

.newsletter {
  border-radius: 0;
}

.newsletter__form input[type="email"],
.newsletter__form .btn {
  border-radius: 0;
}

.page-numbers {
  border-radius: 0 !important;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-footer-bg);
}

.footer-widget h3,
.footer-widget .widget-title {
  border-bottom: 1px solid var(--color-footer-border);
}

.footer-social a {
  border-radius: 0;
}

.back-to-top {
  border-radius: 0;
  background: var(--color-accent);
}

/* ==========================================================================
   12. MOBILE
   ========================================================================== */
@media (max-width: 1023px) {
  /*
   * Two columns on mobile: the branding centres inside the flexible first
   * column and the actions take exactly their intrinsic width, so the icons
   * can never overlap the title.
   */
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 0;
    gap: 6px;
  }

  .site-branding {
    grid-column: 1;
    justify-self: center;
    width: 100%;
  }

  .header-actions {
    grid-column: 2;
  }

  .site-branding__link .custom-logo {
    max-height: 46px;
  }

  .site-title {
    font-size: clamp(1.45rem, 1.1rem + 2.4vw, 1.9rem);
  }

  .site-tagline {
    display: none;
  }

  .icon-button,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 599px) {
  .header-cta {
    display: none;
  }

  .site-title {
    font-size: clamp(1.35rem, 1.05rem + 3vw, 1.7rem);
  }

  .header-actions {
    gap: 0;
  }
}

/*
 * Very small screens: keep every control but tighten the hit areas so the
 * title, toggles and menu button always share the row without colliding.
 */
@media (max-width: 479px) {
  .site-header__inner {
    gap: 4px;
  }

  .icon-button,
  .menu-toggle {
    width: 34px;
    height: 34px;
  }

  .site-branding__link .custom-logo {
    max-height: 40px;
  }
}

/* ==========================================================================
   13. NEWS BODY TEXTURE
   ========================================================================== */
body {
  background-color: #ffffff;
  background-image: url("../images/pattern-newsprint.svg");
  background-repeat: repeat;
  background-position: 0 0;
}

[data-theme="dark"] body {
  background-color: #111111;
  background-image: none;
}

/* ==========================================================================
   14. MICRO-INTERACTIONS
   ========================================================================== */
.card__title a {
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

/* The lead card uses the shared underline instead of its legacy animated one. */
.card--lead .card__title a {
  background-image: none;
}

/* tagDiv-style underline on hover */
.card:hover .card__title a,
.card__title a:hover,
.card--lead .card__title a:hover,
.card--hero-secondary .card__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.category-badge {
  transition: background var(--transition-fast), color var(--transition-fast);
}

.category-badge:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

.card--lead .category-badge:hover,
.card--hero-secondary .category-badge:hover,
.entry-header .category-badge:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

/* Accent underline beneath category block headings */
.home-category .section-head {
  position: relative;
}

.home-category .section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--color-accent);
}

.hero-lead__kicker {
  color: var(--color-heading);
}

/* ==========================================================================
   15. ARTICLE BODY
   ========================================================================== */
.entry-content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(211, 47, 47, 0.4);
}

.entry-content a:hover {
  color: var(--color-primary-soft);
  border-bottom-color: currentColor;
}

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--color-accent);
  background: #f7f7f7;
  color: #333333;
  font-style: italic;
}

[data-theme="dark"] .entry-content blockquote {
  background: #1d1d1d;
  color: #dddddd;
}

.entry-content pre {
  padding: 16px 18px;
  background: #1e1e1e;
  color: #eeeeee;
  border-left: 4px solid var(--color-accent);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.entry-content code {
  font-family: var(--font-mono);
}

.entry-content figure img {
  border-radius: 0;
}

/* ==========================================================================
   16. SEARCH OVERLAY (modern)
   ========================================================================== */
.search-overlay {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(6px);
}

.search-overlay__panel {
  border-radius: 0;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px;
}

.search-overlay__title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-overlay .search-form .search-submit {
  border-radius: 0;
}

/* ==========================================================================
   17. MOBILE MENU (dark, tagDiv-style)
   ========================================================================== */
.mobile-menu {
  background: #111111;
  color: #eaeaea;
}

.mobile-menu__header {
  min-height: 64px;
  padding-block: 10px;
  border-bottom: 1px solid #2b2b2b;
}

.mobile-menu__header .site-branding {
  max-width: none;
  flex-direction: row;
}

.mobile-menu__header .site-title,
.mobile-menu__header .site-title a {
  color: #ffffff;
}

.mobile-menu__header .custom-logo {
  max-height: 46px;
}

.mobile-menu__close {
  border-radius: 0;
  color: #ffffff;
}

.mobile-menu__search {
  border-bottom: 1px solid #2b2b2b;
}

.mobile-menu__search input[type="search"] {
  background: #1a1a1a;
  border-color: #333333;
  color: #eeeeee;
}

.mobile-menu__nav a {
  color: #eaeaea;
  border-bottom: 1px solid #262626;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.mobile-menu__nav .sub-menu a {
  color: #aaaaaa;
  text-transform: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.mobile-menu__submenu-toggle {
  color: #aaaaaa;
}

.mobile-menu__footer {
  border-top: 1px solid #2b2b2b;
}

.mobile-social a {
  border-radius: 0;
  background: #222222;
  color: #dddddd;
}

.mobile-social a:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.mobile-menu__backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   18. ACCESSIBILITY & PERFORMANCE
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:target {
  scroll-margin-top: 96px;
}

.section-title,
.widget-title {
  scroll-margin-top: 140px;
}

/* Defer rendering of long, off-screen homepage blocks. */
.home-category,
.video-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* Keep interactive transitions cheap. */
.card__title a,
.category-badge,
.btn,
.icon-button,
.section-link,
.main-navigation a {
  transition-duration: 150ms;
}

@media (prefers-reduced-motion: reduce) {
  .breaking-news__label .pulse {
    animation: none;
  }
}
