:root {
  --accent: #b21f2d;
  --accent-hover: #8f1722;
  --font-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --font-display: "Arial Narrow", "Trebuchet MS", Arial, sans-serif;
  --font-reading: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --text: #111111;
  --muted: #747474;
  --border: #dedede;
  --soft-border: #ececec;
  --background: #ffffff;
  --soft-background: #f6f6f6;
  --dark: #111111;
  --container: 1320px;
  --header-height: 88px;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);

  font-family: var(--font-ui);

  line-height: 1.5;

  overflow-x: hidden;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

body.theme-transition,
body.theme-transition * {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

/* =========================================================
   GLOBAL CONTAINER
========================================================= */

.public-container {
  width: 100%;
  max-width: var(--container);

  margin-left: auto;
  margin-right: auto;

  padding-left: 30px;
  padding-right: 30px;
}

/* =========================================================
   PAGE LOADER
========================================================= */

.site-loader {
  position: fixed;

  z-index: 99999;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 20px;

  background: #ffffff;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.site-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-logo {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 34px;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.site-loader-line {
  width: 170px;

  height: 3px;

  overflow: hidden;

  background: #eeeeee;
}

.site-loader-line span {
  display: block;

  width: 50%;

  height: 100%;

  background: var(--accent);

  animation: loader-line 1s ease-in-out infinite;
}

@keyframes loader-line {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(220%);
  }
}

/* =========================================================
   TICKER
========================================================= */

.news-ticker {
  height: 42px;

  overflow: hidden;

  display: flex;

  align-items: center;

  background: var(--accent);

  color: #ffffff;

  font-size: 14px;

  font-weight: 700;

  white-space: nowrap;
}

.news-ticker-track {
  width: max-content;

  display: flex;

  align-items: center;

  animation: ticker-scroll 52s linear infinite;
}

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

.ticker-item {
  padding: 0 12px;

  transition: opacity 0.2s ease;
}

.ticker-item:hover {
  opacity: 0.75;
}

.ticker-dot {
  opacity: 0.6;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   HEADER
========================================================= */

.public-header {
  position: relative;

  z-index: 1000;

  background: var(--background);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.public-header.is-sticky .main-header-row {
  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  z-index: 1200;

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(14px);

  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
}

body.dark-mode .public-header.is-sticky .main-header-row {
  background: rgba(17, 17, 17, 0.96);
}

.public-header.header-hidden .main-header-row {
  transform: translateY(-110%);
}

.main-header-row {
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* =========================================================
   NAVIGATION
========================================================= */

.header-navigation {
  border-bottom: 1px solid var(--border);
}

.desktop-navigation {
  min-height: 60px;

  display: flex;

  align-items: center;

  gap: 33px;

  position: relative;

  font-size: 15px;

  font-weight: 700;
}

.desktop-navigation > a {
  position: relative;

  flex-shrink: 0;
}

.desktop-navigation > a::after {
  content: "";

  position: absolute;

  left: 0;

  right: 100%;

  bottom: -19px;

  height: 2px;

  background: var(--accent);

  transition: right 0.25s ease;
}

.desktop-navigation > a:hover,
.desktop-navigation > a.active {
  color: var(--accent);
}

.desktop-navigation > a:hover::after,
.desktop-navigation > a.active::after {
  right: 0;
}

.navigation-home {
  width: 29px;

  height: 29px;

  display: flex;

  align-items: center;
}

.navigation-home svg {
  width: 23px;

  height: 23px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;

  stroke-linejoin: round;
}

.more-nav-wrap {
  position: relative;
}

.more-navigation-button {
  border: 0;

  background: transparent;

  font-size: 21px;

  cursor: pointer;
}

.more-navigation-dropdown {
  width: 210px;

  position: absolute;

  z-index: 3000;

  top: calc(100% + 18px);

  right: 0;

  padding: 9px 0;

  opacity: 0;

  visibility: hidden;

  transform: translateY(-8px);

  background: var(--background);

  border: 1px solid var(--border);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.more-navigation-dropdown.open {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.more-navigation-dropdown a {
  display: block;

  padding: 10px 15px;

  font-size: 13px;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.more-navigation-dropdown a:hover {
  color: var(--accent);

  background: var(--soft-background);
}

/* =========================================================
   MAIN HEADER
========================================================= */

.main-header-row {
  border-bottom: 1px solid var(--border);
}

.main-header-inner {
  min-height: 116px;

  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;
}

.public-header.is-sticky .main-header-inner {
  min-height: 76px;
}

.header-left-actions {
  display: flex;

  align-items: center;

  gap: 24px;
}

.header-right-actions {
  justify-self: end;

  display: flex;

  align-items: center;

  gap: 12px;
}

/* =========================================================
   LOGO
========================================================= */

.public-logo {
  color: #202428;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(36px, 4vw, 56px);

  font-weight: 700;

  line-height: 1;

  letter-spacing: 0.1em;

  transition: font-size 0.25s ease;
}

.public-header.is-sticky .public-logo {
  font-size: 38px;
}

body.dark-mode .public-logo {
  color: #ffffff;
}

/* =========================================================
   HEADER BUTTONS
========================================================= */

.header-icon-button {
  width: 42px;

  height: 42px;

  padding: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid transparent;

  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.header-icon-button:hover {
  transform: translateY(-2px);

  border-color: var(--border);

  background: var(--soft-background);
}

.header-icon-button svg {
  width: 26px;

  height: 26px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.6;

  stroke-linecap: round;

  stroke-linejoin: round;
}

/* =========================================================
   HAMBURGER
========================================================= */

.menu-toggle {
  width: 32px;

  height: 32px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 8px;

  border-radius: 0;
}

.menu-toggle span {
  width: 29px;

  height: 2px;

  background: currentColor;

  transition: width 0.2s ease;
}

.menu-toggle:hover span:last-child {
  width: 20px;
}

/* =========================================================
   LIVE
========================================================= */

.live-badge {
  min-height: 40px;

  padding: 0 16px;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  border: 1px solid var(--border);

  border-radius: 22px;

  font-size: 14px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.live-badge:hover {
  transform: translateY(-2px);

  background: var(--soft-background);
}

.live-dot {
  width: 9px;

  height: 9px;

  border-radius: 50%;

  background: #ef6f72;

  box-shadow: 0 0 0 0 rgba(239, 111, 114, 0.5);

  animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 111, 114, 0.5);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(239, 111, 114, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 111, 114, 0);
  }
}

/* =========================================================
   STORY SLIDER
========================================================= */

.header-story-strip {
  padding: 28px 0;

  border-bottom: 1px solid var(--border);
}

.header-story-slider-wrap {
  position: relative;
}

.header-story-slider {
  display: flex;

  gap: 32px;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;

  overscroll-behavior-inline: contain;
}

.header-story-slider::-webkit-scrollbar {
  display: none;
}

.header-story-item {
  flex: 0 0 calc(25% - 24px);

  min-width: 0;

  display: grid;

  grid-template-columns:
    78px
    minmax(0, 1fr);

  gap: 18px;

  align-items: center;
}

.header-story-image {
  width: 78px;

  height: 78px;

  overflow: hidden;

  background: var(--soft-background);
}

.header-story-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.header-story-item:hover img {
  transform: scale(1.08);
}

.header-story-item h3 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 19px;

  font-weight: 500;

  line-height: 1.2;

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 3;
  line-clamp: 3;

  line-clamp: 3;

  overflow: hidden;
}

.header-story-item h3 a {
  transition: color 0.2s ease;
}

.header-story-item h3 a:hover {
  color: var(--accent);
}

.story-slider-arrow {
  width: 38px;

  height: 38px;

  position: absolute;

  z-index: 20;

  top: 50%;

  transform: translateY(-50%);

  border: 1px solid var(--border);

  border-radius: 50%;

  background: var(--background);

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);

  cursor: pointer;

  font-size: 25px;

  line-height: 1;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.story-slider-arrow:hover {
  background: var(--soft-background);
}

.story-slider-prev {
  left: -18px;
}

.story-slider-next {
  right: -18px;
}

/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.image-placeholder {
  width: 100%;

  height: 100%;

  min-height: 100px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #e9e9e9;

  color: #888888;

  font-size: 11px;

  font-weight: 800;
}

/* =========================================================
   SEARCH OVERLAY
========================================================= */

.search-overlay {
  position: fixed;

  z-index: 9000;

  inset: 0;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.search-overlay.open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.search-overlay-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.62);

  backdrop-filter: blur(5px);
}

.search-overlay-panel {
  width: 100%;

  max-height: 88vh;

  position: relative;

  z-index: 2;

  overflow-y: auto;

  transform: translateY(-40px);

  background: var(--background);

  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-overlay.open .search-overlay-panel {
  transform: translateY(0);
}

.search-overlay-close {
  width: 47px;

  height: 47px;

  position: absolute;

  top: 20px;

  right: 28px;

  border: 0;

  background: transparent;

  cursor: pointer;

  font-size: 35px;
}

.search-overlay-content {
  width: min(900px, calc(100% - 40px));

  margin: 0 auto;

  padding: 80px 0 55px;
}

.search-overlay-kicker {
  color: var(--accent);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1px;
}

.search-overlay-content h2 {
  margin: 6px 0 25px;

  font-family: Georgia, serif;

  font-size: clamp(32px, 5vw, 52px);

  font-weight: 500;
}

.search-overlay-form {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    115px;

  gap: 10px;
}

.search-overlay-form input {
  width: 100%;

  height: 58px;

  padding: 0 18px;

  border: 1px solid var(--border);

  background: var(--background);

  color: var(--text);

  outline: none;

  font-size: 17px;
}

.search-overlay-form input:focus {
  border-color: var(--text);
}

.search-overlay-form button {
  border: 0;

  background: var(--accent);

  color: #ffffff;

  cursor: pointer;

  font-weight: 700;

  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.search-overlay-form button:hover {
  filter: brightness(0.9);

  transform: translateY(-1px);
}

.public-search-results {
  margin-top: 20px;
}

.search-loading,
.search-empty {
  padding: 20px 0;

  color: var(--muted);
}

.search-result-item {
  padding: 15px 0;

  display: grid;

  grid-template-columns:
    110px
    minmax(0, 1fr);

  gap: 18px;

  border-bottom: 1px solid var(--border);

  transition: transform 0.2s ease;
}

.search-result-item:hover {
  transform: translateX(5px);
}

.search-result-image {
  width: 110px;

  height: 78px;

  overflow: hidden;

  background: var(--soft-background);
}

.search-result-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.search-result-placeholder {
  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--muted);

  font-size: 10px;

  font-weight: 800;
}

.search-result-category {
  color: var(--accent);

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;
}

.search-result-content h3 {
  margin: 4px 0 5px;

  font-family: Georgia, serif;

  font-size: 18px;

  font-weight: 500;

  line-height: 1.25;
}

.search-result-date {
  color: var(--muted);

  font-size: 11px;
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  width: min(390px, 88vw);

  height: 100vh;

  position: fixed;

  z-index: 8001;

  top: 0;

  left: 0;

  padding: 28px;

  transform: translateX(-105%);

  background: var(--background);

  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.12);

  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding-bottom: 25px;

  border-bottom: 1px solid var(--border);
}

.mobile-logo {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 27px;

  font-weight: 700;

  letter-spacing: 0.1em;
}

.mobile-menu-header button {
  border: 0;

  background: transparent;

  cursor: pointer;

  font-size: 33px;
}

.mobile-menu-links {
  display: flex;

  flex-direction: column;

  margin-top: 12px;
}

.mobile-menu-links a {
  padding: 15px 0;

  border-bottom: 1px solid var(--soft-border);

  font-size: 16px;

  font-weight: 700;

  transition:
    padding-left 0.2s ease,
    color 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  padding-left: 7px;

  color: var(--accent);
}

.mobile-menu-overlay {
  position: fixed;

  z-index: 8000;

  inset: 0;

  opacity: 0;

  visibility: hidden;

  background: rgba(0, 0, 0, 0.55);

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;

  visibility: visible;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  width: 44px;

  height: 44px;

  position: fixed;

  z-index: 5000;

  right: 25px;

  bottom: 25px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 0;

  border-radius: 50%;

  opacity: 0;

  visibility: hidden;

  transform: translateY(12px);

  background: var(--text);

  color: var(--background);

  cursor: pointer;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.back-to-top.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

/* =========================================================
   GENERAL IMAGE EFFECT
========================================================= */

.smooth-image {
  opacity: 0;

  transform: scale(1.015);

  transition:
    opacity 0.45s ease,
    transform 0.55s ease;
}

.smooth-image.image-loaded {
  opacity: 1;

  transform: scale(1);
}

/* =========================================================
   REVEAL EFFECT
========================================================= */

.reveal-item {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.revealed {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   HOMEPAGE
========================================================= */

.homepage {
  padding-bottom: 80px;
}

.homepage-hero {
  padding: 48px 0 20px;
}

.hero-editorial-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(390px, 0.65fr);

  gap: 48px;
}

.hero-lead-image {
  height: 500px;

  display: block;

  overflow: hidden;

  background: var(--soft-background);
}

.hero-lead-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.7s ease;
}

.hero-lead:hover .hero-lead-image img {
  transform: scale(1.035);
}

.hero-lead-content {
  padding-top: 20px;
}

.post-category-label {
  display: inline-block;

  color: var(--accent);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.4px;

  text-transform: uppercase;
}

.hero-lead h1 {
  max-width: 900px;

  margin: 8px 0 12px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(35px, 4vw, 57px);

  font-weight: 500;

  line-height: 1.05;

  letter-spacing: -1.4px;
}

.hero-lead h1 a,
.hero-secondary-card h2 a,
.latest-list-content h3 a,
.category-story-content h3 a,
.more-story-card h3 a {
  transition: color 0.2s ease;
}

.hero-lead h1 a:hover,
.hero-secondary-card h2 a:hover,
.latest-list-content h3 a:hover,
.category-story-content h3 a:hover,
.more-story-card h3 a:hover {
  color: var(--accent);
}

.hero-lead-content > p {
  max-width: 830px;

  margin: 0 0 17px;

  color: var(--muted);

  font-family: Georgia, serif;

  font-size: 17px;

  line-height: 1.55;
}

.hero-secondary {
  display: flex;

  flex-direction: column;
}

.hero-secondary-card {
  display: grid;

  grid-template-columns:
    155px
    minmax(0, 1fr);

  gap: 19px;

  padding-bottom: 21px;

  margin-bottom: 21px;

  border-bottom: 1px solid var(--border);
}

.hero-secondary-image {
  height: 112px;

  overflow: hidden;

  background: var(--soft-background);
}

.hero-secondary-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.hero-secondary-card:hover img {
  transform: scale(1.06);
}

.hero-secondary-card h2 {
  margin: 5px 0 8px;

  font-family: Georgia, serif;

  font-size: 20px;

  font-weight: 500;

  line-height: 1.2;
}

.post-meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px 15px;

  color: #858585;

  font-size: 12px;
}

/* =========================================================
   SECTIONS
========================================================= */

.editorial-section {
  padding: 52px 0;
}

.category-editorial-section {
  border-top: 1px solid var(--border);
}

.section-title-row {
  min-height: 50px;

  margin-bottom: 27px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 2px solid var(--text);
}

.section-title-row h2 {
  margin: 0 0 12px;

  font-family: Georgia, serif;

  font-size: 30px;

  font-weight: 500;
}

.section-title-row > a {
  margin-bottom: 12px;

  color: var(--muted);

  font-size: 13px;

  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.section-title-row > a:hover {
  color: var(--accent);

  transform: translateX(4px);
}

/* =========================================================
   LATEST
========================================================= */

.latest-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    310px;

  gap: 60px;
}

.latest-main-list {
  display: flex;

  flex-direction: column;
}

.latest-list-item {
  display: grid;

  grid-template-columns:
    290px
    minmax(0, 1fr);

  gap: 27px;

  padding-bottom: 29px;

  margin-bottom: 29px;

  border-bottom: 1px solid var(--border);
}

.latest-list-image {
  height: 190px;

  overflow: hidden;

  background: var(--soft-background);
}

.latest-list-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.latest-list-item:hover .latest-list-image img {
  transform: scale(1.055);
}

.latest-list-content h3 {
  margin: 7px 0 10px;

  font-family: Georgia, serif;

  font-size: 26px;

  font-weight: 500;

  line-height: 1.16;
}

.latest-list-content p {
  margin: 0 0 14px;

  color: var(--muted);

  font-family: Georgia, serif;

  font-size: 15px;

  line-height: 1.55;
}

/* =========================================================
   POPULAR
========================================================= */

.popular-sidebar {
  position: sticky;

  top: 95px;
}

.popular-sidebar-title {
  padding-bottom: 14px;

  border-bottom: 2px solid var(--text);

  font-family: Georgia, serif;

  font-size: 22px;
}

.popular-numbered-item {
  display: grid;

  grid-template-columns:
    48px
    minmax(0, 1fr);

  gap: 14px;

  padding: 19px 0;

  border-bottom: 1px solid var(--border);
}

.popular-number {
  color: #c5c5c5;

  font-family: Georgia, serif;

  font-size: 34px;

  line-height: 1;
}

.popular-numbered-item h4 {
  margin: 0 0 8px;

  font-family: Georgia, serif;

  font-size: 17px;

  font-weight: 500;

  line-height: 1.3;
}

.popular-numbered-item h4 a {
  transition: color 0.2s ease;
}

.popular-numbered-item h4 a:hover {
  color: var(--accent);
}

.popular-category {
  color: var(--accent);

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;
}

/* =========================================================
   CATEGORY STORY GRID
========================================================= */

.category-story-grid {
  display: grid;

  grid-template-columns:
    1.25fr
    repeat(3, 1fr);

  gap: 25px;
}

.category-story-image {
  height: 205px;

  overflow: hidden;

  display: block;

  background: var(--soft-background);
}

.category-story-featured .category-story-image {
  height: 320px;
}

.category-story-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.category-story-card:hover img {
  transform: scale(1.055);
}

.category-story-content {
  padding-top: 12px;
}

.category-story-content h3 {
  margin: 0 0 9px;

  font-family: Georgia, serif;

  font-size: 20px;

  font-weight: 500;

  line-height: 1.25;
}

.category-story-featured .category-story-content h3 {
  font-size: 27px;
}

/* =========================================================
   MORE STORIES
========================================================= */

.more-story-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 38px 24px;
}

.more-story-image {
  height: 195px;

  display: block;

  overflow: hidden;

  margin-bottom: 14px;

  background: var(--soft-background);
}

.more-story-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.more-story-card:hover img {
  transform: scale(1.055);
}

.more-story-card h3 {
  margin: 7px 0;

  font-family: Georgia, serif;

  font-size: 19px;

  font-weight: 500;

  line-height: 1.3;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.public-breadcrumb {
  padding: 20px 0;

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  color: #888888;

  font-size: 12px;
}

.public-breadcrumb a:hover {
  color: var(--accent);
}

/* =========================================================
   SINGLE POST
========================================================= */

.single-post-page {
  padding-bottom: 80px;
}

.single-post-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    285px;

  gap: 70px;

  align-items: start;
}

.single-post-title {
  max-width: 1000px;

  margin: 10px 0 18px;

  font-family: Georgia, serif;

  font-size: clamp(34px, 4vw, 52px);

  font-weight: 500;

  line-height: 1.04;

  letter-spacing: -2px;
}

.single-post-excerpt {
  max-width: 900px;

  color: var(--muted);

  font-family: Georgia, serif;

  font-size: 20px;

  line-height: 1.55;
}

.single-post-meta {
  padding: 16px 0 24px;

  display: flex;

  flex-wrap: wrap;

  gap: 10px 20px;

  color: #777777;

  font-size: 13px;

  border-bottom: 1px solid var(--border);
}

.single-featured-image {
  margin: 32px 0;

  overflow: hidden;
}

.single-featured-image img {
  width: 100%;

  height: auto;

  transition: transform 0.6s ease;
}

.single-featured-image:hover img {
  transform: scale(1.015);
}

/* =========================================================
   ARTICLE
========================================================= */

.article-content {
  max-width: 900px;

  color: #292929;

  font-family: Georgia, serif;

  font-size: 17px;

  line-height: 1.82;
}

.article-content p {
  margin: 0 0 25px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 38px 0 17px;

  color: var(--text);

  line-height: 1.25;
}

.article-content blockquote {
  margin: 35px 0;

  padding: 5px 0 5px 27px;

  border-left: 4px solid var(--accent);

  font-size: 23px;

  font-style: italic;
}

.article-content img {
  max-width: 100%;

  height: auto;
}

.article-content figure {
  margin: 35px 0;
}

.article-content figcaption {
  margin-top: 9px;

  color: #777777;

  font-family: Arial, sans-serif;

  font-size: 12px;

  text-align: center;
}

/* =========================================================
   ARTICLE IMAGE LAYOUT
   Left/right images allow article text to wrap beside them.
========================================================= */

.article-content .article-image-block {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 24px auto 30px;
}

.article-content .article-image-block img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content .article-image-block figcaption {
  margin: 8px 0 0;
  padding: 0 4px;
  color: #777777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.article-content .article-image-block.image-align-left {
  float: left;
  clear: left;
  margin: 7px 28px 18px 0;
}

.article-content .article-image-block.image-align-right {
  float: right;
  clear: right;
  margin: 7px 0 18px 28px;
}

.article-content .article-image-block.image-align-center {
  float: none;
  clear: both;
  margin: 28px auto;
}

.article-content::after {
  content: "";
  display: block;
  clear: both;
}

/* =========================================================
   CATEGORY PAGE
========================================================= */

.category-page-header {
  padding: 45px 0;

  border-bottom: 1px solid var(--border);
}

.category-page-header h1 {
  margin: 4px 0;

  font-family: Georgia, serif;

  font-size: clamp(40px, 6vw, 64px);

  font-weight: 500;
}

.category-posts-section {
  padding: 52px 0 85px;
}

.category-page-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    290px;

  gap: 65px;
}

.category-page-card {
  display: grid;

  grid-template-columns:
    300px
    minmax(0, 1fr);

  gap: 27px;

  padding-bottom: 29px;

  margin-bottom: 29px;

  border-bottom: 1px solid var(--border);
}

.category-page-image {
  height: 200px;

  overflow: hidden;
}

.category-page-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.category-page-card:hover img {
  transform: scale(1.055);
}

.category-page-content h2 {
  margin: 8px 0 10px;

  font-family: Georgia, serif;

  font-size: 26px;

  font-weight: 500;
}

/* =========================================================
   FOOTER - COMPACT CLEAN DESIGN
========================================================= */

.public-footer {
  margin-top: 20px;
  background: #101010;
  color: #ffffff;
}

.footer-top {
  padding: 34px 0 28px;

  display: grid;

  grid-template-columns:
    minmax(240px, 1.45fr)
    minmax(120px, 0.7fr)
    minmax(150px, 0.8fr)
    minmax(280px, 1.2fr);

  gap: 40px;
  align-items: start;
}

.footer-brand-column,
.footer-links-column,
.footer-newsletter {
  min-width: 0;
}

.footer-logo {
  display: inline-block;

  margin-bottom: 10px;

  color: #ffffff;

  font-family: Impact, Arial, sans-serif;

  font-size: 34px;
  line-height: 1;
}

.footer-brand-column p {
  max-width: 420px;

  margin: 0;

  color: #a9a9a9;

  font-size: 14px;
  line-height: 1.55;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links-column h4 {
  margin: 0 0 6px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
}

.footer-links-column a {
  width: fit-content;

  color: #b7b7b7;

  font-size: 13px;
  line-height: 1.4;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links-column a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-kicker {
  display: block;

  margin-bottom: 5px;

  color: #ef6c70;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.footer-newsletter h3 {
  margin: 0 0 5px;

  color: #ffffff;

  font-family: Georgia, serif;

  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.footer-newsletter > p {
  margin: 0;

  color: #a9a9a9;

  font-size: 12px;
  line-height: 1.45;
}

.footer-newsletter-form {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    46px;

  margin-top: 10px;
}

.footer-newsletter-form input {
  min-width: 0;
  width: 100%;
  height: 42px;

  padding: 0 13px;

  border: 1px solid #3d3d3d;
  border-right: 0;
  border-radius: 0;

  outline: none;

  background: #171717;
  color: #ffffff;

  font-size: 13px;
}

.footer-newsletter-form input::placeholder {
  color: #7f7f7f;
}

.footer-newsletter-form input:focus {
  border-color: #666666;
}

.footer-newsletter-form button {
  width: 46px;
  height: 42px;

  padding: 0;

  border: 0;
  border-radius: 0;

  background: var(--accent);
  color: #ffffff;

  cursor: pointer;

  transition: filter 0.2s ease;
}

.footer-newsletter-form button:hover {
  filter: brightness(0.9);
}

.public-footer .newsletter-message {
  width: 100%;

  margin-top: 6px;

  font-size: 11px;
  line-height: 1.35;
}

.public-footer .newsletter-message:empty {
  display: none;
}

.public-footer .newsletter-message.is-success {
  color: #65c77b;
}

.public-footer .newsletter-message.is-error {
  color: #ff7070;
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background: #2b2b2b;
}

.footer-bottom {
  min-height: 48px;
  padding: 10px 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  gap: 28px;

  color: #8c8c8c;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.footer-bottom > div:first-child {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
  flex-wrap: nowrap;

  gap: 24px;
  margin: 0;
}

.footer-bottom-links a {
  color: #8c8c8c;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
  --text: #f1f1f1;
  --muted: #ababab;
  --border: #363636;
  --soft-border: #303030;
  --background: #111111;
  --soft-background: #1b1b1b;

  background: var(--background);

  color: var(--text);
}

body.dark-mode .article-content {
  color: #d1d1d1;
}

body.dark-mode .image-placeholder {
  background: #252525;

  color: #777777;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {
  .desktop-navigation {
    gap: 22px;
  }

  .header-story-item {
    flex: 0 0 calc(33.333% - 22px);
  }

  .hero-editorial-grid {
    gap: 34px;
  }

  .latest-layout {
    gap: 40px;
  }

  .category-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .main-header-inner {
    min-height: 86px;
  }

  .public-header.is-sticky .main-header-inner {
    min-height: 70px;
  }

  .live-badge {
    display: none;
  }

  .header-story-item {
    flex: 0 0 calc(50% - 16px);
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
  }

  .latest-layout {
    grid-template-columns: 1fr;
  }

  .popular-sidebar {
    position: static;
  }

  .single-post-layout,
  .category-page-layout {
    grid-template-columns: 1fr;
  }

  .more-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px 36px;
    padding: 30px 0 24px;
  }
}

@media (max-width: 700px) {
  .public-container {
    width: 100%;

    padding-left: 16px;
    padding-right: 16px;
  }

  .news-ticker {
    height: 38px;

    font-size: 13px;
  }

  .main-header-inner {
    min-height: 76px;
  }

  .public-logo,
  .public-header.is-sticky .public-logo {
    font-size: 30px;
  }

  .header-right-actions {
    gap: 3px;
  }

  .header-icon-button {
    width: 36px;

    height: 36px;
  }

  .desktop-only-action {
    display: none;
  }

  .header-story-strip {
    padding: 19px 0;
  }

  .header-story-item {
    flex: 0 0 285px;
  }

  .story-slider-arrow {
    display: none;
  }

  .homepage-hero {
    padding-top: 28px;
  }

  .hero-lead-image {
    height: 320px;
  }

  .hero-lead h1 {
    font-size: 35px;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .hero-secondary-card {
    grid-template-columns:
      125px
      minmax(0, 1fr);
  }

  .hero-secondary-image {
    height: 96px;
  }

  .editorial-section {
    padding: 34px 0;
  }

  .latest-list-item {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .latest-list-image {
    height: 240px;
  }

  .category-story-grid,
  .more-story-grid {
    grid-template-columns: 1fr;
  }

  .category-story-image,
  .category-story-featured .category-story-image,
  .more-story-image {
    height: 240px;
  }

  .category-page-card {
    grid-template-columns: 1fr;
  }

  .category-page-image {
    height: 240px;
  }

  .search-overlay-content {
    width: calc(100% - 28px);

    padding-top: 70px;
  }

  .search-overlay-form {
    grid-template-columns: 1fr;
  }

  .search-overlay-form button {
    height: 50px;
  }

  .search-result-item {
    grid-template-columns:
      88px
      minmax(0, 1fr);

    gap: 12px;
  }

  .search-result-image {
    width: 88px;

    height: 68px;
  }

  .single-post-title {
    font-size: 37px;

    letter-spacing: -1px;
  }

  .footer-top {
    grid-template-columns: 1fr;

    gap: 22px;
    padding: 26px 0 20px;
  }

  .footer-logo {
    font-size: 31px;
  }

  .footer-bottom {
    min-height: 0;
    padding: 13px 0;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;
    text-align: center;
  }

  .footer-bottom > div:first-child {
    white-space: normal;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 450px) {
  .public-logo,
  .public-header.is-sticky .public-logo {
    font-size: 26px;
  }

  .menu-toggle {
    width: 27px;
  }

  .menu-toggle span {
    width: 24px;
  }

  .header-icon-button svg {
    width: 22px;

    height: 22px;
  }

  .hero-lead-image {
    height: 275px;
  }

  .hero-lead h1 {
    font-size: 31px;
  }

  .single-post-title {
    font-size: 31px;
  }
}
/* =========================================================
   NEWS5 STYLE HOMEPAGE
========================================================= */

.news5-home {
  padding-bottom: 75px;
}

/* =========================================================
   COMMON HOMEPAGE TYPOGRAPHY
========================================================= */

.home-story-category {
  display: inline-block;

  color: var(--accent);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.45px;

  line-height: 1.2;

  text-transform: uppercase;
}

.home-story-meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 11px;

  color: var(--muted);

  font-size: 11px;
}

.home-story-meta strong {
  color: var(--text);

  font-weight: 700;
}

/* =========================================================
   HOMEPAGE MAIN THREE COLUMN AREA
========================================================= */

.home-lead-section {
  padding: 48px 0 56px;
}

.home-three-column-grid {
  display: grid;

  grid-template-columns:
    minmax(215px, 0.72fr)
    minmax(0, 1.75fr)
    minmax(245px, 0.83fr);

  gap: 38px;

  align-items: start;
}

/* =========================================================
   COLUMN HEADINGS
========================================================= */

.home-column-heading {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 22px;
}

.home-column-heading h2 {
  flex-shrink: 0;

  margin: 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 21px;

  font-weight: 500;
}

.home-column-heading span {
  width: 100%;

  height: 2px;

  background: var(--text);
}

/* =========================================================
   LEFT COLUMN
========================================================= */

.home-left-news {
  min-width: 0;
}

.home-left-news-list {
  display: flex;

  flex-direction: column;
}

.home-left-story {
  padding: 0 0 20px;

  margin-bottom: 20px;

  border-bottom: 1px solid var(--border);
}

.home-left-story:last-child {
  margin-bottom: 0;
}

.home-left-story-image {
  height: 150px;

  display: block;

  overflow: hidden;

  margin-bottom: 14px;

  background: var(--soft-background);
}

.home-left-story-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.home-left-story:hover .home-left-story-image img {
  transform: scale(1.05);
}

.home-left-story h3 {
  margin: 6px 0 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 18px;

  font-weight: 500;

  line-height: 1.28;
}

.home-left-story h3 a {
  transition: color 0.2s ease;
}

.home-left-story h3 a:hover {
  color: var(--accent);
}

/* =========================================================
   CENTER FEATURE
========================================================= */

.home-main-feature {
  min-width: 0;
}

.home-main-feature-image {
  height: 465px;

  display: block;

  overflow: hidden;

  background: var(--soft-background);
}

.home-main-feature-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.65s ease;
}

.home-main-feature:hover .home-main-feature-image img {
  transform: scale(1.025);
}

.home-main-feature-content {
  padding-top: 20px;
}

.home-main-feature h1 {
  margin: 8px 0 13px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(34px, 3.6vw, 52px);

  font-weight: 500;

  line-height: 1.04;

  letter-spacing: -1.25px;
}

.home-main-feature h1 a {
  transition: color 0.2s ease;
}

.home-main-feature h1 a:hover {
  color: var(--accent);
}

.home-main-feature-content > p {
  margin: 0;

  color: var(--muted);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 16px;

  line-height: 1.55;

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 3;
  line-clamp: 3;

  line-clamp: 3;

  overflow: hidden;
}

/* =========================================================
   RIGHT / POPULAR
========================================================= */

.home-popular-column {
  min-width: 0;
}

.home-popular-list {
  border-top: 1px solid var(--border);
}

.home-popular-story {
  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr);

  gap: 14px;

  padding: 18px 0;

  border-bottom: 1px solid var(--border);
}

.home-popular-number {
  color: #c7c7c7;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 33px;

  line-height: 1;
}

.home-popular-content {
  min-width: 0;
}

.home-popular-content h3 {
  margin: 5px 0 7px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 16px;

  font-weight: 500;

  line-height: 1.3;
}

.home-popular-content h3 a {
  transition: color 0.2s ease;
}

.home-popular-content h3 a:hover {
  color: var(--accent);
}

.home-popular-date {
  color: var(--muted);

  font-size: 10px;
}

/* =========================================================
   GENERIC HOME SECTION
========================================================= */

.news-home-section {
  padding: 56px 0;

  border-top: 1px solid var(--border);
}

.home-section-soft {
  background: var(--soft-background);
}

.news-section-heading {
  min-height: 54px;

  margin-bottom: 30px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 2px solid var(--text);
}

.news-section-heading h2 {
  margin: 0 0 14px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 30px;

  font-weight: 500;

  line-height: 1;
}

.news-section-heading > a {
  margin-bottom: 14px;

  color: var(--muted);

  font-size: 12px;

  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.news-section-heading > a:hover {
  color: var(--accent);

  transform: translateX(4px);
}

/* =========================================================
   CATEGORY BIG + SMALL GRID
========================================================= */

.category-feature-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 1fr);

  gap: 40px;
}

.category-big-story {
  min-width: 0;
}

.category-big-image {
  height: 420px;

  display: block;

  overflow: hidden;

  margin-bottom: 18px;

  background: var(--soft-background);
}

.category-big-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.55s ease;
}

.category-big-story:hover .category-big-image img {
  transform: scale(1.04);
}

.category-big-content h3 {
  margin: 7px 0 10px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 31px;

  font-weight: 500;

  line-height: 1.13;
}

.category-big-content h3 a {
  transition: color 0.2s ease;
}

.category-big-content h3 a:hover {
  color: var(--accent);
}

.category-big-content p {
  margin: 0;

  color: var(--muted);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 15px;

  line-height: 1.55;
}

.category-small-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px 24px;
}

.category-small-story {
  min-width: 0;
}

.category-small-image {
  height: 170px;

  display: block;

  overflow: hidden;

  margin-bottom: 12px;

  background: var(--soft-background);
}

.category-small-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.category-small-story:hover .category-small-image img {
  transform: scale(1.05);
}

.category-small-story h3 {
  margin: 6px 0 7px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 18px;

  font-weight: 500;

  line-height: 1.27;
}

.category-small-story h3 a {
  transition: color 0.2s ease;
}

.category-small-story h3 a:hover {
  color: var(--accent);
}

.category-small-date {
  color: var(--muted);

  font-size: 10px;
}

/* =========================================================
   FOUR COLUMN NEWS SECTION
========================================================= */

.editorial-four-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 27px;
}

.editorial-four-card {
  min-width: 0;
}

.editorial-four-image {
  height: 200px;

  display: block;

  overflow: hidden;

  margin-bottom: 14px;

  background: var(--background);
}

.editorial-four-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.editorial-four-card:hover .editorial-four-image img {
  transform: scale(1.055);
}

.editorial-four-card h3 {
  margin: 7px 0 9px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 20px;

  font-weight: 500;

  line-height: 1.25;
}

.editorial-four-card h3 a {
  transition: color 0.2s ease;
}

.editorial-four-card h3 a:hover {
  color: var(--accent);
}

/* =========================================================
   HOT NOW
========================================================= */

.hot-now-section {
  background: #111111;

  color: #ffffff;

  border-top: 0;
}

.hot-now-section .news-section-heading {
  border-color: #ffffff;
}

.hot-now-section .news-section-heading h2 {
  color: #ffffff;
}

.hot-now-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 22px;
}

.hot-now-card {
  position: relative;

  min-height: 340px;

  overflow: hidden;

  background: #222222;
}

.hot-now-image {
  position: absolute;

  inset: 0;
}

.hot-now-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.hot-now-card:hover .hot-now-image img {
  transform: scale(1.07);
}

.hot-now-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.hot-now-content {
  position: absolute;

  z-index: 2;

  left: 20px;

  right: 20px;

  bottom: 20px;
}

.hot-now-content .home-story-category {
  color: #ff777b;
}

.hot-now-content h3 {
  margin: 7px 0 0;

  color: #ffffff;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 21px;

  font-weight: 500;

  line-height: 1.2;
}

/* =========================================================
   CATEGORY SPLIT LAYOUT
========================================================= */

.category-split-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(320px, 0.75fr);

  gap: 48px;
}

.category-split-feature {
  min-width: 0;
}

.category-split-image {
  height: 430px;

  display: block;

  overflow: hidden;

  margin-bottom: 18px;

  background: var(--soft-background);
}

.category-split-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.55s ease;
}

.category-split-feature:hover .category-split-image img {
  transform: scale(1.04);
}

.category-split-feature h3 {
  margin: 7px 0 10px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 31px;

  font-weight: 500;

  line-height: 1.13;
}

.category-split-feature p {
  margin: 0;

  color: var(--muted);

  font-family: Georgia, "Times New Roman", serif;

  line-height: 1.6;
}

.category-split-list {
  border-top: 1px solid var(--border);
}

.category-split-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    110px;

  gap: 18px;

  align-items: center;

  padding: 21px 0;

  border-bottom: 1px solid var(--border);
}

.category-split-row-content h3 {
  margin: 5px 0 8px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 18px;

  font-weight: 500;

  line-height: 1.27;
}

.category-split-thumb {
  width: 110px;

  height: 85px;

  overflow: hidden;

  background: var(--soft-background);
}

.category-split-thumb img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.category-split-row:hover .category-split-thumb img {
  transform: scale(1.07);
}

/* =========================================================
   EMPTY HOMEPAGE
========================================================= */

.home-empty-state {
  padding: 100px 0;

  text-align: center;
}

.home-empty-state h1 {
  margin: 0 0 10px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 40px;

  font-weight: 500;
}

.home-empty-state p {
  color: var(--muted);
}

/* =========================================================
   HOMEPAGE RESPONSIVE
========================================================= */

@media (max-width: 1150px) {
  .home-three-column-grid {
    grid-template-columns:
      minmax(190px, 0.7fr)
      minmax(0, 1.55fr)
      minmax(220px, 0.8fr);

    gap: 26px;
  }

  .home-main-feature-image {
    height: 400px;
  }

  .home-main-feature h1 {
    font-size: 40px;
  }

  .editorial-four-grid,
  .hot-now-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .home-three-column-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(250px, 0.46fr);
  }

  .home-main-feature {
    grid-column: 1;

    grid-row: 1;
  }

  .home-left-news {
    grid-column: 1;

    grid-row: 2;
  }

  .home-popular-column {
    grid-column: 2;

    grid-row: 1 / span 2;
  }

  .home-left-news-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0 24px;
  }

  .category-feature-grid,
  .category-split-layout {
    grid-template-columns: 1fr;
  }

  .category-big-image,
  .category-split-image {
    height: 420px;
  }
}

@media (max-width: 700px) {
  .home-lead-section {
    padding: 30px 0 38px;
  }

  .home-three-column-grid {
    grid-template-columns: 1fr;

    gap: 38px;
  }

  .home-main-feature,
  .home-left-news,
  .home-popular-column {
    grid-column: auto;

    grid-row: auto;
  }

  .home-main-feature {
    order: 1;
  }

  .home-left-news {
    order: 2;
  }

  .home-popular-column {
    order: 3;
  }

  .home-main-feature-image {
    height: 315px;
  }

  .home-main-feature h1 {
    font-size: 34px;
  }

  .home-left-news-list {
    grid-template-columns: 1fr;
  }

  .home-left-story-image {
    height: 220px;
  }

  .news-home-section {
    padding: 38px 0;
  }

  .news-section-heading h2 {
    font-size: 25px;
  }

  .category-small-grid {
    grid-template-columns: 1fr;
  }

  .category-big-image,
  .category-split-image {
    height: 300px;
  }

  .category-big-content h3,
  .category-split-feature h3 {
    font-size: 26px;
  }

  .category-small-image {
    height: 235px;
  }

  .editorial-four-grid,
  .hot-now-grid {
    grid-template-columns: 1fr;
  }

  .editorial-four-image {
    height: 250px;
  }

  .hot-now-card {
    min-height: 380px;
  }
}

@media (max-width: 450px) {
  .home-main-feature-image {
    height: 265px;
  }

  .home-main-feature h1 {
    font-size: 30px;
  }

  .home-column-heading h2 {
    font-size: 19px;
  }

  .category-big-image,
  .category-split-image {
    height: 250px;
  }

  .category-small-image,
  .editorial-four-image {
    height: 215px;
  }

  .category-split-row {
    grid-template-columns:
      minmax(0, 1fr)
      90px;
  }

  .category-split-thumb {
    width: 90px;

    height: 75px;
  }

  .hot-now-card {
    min-height: 320px;
  }
}
/* =========================================================
   NEWSLETTER
========================================================= */

.newsletter-message {
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.newsletter-message.is-success {
  color: #2e9d57;
}

.newsletter-message.is-error {
  color: #e34a4a;
}

/* =========================================================
   NEWSLETTER POPUP
========================================================= */

.newsletter-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(10, 10, 12, 0.72);

  backdrop-filter: blur(5px);

  -webkit-backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.newsletter-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup {
  position: relative;

  width: 100%;
  max-width: 560px;

  background: #ffffff;

  border-radius: 14px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);

  transform: translateY(25px) scale(0.97);

  transition: transform 0.3s ease;

  overflow: hidden;
}

.newsletter-popup-overlay.is-visible .newsletter-popup {
  transform: translateY(0) scale(1);
}

.newsletter-popup::before {
  content: "";

  display: block;

  width: 100%;
  height: 6px;

  background: currentColor;
}

.newsletter-popup-content {
  padding: 46px 44px 42px;
}

.newsletter-popup-kicker {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.newsletter-popup h2 {
  margin: 0 0 14px;

  font-size: clamp(30px, 5vw, 46px);

  line-height: 1.05;

  letter-spacing: -1.4px;
}

.newsletter-popup p {
  margin: 0 0 26px;

  max-width: 470px;

  font-size: 15px;
  line-height: 1.7;

  opacity: 0.75;
}

.newsletter-popup-close {
  position: absolute;

  top: 16px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.06);

  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.newsletter-popup-close:hover {
  background: rgba(0, 0, 0, 0.11);

  transform: rotate(90deg);
}

.newsletter-popup-form {
  display: flex;
  align-items: stretch;

  gap: 10px;
}

.newsletter-popup-form input {
  flex: 1;
  min-width: 0;

  height: 50px;

  padding: 0 16px;

  border: 1px solid rgba(0, 0, 0, 0.16);

  border-radius: 7px;

  background: #ffffff;

  font-size: 14px;

  outline: none;
}

.newsletter-popup-form input:focus {
  border-color: rgba(0, 0, 0, 0.65);

  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.newsletter-popup-form button {
  min-width: 130px;

  padding: 0 22px;

  border: 0;
  border-radius: 7px;

  background: #111111;
  color: #ffffff;

  font-weight: 700;

  cursor: pointer;
}

.newsletter-popup-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.newsletter-popup-note {
  display: block;

  margin-top: 16px;

  font-size: 11px;

  opacity: 0.5;
}

body.newsletter-popup-open {
  overflow: hidden;
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .newsletter-popup {
  background: #161616;
  color: #ffffff;
}

body.dark-mode .newsletter-popup-form input {
  background: #222222;
  color: #ffffff;

  border-color: rgba(255, 255, 255, 0.18);
}

body.dark-mode .newsletter-popup-close {
  color: #ffffff;

  background: rgba(255, 255, 255, 0.09);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .newsletter-popup-overlay {
    padding: 16px;
  }

  .newsletter-popup-content {
    padding: 42px 22px 30px;
  }

  .newsletter-popup h2 {
    font-size: 31px;
  }

  .newsletter-popup-form {
    flex-direction: column;
  }

  .newsletter-popup-form button {
    min-height: 48px;
    width: 100%;
  }
}
/* =========================================================
   FOOTER BOTTOM - SINGLE LINE ALIGNMENT
========================================================= */

/* =========================================================
   ARTICLE INSERTED POST BLOCKS
   Public rendering for CMS editor post blocks
========================================================= */

.article-content .article-query-posts,
.article-content .article-latest-post-block {
  width: 100%;
  max-width: 900px;
  margin: 42px 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.article-content .article-query-posts {
  padding: 22px 0 4px;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
}

.article-content .article-query-posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.article-content .article-query-posts-header h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
}

.article-content .article-query-posts-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.article-content .article-query-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.article-content .article-query-post-card {
  min-width: 0;
}

.article-content .article-query-post-card > a {
  color: inherit;
  text-decoration: none;
}

.article-content .article-query-post-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  margin-bottom: 11px;
  background: var(--soft-background);
}

.article-content .article-query-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-content
  .article-query-post-card:hover
  .article-query-post-card-media
  img {
  transform: scale(1.045);
}

.article-content .article-query-post-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-background);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-content .article-query-post-card-body {
  min-width: 0;
}

.article-content .article-query-post-card-title {
  margin: 0 0 7px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.28;
  transition: color 0.2s ease;
}

.article-content .article-query-post-card:hover .article-query-post-card-title {
  color: var(--accent);
}

.article-content .article-query-post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

/* GRID */

.article-content .article-query-posts-layout-grid .article-query-posts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* LIST */

.article-content .article-query-posts-layout-list .article-query-posts-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.article-content .article-query-posts-layout-list .article-query-post-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.article-content
  .article-query-posts-layout-list
  .article-query-post-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-content
  .article-query-posts-layout-list
  .article-query-post-card-media {
  height: 118px;
  aspect-ratio: auto;
  margin: 0;
}

.article-content
  .article-query-posts-layout-list
  .article-query-post-card-title {
  font-size: 20px;
}

/* COMPACT */

.article-content .article-query-posts-layout-compact .article-query-posts-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.article-content .article-query-posts-layout-compact .article-query-post-card {
  position: relative;
  padding: 13px 0 13px 19px;
  border-top: 1px solid var(--border);
}

.article-content
  .article-query-posts-layout-compact
  .article-query-post-card:first-child {
  border-top: 0;
}

.article-content
  .article-query-posts-layout-compact
  .article-query-post-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article-content
  .article-query-posts-layout-compact
  .article-query-post-card-media {
  display: none;
}

.article-content
  .article-query-posts-layout-compact
  .article-query-post-card-title {
  margin-bottom: 4px;
  font-size: 18px;
}

/* =========================================================
   LATEST POST BLOCK
========================================================= */

.article-content .article-latest-post-block {
  overflow: hidden;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.article-content .article-latest-post-link {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
  min-height: 190px;
  color: inherit;
  text-decoration: none;
}

.article-content .article-latest-post-image {
  min-height: 190px;
  overflow: hidden;
  background: var(--soft-background);
}

.article-content .article-latest-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-content
  .article-latest-post-link:hover
  .article-latest-post-image
  img {
  transform: scale(1.045);
}

.article-content .article-latest-post-body {
  min-width: 0;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-content .article-latest-post-badge {
  width: fit-content;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.article-content .article-latest-post-title {
  margin: 0 0 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.17;
  transition: color 0.2s ease;
}

.article-content .article-latest-post-link:hover .article-latest-post-title {
  color: var(--accent);
}

.article-content .article-latest-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* LATEST: COMPACT */

.article-content .latest-post-style-compact .article-latest-post-link {
  grid-template-columns: 145px minmax(0, 1fr);
  min-height: 112px;
}

.article-content .latest-post-style-compact .article-latest-post-image {
  min-height: 112px;
}

.article-content .latest-post-style-compact .article-latest-post-body {
  padding: 16px 19px;
}

.article-content .latest-post-style-compact .article-latest-post-title {
  margin-bottom: 6px;
  font-size: 20px;
}

/* LATEST: IMAGE TOP */

.article-content .latest-post-style-image-top .article-latest-post-link {
  display: block;
}

.article-content .latest-post-style-image-top .article-latest-post-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 8;
}

.article-content .latest-post-style-image-top .article-latest-post-body {
  padding: 20px 4px 18px;
}

.article-content .latest-post-style-image-top .article-latest-post-title {
  max-width: 760px;
  font-size: 29px;
}

/* LATEST: HEADLINE ONLY */

.article-content .latest-post-style-headline .article-latest-post-link {
  display: block;
  min-height: 0;
}

.article-content .latest-post-style-headline .article-latest-post-image {
  display: none;
}

.article-content .latest-post-style-headline .article-latest-post-body {
  padding: 18px 0;
}

.article-content .latest-post-style-headline .article-latest-post-title {
  margin-bottom: 7px;
  font-size: 25px;
}

/* =========================================================
   ARTICLE CONTENT ELEMENT POLISH
========================================================= */

.article-content
  a:not(.article-latest-post-link):not(.article-query-post-card > a) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 26px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content hr {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: var(--border);
}

.article-content pre {
  max-width: 100%;
  margin: 30px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--soft-background);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.65;
}

.article-content code {
  padding: 2px 5px;
  background: var(--soft-background);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

.article-content pre code {
  padding: 0;
  background: transparent;
}

.article-content .article-table-block {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 32px;
  padding: 0;
  clear: both;
}

.article-content .article-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content table,
.article-content .article-editor-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.article-content th {
  background: var(--soft-background);
  color: var(--text);
  font-weight: 800;
}

.article-content .article-table-caption {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  color: #777777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.article-content iframe,
.article-content video {
  max-width: 100%;
}

/* =========================================================
   INSERTED POST BLOCKS - DARK MODE
========================================================= */

body.dark-mode .article-content .article-query-post-card-placeholder,
body.dark-mode .article-content .article-latest-post-image {
  background: var(--soft-background);
}

/* =========================================================
   INSERTED POST BLOCKS - RESPONSIVE
========================================================= */

@media (max-width: 700px) {
  .article-content .article-query-posts,
  .article-content .article-latest-post-block {
    margin: 32px 0;
  }

  .article-content .article-query-posts {
    padding-top: 17px;
  }

  .article-content .article-query-posts-header {
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .article-content .article-query-posts-header h3 {
    font-size: 23px;
  }

  .article-content .article-query-posts-layout-grid .article-query-posts-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .article-content .article-query-posts-layout-list .article-query-post-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
  }

  .article-content
    .article-query-posts-layout-list
    .article-query-post-card-media {
    height: 82px;
  }

  .article-content
    .article-query-posts-layout-list
    .article-query-post-card-title {
    font-size: 16px;
  }

  .article-content .article-latest-post-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .article-content .article-latest-post-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-content .article-latest-post-body {
    padding: 17px 0;
  }

  .article-content .article-latest-post-title {
    font-size: 23px;
  }

  .article-content .latest-post-style-compact .article-latest-post-link {
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 88px;
  }

  .article-content .latest-post-style-compact .article-latest-post-image {
    min-height: 88px;
    aspect-ratio: auto;
  }

  .article-content .latest-post-style-compact .article-latest-post-body {
    padding: 10px 0 10px 13px;
  }

  .article-content .latest-post-style-compact .article-latest-post-title {
    font-size: 16px;
  }

  .article-content .latest-post-style-image-top .article-latest-post-image {
    aspect-ratio: 16 / 10;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   SINGLE POST - META ICONS / SIDEBAR / RELATED GRID UPDATE
========================================================= */

.single-post-meta-icons {
  align-items: center;
}

.single-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.single-meta-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.single-meta-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* RIGHT SIDEBAR - STORY OVERVIEW */

.single-story-overview h3 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.single-sidebar-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
}

.single-sidebar-facts {
  border-top: 1px solid var(--border);
}

.single-sidebar-topics {
  margin-top: 20px;
}

.single-sidebar-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.single-sidebar-tag-list span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  background: var(--soft-background);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-promo-box p {
  margin: 9px 0 17px;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
  line-height: 1.55;
}

/* RELATED STORIES - TRUE GRID */

.related-posts-section {
  margin-top: 55px;
}

.related-posts-section .section-title-row {
  margin-bottom: 24px;
}

.related-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.related-story-card {
  min-width: 0;
}

.related-story-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: var(--soft-background);
}

.related-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-story-card:hover .related-story-image img {
  transform: scale(1.045);
}

.related-story-content {
  padding-top: 12px;
}

.related-story-category {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.related-story-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.related-story-card h3 a {
  transition: color 0.2s ease;
}

.related-story-card h3 a:hover {
  color: var(--accent);
}

.related-story-date {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .single-post-sidebar {
    border-top: 1px solid var(--border);
    padding-top: 30px;
  }

  .single-sidebar-sticky {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .sidebar-promo-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .single-post-meta-icons {
    gap: 12px 16px;
  }

  .single-meta-item {
    white-space: normal;
  }

  .related-story-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .related-story-image {
    aspect-ratio: 16 / 9;
  }

  .single-sidebar-sticky {
    grid-template-columns: 1fr;
  }

  .sidebar-promo-box {
    grid-column: auto;
  }
}

/* =========================================================
   SINGLE POST NEWS SIDEBAR + SHARE + COMMENTS + 4-UP RELATED
========================================================= */

/* SHARE */

.single-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.single-share-bar-bottom {
  margin-top: 32px;
  margin-bottom: 30px;
}

.single-share-label {
  margin-right: 4px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.single-share-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.single-share-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.single-share-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.single-copy-status {
  min-width: 42px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* NEWS SIDEBAR */

.single-sidebar-heading {
  margin-bottom: 15px;
}

.single-sidebar-heading h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
}

.single-sidebar-latest-list {
  display: grid;
}

.single-sidebar-story {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.single-sidebar-story:first-child {
  padding-top: 0;
  border-top: 0;
}

.single-sidebar-story-image {
  width: 92px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft-background);
  color: var(--muted);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.single-sidebar-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.single-sidebar-story:hover .single-sidebar-story-image img {
  transform: scale(1.045);
}

.single-sidebar-story-body {
  min-width: 0;
}

.single-sidebar-story-category {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.single-sidebar-story h4 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.single-sidebar-story h4 a {
  color: var(--text);
  text-decoration: none;
}

.single-sidebar-story h4 a:hover {
  color: var(--accent);
}

.single-sidebar-story time {
  color: var(--muted);
  font-size: 10px;
}

.single-sidebar-categories {
  margin-top: 20px;
}

.single-sidebar-category-list {
  border-top: 1px solid var(--border);
}

.single-sidebar-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.single-sidebar-category-link:hover {
  color: var(--accent);
}

.single-sidebar-category-link strong {
  min-width: 27px;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--soft-background);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* COMMENTS */

.single-comments-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--text);
}

.comments-title-row {
  margin-bottom: 20px;
}

.comments-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.55px;
}

.comments-count {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.comments-closed-message,
.comments-empty {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--soft-background);
  color: var(--muted);
  font-size: 13px;
}

.comment-alert {
  margin-bottom: 17px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
}

.comment-alert-success {
  border-color: #b8d9c1;
  background: #eff9f1;
  color: #1e6b34;
}

.comment-alert-error {
  border-color: #e4bcbc;
  background: #fff3f3;
  color: #8f2828;
}

.public-comment-form {
  position: relative;
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--soft-background);
}

.comment-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.comment-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comment-field {
  margin-bottom: 16px;
}

.comment-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.comment-field input,
.comment-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.comment-field input:focus,
.comment-field textarea:focus {
  border-color: var(--accent);
}

.comment-field textarea {
  resize: vertical;
  line-height: 1.55;
}

.comment-field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.comment-form-footer > span {
  color: var(--muted);
  font-size: 11px;
}

.comment-submit-button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 11px 17px;
  font-weight: 800;
  cursor: pointer;
}

.public-comments-list {
  display: grid;
}

.public-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 19px 0;
  border-top: 1px solid var(--border);
}

.public-comment-avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--background);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.public-comment-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 6px;
}

.public-comment-header strong {
  font-size: 13px;
}

.public-comment-header time {
  color: var(--muted);
  font-size: 10px;
}

.public-comment-body p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.65;
}

/* RELATED STORIES: 4 CARDS IN ONE ROW */

.related-story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}

.related-story-card h3 {
  font-size: 16px;
  line-height: 1.28;
}

.related-story-category {
  font-size: 9px;
}

.related-story-date {
  font-size: 10px;
}

/* TABLET */

@media (max-width: 1050px) {
  .related-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .single-share-bar {
    align-items: flex-start;
  }

  .single-share-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .single-share-button {
    min-height: 36px;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .comment-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-submit-button {
    width: 100%;
  }

  .public-comment {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .public-comment-avatar {
    width: 36px;
    height: 36px;
  }

  .public-comment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .related-story-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   THREADED COMMENTS + AVATARS
   ========================================================= */

.comment-field input[type="file"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
}

.optional-label {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.public-comment-avatar {
  overflow: hidden;
}

.public-comment-avatar img,
.public-comment-avatar span {
  width: 100%;
  height: 100%;
}

.public-comment-avatar img {
  object-fit: cover;
}

.public-comment-avatar span {
  display: grid;
  place-items: center;
}

.public-comment-header strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.comment-staff-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1;
}

.public-comment-reply-button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.public-comment-replies {
  margin-top: 20px;
  padding-left: 24px;
  border-left: 2px solid var(--soft-border);
}

.public-comment-replies .public-comment {
  padding-top: 18px;
  padding-bottom: 0;
}

.public-reply-form {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--soft-border);
  background: var(--soft-background);
}

.public-reply-form[hidden] {
  display: none !important;
}

.replying-to {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.replying-to strong {
  color: var(--text);
}

.comment-cancel-reply {
  padding: 9px 13px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 700px) {
  .public-comment-replies {
    margin-top: 16px;
    padding-left: 12px;
  }

  .public-reply-form {
    padding: 14px;
  }

  .public-comment-depth-3 .public-comment-replies,
  .public-comment-depth-4 .public-comment-replies {
    padding-left: 8px;
  }
}

/* =========================================================
   SHARED STATIC PAGE + CATEGORY CMS PRESENTATION
========================================================= */
.static-page-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
}
.static-page-hero h1 {
  margin: 12px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
}
.static-page-section {
  padding: 52px 0 84px;
}
.static-page-article {
  width: min(920px, 100%);
  margin: 0 auto;
}
.static-page-content {
  font-size: 17px;
  line-height: 1.78;
}
.static-page-content > :first-child {
  margin-top: 0;
}
.static-page-content h2,
.static-page-content h3,
.static-page-content h4 {
  font-family: Georgia, serif;
  line-height: 1.2;
  margin: 1.6em 0 0.65em;
}
.static-page-content h2 {
  font-size: 34px;
}
.static-page-content h3 {
  font-size: 27px;
}
.static-page-content h4 {
  font-size: 22px;
}
.static-page-content p,
.static-page-content ul,
.static-page-content ol,
.static-page-content blockquote {
  margin: 0 0 1.25em;
}
.static-page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.static-page-content img {
  max-width: 100%;
  height: auto;
}
.static-page-content figure {
  max-width: 100%;
  margin: 28px 0;
}
.static-page-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.static-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
}
.static-page-content th,
.static-page-content td {
  padding: 11px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.static-page-content blockquote {
  padding: 8px 0 8px 22px;
  border-left: 3px solid var(--accent);
  font-family: Georgia, serif;
  font-size: 1.15em;
}
.static-page-content pre,
.article-code-block {
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  white-space: pre-wrap;
}
.article-layout-block {
  margin: 28px 0;
  clear: both;
}
.article-layout-grid {
  display: grid;
  gap: var(--layout-gap, 24px);
  width: 100%;
  align-items: var(--layout-align, start);
}
.article-layout-cell {
  min-width: 0;
}
.article-layout-block .builder-layout-handle {
  display: none !important;
}
.article-button-block {
  margin: 24px 0;
}
.article-button-link {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}
.article-divider-block {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.article-spacer-block {
  min-height: 40px;
}
.article-custom-html-block {
  margin: 22px 0;
}
.article-toc-block {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--soft-background);
}
.article-query-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.category-hero-image {
  margin-top: 26px;
  height: min(360px, 35vw);
  min-height: 220px;
  overflow: hidden;
}
.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .static-page-section {
    padding: 34px 0 60px;
  }
  .static-page-content {
    font-size: 16px;
  }
  .article-layout-grid,
  .article-query-posts-grid {
    grid-template-columns: 1fr !important;
  }
  .category-hero-image {
    height: 240px;
  }
}

/* =========================================================
   CMS MENU SYSTEM V3
   Visual refresh only: existing site layout remains unchanged.
========================================================= */

.header-navigation,
.mobile-menu,
.search-overlay {
  font-family: var(--font-ui);
}

/* Search and mobile close buttons rotate in their own fixed space. */
.search-overlay-close,
#mobileMenuClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transform-origin: center;
  color: var(--text);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.22s ease,
    background-color 0.22s ease;
}

.search-overlay-close:hover,
.search-overlay-close:focus-visible,
#mobileMenuClose:hover,
#mobileMenuClose:focus-visible {
  transform: rotate(360deg);
  color: var(--accent);
  outline: none;
}

/* Do not shift mobile links sideways on hover. */
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  padding-left: 0;
  color: var(--accent);
}

@media (min-width: 951px) {
  .header-navigation .desktop-navigation {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 25px;
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
  }

  .cms-nav-item {
    position: relative;
    flex: 0 0 auto;
    min-height: 60px;
    display: flex;
    align-items: center;
  }

  .cms-nav-link {
    position: relative;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    transition: color 0.2s ease;
  }

  .cms-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transition: right 0.25s ease;
  }

  .cms-nav-link:hover,
  .cms-nav-link:focus-visible {
    color: var(--accent);
    outline: none;
  }

  .cms-nav-link:hover::after,
  .cms-nav-link:focus-visible::after {
    right: 0;
  }

  .cms-menu-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  .cms-menu-icon:empty {
    display: none;
  }

  .cms-menu-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .submenu-chevron {
    width: 11px;
    height: 11px;
    margin-left: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.22s ease;
  }

  .submenu-chevron svg {
    width: 10px;
    height: 7px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cms-nav-item.has-submenu:hover .submenu-chevron,
  .cms-nav-item.has-submenu:focus-within .submenu-chevron {
    transform: rotate(180deg);
  }

  .cms-submenu {
    position: absolute;
    z-index: 5000;
    top: calc(100% - 1px);
    left: -14px;
    min-width: 230px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.11);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  .cms-nav-item.has-submenu:hover .cms-submenu,
  .cms-nav-item.has-submenu:focus-within .cms-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cms-submenu a {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 5px;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    transition:
      color 0.18s ease,
      background-color 0.18s ease;
  }

  .cms-submenu a .cms-menu-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .cms-submenu a .cms-menu-icon svg {
    width: 14px;
    height: 14px;
  }

  .cms-submenu a:hover,
  .cms-submenu a:focus-visible {
    color: var(--accent);
    background: var(--soft-background);
    outline: none;
  }
}

/* Mobile CMS menu */
.mobile-cms-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.mobile-cms-link .cms-menu-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mobile-cms-link .cms-menu-icon:empty {
  display: none;
}

.mobile-cms-link .cms-menu-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-parent-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--soft-border);
}

.mobile-nav-parent-row > .mobile-cms-link {
  flex: 1;
  border-bottom: 0;
}

.mobile-submenu-toggle {
  width: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--soft-border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.mobile-submenu-toggle:hover {
  color: var(--accent);
  background: var(--soft-background);
}

.mobile-submenu-toggle svg {
  width: 12px;
  height: 8px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  padding-left: 22px;
  border-left: 2px solid var(--soft-border);
}

.mobile-submenu[hidden] {
  display: none;
}

.mobile-submenu .mobile-cms-link {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   CMS MENU V3.1 - NAV OVERFLOW + SINGLE CLOSE ROTATION
========================================================= */

/* Close icon: exactly one 360-degree spin per hover/focus entry. */
.search-overlay-close,
#mobileMenuClose {
  transform: none !important;
  transition:
    color 0.22s ease,
    background-color 0.22s ease !important;
}

@keyframes cms-close-spin-once {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.search-overlay-close:hover,
.search-overlay-close:focus-visible,
#mobileMenuClose:hover,
#mobileMenuClose:focus-visible {
  transform: none !important;
  animation: cms-close-spin-once 0.48s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
  color: var(--accent);
}

/* Mobile navigation can always be scrolled vertically when content is taller than the screen. */
.mobile-menu {
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.mobile-menu::-webkit-scrollbar {
  width: 6px;
}
.mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}
.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

@media (min-width: 951px) {
  .desktop-navigation-shell {
    position: relative;
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr) 0;
    align-items: center;
    width: 100%;
    transition: grid-template-columns 0.2s ease;
  }

  .desktop-navigation-shell.is-overflowing {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    column-gap: 7px;
  }

  .desktop-navigation-viewport {
    position: relative;
    min-width: 0;
    overflow: visible;
    /* Clip only the horizontal overflow while leaving dropdowns room below. */
    clip-path: inset(-500px 0 -500px 0);
  }

  .header-navigation .desktop-navigation {
    width: max-content;
    min-width: 100%;
    transform: translateX(0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .desktop-nav-scroll {
    width: 34px;
    height: 34px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5100;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--background);
    color: var(--text);
    cursor: pointer;
    transition:
      color 0.18s ease,
      border-color 0.18s ease,
      background-color 0.18s ease,
      opacity 0.18s ease;
  }

  .desktop-navigation-shell.is-overflowing .desktop-nav-scroll {
    display: inline-flex;
  }

  .desktop-nav-scroll svg {
    width: 9px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .desktop-nav-scroll:hover:not(:disabled),
  .desktop-nav-scroll:focus-visible:not(:disabled) {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--soft-background);
    outline: none;
  }

  .desktop-nav-scroll:disabled {
    opacity: 0.28;
    cursor: default;
  }
}

/* =========================================================
   CMS MENU V3.2 - NAV POLISH / DROPDOWN LAYER / CLOSE SPIN
========================================================= */

/* Main menu now uses the cleaner submenu typography. */
@media (min-width: 951px) {
  .header-navigation .desktop-navigation,
  .header-navigation .cms-nav-link {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  /* Keep dropdowns above the large logo/main-header row. */
  .header-navigation {
    position: relative;
    z-index: 1400;
    overflow: visible;
  }

  .main-header-row {
    position: relative;
    z-index: 1000;
  }

  .cms-nav-item,
  .cms-submenu {
    z-index: 1500;
  }

  /* Arrows live in the side gutters, not inside the menu content width. */
  .desktop-navigation-shell,
  .desktop-navigation-shell.is-overflowing {
    position: relative;
    display: block;
    width: 100%;
  }

  .desktop-navigation-viewport {
    width: 100%;
    min-width: 0;
    overflow: visible;
    clip-path: inset(-600px 0 -600px 0);
  }

  .desktop-nav-scroll {
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    z-index: 1700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  .desktop-nav-scroll-left {
    left: -29px;
  }
  .desktop-nav-scroll-right {
    right: -29px;
  }

  .desktop-nav-scroll svg {
    width: 7px;
    height: 12px;
  }

  /* Thin proportional scrollbar appears only when menu content overflows. */
  .desktop-nav-scrollbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 3px;
    display: none;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft-border);
    cursor: pointer;
    z-index: 1650;
  }

  .desktop-navigation-shell.is-overflowing .desktop-nav-scrollbar {
    display: block;
  }

  .desktop-nav-scrollbar-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    min-width: 54px;
    border-radius: inherit;
    background: var(--accent);
    transform: translateX(0);
    will-change: transform, width;
    cursor: grab;
  }

  .desktop-nav-scrollbar-thumb:active {
    cursor: grabbing;
  }
}

/* Spin only the glyph. The button itself never moves. */
.search-overlay-close,
#mobileMenuClose {
  transform: none !important;
  animation: none !important;
}

.search-overlay-close .close-glyph,
#mobileMenuClose .close-glyph {
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  color: currentColor;
}

@keyframes cms-close-glyph-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.search-overlay-close:hover .close-glyph,
.search-overlay-close:focus-visible .close-glyph,
#mobileMenuClose:hover .close-glyph,
#mobileMenuClose:focus-visible .close-glyph {
  animation: cms-close-glyph-spin 0.48s ease-in-out 1;
}

.search-overlay-close:hover,
.search-overlay-close:focus-visible,
#mobileMenuClose:hover,
#mobileMenuClose:focus-visible {
  color: var(--accent);
}

/* =========================================================
   CMS MENU V3.3 - POINTER ONLY + MOBILE QUICK ACTIONS
========================================================= */

/* The proportional horizontal tracker was intentionally removed.
   Overflow is controlled only by the existing left/right pointers. */
.desktop-nav-scrollbar {
  display: none !important;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--soft-border);
}

.mobile-menu-action {
  min-width: 0;
  min-height: 68px;
  padding: 9px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--background);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.mobile-menu-action:hover,
.mobile-menu-action:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--soft-background);
  outline: none;
}

.mobile-menu-action svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   CMS MENU V3.4 - DRAWER ACTIONS + GLOBAL SITE TYPOGRAPHY
   Typography only: existing layout, sizes, spacing and weights stay intact.
========================================================= */

/* Quick actions belong to the drawer itself, so they remain visible whenever
   the drawer is opened on desktop, tablet or mobile. */
.mobile-menu-actions {
  display: grid !important;
}

/* Use the navigation font family consistently across the public website.
   Existing component font-size/font-weight/line-height rules are preserved. */
body,
button,
input,
select,
textarea,
.public-header,
main,
footer {
  font-family: var(--font-ui);
}

/* Override legacy serif/Arial family declarations without changing typography scale. */
body
  :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    span,
    div,
    li,
    ul,
    ol,
    blockquote,
    figcaption,
    label,
    button,
    input,
    select,
    textarea,
    table,
    th,
    td,
    time,
    small,
    strong,
    em
  ) {
  font-family: var(--font-ui) !important;
}

/* Brand marks keep their established display face. */
.public-logo,
.mobile-logo,
.site-loader-logo {
  font-family: Impact, "Arial Black", Arial, sans-serif !important;
}

/* Code remains monospace for readability. */
pre,
code,
kbd,
samp,
pre *,
code * {
  font-family: Consolas, "Courier New", monospace !important;
}

/* =========================================================
   STATIC PAGE V2 - EDITORIAL PRESENTATION
   Shared by CMS-created public pages. Header/footer unchanged.
========================================================= */
.static-page-hero-editorial {
  padding: 46px 0 42px;
  background: var(--background);
}

.static-page-hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.static-page-breadcrumb {
  padding: 0 0 24px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.static-page-heading-row {
  position: relative;
  max-width: 980px;
}

.static-page-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
}

.static-page-hero-editorial h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.static-page-title-rule {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 25px;
  background: var(--accent);
}

.static-page-section-editorial {
  padding: 58px 0 92px;
}

.static-page-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px minmax(0, 820px);
  gap: 52px;
  align-items: start;
}

.static-page-rail {
  position: sticky;
  top: 110px;
  padding-top: 7px;
}

.static-page-rail-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.static-page-rail-line {
  display: block;
  width: 1px;
  height: 72px;
  margin: 14px 0 0 5px;
  background: var(--border);
}

.static-page-layout .static-page-article {
  width: 100%;
  margin: 0;
}

.static-page-layout .static-page-content {
  max-width: 820px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.82;
}

.static-page-layout .static-page-content > p:first-child {
  font-size: 19px;
  line-height: 1.75;
}

.static-page-layout .static-page-content h1,
.static-page-layout .static-page-content h2,
.static-page-layout .static-page-content h3,
.static-page-layout .static-page-content h4 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.static-page-layout .static-page-content h2 {
  margin-top: 2em;
  padding-top: 0.15em;
  font-size: clamp(28px, 3vw, 36px);
}

.static-page-layout .static-page-content h3 {
  font-size: clamp(23px, 2.4vw, 29px);
}

.static-page-layout .static-page-content h4 {
  font-size: 21px;
}

.static-page-layout .static-page-content ul,
.static-page-layout .static-page-content ol {
  padding-left: 1.35em;
}

.static-page-layout .static-page-content li {
  margin-bottom: 0.55em;
}

.static-page-layout .static-page-content blockquote {
  margin: 34px 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.55;
}

.static-page-layout .static-page-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  font-size: 14px;
}

.static-page-layout .static-page-content th {
  background: var(--soft-background);
  font-weight: 700;
}

.static-page-layout .static-page-content img {
  border-radius: 0;
}

.static-page-layout .static-page-content figcaption {
  font-family: var(--font-ui);
}

body.dark-mode .static-page-layout .static-page-content {
  color: #d7d7d7;
}

@media (max-width: 950px) {
  .static-page-layout {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .static-page-hero-editorial {
    padding: 28px 0 30px;
  }

  .static-page-breadcrumb {
    padding-bottom: 18px;
  }

  .static-page-hero-editorial h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.025em;
  }

  .static-page-title-rule {
    width: 42px;
    height: 2px;
    margin-top: 19px;
  }

  .static-page-section-editorial {
    padding: 38px 0 65px;
  }

  .static-page-layout {
    display: block;
  }

  .static-page-rail {
    display: none;
  }

  .static-page-layout .static-page-content,
  .static-page-layout .static-page-content > p:first-child {
    font-size: 16px;
    line-height: 1.75;
  }

  .static-page-layout .static-page-content h2 {
    font-size: 28px;
  }

  .static-page-layout .static-page-content h3 {
    font-size: 23px;
  }

  .static-page-layout .static-page-content blockquote {
    padding-left: 18px;
    font-size: 19px;
  }
}

/* =========================================================
   STATIC PAGE V3 - FULL VERTICAL BRAND RAIL + LATEST POSTS
========================================================= */

.static-page-layout.static-page-layout-v3 {
  grid-template-columns: 46px minmax(0, 1fr) 310px;
  gap: 0 34px;
  align-items: stretch;
  max-width: none;
}

.static-page-layout-v3 .static-page-rail {
  position: relative;
  width: 46px;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 8px 0 0;
  border-right: 1px solid var(--border);
}

.static-page-layout-v3 .static-page-rail-label {
  position: sticky;
  top: 100px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.static-page-layout-v3 .static-page-rail-line {
  display: none;
}

.static-page-layout-v3 .static-page-article {
  min-width: 0;
  max-width: none;
  padding: 0;
}

.static-page-layout-v3 .static-page-content {
  max-width: 820px;
  margin: 0;
}

.static-page-latest {
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

.static-page-latest-inner {
  position: sticky;
  top: 98px;
}

.static-page-sidebar-heading {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--text);
}

.static-page-sidebar-heading > span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.static-page-sidebar-heading h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.static-page-latest-list {
  display: flex;
  flex-direction: column;
}

.static-page-latest-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.static-page-latest-image {
  width: 92px;
  height: 72px;
  display: block;
  overflow: hidden;
  background: var(--soft-background);
}

.static-page-latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.static-page-latest-item:hover .static-page-latest-image img {
  transform: scale(1.05);
}

.static-page-latest-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.static-page-latest-category {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent) !important;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none !important;
}

.static-page-latest-copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.28;
}

.static-page-latest-copy h3 a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.static-page-latest-copy h3 a:hover {
  color: var(--accent);
}

.static-page-latest-copy time {
  color: var(--muted);
  font-size: 10px;
}

.static-page-latest-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .static-page-layout.static-page-layout-v3 {
    grid-template-columns: 38px minmax(0, 1fr) 270px;
    gap: 0 24px;
  }

  .static-page-layout-v3 .static-page-rail {
    width: 38px;
    padding-right: 6px;
  }

  .static-page-latest {
    padding-left: 20px;
  }

  .static-page-latest-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
  }

  .static-page-latest-image {
    width: 78px;
    height: 62px;
  }
}

@media (max-width: 900px) {
  .static-page-layout.static-page-layout-v3 {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 18px;
  }

  .static-page-layout-v3 .static-page-rail {
    width: 32px;
    grid-row: 1 / span 2;
  }

  .static-page-latest {
    grid-column: 2;
    margin-top: 44px;
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .static-page-latest-inner {
    position: static;
    padding-top: 30px;
  }

  .static-page-latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 700px) {
  .static-page-layout.static-page-layout-v3 {
    grid-template-columns: 1fr;
  }

  .static-page-layout-v3 .static-page-rail {
    display: none;
  }

  .static-page-latest {
    grid-column: 1;
  }

  .static-page-latest-list {
    grid-template-columns: 1fr;
  }

  .static-page-latest-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .static-page-latest-image {
    width: 92px;
    height: 72px;
  }
}

/* =========================================================
   STATIC PAGE V4 - CONTENT GAP + CONTACT FORM
========================================================= */

.static-page-layout.static-page-layout-v4 {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 320px;
  column-gap: 34px;
  align-items: stretch;
  max-width: none;
}

.static-page-layout-v4 .static-page-rail {
  position: relative;
  width: 46px;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-right: 8px;
  border-right: 1px solid var(--border);
}

.static-page-layout-v4 .static-page-rail-label {
  position: sticky;
  top: 100px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.static-page-layout-v4 .static-page-article {
  min-width: 0;
  max-width: none;
  padding: 0 30px 0 0;
}

.static-page-layout-v4 .static-page-content {
  max-width: 820px;
  margin: 0;
}

.static-page-layout-v4 .static-page-latest {
  min-width: 0;
  padding-left: 34px;
  border-left: 1px solid var(--border);
}

.contact-form-section {
  max-width: 820px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.contact-form-heading > span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.contact-form-heading h2 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
}

.contact-form-heading p {
  max-width: 650px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.contact-field label span {
  color: var(--accent);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-field input {
  height: 48px;
  padding: 0 14px;
}

.contact-field textarea {
  min-height: 170px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-submit-button {
  width: fit-content;
  min-height: 47px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-submit-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.contact-form-alert {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.contact-form-alert.is-success {
  border-color: #79b98a;
  background: rgba(60, 150, 85, 0.08);
}

.contact-form-alert.is-error {
  border-color: #d98a8a;
  background: rgba(190, 60, 60, 0.07);
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 1100px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 38px minmax(0, 1fr) 280px;
    column-gap: 25px;
  }
  .static-page-layout-v4 .static-page-rail {
    width: 38px;
  }
  .static-page-layout-v4 .static-page-article {
    padding-right: 18px;
  }
  .static-page-layout-v4 .static-page-latest {
    padding-left: 25px;
  }
}

@media (max-width: 900px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 18px;
  }
  .static-page-layout-v4 .static-page-rail {
    width: 32px;
    grid-row: 1 / span 2;
  }
  .static-page-layout-v4 .static-page-article {
    padding-right: 0;
  }
  .static-page-layout-v4 .static-page-latest {
    grid-column: 2;
    margin-top: 48px;
    padding: 30px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 700px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 1fr;
  }
  .static-page-layout-v4 .static-page-rail {
    display: none;
  }
  .static-page-layout-v4 .static-page-latest {
    grid-column: 1;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-section {
    margin-top: 38px;
    padding-top: 28px;
  }
  .contact-form-heading h2 {
    font-size: 27px;
  }
  .contact-submit-button {
    width: 100%;
  }
}

/* =========================================================
   STATIC PAGE v5 - ABOUT US EDITORIAL TREATMENT
========================================================= */
.static-about-page .about-page-intro {
  max-width: 820px;
  margin: 0 0 38px;
  padding: 0 0 31px;
  border-bottom: 1px solid var(--border);
}
.static-about-page .about-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.static-about-page .about-page-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.static-about-page .about-page-deck {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 35px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.7px;
}
.static-about-page .about-page-content {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.82;
}
.static-about-page .about-page-content > p:first-child {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.72;
}
.static-about-page .about-page-content h2 {
  position: relative;
  margin-top: 48px;
  padding-top: 21px;
  border-top: 2px solid var(--text);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.45px;
}
.static-about-page .about-page-content h3 {
  margin-top: 34px;
  font-size: 22px;
  font-weight: 700;
}
.static-about-page .about-page-content ul,
.static-about-page .about-page-content ol {
  margin: 24px 0 30px;
  padding-left: 23px;
}
.static-about-page .about-page-content li {
  margin: 9px 0;
  padding-left: 5px;
}
.static-about-page .about-page-content li::marker {
  color: var(--accent);
}
.static-about-page .about-page-content blockquote {
  margin: 40px 0;
  padding: 24px 27px;
  border-left: 4px solid var(--accent);
  background: var(--soft-background);
  color: var(--text);
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}
.static-about-page .about-page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.static-about-page .about-page-content a:hover {
  text-decoration-thickness: 2px;
}
.static-about-page .about-page-content hr {
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: var(--border);
}
@media (max-width: 900px) {
  .static-about-page .about-page-intro {
    margin-bottom: 31px;
    padding-bottom: 26px;
  }
  .static-about-page .about-page-deck {
    font-size: clamp(23px, 4vw, 31px);
  }
}
@media (max-width: 700px) {
  .static-about-page .about-page-intro {
    margin-bottom: 27px;
    padding-bottom: 23px;
  }
  .static-about-page .about-page-eyebrow {
    font-size: 10px;
  }
  .static-about-page .about-page-deck {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.35px;
  }
  .static-about-page .about-page-content {
    font-size: 16px;
    line-height: 1.75;
  }
  .static-about-page .about-page-content > p:first-child {
    font-size: 18px;
    line-height: 1.68;
  }
  .static-about-page .about-page-content h2 {
    margin-top: 38px;
    padding-top: 18px;
    font-size: 25px;
  }
  .static-about-page .about-page-content blockquote {
    margin: 32px 0;
    padding: 20px;
    font-size: 19px;
  }
}

/* =========================================================
   STATIC PAGE v5.1 - ALIGNMENT + COLUMN SPACING FIX
========================================================= */

/* Keep the rail close to the article, but create a clear
   visual separation between the article and Latest Posts. */
.static-page-layout.static-page-layout-v4 {
  grid-template-columns: 46px minmax(0, 1fr) 320px;
  column-gap: 24px;
}

/* Align all page content to the same usable article width. */
.static-page-layout-v4 .static-page-article {
  min-width: 0;
  max-width: none;
  padding: 0 48px 0 0;
}

.static-page-layout-v4 .static-page-content,
.static-about-page .about-page-intro,
.static-about-page .about-page-content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Stronger separation between main content and right sidebar. */
.static-page-layout-v4 .static-page-latest {
  min-width: 0;
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

/* Keep sidebar contents aligned cleanly with the top of article. */
.static-page-layout-v4 .static-page-latest-inner {
  width: 100%;
  margin: 0;
}

/* Tablet */
@media (max-width: 1100px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 38px minmax(0, 1fr) 280px;
    column-gap: 20px;
  }

  .static-page-layout-v4 .static-page-article {
    padding-right: 30px;
  }

  .static-page-layout-v4 .static-page-latest {
    padding-left: 28px;
  }
}

/* When the sidebar drops below the article, remove the desktop divider/gap. */
@media (max-width: 900px) {
  .static-page-layout-v4 .static-page-article {
    padding-right: 0;
  }

  .static-page-layout-v4 .static-page-latest {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .static-page-layout-v4 .static-page-article {
    padding-right: 0;
  }
}

/* =========================================================
   STATIC PAGE v5.2 - HEADER / CONTENT ALIGNMENT
   Main article now begins on the same container line as the
   page header. Decorative CRICSPRINTER rail sits outside it.
========================================================= */

.static-page-layout.static-page-layout-v4 {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 0;
}

/* Remove the rail from the content grid so it no longer pushes
   the page article to the right of the header content. */
.static-page-layout-v4 .static-page-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -46px;
  width: 32px;
  min-height: 100%;
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

/* Main article starts exactly at the public-container content edge. */
.static-page-layout-v4 .static-page-article {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  padding: 0 54px 0 0;
}

.static-page-layout-v4 .static-page-content,
.static-about-page .about-page-intro,
.static-about-page .about-page-content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Keep a clearly defined gap before Latest Posts. */
.static-page-layout-v4 .static-page-latest {
  grid-column: 2;
  min-width: 0;
  padding-left: 42px;
  border-left: 1px solid var(--border);
}

@media (max-width: 1100px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .static-page-layout-v4 .static-page-rail {
    left: -38px;
    width: 27px;
  }

  .static-page-layout-v4 .static-page-article {
    padding-right: 38px;
  }

  .static-page-layout-v4 .static-page-latest {
    padding-left: 30px;
  }
}

@media (max-width: 900px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 1fr;
  }

  .static-page-layout-v4 .static-page-article,
  .static-page-layout-v4 .static-page-latest {
    grid-column: 1;
  }

  .static-page-layout-v4 .static-page-article {
    padding-right: 0;
  }

  .static-page-layout-v4 .static-page-latest {
    margin-top: 48px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .static-page-layout-v4 .static-page-rail {
    display: none;
  }
}

/* =========================================================
   STATIC PAGE v6 - COMPLETE INFORMATION PAGE SYSTEM
   About / Privacy / Terms / Editorial / Advertise
   Uses the approved v5.2 header-content alignment.
========================================================= */

.static-editorial-info-page .static-info-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 38px;
  padding: 0 0 31px;
  border-bottom: 1px solid var(--border);
}

.static-editorial-info-page .static-info-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.static-editorial-info-page .static-info-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  flex: 0 0 30px;
  background: var(--accent);
}

.static-editorial-info-page .static-info-deck {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 35px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.7px;
}

.static-editorial-info-page .static-info-content {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 17px;
  line-height: 1.82;
}

.static-editorial-info-page .static-info-content > p:first-child {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.72;
}

.static-editorial-info-page .static-info-content h2 {
  margin: 48px 0 18px;
  padding-top: 21px;
  border-top: 2px solid var(--text);
  color: var(--text);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.45px;
}

.static-editorial-info-page .static-info-content h3 {
  margin: 34px 0 15px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.static-editorial-info-page .static-info-content h4 {
  margin: 28px 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.static-editorial-info-page .static-info-content ul,
.static-editorial-info-page .static-info-content ol {
  margin: 23px 0 30px;
  padding-left: 24px;
}

.static-editorial-info-page .static-info-content li {
  margin: 9px 0;
  padding-left: 5px;
}

.static-editorial-info-page .static-info-content li::marker {
  color: var(--accent);
}

.static-editorial-info-page .static-info-content blockquote {
  margin: 40px 0;
  padding: 24px 27px;
  border-left: 4px solid var(--accent);
  background: var(--soft-background);
  color: var(--text);
  font-size: 21px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}

.static-editorial-info-page .static-info-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.static-editorial-info-page .static-info-content a:hover {
  text-decoration-thickness: 2px;
}

.static-editorial-info-page .static-info-content hr {
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: var(--border);
}

.static-editorial-info-page .static-info-content table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.static-editorial-info-page .static-info-content th,
.static-editorial-info-page .static-info-content td {
  padding: 13px 15px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.static-editorial-info-page .static-info-content th {
  background: var(--soft-background);
  color: var(--text);
  font-weight: 700;
}

/* Advertise page gets a slightly stronger opening treatment without
   changing or hard-coding the CMS-managed page body. */
.static-advertise-page .static-info-intro {
  padding: 28px 30px 31px;
  border-top: 3px solid var(--accent);
  background: var(--soft-background);
}

.static-advertise-page .static-info-deck {
  max-width: 720px;
}

/* Policy-style pages favor compact, highly readable legal/editorial text. */
.static-privacy-page .static-info-content,
.static-terms-page .static-info-content,
.static-editorial-page .static-info-content {
  line-height: 1.78;
}

@media (max-width: 900px) {
  .static-editorial-info-page .static-info-intro {
    margin-bottom: 31px;
    padding-bottom: 26px;
  }

  .static-advertise-page .static-info-intro {
    padding: 25px 25px 27px;
  }

  .static-editorial-info-page .static-info-deck {
    font-size: clamp(23px, 4vw, 31px);
  }
}

@media (max-width: 700px) {
  .static-editorial-info-page .static-info-intro {
    margin-bottom: 27px;
    padding-bottom: 23px;
  }

  .static-advertise-page .static-info-intro {
    padding: 21px 19px 23px;
  }

  .static-editorial-info-page .static-info-eyebrow {
    font-size: 10px;
  }

  .static-editorial-info-page .static-info-deck {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.35px;
  }

  .static-editorial-info-page .static-info-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .static-editorial-info-page .static-info-content > p:first-child {
    font-size: 18px;
    line-height: 1.68;
  }

  .static-editorial-info-page .static-info-content h2 {
    margin-top: 38px;
    padding-top: 18px;
    font-size: 25px;
  }

  .static-editorial-info-page .static-info-content blockquote {
    margin: 32px 0;
    padding: 20px;
    font-size: 19px;
  }

  .static-editorial-info-page .static-info-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   STATIC PAGE v6.1 - MATCH SINGLE POST CONTENT GEOMETRY
   Single post uses: minmax(0,1fr) 285px with 70px gap.
   Static pages now use the same content/sidebar geometry.
========================================================= */

.static-page-layout.static-page-layout-v4 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 70px;
  column-gap: 70px;
  align-items: start;
}

/* Decorative rail stays outside the grid and does not alter alignment. */
.static-page-layout-v4 .static-page-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -46px;
  width: 32px;
  min-height: 100%;
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

/* Match the single-post main column: no artificial right padding. */
.static-page-layout-v4 .static-page-article {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
}

/* Match post article reading width instead of stretching page text. */
.static-page-layout-v4 .static-page-content,
.static-editorial-info-page .static-info-content {
  width: 100%;
  max-width: 900px;
  margin-left: 0;
  margin-right: 0;
}

/* Intro follows the same readable width as post title/excerpt/content. */
.static-editorial-info-page .static-info-intro,
.static-about-page .about-page-intro {
  width: 100%;
  max-width: 900px;
  margin-left: 0;
  margin-right: 0;
}

/* Sidebar is separated by the same 70px grid gap as single post.
   Remove extra padding/border that made the page layout feel different. */
.static-page-layout-v4 .static-page-latest {
  grid-column: 2;
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

.static-page-layout-v4 .static-page-latest-inner {
  width: 100%;
  margin: 0;
}

/* Tablet follows the same responsive idea as the post view. */
@media (max-width: 950px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .static-page-layout-v4 .static-page-article,
  .static-page-layout-v4 .static-page-latest {
    grid-column: 1;
  }

  .static-page-layout-v4 .static-page-latest {
    margin-top: 50px;
    padding-left: 0;
    border-left: 0;
  }

  .static-page-layout-v4 .static-page-content,
  .static-editorial-info-page .static-info-content,
  .static-editorial-info-page .static-info-intro,
  .static-about-page .about-page-intro {
    max-width: 900px;
  }
}

@media (max-width: 700px) {
  .static-page-layout-v4 .static-page-rail {
    display: none;
  }

  .static-page-layout-v4 .static-page-latest {
    margin-top: 42px;
  }
}

/* =========================================================
   STATIC PAGE v6.2 - STACKED SIDEBAR CARDS + INTERNAL BRAND RAIL
   Preserves the approved post-aligned 285px / 70px geometry.
========================================================= */

/* CRICSPRINTER stays inside the main layout structure.
   It remains decorative and does not become a third grid column. */
.static-page-layout-v4 .static-page-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30px;
  min-height: 100%;
  padding-right: 10px;
  border-right: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}

.static-page-layout-v4 .static-page-rail-label {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Internal space for the decorative rail while keeping the
   overall main/sidebar grid exactly the same. */
.static-page-layout-v4 .static-page-article {
  padding-left: 46px;
}

/* Latest Posts: image above content instead of image + title in one row. */
.static-page-layout-v4 .static-page-latest-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.static-page-layout-v4 .static-page-latest-item {
  display: block;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.static-page-layout-v4 .static-page-latest-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--soft-background);
}

.static-page-layout-v4 .static-page-latest-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.static-page-layout-v4
  .static-page-latest-item:hover
  .static-page-latest-image
  img {
  transform: scale(1.025);
}

.static-page-layout-v4 .static-page-latest-category {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.45px;
}

.static-page-layout-v4 .static-page-latest-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.15px;
}

.static-page-layout-v4 .static-page-latest-date {
  font-size: 11px;
}

/* When the sidebar drops below the article, use a neat two-card grid. */
@media (max-width: 950px) {
  .static-page-layout-v4 .static-page-article {
    padding-left: 42px;
  }

  .static-page-layout-v4 .static-page-latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }
}

@media (max-width: 700px) {
  .static-page-layout-v4 .static-page-article {
    padding-left: 0;
  }

  .static-page-layout-v4 .static-page-latest-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   STATIC PAGE v6.3 - CONTAINER-ALIGNED RAIL / CONTENT / SIDEBAR
   Outer edges match the same .public-container used by the hero.
========================================================= */

/*
  Desktop structure inside the SAME public-container:
  32px rail | 28px gap | flexible article | 70px gap | 285px sidebar

  The rail is now an intentional grid column. This keeps the complete
  lower-page composition inside the same left/right container boundaries
  as the hero instead of shifting the article with arbitrary padding.
*/
.static-page-layout.static-page-layout-v4 {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 285px;
  column-gap: 0;
  align-items: start;
  width: 100%;
  max-width: none;
}

/* Vertical brand rail occupies the first 32px INSIDE the container. */
.static-page-layout-v4 .static-page-rail {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  top: auto;
  bottom: auto;
  left: auto;
  width: 32px;
  min-height: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  border: 0;
  pointer-events: none;
  z-index: 1;
}

.static-page-layout-v4 .static-page-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.static-page-layout-v4 .static-page-rail-label {
  position: sticky;
  top: 100px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  padding: 0 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Article starts after a controlled 28px rail gap.
   No arbitrary padding that changes the whole grid geometry. */
.static-page-layout-v4 .static-page-article {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 70px 0 28px;
}

.static-page-layout-v4 .static-page-content,
.static-editorial-info-page .static-info-intro {
  width: 100%;
  max-width: 900px;
  margin-left: 0;
  margin-right: 0;
}

/* Sidebar owns the final 285px of the SAME public container. */
.static-page-layout-v4 .static-page-latest {
  grid-column: 3;
  grid-row: 1;
  width: 285px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  justify-self: end;
}

.static-page-layout-v4 .static-page-latest-inner {
  width: 285px;
  max-width: 100%;
  margin: 0;
}

/* Keep the improved stacked editorial cards. */
.static-page-layout-v4 .static-page-latest-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.static-page-layout-v4 .static-page-latest-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.static-page-layout-v4 .static-page-latest-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 0 12px;
  overflow: hidden;
}

.static-page-layout-v4 .static-page-latest-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.static-page-layout-v4 .static-page-latest-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
}

/* Tablet: rail + article, sidebar below article but still container-aligned. */
@media (max-width: 950px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .static-page-layout-v4 .static-page-rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .static-page-layout-v4 .static-page-article {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 24px;
  }

  .static-page-layout-v4 .static-page-latest {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin-top: 50px;
    padding-left: 24px;
    justify-self: stretch;
  }

  .static-page-layout-v4 .static-page-latest-inner {
    width: 100%;
  }

  .static-page-layout-v4 .static-page-latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }
}

/* Mobile: remove decorative rail and use the full container width. */
@media (max-width: 700px) {
  .static-page-layout.static-page-layout-v4 {
    grid-template-columns: 1fr;
  }

  .static-page-layout-v4 .static-page-rail {
    display: none;
  }

  .static-page-layout-v4 .static-page-article {
    grid-column: 1;
    padding: 0;
  }

  .static-page-layout-v4 .static-page-latest {
    grid-column: 1;
    width: 100%;
    margin-top: 42px;
    padding-left: 0;
  }

  .static-page-layout-v4 .static-page-latest-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   STATIC PAGE v6.4 - HERO LEFT EDGE ALIGNMENT
   Breadcrumb, kicker, page title and underline begin exactly
   at the .public-container left content edge.
========================================================= */

.static-page-hero-editorial .static-page-hero-inner,
.static-page-hero-editorial .static-page-breadcrumb,
.static-page-hero-editorial .static-page-heading-row {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  transform: none;
}

.static-page-hero-editorial .static-page-breadcrumb {
  justify-content: flex-start;
}

.static-page-hero-editorial .static-page-heading-row {
  text-align: left;
}

.static-page-hero-editorial .static-page-kicker,
.static-page-hero-editorial h1,
.static-page-hero-editorial .static-page-title-rule,
.static-page-hero-editorial .static-page-hero-rule {
  margin-left: 0;
}

/* =========================================================
   SINGLE POST v1 - MATCH APPROVED STATIC PAGE v6.4 ALIGNMENT
   Same container geometry:
   32px rail | 28px inner gap | post content | 70px | 285px sidebar
========================================================= */

.single-post-layout {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 285px;
  column-gap: 0;
  align-items: start;
  width: 100%;
  max-width: none;
}

/* Same internal vertical CRICSPRINTER rail as Page view. */
.single-post-brand-rail {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 32px;
  min-height: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  border: 0;
  pointer-events: none;
  z-index: 1;
}

.single-post-brand-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.single-post-brand-rail-label {
  position: sticky;
  top: 100px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  padding: 0 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Same content start and 70px sidebar separation as Page v6.4. */
.single-post-main {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 70px 0 28px;
}

.single-post-sidebar {
  grid-column: 3;
  grid-row: 1;
  width: 285px;
  min-width: 0;
  margin: 0;
  padding: 0;
  justify-self: end;
}

/* Tablet follows the same rail/content/sidebar behavior as Page v6.4. */
@media (max-width: 950px) {
  .single-post-layout {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0;
  }

  .single-post-brand-rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .single-post-main {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 24px;
  }

  .single-post-sidebar {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin-top: 50px;
    padding-left: 24px;
    justify-self: stretch;
  }
}

/* Mobile uses the full container width, exactly like Page v6.4. */
@media (max-width: 700px) {
  .single-post-layout {
    grid-template-columns: 1fr;
  }

  .single-post-brand-rail {
    display: none;
  }

  .single-post-main {
    grid-column: 1;
    padding: 0;
  }

  .single-post-sidebar {
    grid-column: 1;
    width: 100%;
    margin-top: 42px;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .article-content .article-image-block.image-align-left,
  .article-content .article-image-block.image-align-right {
    float: none;
    clear: both;
    width: 100% !important;
    max-width: 100%;
    margin: 24px auto;
  }

  .article-content .article-table-block {
    margin: 24px 0 28px;
  }

  .article-content .article-editor-table {
    min-width: 560px;
  }
}

/* =========================================================
   SINGLE POST V2 — CENTERED 900PX EDITORIAL LAYOUT
   This block intentionally overrides the older sidebar layout
   without changing static pages, homepage or category layouts.
========================================================= */

.single-post-v2 {
  width: 100%;
  background: var(--background);
}

.single-post-slug-band {
  width: 100%;
  border-top: 1px solid var(--soft-border);
  border-bottom: 1px solid var(--soft-border);
  background: var(--soft-background);
}

.single-post-slug-inner {
  width: min(100% - 40px, 1100px);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.single-post-slug-inner a {
  transition: color 0.2s ease;
}

.single-post-slug-inner a:hover {
  color: var(--accent);
}

.single-post-v2-article {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.single-post-v2-header {
  margin: 0 0 36px;
  text-align: center;
}

.single-post-v2-category {
  display: inline-flex;
  margin: 0 0 17px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.single-post-v2-title {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.8px;
  text-wrap: balance;
}

.single-post-v2-meta {
  margin: 25px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
}

.single-post-v2-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

a.single-post-v2-meta-item:hover {
  color: var(--accent);
}

.single-post-v2-meta-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.single-post-v2-share {
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

.single-post-v2-share .single-share-label {
  margin-right: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.single-post-v2-share .single-share-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.single-post-v2-share .single-share-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.single-post-v2-share .single-share-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.single-post-v2-share [data-share="facebook"] svg path {
  fill: currentColor;
  stroke: none;
}

.single-post-v2-share .single-copy-status {
  width: 100%;
  min-height: 16px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.single-post-v2-featured {
  width: 100%;
  margin: 0 0 38px;
}

.single-post-v2-featured img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
}

.single-post-v2-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.82;
}

.single-post-v2-content > :first-child {
  margin-top: 0;
}

.single-post-v2-content p,
.single-post-v2-content ul,
.single-post-v2-content ol,
.single-post-v2-content blockquote,
.single-post-v2-content figure,
.single-post-v2-content pre,
.single-post-v2-content .article-table-block {
  max-width: 100%;
}

.single-post-v2-content img {
  max-width: 100%;
  height: auto;
}

.single-post-v2-content .article-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.single-post-v2-content table {
  max-width: 100%;
}

.single-post-v2-tags {
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--soft-border);
}

.single-post-author-profile {
  margin: 44px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--soft-border);
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--soft-background);
}

.single-post-author-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 25px;
  font-weight: 800;
}

.single-post-author-copy {
  min-width: 0;
}

.single-post-author-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-post-author-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.single-post-author-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.single-post-v2 .single-comments-section,
.single-post-v2 .related-posts-section {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-post-v2 .single-comments-section {
  margin-top: 54px;
}

.single-post-v2 .related-posts-section {
  margin-top: 64px;
}

/* Old sidebar/rail are deliberately not used by post.ejs v2. */
.single-post-v2 .single-post-sidebar,
.single-post-v2 .single-post-brand-rail {
  display: none !important;
}

/* Keep generated article figures/tables inside the 900px article column. */
.single-post-v2 .article-content figure,
.single-post-v2 .article-content .article-image-block,
.single-post-v2 .article-content .article-table-block {
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .single-post-v2-article {
    width: min(100% - 40px, 900px);
    padding-top: 46px;
  }

  .single-post-v2-title {
    font-size: clamp(34px, 7vw, 52px);
    letter-spacing: -1.3px;
  }

  .single-post-v2-content {
    font-size: 16.5px;
  }

  .single-post-v2 .related-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .single-post-slug-inner {
    width: min(100% - 28px, 1100px);
    min-height: 52px;
    font-size: 12px;
  }

  .single-post-v2-article {
    width: min(100% - 30px, 900px);
    padding: 36px 0 60px;
  }

  .single-post-v2-header {
    margin-bottom: 28px;
  }

  .single-post-v2-title {
    font-size: clamp(31px, 10vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.9px;
  }

  .single-post-v2-meta {
    gap: 8px 13px;
    font-size: 12px;
  }

  .single-post-v2-share {
    margin-top: 19px;
  }

  .single-post-v2-featured {
    margin-bottom: 30px;
  }

  .single-post-v2-content {
    font-size: 16px;
    line-height: 1.76;
  }

  .single-post-author-profile {
    padding: 22px;
    align-items: flex-start;
  }

  .single-post-author-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 21px;
  }

  .single-post-v2 .single-comments-section {
    margin-top: 46px;
  }

  .single-post-v2 .related-posts-section {
    margin-top: 52px;
  }

  .single-post-v2 .related-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .single-post-author-profile {
    display: block;
  }

  .single-post-author-copy {
    margin-top: 14px;
  }

  .single-post-v2-share .single-share-label {
    width: 100%;
    margin: 0 0 2px;
    text-align: center;
  }
}

/* =========================================================
   FRONTEND TYPOGRAPHY POLISH v2.2
   No external font service. Keeps the site fast and portable.
========================================================= */

/* Site-wide identity */
body {
  font-family: var(--font-ui);
  letter-spacing: -0.008em;
}

/* Editorial display voice */
.news5-home h1,
.news5-home h2,
.news5-home h3,
.category-home-style h1,
.category-home-style h2,
.category-home-style h3,
.static-page-shell h1,
.static-page-shell h2,
.static-page-shell h3,
.single-post-v2 h1,
.single-post-v2 h2,
.single-post-v2 h3,
.single-post-v2 h4,
.public-footer h2,
.public-footer h3,
.public-footer h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

/* Single-post headline */
.single-post-v2-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* Long-form article typography */
.single-post-v2-content {
  font-family: var(--font-reading);
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -0.012em;
  color: var(--text);
}

.single-post-v2-content p {
  margin-top: 0;
  margin-bottom: 14px;
}

.single-post-v2-content p + p {
  margin-top: 0;
}

.single-post-v2-content h2,
.single-post-v2-content h3,
.single-post-v2-content h4 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.single-post-v2-content h2 {
  margin-top: 30px;
  font-size: clamp(28px, 3.2vw, 34px);
}

.single-post-v2-content h3 {
  margin-top: 26px;
  font-size: clamp(23px, 2.7vw, 28px);
}

.single-post-v2-content h4 {
  margin-top: 22px;
  font-size: 21px;
}

/* Avoid a large first-block gap. */
.single-post-v2-content > h2:first-child,
.single-post-v2-content > h3:first-child,
.single-post-v2-content > h4:first-child,
.single-post-v2-content > p:first-child {
  margin-top: 0;
}

/* Empty editor paragraphs should not create oversized blank bands. */
.single-post-v2-content p:empty {
  display: none;
}

.single-post-v2-content p:has(> br:only-child) {
  margin: 0;
  min-height: 0;
  line-height: 0;
}

/* Lists and quotes retain hierarchy without excessive vertical space. */
.single-post-v2-content ul,
.single-post-v2-content ol {
  margin-top: 10px;
  margin-bottom: 18px;
}

.single-post-v2-content li + li {
  margin-top: 6px;
}

.single-post-v2-content blockquote {
  margin-top: 22px;
  margin-bottom: 22px;
}

/* Figures should sit naturally within the text flow. */
.single-post-v2-content figure,
.single-post-v2-content .article-image-block {
  margin-top: 18px;
  margin-bottom: 18px;
}

.single-post-v2-content figcaption {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--muted);
}

/*
   Floated article images:
   reduce the large clear-space effect visible between one content block
   and the next heading while keeping text wrapping intact.
*/
.single-post-v2-content .article-image-block.image-align-left,
.single-post-v2-content figure.image-align-left {
  margin-right: 24px;
  margin-bottom: 12px;
}

.single-post-v2-content .article-image-block.image-align-right,
.single-post-v2-content figure.image-align-right {
  margin-left: 24px;
  margin-bottom: 12px;
}

/* Do not force headings to clear floated images on desktop. */
.single-post-v2-content h2,
.single-post-v2-content h3,
.single-post-v2-content h4 {
  clear: none;
}

/* Tables: compact editorial spacing */
.single-post-v2-content .article-table-block {
  margin-top: 22px;
  margin-bottom: 22px;
}

.single-post-v2-content table th,
.single-post-v2-content table td {
  font-family: var(--font-ui);
  line-height: 1.45;
}

/* UI/meta remains compact and clearly separate from reading text. */
.single-post-v2-meta,
.single-post-v2-share,
.single-post-author-profile,
.single-comments-section,
.related-posts-section {
  font-family: var(--font-ui);
}

@media (max-width: 640px) {
  .single-post-v2-content {
    font-size: 16.5px;
    line-height: 1.68;
  }

  .single-post-v2-content p {
    margin-bottom: 12px;
  }

  .single-post-v2-content h2 {
    margin-top: 26px;
  }

  .single-post-v2-content h3 {
    margin-top: 23px;
  }

  .single-post-v2-content h4 {
    margin-top: 20px;
  }

  /* Floats should become normal blocks on small screens. */
  .single-post-v2-content .article-image-block.image-align-left,
  .single-post-v2-content .article-image-block.image-align-right,
  .single-post-v2-content figure.image-align-left,
  .single-post-v2-content figure.image-align-right {
    float: none;
    width: 100% !important;
    max-width: 100%;
    margin: 18px 0;
  }
}

/* =========================================================
   SINGLE POST v2.3 — NATURAL ARTICLE TABLES
   Compact on desktop, correctly contained/aligned on mobile.
========================================================= */

.single-post-v2-content .article-table-block {
  width: fit-content;
  max-width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.single-post-v2-content .article-table-scroll {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.single-post-v2-content .article-editor-table {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.single-post-v2-content .article-editor-table th,
.single-post-v2-content .article-editor-table td {
  padding: 10px 12px;
  white-space: nowrap;
  vertical-align: middle;
}

.single-post-v2-content .article-table-caption {
  display: block;
  width: 100%;
  margin: 7px 0 0;
  padding: 0 6px;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 640px) {
  .single-post-v2-content .article-table-block {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 20px;
    overflow: visible;
  }

  .single-post-v2-content .article-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .single-post-v2-content .article-editor-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    font-size: 12px;
  }

  .single-post-v2-content .article-editor-table th,
  .single-post-v2-content .article-editor-table td {
    padding: 8px 9px;
    white-space: nowrap;
  }

  .single-post-v2-content .article-table-caption {
    width: 100%;
    margin-top: 7px;
    padding: 0;
    text-align: center;
    font-size: 11px;
  }
}

/* =========================================================
   SINGLE POST v2.4 — TABLE WIDTH CORRECTION
   Desktop/tablet: full article width.
   Mobile: full viewport article width + horizontal scroll if needed.
========================================================= */

.single-post-v2-content .article-table-block {
  width: 100%;
  max-width: 100%;
}

.single-post-v2-content .article-table-scroll {
  width: 100%;
  max-width: 100%;
}

.single-post-v2-content .article-editor-table {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .single-post-v2-content .article-table-block {
    width: 100%;
    max-width: 100%;
  }

  .single-post-v2-content .article-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .single-post-v2-content .article-editor-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
  }
}

/* =========================================================
   SINGLE POST v2.5 — MOBILE TABLE FINAL OVERRIDE
   Keep desktop/tablet full width.
   On phones, fit the table inside the article viewport instead
   of preserving desktop column width.
========================================================= */

@media (max-width: 640px) {
  .single-post-v2-content .article-table-block,
  .single-post-v2-content .article-table-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
  }

  .single-post-v2-content .article-editor-table,
  .single-post-v2-content table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  .single-post-v2-content .article-editor-table th,
  .single-post-v2-content .article-editor-table td,
  .single-post-v2-content table th,
  .single-post-v2-content table td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 7px 6px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
  }

  .single-post-v2-content .article-table-caption,
  .single-post-v2-content figcaption.article-table-caption {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   SINGLE POST v2.6 — TABLE BREAKPOINT CORRECTION
   The responsive table treatment must also cover 641–700px.
========================================================= */

@media (min-width: 641px) and (max-width: 700px) {
  .single-post-v2-content .article-table-block,
  .single-post-v2-content .article-table-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
  }

  .single-post-v2-content .article-editor-table,
  .single-post-v2-content table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  .single-post-v2-content .article-editor-table th,
  .single-post-v2-content .article-editor-table td,
  .single-post-v2-content table th,
  .single-post-v2-content table td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 8px 8px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
  }

  .single-post-v2-content .article-table-caption,
  .single-post-v2-content figcaption.article-table-caption {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   SINGLE POST v2.7 — VERTICAL CRICSPRINTER BRAND RAIL
   Keeps the 900px article centered while the rail sits beside it.
========================================================= */

.single-post-v2-body {
  position: relative;
  width: min(1030px, calc(100% - 48px));
  margin: 0 auto;
}

.single-post-v2-body .single-post-v2-article {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.single-post-v2-brand-rail {
  position: absolute;
  top: 58px;
  left: 0;
  width: 32px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.single-post-v2-brand-rail span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .single-post-v2-body {
    width: min(100% - 40px, 900px);
  }

  .single-post-v2-brand-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  .single-post-v2-body {
    width: min(100% - 30px, 900px);
  }
}

/* =========================================================
   SINGLE POST v2.8 — STICKY VERTICAL CRICSPRINTER RAIL
   Restores the earlier behavior: vertical text beside a vertical
   rule and it follows the reader while the article scrolls.
========================================================= */

.single-post-v2-brand-rail {
  position: absolute;
  top: 58px;
  left: 0;
  width: 32px;
  height: calc(100% - 58px);
  display: block;
  pointer-events: none;
}

.single-post-v2-brand-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 1px;
  background: currentColor;
  opacity: 0.22;
}

.single-post-v2-brand-rail span {
  position: sticky;
  top: 110px;
  display: block;
  width: 32px;
  padding: 0 0 16px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 1040px) {
  .single-post-v2-brand-rail {
    display: none;
  }
}

/* =========================================================
   SINGLE POST v2.9 — CRICSPRINTER ON THE VERTICAL RULE
   The rule itself is stationary; the vertical brand label is sticky
   and travels along that same rule while the article is scrolled.
========================================================= */

.single-post-v2-brand-rail {
  position: absolute;
  top: 58px;
  left: 0;
  width: 32px;
  height: calc(100% - 58px);
  display: block;
  pointer-events: none;
}

/* One continuous rule through the centre of the rail. */
.single-post-v2-brand-rail::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: currentColor;
  opacity: 0.22;
  transform: translateX(-50%);
}

/* The label sits directly ON the rule and moves along it. */
.single-post-v2-brand-rail span {
  position: sticky;
  z-index: 1;
  top: 110px;
  display: block;
  width: 32px;
  margin: 0;
  padding: 10px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 1040px) {
  .single-post-v2-brand-rail {
    display: none;
  }
}

/* =========================================================
   SINGLE POST v2.10 — CRICSPRINTER RAIL, CORRECT BEHAVIOR
   Visual: -------- CRICSPRINTER --------
   (rotated vertically as one unit)
   Scroll behavior: the complete line/word/line unit moves with the
   page until it reaches the viewport top offset, then stays there.
========================================================= */

.single-post-v2-brand-rail {
  position: absolute;
  top: 58px;
  left: 0;
  width: 32px;
  height: calc(100% - 58px);
  display: block;
  pointer-events: none;
}

/* Disable the old continuous line behind the word. */
.single-post-v2-brand-rail::after {
  content: none !important;
}

/* Sticky applies to the WHOLE line-word-line unit. */
.single-post-v2-brand-rail span {
  position: sticky;
  top: 24px;
  z-index: 1;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

  width: 32px;
  height: 250px;
  margin: 0;
  padding: 0;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  color: var(--text);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Two separate line segments — nothing runs behind CRICSPRINTER. */
.single-post-v2-brand-rail span::before,
.single-post-v2-brand-rail span::after {
  content: "";
  display: block;
  flex: 1 1 auto;
  width: 1px;
  min-height: 28px;
  background: currentColor;
  opacity: 0.28;
}

@media (max-width: 1040px) {
  .single-post-v2-brand-rail {
    display: none;
  }
}

/* =========================================================
   SINGLE POST v2.11 — STICKY CRICSPRINTER LOWER LINE
   Once the rail reaches its sticky position, the lower line continues
   visually through the remaining height toward the bottom of the article.
========================================================= */

.single-post-v2-brand-rail {
  position: absolute;
  top: 58px;
  bottom: 0;
  left: 0;
  width: 32px;
  height: auto;
  display: block;
  pointer-events: none;
}

/* No continuous line behind the word. */
.single-post-v2-brand-rail::after {
  content: none !important;
}

.single-post-v2-brand-rail span {
  position: sticky;
  top: 24px;
  z-index: 1;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

  width: 32px;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  min-height: 250px;
  margin: 0;
  padding: 0;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  color: var(--text);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Separate upper/lower lines. The flexible lower segment grows to the
   bottom of the sticky viewport rail; no line crosses the word itself. */
.single-post-v2-brand-rail span::before,
.single-post-v2-brand-rail span::after {
  content: "";
  display: block;
  width: 1px;
  background: currentColor;
  opacity: 0.28;
}

.single-post-v2-brand-rail span::before {
  flex: 0 0 58px;
}

.single-post-v2-brand-rail span::after {
  flex: 1 1 auto;
  min-height: 80px;
}

@media (max-width: 1040px) {
  .single-post-v2-brand-rail {
    display: none;
  }
}

/* =========================================================
   FRONTEND COMPLETE v1 — ARCHIVES / SEARCH / ERRORS
========================================================= */
.public-title-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 30px;
  margin: 0 0 42px;
}
.public-title-band .public-title-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.public-title-band h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.public-title-band p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.frontend-shell {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto 70px;
  padding-left: 72px;
  box-sizing: border-box;
}
.frontend-brand-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32px;
  pointer-events: none;
}
.frontend-brand-rail span {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 32px;
  height: calc(100vh - 48px);
  min-height: 250px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.frontend-brand-rail span:before,
.frontend-brand-rail span:after {
  content: "";
  display: block;
  width: 1px;
  background: currentColor;
  opacity: 0.28;
}
.frontend-brand-rail span:before {
  flex: 0 0 58px;
}
.frontend-brand-rail span:after {
  flex: 1 1 auto;
  min-height: 80px;
}
.archive-page {
  max-width: 980px;
}
.archive-list {
  display: grid;
  gap: 0;
}
.archive-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.archive-card:first-child {
  padding-top: 0;
}
.archive-card-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ececec;
  text-decoration: none;
}
.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.archive-card:hover .archive-card-image img {
  transform: scale(1.025);
}
.archive-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.archive-card-category {
  display: inline-block;
  margin-bottom: 9px;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.archive-card-copy h2 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.archive-card-copy h2 a {
  color: inherit;
  text-decoration: none;
}
.archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.archive-card-copy p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-read-more {
  font-size: 12px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.frontend-empty {
  padding: 54px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.frontend-empty h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
}
.frontend-empty p {
  margin: 0;
  color: var(--muted);
}
.public-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 0 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.public-search-form input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  padding: 0 15px;
  font: inherit;
}
.public-search-form button,
.public-primary-button,
.public-secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.public-error-page {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  padding: 20px 0 60px;
}
.public-error-code {
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 190px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.06em;
  opacity: 0.12;
}
.public-error-page h2 {
  margin: 24px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}
.public-error-page p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.public-error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.public-secondary-button {
  background: transparent;
  color: inherit;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 1040px) {
  .frontend-shell {
    width: min(900px, calc(100% - 40px));
    padding-left: 0;
  }
  .frontend-brand-rail {
    display: none;
  }
}
@media (max-width: 700px) {
  .public-title-band {
    padding: 26px 0 24px;
    margin-bottom: 28px;
  }
  .archive-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .archive-card-image {
    aspect-ratio: 16/9;
  }
  .archive-card-copy h2 {
    font-size: 28px;
  }
  .public-search-form {
    grid-template-columns: 1fr;
  }
  .public-search-form button {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .frontend-shell {
    width: calc(100% - 30px);
    margin-bottom: 48px;
  }
  .archive-card-copy p {
    font-size: 14px;
  }
  .public-error-actions {
    width: 100%;
  }
  .public-error-actions a {
    width: 100%;
  }
}

/* =========================================================
   FRONTEND v1.1 — SCREENSHOT-INSPIRED CATEGORY CARDS
   Typography:
   - Editorial/display serif: Georgia
   - UI/meta sans: Trebuchet MS / Segoe UI
========================================================= */

/* Center public page-title bands consistently. */
.public-title-band .public-container {
  text-align: center;
}

.public-title-band .public-title-kicker {
  text-align: center;
}

.public-title-band h1,
.public-title-band p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Screenshot's headline character is a high-contrast editorial serif.
   Georgia is the closest dependable system-font treatment without
   adding a third-party webfont. */
.public-title-band h1,
.category-story-copy h2,
.category-story-copy h2 a {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.category-shell {
  width: min(1500px, calc(100% - 48px));
}

.category-card-page {
  width: 100%;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 38px;
  row-gap: 46px;
}

.category-story-card {
  min-width: 0;
}

.category-story-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #ececec;
  color: inherit;
  text-decoration: none;
}

.category-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-story-card:hover .category-story-image img {
  transform: scale(1.025);
}

.category-story-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.category-story-label {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.category-story-copy {
  padding: 18px 16px 0;
  text-align: center;
}

.category-story-copy h2 {
  margin: 0 auto 17px;
  max-width: 95%;
  font-size: clamp(25px, 2.15vw, 35px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.category-story-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.category-story-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
}

.category-story-author {
  color: var(--text);
}

.category-story-author strong {
  font-weight: 800;
}

@media (max-width: 1040px) {
  .category-shell {
    width: min(900px, calc(100% - 40px));
  }

  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }
}

@media (max-width: 640px) {
  .category-shell {
    width: calc(100% - 30px);
  }

  .category-card-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .category-story-copy {
    padding: 15px 8px 0;
  }

  .category-story-copy h2 {
    max-width: 100%;
    font-size: 27px;
  }
}

/* =========================================================
   CATEGORY ALIGNMENT FIX v1.3
   Keep the vertical identity rail + 3-card grid inside the
   same global public-container geometry as the header.
========================================================= */

.category-shell {
  /* Match the header/global .public-container width instead of using
     a separate 1500px category width. */
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;

  /* 32px rail + 28px approved gap before category content. */
  padding-left: 60px;
  box-sizing: border-box;
}

.category-shell .frontend-brand-rail {
  left: 0;
  width: 32px;
}

/* The cards now divide only the actual content column. */
.category-card-page {
  width: 100%;
  min-width: 0;
}

.category-card-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 46px;
}

/* Keep all three image boxes geometrically identical. */
.category-story-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
}

/* Prevent long headlines from changing horizontal card alignment. */
.category-story-copy {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1040px) {
  .category-shell {
    width: min(900px, calc(100% - 40px));
    max-width: 900px;
    padding-left: 0;
  }

  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 640px) {
  .category-shell {
    width: calc(100% - 30px);
    padding-left: 0;
  }

  .category-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CATEGORY ALIGNMENT FIX v1.4
   The rail itself begins on the SAME left edge as the global
   .public-container/header content. Content begins after rail+gap.
========================================================= */
.category-shell {
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 60px;
  box-sizing: border-box;
}

/* Critical correction:
   .frontend-shell's generic rail positioning was visually outside
   the intended header content edge. Pin the category rail exactly
   to this 1320px container's left boundary. */
.category-shell > .frontend-brand-rail {
  left: 0 !important;
  transform: none !important;
  margin-left: 0 !important;
  width: 32px;
}

@media (max-width: 1040px) {
  .category-shell {
    width: min(900px, calc(100% - 40px));
    max-width: 900px;
    padding-left: 0;
  }
}
@media (max-width: 640px) {
  .category-shell {
    width: calc(100% - 30px);
    padding-left: 0;
  }
}

/* =========================================================
   CATEGORY ALIGNMENT FIX v1.5 — EXACT HEADER CONTENT EDGES
   Header geometry is:
     .public-container = max 1320px INCLUDING 30px left/right padding.
   Therefore the visible header content edges are 30px inside that box.

   Category now uses that exact same box model:
     outer 1320px container
       30px shared left inset
       32px brand rail
       28px gap
       cards
       30px shared right inset
========================================================= */

.category-shell {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;

  /* Same horizontal inset as .public-container, plus room for
     the 32px rail and approved 28px rail-to-content gap. */
  padding-left: 90px; /* 30 + 32 + 28 */
  padding-right: 30px; /* exact header right content inset */

  box-sizing: border-box;
}

/* Rail begins at the exact visible left edge of header content:
   30px inside the shared 1320px public container. */
.category-shell > .frontend-brand-rail {
  left: 30px !important;
  width: 32px;
  margin: 0 !important;
  transform: none !important;
}

.category-card-page,
.category-card-grid {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1040px) {
  .category-shell {
    width: 100%;
    max-width: var(--container);
    padding-left: 30px;
    padding-right: 30px;
  }

  .category-shell > .frontend-brand-rail {
    display: none;
  }
}

@media (max-width: 700px) {
  .category-shell {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================================================
   CATEGORY v1.6 — CLEAN SHARED CONTAINER + COMMENTS
   Category deliberately has NO vertical brand rail.
   The grid uses .public-container itself, so left and right edges
   are exactly the same as the header container at every width.
========================================================= */

.category-page-container {
  margin-top: 0;
  margin-bottom: 70px;
}

.category-page-container .category-card-page {
  width: 100%;
  min-width: 0;
}

.category-page-container .category-card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 46px;
}

.category-story-meta {
  min-height: 22px;
}

.category-story-comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.category-story-comments svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-story-comments:hover {
  color: var(--text);
}

@media (max-width: 1040px) {
  .category-page-container .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 640px) {
  .category-page-container {
    margin-bottom: 48px;
  }

  .category-page-container .category-card-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
}

/* =========================================================
   SEARCH PAGE v1.1 - CLEAN CONTAINER / NO BRAND RAIL
   The vertical CRICSPRINTER rail is reserved for Single Post.
========================================================= */

.search-page-container {
  margin-top: 0;
  margin-bottom: 72px;
}

.search-page-container .search-results-page {
  width: 100%;
  min-width: 0;
  padding: 52px 0 0;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 14px;
  width: 100%;
  padding: 0 0 34px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--border);
}

.search-page-form input {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-page-form input:focus {
  border-color: var(--text);
}

.search-page-form button {
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--background);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
}

.search-page-form button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-page-container .frontend-empty {
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--border);
}

.search-page-container .frontend-empty h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.search-page-container .frontend-empty p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Search result list: editorial image + story information. */
.search-page-container .archive-list {
  width: 100%;
}

.search-page-container .archive-card {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--border);
}

.search-page-container .archive-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
}

.search-page-container .archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-page-container .archive-card-copy h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(27px, 2.6vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.8px;
}

.search-page-container .archive-card-copy > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

@media (max-width: 900px) {
  .search-page-container .search-results-page {
    padding-top: 40px;
  }

  .search-page-container .archive-card {
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 700px) {
  .search-page-container {
    margin-bottom: 52px;
  }

  .search-page-container .search-results-page {
    padding-top: 30px;
  }

  .search-page-form {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 26px;
    margin-bottom: 30px;
  }

  .search-page-form input,
  .search-page-form button {
    height: 52px;
  }

  .search-page-container .archive-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .search-page-container .frontend-empty {
    padding: 22px 0 40px;
  }
}

/* =========================================================
   CRICSPRINTER HOMEPAGE EDITORIAL V1
   Scoped to .cs-home-v1 to avoid changing other public pages.
========================================================= */

.cs-home-v1 {
  --cs-serif: Georgia, "Times New Roman", Times, serif;
  padding-bottom: 0;
}

.cs-home-v1 .cs-home-section {
  padding: 34px 0 44px;
}

.cs-home-v1 .cs-home-section + .cs-home-section {
  border-top: 1px solid var(--soft-border);
}

.cs-home-v1 img {
  transition: transform 0.45s ease;
}

.cs-home-v1 article:hover img {
  transform: scale(1.035);
}

.cs-home-v1 .cs-home-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.cs-home-v1 .cs-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.cs-home-v1 .cs-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.cs-home-v1 .cs-overlay-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.cs-home-v1 .cs-meta-dot {
  opacity: 0.55;
}

/* HERO */

.cs-home-v1 .cs-hero-section {
  padding-top: 28px;
}

.cs-home-v1 .cs-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: stretch;
}

.cs-home-v1 .cs-hero-slider {
  position: relative;
  min-width: 0;
  height: 500px;
  overflow: hidden;
  background: #111;
}

.cs-home-v1 .cs-hero-slides,
.cs-home-v1 .cs-hero-slide,
.cs-home-v1 .cs-hero-media {
  width: 100%;
  height: 100%;
}

.cs-home-v1 .cs-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease,
    transform 0.8s ease;
}

.cs-home-v1 .cs-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.cs-home-v1 .cs-hero-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.cs-home-v1 .cs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-home-v1 .cs-hero-copy {
  position: absolute;
  z-index: 4;
  left: 38px;
  right: 100px;
  bottom: 34px;
  color: #fff;
}

.cs-home-v1 .cs-hero-copy .cs-home-kicker {
  color: #fff;
  opacity: 0.8;
}

.cs-home-v1 .cs-hero-copy h1 {
  max-width: 850px;
  margin: 8px 0 17px;
  font-family: var(--cs-serif);
  font-size: clamp(31px, 3vw, 47px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.8px;
}

.cs-home-v1 .cs-hero-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.cs-home-v1 .cs-hero-prev {
  left: 16px;
}
.cs-home-v1 .cs-hero-next {
  right: 16px;
}

.cs-home-v1 .cs-hero-dots {
  position: absolute;
  z-index: 11;
  right: 30px;
  bottom: 29px;
  display: flex;
  gap: 8px;
}

.cs-home-v1 .cs-hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.cs-home-v1 .cs-hero-dots button.is-active {
  background: #fff;
}

/* AD PLACEHOLDERS */

.cs-home-v1 .cs-ad-slot {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cs-home-v1 .cs-ad-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
}

.cs-home-v1 .cs-ad-inner {
  flex: 1;
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--soft-background);
  text-align: center;
}

.cs-home-v1 .cs-ad-inner strong {
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.cs-home-v1 .cs-ad-inner span {
  color: var(--muted);
  font-size: 13px;
}

.cs-home-v1 .cs-ad-inner small {
  margin-top: 8px;
  color: #999;
  font-size: 10px;
  letter-spacing: 0.8px;
}

/* HEADINGS */

.cs-home-v1 .cs-section-heading {
  min-height: 48px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
}

.cs-home-v1 .cs-section-heading a,
.cs-home-v1 .cs-section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.cs-home-v1 .cs-section-heading a::after {
  content: "›";
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.cs-home-v1 .cs-section-heading-wide {
  margin-bottom: 20px;
}

/* COMPACT LISTS */

.cs-home-v1 .cs-triple-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
}

.cs-home-v1 .cs-compact-story {
  min-height: 112px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--soft-border);
}

.cs-home-v1 .cs-compact-story:last-child {
  border-bottom: 0;
}

.cs-home-v1 .cs-compact-copy h3 {
  margin: 0 0 9px;
  font-family: var(--cs-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.22;
}

.cs-home-v1 .cs-compact-copy h3 a:hover {
  color: var(--accent);
}

.cs-home-v1 .cs-compact-copy > span,
.cs-home-v1 .cs-card-date {
  color: var(--muted);
  font-size: 11px;
}

.cs-home-v1 .cs-square-thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: var(--soft-background);
}

.cs-home-v1 .cs-square-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY FEATURES */

.cs-home-v1 .cs-overlay-feature {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #111;
}

.cs-home-v1 .cs-overlay-feature-tall {
  min-height: 500px;
}

.cs-home-v1 .cs-overlay-feature-wide {
  min-height: 510px;
}

.cs-home-v1 .cs-overlay-feature-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.cs-home-v1 .cs-overlay-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-home-v1 .cs-overlay-feature-copy {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  bottom: 28px;
  color: #fff;
}

.cs-home-v1 .cs-overlay-date {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.cs-home-v1 .cs-overlay-feature-copy h2 {
  margin: 7px 0 16px;
  font-family: var(--cs-serif);
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.08;
}

/* HOT NOW */

.cs-home-v1 .cs-hot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.cs-home-v1 .cs-hot-image {
  height: 160px;
  display: block;
  overflow: hidden;
  background: var(--soft-background);
}

.cs-home-v1 .cs-hot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-home-v1 .cs-hot-card h3 {
  margin: 13px 0 8px;
  font-family: var(--cs-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.cs-home-v1 .cs-hot-card h3 a:hover {
  color: var(--accent);
}

/* SECTION FOUR */

.cs-home-v1 .cs-two-lists-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: 32px;
}

/* THREE CATEGORY COLUMNS */

.cs-home-v1 .cs-three-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.cs-home-v1 .cs-stack-lead {
  position: relative;
  height: 310px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #111;
}

.cs-home-v1 .cs-stack-lead-image {
  position: absolute;
  inset: 0;
  display: block;
}

.cs-home-v1 .cs-stack-lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-home-v1 .cs-stack-lead-copy {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
}

.cs-home-v1 .cs-stack-lead-copy > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.cs-home-v1 .cs-stack-lead-copy h2 {
  margin: 6px 0 0;
  font-family: var(--cs-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

/* LIVE VIDEO FULL WIDTH */

.cs-live-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 34px max(30px, calc((100vw - 1320px) / 2 + 30px)) 48px;
  background: #111;
  color: #fff;
}

.cs-live-inner {
  width: 100%;
}

.cs-live-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.cs-live-heading .cs-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef3c3c;
  box-shadow: 0 0 0 5px rgba(239, 60, 60, 0.12);
}

.cs-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

.cs-live-player {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.cs-live-player iframe,
.cs-live-player video,
.cs-live-player > img {
  width: 100%;
  height: 560px;
  display: block;
  border: 0;
  object-fit: cover;
}

.cs-live-player-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  padding-top: 90px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
}

.cs-live-player-copy h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.08;
}

.cs-live-player-copy span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.cs-live-playlist {
  min-width: 0;
}

.cs-live-playlist-title {
  margin-bottom: 10px;
  padding: 11px 14px;
  border-radius: 6px;
  background: var(--accent);
  text-align: center;
  font-weight: 800;
}

.cs-live-queue-item {
  min-height: 100px;
  margin-bottom: 8px;
  padding: 9px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  background: #292929;
}

.cs-live-queue-item img {
  width: 86px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.cs-live-queue-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.cs-live-queue-item span {
  display: block;
  margin-top: 5px;
  color: #aaa;
  font-size: 10px;
}

.cs-live-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #171717;
  text-align: center;
}

.cs-live-empty strong {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}

.cs-live-empty span {
  max-width: 620px;
  color: #999;
  font-size: 13px;
}

/* LATEST */

.cs-home-v1 .cs-latest-section {
  padding-top: 48px;
}

.cs-home-v1 .cs-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
}

.cs-home-v1 .cs-latest-row {
  padding: 0 0 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 25px;
  border-bottom: 1px solid var(--soft-border);
}

.cs-home-v1 .cs-latest-image {
  height: 175px;
  overflow: hidden;
  background: var(--soft-background);
}

.cs-home-v1 .cs-latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-home-v1 .cs-latest-copy h2 {
  margin: 5px 0 8px;
  font-family: var(--cs-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.13;
}

.cs-home-v1 .cs-latest-copy h2 a:hover {
  color: var(--accent);
}

.cs-home-v1 .cs-latest-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.cs-home-v1 .cs-latest-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.cs-home-v1 .cs-latest-meta a {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.cs-home-v1 .cs-latest-sidebar {
  min-width: 0;
}

.cs-home-v1 .cs-ad-slot-sidebar {
  min-height: 420px;
}

.cs-home-v1 .cs-popular-box {
  margin-top: 22px;
  border: 1px solid var(--border);
}

.cs-home-v1 .cs-popular-title {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.cs-home-v1 .cs-popular-box article {
  padding: 16px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--soft-border);
}

.cs-home-v1 .cs-popular-box article:last-child {
  border-bottom: 0;
}

.cs-home-v1 .cs-popular-box article > span {
  color: #bbb;
  font-family: Georgia, serif;
  font-size: 22px;
}

.cs-home-v1 .cs-popular-box h3 {
  margin: 0;
  font-family: var(--cs-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

/* DARK MODE */

body.dark-mode .cs-home-v1 .cs-ad-inner {
  background: #171717;
}

body.dark-mode .cs-live-band {
  background: #080808;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .cs-home-v1 .cs-hero-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
  }

  .cs-home-v1 .cs-triple-editorial,
  .cs-home-v1 .cs-two-lists-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-home-v1 .cs-triple-editorial .cs-overlay-feature,
  .cs-home-v1 .cs-two-lists-feature .cs-overlay-feature {
    grid-column: 1 / -1;
    min-height: 460px;
  }

  .cs-home-v1 .cs-hot-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-home-v1 .cs-three-category-grid {
    gap: 26px;
  }

  .cs-live-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .cs-home-v1 .cs-latest-layout {
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .cs-home-v1 .cs-hero-layout,
  .cs-home-v1 .cs-latest-layout {
    grid-template-columns: 1fr;
  }

  .cs-home-v1 .cs-ad-slot-hero {
    display: none;
  }

  .cs-home-v1 .cs-three-category-grid {
    grid-template-columns: 1fr;
  }

  .cs-home-v1 .cs-category-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 24px;
  }

  .cs-home-v1 .cs-category-stack .cs-section-heading {
    grid-column: 1 / -1;
  }

  .cs-home-v1 .cs-category-stack .cs-stack-lead {
    grid-row: span 3;
  }

  .cs-live-grid {
    grid-template-columns: 1fr;
  }

  .cs-live-playlist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cs-live-playlist-title {
    grid-column: 1 / -1;
  }

  .cs-home-v1 .cs-latest-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .cs-home-v1 .cs-popular-box {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .cs-home-v1 .cs-home-section {
    padding: 26px 0 34px;
  }

  .cs-home-v1 .cs-hero-section {
    padding-top: 18px;
  }

  .cs-home-v1 .cs-hero-slider {
    height: 430px;
  }

  .cs-home-v1 .cs-hero-copy {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .cs-home-v1 .cs-hero-copy h1 {
    padding-right: 0;
    font-size: 31px;
  }

  .cs-home-v1 .cs-hero-dots {
    right: 20px;
    bottom: 16px;
  }

  .cs-home-v1 .cs-hero-arrow {
    display: none;
  }

  .cs-home-v1 .cs-triple-editorial,
  .cs-home-v1 .cs-two-lists-feature {
    grid-template-columns: 1fr;
  }

  .cs-home-v1 .cs-triple-editorial .cs-overlay-feature,
  .cs-home-v1 .cs-two-lists-feature .cs-overlay-feature {
    grid-column: auto;
    min-height: 430px;
  }

  .cs-home-v1 .cs-hot-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .cs-home-v1 .cs-hot-strip::-webkit-scrollbar {
    display: none;
  }

  .cs-home-v1 .cs-hot-card {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }

  .cs-home-v1 .cs-category-stack {
    display: block;
  }

  .cs-home-v1 .cs-stack-lead {
    height: 350px;
  }

  .cs-live-band {
    padding: 28px 20px 36px;
  }

  .cs-live-player {
    min-height: 390px;
  }

  .cs-live-player iframe,
  .cs-live-player video,
  .cs-live-player > img {
    height: 390px;
  }

  .cs-live-player-copy {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .cs-live-playlist {
    grid-template-columns: 1fr;
  }

  .cs-home-v1 .cs-latest-row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
  }

  .cs-home-v1 .cs-latest-image {
    height: 100px;
  }

  .cs-home-v1 .cs-latest-copy h2 {
    font-size: 19px;
  }

  .cs-home-v1 .cs-latest-copy p {
    display: none;
  }

  .cs-home-v1 .cs-latest-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cs-home-v1 .cs-hero-slider {
    height: 390px;
  }

  .cs-home-v1 .cs-hero-copy h1 {
    font-size: 27px;
  }

  .cs-home-v1 .cs-overlay-feature-tall,
  .cs-home-v1 .cs-overlay-feature-wide {
    min-height: 390px;
  }

  .cs-home-v1 .cs-compact-story {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .cs-home-v1 .cs-square-thumb {
    width: 68px;
    height: 68px;
  }

  .cs-home-v1 .cs-hot-card {
    flex-basis: 84%;
  }

  .cs-home-v1 .cs-latest-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .cs-home-v1 .cs-latest-image {
    height: 88px;
  }
}

/* =========================================================
   UNIVERSAL BLOCK BUILDER v1.3 — POST SLIDER + ADVERTISEMENT
   IMPORTANT: these rules are scoped to new block class names
   inside .article-content only. Existing frontend selectors
   and existing design rules above are unchanged.
========================================================= */

.article-content .universal-post-slider {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  overflow: hidden;
  clear: both;
  font-family: var(--font-ui);
}

.article-content .universal-post-slider-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.article-content .universal-post-slider-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--soft-border);
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
}

.article-content .universal-post-slider-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--soft-background);
}

.article-content .universal-post-slider-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.article-content .universal-post-slider-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.article-content .universal-post-slider-body {
  display: block;
  padding: 12px 13px 14px;
}

.article-content .universal-post-slider-category {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-content .universal-post-slider-title {
  display: block;
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.article-content .universal-advertisement-block {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 110px;
  margin: 28px 0;
  padding: 18px;
  place-items: center;
  align-content: center;
  gap: 4px;
  clear: both;
  border: 1px solid var(--soft-border);
  background: var(--soft-background);
  text-align: center;
  font-family: var(--font-ui);
}

.article-content .universal-advertisement-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-content .universal-advertisement-placeholder {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .article-content .universal-post-slider-card {
    flex-basis: 78%;
  }
}

/* =========================================================
   UNIVERSAL BLOCK BUILDER v1.4 — POST SLIDER OPTIONS
   Scoped only to .article-content .universal-post-slider.
========================================================= */

.article-content .universal-post-slider {
  position: relative;
  --slider-desktop-cards: 3;
  --slider-tablet-cards: 2;
  --slider-mobile-cards: 1;
  --slider-radius: 0px;
}

.article-content .universal-post-slider-track {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.article-content .universal-post-slider-track::-webkit-scrollbar {
  display: none;
}

.article-content .universal-post-slider-card {
  flex-basis: calc(
    (100% - (16px * (var(--slider-desktop-cards) - 1))) /
      var(--slider-desktop-cards)
  );
  border-radius: var(--slider-radius);
}

.article-content
  .universal-post-slider[data-border="false"]
  .universal-post-slider-card {
  border-color: transparent;
}

.article-content
  .universal-post-slider[data-shadow="true"]
  .universal-post-slider-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-content
  .universal-post-slider[data-image-ratio="4-3"]
  .universal-post-slider-media {
  aspect-ratio: 4 / 3;
}
.article-content
  .universal-post-slider[data-image-ratio="1-1"]
  .universal-post-slider-media {
  aspect-ratio: 1 / 1;
}
.article-content
  .universal-post-slider[data-image-ratio="3-2"]
  .universal-post-slider-media {
  aspect-ratio: 3 / 2;
}

.article-content
  .universal-post-slider[data-card-style="image-left"]
  .universal-post-slider-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

.article-content
  .universal-post-slider[data-card-style="image-left"]
  .universal-post-slider-media {
  height: 100%;
  aspect-ratio: auto;
}

.article-content
  .universal-post-slider[data-card-style="overlay"]
  .universal-post-slider-card {
  position: relative;
  min-height: 250px;
}

.article-content
  .universal-post-slider[data-card-style="overlay"]
  .universal-post-slider-media {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.article-content
  .universal-post-slider[data-card-style="overlay"]
  .universal-post-slider-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.05) 72%
  );
}

.article-content
  .universal-post-slider[data-card-style="overlay"]
  .universal-post-slider-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
}

.article-content
  .universal-post-slider[data-card-style="overlay"]
  .universal-post-slider-title,
.article-content
  .universal-post-slider[data-card-style="overlay"]
  .universal-post-slider-category {
  color: #fff;
}

.article-content
  .universal-post-slider[data-card-style="compact"]
  .universal-post-slider-media {
  aspect-ratio: 3 / 2;
}

.article-content
  .universal-post-slider[data-card-style="compact"]
  .universal-post-slider-body {
  padding: 9px 10px 11px;
}

.article-content
  .universal-post-slider[data-card-style="compact"]
  .universal-post-slider-title {
  font-size: 13px;
}

.article-content
  .universal-post-slider[data-card-style="text-only"]
  .universal-post-slider-media {
  display: none;
}

.article-content
  .universal-post-slider[data-card-style="text-only"]
  .universal-post-slider-card {
  min-height: 120px;
}

.article-content .universal-post-slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--soft-border);
  border-radius: 50%;
  background: var(--background);
  color: var(--text);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.article-content .universal-post-slider-prev {
  left: 8px;
}
.article-content .universal-post-slider-next {
  right: 8px;
}

.article-content .universal-post-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.article-content .universal-post-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.article-content .universal-post-slider-dot.active {
  background: var(--accent);
}

@media (max-width: 1040px) {
  .article-content .universal-post-slider-card {
    flex-basis: calc(
      (100% - (16px * (var(--slider-tablet-cards) - 1))) /
        var(--slider-tablet-cards)
    );
  }
}

@media (max-width: 700px) {
  .article-content .universal-post-slider-card {
    flex-basis: calc(
      (100% - (16px * (var(--slider-mobile-cards) - 1))) /
        var(--slider-mobile-cards)
    );
  }

  .article-content .universal-post-slider-arrow {
    width: 34px;
    height: 34px;
  }

  .article-content
    .universal-post-slider[data-card-style="image-left"]
    .universal-post-slider-card {
    grid-template-columns: 1fr;
  }

  .article-content
    .universal-post-slider[data-card-style="image-left"]
    .universal-post-slider-media {
    aspect-ratio: 16 / 9;
  }
}

/* Deployment completion additions */
.header-live-info,
.header-weather {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.header-translate {
  max-width: 150px;
}
.public-content-protected {
  -webkit-user-select: none;
  user-select: none;
}
.single-post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.single-post-author-bio {
  margin-top: 8px !important;
  line-height: 1.6 !important;
}
.article-tabs-nav button.is-active,
.article-filter-nav button.is-active {
  filter: brightness(0.92);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}
.cookie-consent,
.notification-prompt {
  position: fixed;
  z-index: 9998;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 900px;
  margin: auto;
  padding: 16px 18px;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-consent[hidden],
.notification-prompt[hidden] {
  display: none;
}
.cookie-consent p,
.notification-prompt p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}
.cookie-actions,
.notification-prompt > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-consent button,
.notification-prompt button {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent button:last-child,
.notification-prompt button:first-child {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.notification-prompt {
  bottom: 100px;
  max-width: 680px;
}
.dark-mode .cookie-consent,
.dark-mode .notification-prompt {
  background: #111827;
  border-color: #334155;
  color: #fff;
}
.dark-mode .cookie-consent p,
.dark-mode .notification-prompt p {
  color: #cbd5e1;
}
@media (max-width: 760px) {
  .header-weather,
  .header-translate {
    display: none;
  }
  .cookie-consent,
  .notification-prompt {
    align-items: flex-start;
    flex-direction: column;
    left: 12px;
    right: 12px;
  }
  .notification-prompt {
    bottom: 150px;
  }
}
.footer-social-follow {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.footer-social-follow a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}
.article-poll-block {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.article-poll-block h3 {
  margin: 0 0 14px;
}
.article-poll-options {
  display: grid;
  gap: 9px;
}
.article-poll-options button {
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}
.poll-result {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #e2e8f0;
}
.poll-result span,
.poll-result strong {
  position: relative;
  z-index: 1;
}
.poll-result i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.15);
}

/* =========================================================
   GROUP 4 - HEADER UTILITIES / FOOTER SOCIAL
   Scoped additions only; existing public layout remains unchanged.
========================================================= */
.header-live-info,
.header-weather {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--background);
}
.header-weather-icon {
  font-size: 16px;
  line-height: 1;
}
.header-weather-text {
  white-space: nowrap;
}
.header-translate {
  min-height: 34px;
  display: flex;
  align-items: center;
}
.footer-social-follow a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social-follow a svg path:first-child {
  vector-effect: non-scaling-stroke;
}
.footer-social-follow a .social-icon-fill {
  fill: currentColor;
  stroke: none;
}
@media (max-width: 950px) {
  .header-live-info {
    display: none;
  }
}

/* GROUP 4 refinement: compact live clock, weather link and icon-only translate control */
.header-live-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--background);
}
.header-live-clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 800;
  min-width: 92px;
}
.header-weather {
  text-decoration: none;
  color: inherit;
}
.header-weather:hover {
  border-color: var(--text);
  color: inherit;
}
.header-translate-shell {
  position: relative;
  display: flex;
  align-items: center;
}
.header-translate-popover {
  position: absolute;
  z-index: 1200;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
}
.header-translate-popover[hidden] {
  display: none;
}
.header-translate-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.header-translate {
  max-width: none;
  min-height: 0;
  display: block;
}
.translate-consent-note {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
.header-translate .goog-te-gadget {
  font-size: 0 !important;
}
.header-translate .goog-te-gadget .goog-te-combo {
  width: 100%;
  margin: 0 !important;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
  color: var(--text);
  font-size: 12px;
}
@media (max-width: 950px) {
  .header-live-group {
    display: none;
  }
}
@media (max-width: 760px) {
  .header-translate-shell {
    display: none;
  }
}

/* =========================================================
   WEATHER PAGE
========================================================= */

.weather-main {
  max-width: 1180px;
  margin: auto;
  padding: 34px 20px 60px;
}
.weather-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.weather-heading h1 {
  margin: 0 0 6px;
  font-size: 34px;
}
.weather-heading p {
  margin: 0;
  color: #68707c;
}
.weather-search {
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin-bottom: 18px;
}
.weather-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.weather-search button {
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: #171a1f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.location-results {
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin: -10px 0 18px;
}
.location-results button {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e5e9;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.status {
  color: #68707c;
  font-size: 13px;
  margin: 8px 0 18px;
}
.current {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 12px;
  padding: 20px;
}
.current-temp {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -2px;
}
.current-condition {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 8px;
}
.current-meta {
  color: #68707c;
  line-height: 1.8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.metric {
  padding: 14px;
  border: 1px solid #e2e5e9;
  border-radius: 9px;
}
.metric span {
  display: block;
  color: #68707c;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}
.section-title {
  font-size: 20px;
  margin: 28px 0 12px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.day {
  min-width: 125px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  padding: 14px;
}
.day-date {
  font-size: 12px;
  font-weight: 800;
}
.day-icon {
  font-size: 27px;
  margin: 12px 0;
}
.day-condition {
  font-size: 12px;
  min-height: 30px;
  color: #68707c;
}
.day-temp {
  font-weight: 900;
  margin-top: 8px;
}
.day-rain {
  font-size: 11px;
  color: #68707c;
  margin-top: 6px;
}
.source {
  margin-top: 28px;
  color: #68707c;
  font-size: 11px;
}
.source a {
  color: inherit;
}
@media (max-width: 760px) {
  .weather-heading {
    display: block;
  }
  .current {
    grid-template-columns: 1fr;
  }
  .weather-search {
    flex-wrap: wrap;
  }
  .weather-search button {
    height: 42px;
  }
}

/* =========================================================
   GROUP 4 HEADER / WEATHER CORRECTION
   Keeps LIVE in its existing position; centers day + clock in
   the remaining left-side header space.
========================================================= */
.header-left-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 42px auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.header-live-badge {
  justify-self: start;
  flex: none;
  width: auto;
  min-width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 16px;
}
.header-live-datetime {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.header-live-day {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.header-live-clock {
  display: inline-block;
  min-width: 96px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
@media (max-width: 950px) {
  .header-left-actions {
    display: flex;
    width: auto;
    gap: 18px;
  }
  .header-live-datetime {
    display: none;
  }
}

/* Weather page uses weather-prefixed selectors so generic site rules
   cannot flatten the forecast cards. */
.weather-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 64px;
}
.weather-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.weather-page-heading h1 {
  margin: 0 0 7px;
  font-size: 36px;
  line-height: 1.1;
}
.weather-page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.weather-page-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 9px;
  max-width: 780px;
  margin-bottom: 12px;
}
.weather-page-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}
.weather-page-search button {
  height: 44px;
  padding: 0 17px;
  border: 1px solid #171a1f;
  border-radius: 8px;
  background: #171a1f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.weather-location-results {
  display: grid;
  gap: 7px;
  max-width: 780px;
  margin: 0 0 16px;
}
.weather-location-results[hidden] {
  display: none;
}
.weather-location-results button {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.weather-status {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.weather-current {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-bottom: 30px;
}
.weather-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}
.weather-card .current-temp {
  margin-top: 8px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.weather-card .current-condition {
  margin: 9px 0 6px;
  font-size: 19px;
  font-weight: 800;
}
.weather-card .current-meta {
  color: var(--muted);
  line-height: 1.7;
}
.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.weather-metric {
  padding: 14px;
  border-radius: 9px;
  background: var(--soft-background);
}
.weather-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.weather-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}
.weather-section-title {
  margin: 30px 0 13px;
  font-size: 20px;
}
.weather-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 7px;
}
.weather-day {
  min-width: 125px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
}
.weather-day-date {
  font-size: 12px;
  font-weight: 800;
}
.weather-day-icon {
  margin: 12px 0;
  font-size: 28px;
  line-height: 1;
}
.weather-day-condition {
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.weather-day-temp {
  margin-top: 8px;
  font-weight: 900;
}
.weather-day-rain {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.weather-source {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.weather-source a {
  color: inherit;
}
body.dark-mode .weather-card,
body.dark-mode .weather-day,
body.dark-mode .weather-page-search input,
body.dark-mode .weather-location-results button {
  background: var(--background);
  color: var(--text);
}
@media (max-width: 760px) {
  .weather-main {
    width: min(100% - 24px, 1180px);
    padding-top: 26px;
  }
  .weather-page-heading {
    display: block;
  }
  .weather-page-search {
    grid-template-columns: 1fr 1fr;
  }
  .weather-page-search input {
    grid-column: 1/-1;
  }
  .weather-current {
    grid-template-columns: 1fr;
  }
  .weather-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   GROUP 4 - FOOTER SOCIAL BRAND ICON REFINEMENT
   Footer social section only.
========================================================= */
.footer-social-section {
  margin-top: 18px;
}
.footer-social-title {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.09em;
}
.footer-social-follow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 0;
}
.footer-social-follow a {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.footer-social-follow a:hover {
  color: #111;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
.footer-social-follow a svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social-follow .social-brand-fill {
  fill: currentColor;
  stroke: none;
}
.footer-social-follow .social-play-cutout {
  fill: #101010;
  stroke: none;
}
.footer-social-follow a:hover .social-play-cutout {
  fill: #fff;
}

/* =========================================================
   NOTIFICATION EXPLAINER - COMPACT TOP RIGHT
   Presentation only; notification JavaScript is unchanged.
========================================================= */
.notification-prompt {
  position: fixed;
  z-index: 9998;
  top: 18px;
  right: 18px;
  bottom: auto;
  left: auto;

  width: min(320px, calc(100vw - 36px));
  max-width: 320px;
  margin: 0;
  padding: 13px 14px 12px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 9px;

  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.notification-prompt[hidden] {
  display: none;
}

.notification-prompt > div:first-child {
  min-width: 0;
}

.notification-prompt > div:first-child > *:first-child {
  margin-top: 0;
}

.notification-prompt p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.notification-prompt > div:last-child {
  width: 100%;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.notification-prompt button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

.notification-prompt button:first-child {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.dark-mode .notification-prompt {
  background: #111827;
  border-color: #334155;
  color: #ffffff;
}

.dark-mode .notification-prompt p {
  color: #cbd5e1;
}

@media (max-width: 700px) {
  .notification-prompt {
    top: 12px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-width: none;
    padding: 12px;
  }

  .notification-prompt > div:last-child {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

/* =========================================================
   PUBLIC POST IMAGE CAPTIONS — MEDIA LIBRARY SOURCE
   Caption stays hidden until hover/focus; touch can toggle it.
========================================================= */
.single-post-v2-featured.has-media-caption,
.single-post-v2-content figure.has-media-caption {
  position: relative;
}

.single-post-v2-featured .article-image-caption-info,
.single-post-v2-content figure.has-media-caption > .article-image-caption-info {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font:
    700 15px/26px Arial,
    sans-serif;
  text-align: center;
  cursor: pointer;
}

.single-post-v2-featured .article-image-hover-caption,
.single-post-v2-content
  figure.has-media-caption
  > .article-image-hover-caption {
  position: absolute;
  left: 40px;
  right: auto;
  bottom: 12px;
  width: max-content;
  max-width: calc(100% - 64px);
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  pointer-events: none;
}

.single-post-v2-featured
  > .article-image-caption-info:hover
  + .article-image-hover-caption,
.single-post-v2-featured
  > .article-image-caption-info:focus
  + .article-image-hover-caption,
.single-post-v2-featured.has-media-caption.is-caption-open
  > .article-image-hover-caption,
.single-post-v2-content
  figure.has-media-caption
  > .article-image-caption-info:hover
  + .article-image-hover-caption,
.single-post-v2-content
  figure.has-media-caption
  > .article-image-caption-info:focus
  + .article-image-hover-caption,
.single-post-v2-content
  figure.has-media-caption.is-caption-open
  > .article-image-hover-caption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Public post tags: separate readable items with no comma separators. */
.single-post-v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.single-post-v2-tags > span,
.single-post-v2-tags > a {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.2;
}

/* =========================================================
   PUBLIC POST TAG LINKS
   Managed tags now link to their public archive pages.
========================================================= */
.single-post-v2-tags a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   POLL / VOTE — PUBLIC PRESENTATION
   Supports both legacy text-only polls and avatar polls.
========================================================= */
.article-content .article-poll-block {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft-background);
  font-family: var(--font-ui);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.045);
}
.article-content .article-poll-eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-content .article-poll-block h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.article-content .article-poll-hint {
  margin: 7px 0 17px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
}
.article-content .article-poll-options {
  display: grid;
  gap: 9px;
}
.article-content .article-poll-options button,
.article-content .article-poll-option {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.article-content .article-poll-options button:hover,
.article-content .article-poll-option:hover {
  transform: translateY(-1px);
  border-color: #b8b8b8;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.055);
}
.article-content .article-poll-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: 50%;
  background: #eef0f2;
  color: var(--muted);
  object-fit: cover;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
}
.article-content .article-poll-radio {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}
.article-content .article-poll-option-label {
  min-width: 0;
  flex: 1;
}
.article-content .article-poll-results {
  margin-top: 15px;
  font-family: var(--font-ui);
}
.article-content .poll-result {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e7e9ec;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.35;
}
.article-content .poll-result span,
.article-content .poll-result strong {
  position: relative;
  z-index: 1;
}
.article-content .poll-result i {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(178, 31, 45, 0.13);
}
body.dark-mode .article-content .article-poll-block {
  border-color: #343434;
  background: #181818;
  box-shadow: none;
}
body.dark-mode .article-content .article-poll-options button,
body.dark-mode .article-content .article-poll-option {
  border-color: #3b3b3b;
  background: #202020;
  color: #f5f5f5;
}
body.dark-mode .article-content .article-poll-options button:hover,
body.dark-mode .article-content .article-poll-option:hover {
  border-color: #555;
  background: #252525;
}
body.dark-mode .article-content .article-poll-avatar {
  border-color: #3b3b3b;
  background: #2a2a2a;
  color: #c9c9c9;
}
body.dark-mode .article-content .poll-result {
  background: #292929;
  color: #f5f5f5;
}
@media (max-width: 640px) {
  .article-content .article-poll-block {
    margin: 26px 0;
    padding: 18px 15px;
  }
  .article-content .article-poll-options button,
  .article-content .article-poll-option {
    min-height: 58px;
    padding: 8px 10px;
    gap: 10px;
  }
  .article-content .article-poll-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .article-content .article-poll-radio {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

/* =========================================================
   POLL / VOTE v2 — INLINE RESULTS
   Percentage + vote count stay inside each option row.
========================================================= */
.article-content .article-poll-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.article-content .article-poll-option::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: var(--poll-result-width, 0%);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  pointer-events: none;
  transition: width 0.28s ease;
}
.article-content .article-poll-option-result {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
  padding-left: 12px;
  color: var(--text);
  font-family: var(--font-ui);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.article-content .article-poll-option-result strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.article-content .article-poll-option-result small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.article-content .article-poll-results[hidden] {
  display: none !important;
}
.article-content .article-poll-results:not([hidden]) {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--soft-background);
  color: var(--muted);
  font-size: 12px;
}
/* Old result rows are suppressed if cached/legacy markup briefly exists. */
.article-content .article-poll-results .poll-result {
  display: none !important;
}
body.dark-mode .article-content .article-poll-option::before {
  background: rgba(255, 255, 255, 0.07);
}
@media (max-width: 640px) {
  .article-content .article-poll-option-result {
    gap: 5px;
    padding-left: 7px;
  }
  .article-content .article-poll-option-result strong {
    font-size: 12px;
  }
  .article-content .article-poll-option-result small {
    font-size: 9px;
  }
}

/* =========================================================
   LACUDE PREMIUM EDITORIAL WORDMARK
   Scoped only to the public LACUDE masthead/loader/mobile logo.
   ========================================================= */
.lacude-wordmark {
  position: relative;
  display: inline-block;
  color: #17191c;
  font-family:
    "Baskerville", "Baskerville Old Face", "Times New Roman", Georgia, serif !important;
  font-weight: 700 !important;
  font-style: normal;
  line-height: 0.88;
  letter-spacing: -0.055em !important;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

.public-logo.lacude-wordmark {
  font-size: clamp(42px, 4.35vw, 62px);
}

.public-header.is-sticky .public-logo.lacude-wordmark {
  font-size: 40px;
}

.mobile-logo.lacude-wordmark {
  font-family:
    "Baskerville", "Baskerville Old Face", "Times New Roman", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.055em !important;
}

.site-loader-logo.lacude-wordmark {
  font-family:
    "Baskerville", "Baskerville Old Face", "Times New Roman", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.055em !important;
}

.lacude-wordmark::after {
  content: "";
  display: block;
  width: 34%;
  height: 2px;
  margin: 0.14em auto 0;
  background: var(--accent);
}

body.dark-mode .lacude-wordmark {
  color: #ffffff;
}

@media (max-width: 700px) {
  .public-logo.lacude-wordmark {
    font-size: 42px;
  }

  .lacude-wordmark::after {
    height: 1.5px;
  }
}

/* =========================================================
   STATIC PAGE TITLE RULE
   Match underline width to the complete page title.
========================================================= */

.static-page-hero-editorial .static-page-heading-row {
  width: fit-content;
  max-width: 100%;
}

.static-page-hero-editorial .static-page-title-rule {
  display: block;
  width: 100%;
  max-width: 100%;
}
/* =========================================================
   PUBLIC BREADCRUMB SEPARATOR
========================================================= */

.breadcrumb-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}
/* =========================================================
   PUBLIC EDITORIAL TYPOGRAPHY
   Font families intentionally remain unchanged.
========================================================= */

/* Normal body text */
.article-content,
.static-page-content {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

/* Paragraph spacing */
.article-content p,
.static-page-content p {
  margin-top: 0;
  margin-bottom: 22px;
}

/* Clear Bold / Normal distinction */
.article-content strong,
.article-content b,
.static-page-content strong,
.static-page-content b {
  color: #222222;
  font-weight: 700;
}

/* Heading hierarchy */
.article-content h1,
.static-page-content h1 {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 700;
}

.article-content h2,
.static-page-content h2 {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 700;
}

.article-content h3,
.static-page-content h3 {
  font-size: 25px;
  line-height: 1.26;
  font-weight: 700;
}

.article-content h4,
.static-page-content h4 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
}

.article-content h5,
.static-page-content h5 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.article-content h6,
.static-page-content h6 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}
.article-content,
.static-page-content {
  color: #444444;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}
/* =========================================================
   FEATURED VIDEO PLAYER / UP NEXT
========================================================= */
.cs-watch-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 42px max(30px, calc((100vw - 1320px) / 2 + 30px)) 48px;
  background: #0d0e10;
  color: #fff;
}
.cs-watch-inner {
  width: 100%;
}
.cs-watch-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.cs-watch-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.cs-watch-header h2 {
  margin: 0;
  font-family: var(--cs-serif, Georgia, serif);
  font-size: 30px;
  font-weight: 500;
}
.cs-watch-count {
  color: #888;
  font-size: 12px;
}
.cs-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.cs-watch-feature {
  min-width: 0;
  background: #151619;
  border: 1px solid #25262a;
  border-radius: 12px;
  overflow: hidden;
}
.cs-watch-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.cs-watch-player iframe,
.cs-watch-player video,
.cs-watch-player img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}
.cs-watch-copy {
  padding: 20px 22px 22px;
}
.cs-watch-type {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.cs-watch-copy h3 {
  margin: 0;
  font-family: var(--cs-serif, Georgia, serif);
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.12;
}
.cs-watch-copy p {
  margin: 8px 0 0;
  color: #96989e;
  font-size: 12px;
}
.cs-watch-playlist {
  min-width: 0;
  border: 1px solid #25262a;
  border-radius: 12px;
  background: #151619;
  overflow: hidden;
}
.cs-watch-playlist-head {
  padding: 15px 16px;
  border-bottom: 1px solid #292a2e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cs-watch-queue {
  padding: 7px;
}
.cs-watch-item {
  width: 100%;
  padding: 9px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}
.cs-watch-item:hover,
.cs-watch-item.is-active {
  background: #24262a;
}
.cs-watch-item.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}
.cs-watch-thumb {
  position: relative;
  height: 70px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #080808;
}
.cs-watch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-watch-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 20px;
}
.cs-watch-thumb-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.76);
  font-size: 9px;
}
.cs-watch-item-copy {
  min-width: 0;
}
.cs-watch-item-copy small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.cs-watch-item-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-family: var(--cs-serif, Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.22;
}
.cs-watch-item-copy em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #888;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-watch-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #28292d;
  border-radius: 12px;
  background: #151619;
}
.cs-watch-empty strong {
  font-family: var(--cs-serif, Georgia, serif);
  font-size: 28px;
  font-weight: 500;
}
.cs-watch-empty span {
  color: #888;
  font-size: 12px;
}
body.dark-mode .cs-watch-band {
  background: #08090a;
}
@media (max-width: 900px) {
  .cs-watch-layout {
    grid-template-columns: 1fr;
  }
  .cs-watch-playlist {
    background: transparent;
    border: 0;
  }
  .cs-watch-playlist-head {
    padding-left: 0;
    border: 0;
  }
  .cs-watch-queue {
    display: flex;
    gap: 10px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cs-watch-queue::-webkit-scrollbar {
    display: none;
  }
  .cs-watch-item {
    flex: 0 0 270px;
    background: #18191c;
  }
  .cs-watch-item.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }
}
@media (max-width: 700px) {
  .cs-watch-band {
    padding: 30px 16px 36px;
  }
  .cs-watch-header {
    align-items: center;
  }
  .cs-watch-header h2 {
    font-size: 25px;
  }
  .cs-watch-copy {
    padding: 16px;
  }
  .cs-watch-item {
    flex-basis: 240px;
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .cs-watch-thumb {
    height: 62px;
  }
}

/* LACUDE mobile menu favicon */

.mobile-menu-header .mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-menu-header .mobile-logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.mobile-menu-header .mobile-logo span {
    display: inline-block;
}


/* Header weather: condition-based colors */

.header-weather {
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
}

.header-weather.weather-clear {
  background: #fff4d8;
  color: #865300;
  border-color: #f2d18c;
}

.header-weather.weather-cloudy {
  background: #eaf2fa;
  color: #345777;
  border-color: #bfd3e7;
}

.header-weather.weather-rain {
  background: #e0f0ff;
  color: #155b94;
  border-color: #a8cdef;
}

.header-weather.weather-storm {
  background: #f0e7ff;
  color: #623b94;
  border-color: #d2b9f0;
}

.header-weather.weather-snow {
  background: #e6f8ff;
  color: #25647b;
  border-color: #b8e1f0;
}

.header-weather.weather-fog {
  background: #eff1f3;
  color: #52606d;
  border-color: #d1d7dd;
}

/* Dark mode */

body.dark-mode .header-weather.weather-clear {
  background: #453518;
  color: #ffe3a1;
  border-color: #775b29;
}

body.dark-mode .header-weather.weather-cloudy {
  background: #253a50;
  color: #c8e3fc;
  border-color: #3d5870;
}

body.dark-mode .header-weather.weather-rain {
  background: #173c59;
  color: #b4dcff;
  border-color: #315e7f;
}

body.dark-mode .header-weather.weather-storm {
  background: #3a2855;
  color: #e3ccff;
  border-color: #644682;
}

body.dark-mode .header-weather.weather-snow {
  background: #193e4c;
  color: #c2f1ff;
  border-color: #3b6876;
}

body.dark-mode .header-weather.weather-fog {
  background: #333a41;
  color: #e0e6eb;
  border-color: #59636d;
}

