/*
 * Project Universal — editorial design system
 *
 * A restrained sibling to Stay Near Universal: shared navy/red brand cues,
 * generous spacing and rounded surfaces, with a more editorial presentation.
 */

:root {
  --theme-color-background: #ffffff;
  --theme-color-surface: #ffffff;
  --theme-color-surface-subtle: #f0f3f8;
  --theme-color-surface-strong: #e8edf5;
  --theme-color-text: #0b234b;
  --theme-color-text-muted: #5f6f88;
  --theme-color-border: #dfe5ee;
  --theme-color-brand-primary: #0b2a59;
  --theme-color-brand-secondary: #d6002f;
  --theme-color-action: #0b2a59;
  --theme-color-focus: #1674d1;
  --theme-color-success: #14764a;
  --theme-color-danger: #a90d29;
  --theme-font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --theme-font-heading: "Sora", "Manrope", system-ui, sans-serif;
  --theme-radius-sm: 8px;
  --theme-radius-md: 14px;
  --theme-radius-lg: 22px;
  --theme-radius-xl: 30px;
  --theme-radius-pill: 999px;
  --theme-shadow-sm: 0 1px 2px rgba(11, 35, 75, 0.04);
  --theme-shadow-md: 0 14px 40px rgba(11, 35, 75, 0.07);
  --theme-shadow-lg: 0 24px 64px rgba(11, 35, 75, 0.11);
  --theme-space-page: clamp(1rem, 4vw, 3rem);
  --theme-content-width: 1240px;

  /* Compatibility bridge for legacy components. */
  --site-background-color: var(--theme-color-background);
  --site-corner-radius: var(--theme-radius-md);
  --shell-width: min(92vw, var(--theme-content-width));
  --blue-700: var(--theme-color-action);
  --red-700: var(--theme-color-brand-secondary);
  --red-800: var(--theme-color-danger);
  --text: var(--theme-color-text);
  --text-muted: var(--theme-color-text-muted);
  --muted: var(--theme-color-text-muted);
  --gray-light: var(--theme-color-surface-subtle);
  --gray-border: var(--theme-color-border);
  --line: var(--theme-color-border);
  --panel: var(--theme-color-surface);
  --panel-strong: var(--theme-color-surface);
  --white: #ffffff;
}

html[data-theme="dark"],
body[data-theme="dark"] {
  --theme-color-background: #07111f;
  --theme-color-surface: #0c1a2e;
  --theme-color-surface-subtle: #12223a;
  --theme-color-surface-strong: #172a46;
  --theme-color-text: #edf3ff;
  --theme-color-text-muted: #a9b7cc;
  --theme-color-border: #243752;
  --theme-color-brand-primary: #edf3ff;
  --theme-color-brand-secondary: #ff4267;
  --theme-color-action: #78a8ff;
  --theme-color-focus: #88b6ff;
  --theme-shadow-md: 0 18px 44px rgba(0, 0, 0, 0.24);
  --theme-shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"],
body:not(.admin-page):not(.admin-wp-look)[data-theme="dark"] {
  background: #07111f !important;
}

html {
  scroll-behavior: smooth;
  background: var(--theme-color-background);
}

body:not(.admin-wp-look) {
  --shell-width: min(92vw, var(--theme-content-width)) !important;
  min-height: 100vh;
  font-family: var(--theme-font-body);
  color: var(--theme-color-text);
  background: var(--theme-color-background) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home:not(.admin-wp-look) {
  --shell-width: min(92vw, var(--theme-content-width)) !important;
}

body:not(.admin-wp-look)::before,
body:not(.admin-wp-look)::after {
  display: none !important;
}

body:not(.admin-wp-look) h1,
body:not(.admin-wp-look) h2,
body:not(.admin-wp-look) h3,
body:not(.admin-wp-look) h4,
body:not(.admin-wp-look) h5,
body:not(.admin-wp-look) h6 {
  font-family: var(--theme-font-heading);
  color: var(--theme-color-text);
  text-wrap: balance;
}

body:not(.admin-wp-look) h1 {
  font-size: clamp(2.15rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body:not(.admin-wp-look) h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

body:not(.admin-wp-look) h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

body:not(.admin-wp-look) p {
  color: var(--theme-color-text-muted);
}

body:not(.admin-wp-look) a,
body:not(.admin-wp-look) button,
body:not(.admin-wp-look) input,
body:not(.admin-wp-look) textarea,
body:not(.admin-wp-look) select {
  font-family: inherit;
}

body:not(.admin-wp-look) :focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 3px;
}

::selection {
  color: #ffffff;
  background: var(--theme-color-brand-secondary);
}

.site-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.72rem 1rem;
  border-radius: var(--theme-radius-pill);
  color: #ffffff;
  background: #0b2a59;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 140ms ease;
}

.site-skip-link:focus {
  transform: translateY(0);
}

/* Header */
.home-header,
body[data-theme="dark"] .home-header {
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  padding: 0;
  background: color-mix(in srgb, var(--theme-color-surface) 92%, transparent);
  border-bottom: 1px solid var(--theme-color-border);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.home-header-shell,
body[data-theme="dark"] .home-header-shell {
  width: 100%;
  max-width: none;
  min-height: 66px;
  margin: 0;
  padding: 0 var(--theme-space-page);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.home-header-shell .home-header-inner,
.home-header-inner,
body[data-theme="dark"] .home-header-inner {
  width: min(var(--theme-content-width), 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: transparent;
  backdrop-filter: none;
}

.home-header-brand {
  flex: 0 1 auto;
  min-width: 0;
  gap: 0;
  color: var(--theme-color-text);
  text-decoration: none;
}

.home-header-brand-lockup {
  display: grid;
  justify-items: start;
  gap: 0.12rem;
}

.home-header-master-brand {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--theme-font-heading);
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.home-header-master-brand-project,
body[data-theme="dark"] .home-header-master-brand-project {
  color: #282e6e;
}

.home-header-master-brand-universal,
body[data-theme="dark"] .home-header-master-brand-universal {
  color: #ce1420;
}

.home-header-tagline,
body[data-theme="dark"] .home-header-tagline {
  margin-top: 0.12rem;
  color: #52627d;
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.home-header-actions {
  margin-left: auto;
  gap: 0.75rem;
}

.home-header-desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.home-header-nav-link,
.home-header-account-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 0.82rem;
  border-radius: var(--theme-radius-pill);
  color: var(--theme-color-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.home-header-nav-link:hover,
.home-header-nav-link:focus-visible,
.home-header-nav-link--active {
  color: var(--theme-color-text);
  background: var(--theme-color-surface-subtle);
}

.home-header-nav-link--stay {
  margin-left: 0.35rem;
  padding-inline: 1rem;
  color: #ffffff;
  background: var(--theme-color-brand-secondary);
}

.home-header-nav-link--stay:hover,
.home-header-nav-link--stay:focus-visible {
  color: #ffffff;
  background: var(--theme-color-danger);
  transform: translateY(-1px);
}

.home-header-account-link {
  margin-left: 0.25rem;
  color: var(--theme-color-text);
  border: 1px solid var(--theme-color-border);
  background: var(--theme-color-surface);
}

.home-header-account-link:hover,
.home-header-account-link:focus-visible {
  border-color: var(--theme-color-text);
}

.home-header-account-link--signin {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  color: #2457d8;
  background: #ffffff;
  border-color: rgba(16, 43, 102, 0.08);
}

.home-header-signin-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-header-actions .mobile-menu-toggle {
  display: none !important;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--theme-color-border);
  border-radius: 50%;
  background: var(--theme-color-surface);
  box-shadow: none;
}

.mobile-menu-toggle span {
  width: 17px;
  height: 2px;
  background: var(--theme-color-text);
}

.home-mobile-menu-panel,
body[data-theme="dark"] .home-mobile-menu-panel {
  width: min(90vw, 390px);
  padding: 1.25rem;
  background: var(--theme-color-surface);
  border-left: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-xl) 0 0 var(--theme-radius-xl);
  box-shadow: var(--theme-shadow-lg);
}

.home-mobile-menu-link,
body[data-theme="dark"] .home-mobile-menu-link {
  min-height: 50px;
  padding: 0.78rem 0;
  color: var(--theme-color-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--theme-color-border);
  border-radius: 0;
  font-size: 0.98rem;
}

.home-mobile-menu-link:hover,
.home-mobile-menu-link:focus-visible,
body[data-theme="dark"] .home-mobile-menu-link:hover,
body[data-theme="dark"] .home-mobile-menu-link:focus-visible {
  color: var(--theme-color-brand-secondary);
  background: transparent;
}

.home-mobile-menu-link--accent,
body[data-theme="dark"] .home-mobile-menu-link--accent {
  color: var(--theme-color-text);
  background: transparent;
  border-color: var(--theme-color-border);
}

.home-mobile-menu [data-theme-toggle] {
  display: flex !important;
}

.home-mobile-menu-group-label {
  color: var(--theme-color-text-muted);
}

.home-mobile-menu-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  color: var(--theme-color-text);
  background: var(--theme-color-surface-subtle);
  border-color: transparent;
}

/* Shared layout */
.shell,
body.home > .shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 3.5rem) 0 clamp(3rem, 7vw, 6rem);
  gap: clamp(1.35rem, 3vw, 2.6rem);
}

/* Match the Stay Near Universal desktop content rails exactly. */
@media (min-width: 769px) {
  body:not(.admin-page) .home-header.home-header--bridge .home-header-shell {
    width: var(--shell-width);
    max-width: var(--theme-content-width);
    margin-inline: auto;
    padding-inline: 0;
  }

  body:not(.admin-page) .home-header.home-header--bridge .home-header-inner {
    width: 100%;
    max-width: 100%;
  }

  body:not(.admin-wp-look):not(.login-page):not(.register-page):not(.forgot-password-page):not(.account-page):not(.account-delete-page) > .site-public-layout,
  body.news-article-page:not(.admin-page) .site-public-layout,
  body.home:not(.admin-wp-look) > main.shell,
  body.news-article-page:not(.admin-page) > main.shell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.site-public-layout,
body.news-article-page .site-public-layout {
  width: var(--shell-width);
  max-width: var(--theme-content-width);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-public-layout--after-hero {
  width: var(--shell-width);
  max-width: var(--theme-content-width);
  margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.site-public-sidebar,
body.home .site-public-sidebar {
  gap: 1rem;
  padding-top: 0;
}

.hero,
body.home .hero {
  display: block;
  padding: clamp(2rem, 5vw, 4.8rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 16%, rgba(214, 0, 47, 0.38), transparent 28%),
    linear-gradient(135deg, #071b3b 0%, #0b2a59 68%, #153d77 100%);
  border: 0;
  border-radius: var(--theme-radius-xl);
  overflow: hidden;
  box-shadow: var(--theme-shadow-md);
}

body:not(.admin-wp-look) .hero h1,
body:not(.admin-wp-look) .hero h2,
body:not(.admin-wp-look) .hero p,
body:not(.admin-wp-look) .hero .intro {
  max-width: 820px;
  color: #ffffff;
}

.hero h1,
body.home .hero h1 {
  margin: 0 0 1rem;
}

.hero .intro,
.hero p.intro {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--theme-color-brand-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero .eyebrow {
  color: #ff9bb0;
}

.content-card,
.news-article-page-card,
.news-article-body-card,
.news-article-comments-card,
.news-article-side-panel {
  background: var(--theme-color-surface);
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-sm);
}

.content-section {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-bottom-color: var(--theme-color-border);
}

.content-section h2 {
  margin-bottom: 0.9rem;
}

.content-section p {
  max-width: 76ch;
}

/* Homepage */
body.home {
  --home-news-heading-font: var(--theme-font-heading);
  --home-news-heading-weight: 750;
  font-family: var(--theme-font-body);
}

body.home > .shell {
  padding-top: clamp(1.3rem, 3vw, 2.6rem);
}

.home-seo-banner {
  margin: 0;
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-sm);
}

.home-seo-banner-link {
  border-radius: inherit;
  overflow: hidden;
}

.home-seo-banner img {
  width: 100%;
  aspect-ratio: 3.37 / 1;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.home-seo-banner-link:hover img,
.home-seo-banner-link:focus-visible img {
  transform: scale(1.008);
  filter: saturate(1.04);
}

body.home .news-lead-grid {
  width: 100%;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
}

.news-lead-story,
.home-feature-card,
.news-article-card {
  overflow: hidden;
  background: var(--theme-color-surface);
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-lead-story:hover,
.home-feature-card:hover,
.news-article-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--theme-color-text) 22%, var(--theme-color-border));
  box-shadow: var(--theme-shadow-md);
}

.news-lead-image,
.home-feature-card-image,
.news-article-card-image,
body.home .home-homepage-section--grid .news-article-card-image,
body.home .home-homepage-section--grid .news-article-card-image img {
  border-radius: 0;
  background: var(--theme-color-surface-subtle);
}

.news-lead-copy {
  padding: clamp(1.15rem, 2.6vw, 2rem);
}

.news-lead-copy h2 {
  font-family: var(--theme-font-heading);
  font-size: clamp(1.35rem, 2.8vw, 2.45rem);
  font-weight: 750;
  line-height: 1.06;
}

.news-lead-date-chip,
.home-feature-card-copy .post-card-date,
.news-article-card-copy .post-card-date {
  color: var(--theme-color-text-muted);
}

.news-lead-read-more {
  color: var(--theme-color-brand-secondary);
}

body.news-index-page .news-index-archive {
  display: grid;
  gap: 1rem;
  padding: 0;
}

body.news-index-page .news-index-archive .section-heading {
  margin: 0;
}

body.news-index-page .news-index-list {
  display: grid;
  gap: 1rem;
}

body.news-index-page .news-index-list-item {
  overflow: hidden;
  background: var(--theme-color-surface);
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.news-index-page .news-index-list-item:hover,
body.news-index-page .news-index-list-item:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--theme-color-text) 22%, var(--theme-color-border));
  box-shadow: var(--theme-shadow-md);
}

body.news-index-page .news-index-list-link {
  display: grid;
  grid-template-columns: clamp(240px, 31%, 360px) minmax(0, 1fr);
  min-height: 205px;
  color: inherit;
  text-decoration: none;
}

body.news-index-page .news-index-list-image {
  min-width: 0;
  overflow: hidden;
  background: var(--theme-color-surface-subtle);
}

body:not(.admin-page).news-index-page .news-index-list-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover !important;
  object-position: center;
  transition: transform 300ms ease;
}

body.news-index-page .news-index-list-item:hover .news-index-list-image img,
body.news-index-page .news-index-list-item:focus-within .news-index-list-image img {
  transform: scale(1.025);
}

body.news-index-page .news-index-list-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

body.news-index-page .news-index-list-copy h2,
body.news-index-page .news-index-list-copy p,
body.news-index-page .news-index-list-meta {
  margin: 0;
}

body.news-index-page .news-index-list-copy h2 {
  font-family: var(--theme-font-heading);
  font-size: clamp(1.12rem, 2.1vw, 1.65rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

body.news-index-page .news-index-list-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--theme-color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.news-index-page .news-index-list-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.2rem;
  color: var(--theme-color-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  body.news-index-page .news-index-list {
    gap: 0.75rem;
  }

  body.news-index-page .news-index-list-link {
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    min-height: 142px;
  }

  body:not(.admin-page).news-index-page .news-index-list-image img {
    min-height: 142px;
  }

  body.news-index-page .news-index-list-copy {
    gap: 0.38rem;
    padding: 0.85rem;
  }

  body.news-index-page .news-index-list-copy h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.news-index-page .news-index-list-copy p,
  body.news-index-page .news-index-list-meta span:last-child {
    display: none;
  }

  body.news-index-page .news-index-list-meta {
    font-size: 0.65rem;
  }
}

.home-feature-list {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-feature-card-link {
  grid-template-columns: minmax(125px, 38%) minmax(0, 1fr);
  gap: 0;
  height: 100%;
}

.home-feature-card-image {
  min-height: 100%;
  aspect-ratio: auto;
}

.home-feature-card-copy {
  align-content: center;
  gap: 0.7rem;
  padding: 1.1rem;
}

.home-feature-card-copy h3 {
  min-height: 0;
  font-family: var(--theme-font-heading);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 750;
}

.home-latest-videos-band {
  margin: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: var(--theme-radius-xl);
  background: #081b39;
}

.home-latest-videos-band::before {
  display: none;
}

.home-latest-videos-band .homepage-videos-shell,
body.home .site-public-layout--after-hero .homepage-videos-shell {
  padding: 0;
}

body.home > .shell > .home-seo-banner,
body.home > .shell > .hero,
body.home > .shell > .news-lead-grid,
body.home > .shell > .content-section,
body.home > .shell > .site-public-layout {
  left: auto;
  right: auto;
  width: 100% !important;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: none;
  box-sizing: border-box;
}

.homepage-videos-track {
  gap: 1rem;
}

.home-latest-videos-band .news-article-card,
.home-latest-videos-band .news-article-card:hover {
  border: 0;
  border-radius: var(--theme-radius-md);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-latest-videos-band .news-article-card-link,
.home-latest-videos-band .news-article-card-image {
  border-radius: var(--theme-radius-md);
}

.home-latest-videos-band .news-article-card-copy h3 {
  color: #ffffff;
  text-shadow: none;
}

.home-latest-videos-band .news-article-card-copy .post-card-date {
  color: rgba(255, 255, 255, 0.62);
}

body.home .home-homepage-section--grid {
  padding: 0;
}

body.home .home-homepage-section--grid .homepage-section-grid--related,
.homepage-section-grid--related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.home .home-homepage-section--grid .news-article-card {
  overflow: hidden;
  background: var(--theme-color-surface);
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-sm);
}

body.home .home-homepage-section--grid .news-article-card-copy {
  min-height: 0;
  padding: 1.1rem;
}

body.home .home-homepage-section--grid .news-article-card-copy h3 {
  min-height: 0;
  font-size: 1rem;
}

/* Sidebar */
.site-public-sidebar .news-article-side-card,
.site-public-sidebar .news-sidebar-youtube,
.site-public-sidebar .news-sidebar-instagram,
.site-public-sidebar .news-sidebar-comments-list,
.site-public-sidebar .news-sidebar-short-media,
.site-public-sidebar .news-sidebar-youtube-link,
.site-public-sidebar .news-sidebar-youtube-thumb,
.site-public-sidebar .news-sidebar-youtube-thumb img,
.site-public-sidebar .news-sidebar-short-media img {
  border-radius: var(--theme-radius-md) !important;
}

.news-article-side-card,
.news-sidebar-youtube,
.news-sidebar-instagram,
.news-sidebar-comments-list {
  background: var(--theme-color-surface);
  border-color: var(--theme-color-border);
  box-shadow: var(--theme-shadow-sm);
}

.site-public-sidebar .news-related-link__thumb {
  background: var(--theme-color-surface-subtle) !important;
}

.site-public-sidebar .news-related-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
}

/* Forms, buttons and utility links */
.footer-link,
.back-link,
.button-link,
.contact-form button,
.form-actions button,
.form-actions input[type="submit"] {
  min-height: 44px;
  border-radius: var(--theme-radius-pill);
  font-weight: 800;
}

.footer-link,
.button-link,
.contact-form button,
.form-actions button,
.form-actions input[type="submit"] {
  color: #ffffff;
  background: var(--theme-color-brand-secondary);
  border-color: var(--theme-color-brand-secondary);
}

.footer-link:hover,
.footer-link:focus-visible,
.button-link:hover,
.button-link:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible,
.form-actions button:hover,
.form-actions button:focus-visible {
  color: #ffffff;
  background: var(--theme-color-danger);
  border-color: var(--theme-color-danger);
  transform: translateY(-1px);
}

.back-link {
  color: var(--theme-color-text);
  background: transparent;
  border-color: var(--theme-color-border);
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
  background: var(--theme-color-text);
  border-color: var(--theme-color-text);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select {
  min-height: 48px;
  color: var(--theme-color-text);
  background: var(--theme-color-surface);
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-sm);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--theme-color-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color-focus) 16%, transparent);
}

.notice {
  border-color: var(--theme-color-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-color-surface-subtle);
}

/* Store */
.store-product-grid {
  gap: 1rem;
}

.store-product-card,
.store-sidebar-cart,
.store-product-detail,
.store-basket-item,
.store-checkout-layout > * {
  border-color: var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
  background: var(--theme-color-surface);
  box-shadow: var(--theme-shadow-sm);
}

.store-product-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--theme-shadow-md);
}

.store-product-card img,
.store-product-detail-media img {
  border-radius: 0;
}

/* Article and policy pages */
body.news-article-page .news-article-title-card {
  background: transparent;
}

@media (min-width: 1051px) {
  body.news-article-page .news-article-page-card {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr) !important;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    row-gap: 0;
    align-items: start;
    width: 100%;
    max-width: none;
  }

  body.news-article-page .news-article-page-header,
  body.news-article-page .news-article-media-card {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: none;
  }

  body.news-article-page .news-article-body-card,
  body.news-article-page .news-article-comments-card,
  body.news-article-page .news-article-topic-card,
  body.news-article-page .news-article-read-next-card {
    grid-column: 1 !important;
    width: 100%;
    max-width: none;
  }

  body.news-article-page .news-article-side-column {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 3 / span 4 !important;
    width: 100%;
    max-width: none;
    margin-top: 0;
    align-self: start;
    position: sticky;
    top: 5.5rem;
    min-width: 0;
  }

  body.news-article-page .news-article-side-column .news-sidebar-youtube-link,
  body.news-article-page .news-article-side-column .news-related-link {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
    width: 100%;
  }

  body.news-article-page .news-article-side-column .news-sidebar-youtube-thumb,
  body.news-article-page .news-article-side-column .news-related-link__thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9;
  }

  body.news-article-page .news-article-side-column .news-sidebar-youtube-body,
  body.news-article-page .news-article-side-column .news-related-link__body {
    width: 100%;
  }

  body.news-article-page .news-article-read-next-card .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  body.news-article-page .news-article-read-next-card .news-article-card-link {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
    height: 100%;
  }

  body.news-article-page .news-article-read-next-card .news-article-card-image {
    width: 100% !important;
    aspect-ratio: 16 / 9;
  }

  body.news-article-page .news-article-read-next-card .news-article-card-copy {
    width: 100%;
  }
}

body.news-article-page .news-article-title-card h1 {
  color: var(--theme-color-text);
}

body.news-article-page .news-article-media-card .gallery-card,
body.news-article-page .news-article-media-card .news-article-gallery__figure,
body.news-article-page .news-article-media-card .news-article-gallery__tile {
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-md);
}

.legal-page-card,
.privacy-page-card,
.cookies-page-card {
  overflow: hidden;
  background: var(--theme-color-surface);
  border: 1px solid var(--theme-color-border);
  border-radius: var(--theme-radius-lg);
}

.legal-page-card .hero,
.privacy-page-card .hero,
.cookies-page-card .hero {
  border-radius: 0;
  box-shadow: none;
}

/* Footer */
.site-footer,
body[data-theme="dark"] .site-footer {
  width: 100%;
  margin: 3rem 0 0;
  padding: 0;
  color: #dce5f5;
  background: #071a3d;
  border: 0;
  border-top: 3px solid #d4142a;
  border-radius: 0;
  box-shadow: none;
}

.site-footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 3.25rem clamp(1rem, 5vw, 4rem) 2.8rem;
  box-sizing: border-box;
}

.site-footer-grid {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.75fr) repeat(3, minmax(130px, 0.8fr));
  gap: 2rem 4rem;
  align-items: start;
  text-align: left;
}

.site-footer-contact,
.site-footer-column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
}

.site-footer-contact {
  max-width: 320px;
}

.site-footer-project-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  width: fit-content;
  margin: 0;
  padding: 0;
  font-family: var(--theme-font-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-footer-project-brand__project {
  color: #ffffff;
}

.site-footer-project-brand__universal {
  color: #f01848;
}

.site-footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
}

.site-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: none;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.site-footer-social-link:hover,
.site-footer-social-link:focus-visible {
  background: #f1f6ff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.site-footer-social-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.site-footer-description {
  margin: 0;
  max-width: 38ch;
  color: rgba(220, 229, 245, 0.76);
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-footer-stay-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer-stay-link:hover,
.site-footer-stay-link:focus-visible {
  color: #ff8da3;
}

body:not(.admin-wp-look) .site-footer .site-footer-column h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--theme-font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-transform: none;
}

.site-footer-links {
  display: grid;
  gap: 0.52rem;
}

.site-footer-link,
body[data-theme="dark"] .site-footer-link {
  color: rgba(220, 229, 245, 0.82);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer-legal {
  width: 100%;
  background: #061532;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-legal-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem) 1rem;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  box-sizing: border-box;
}

.site-footer-copy,
.site-footer-disclaimer {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(220, 229, 245, 0.72);
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
}

.site-footer-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
}

.content-card > .footer-links,
.site-public-content .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Cookie preferences remain visually subordinate to the site. */
.cookie-banner {
  background: #07182f;
}

.cookie-actions .cookie-button,
.cookie-actions .cookie-link {
  border-radius: var(--theme-radius-pill);
}

#accept-cookies {
  background: var(--theme-color-brand-secondary);
  border-color: var(--theme-color-brand-secondary);
}

#accept-cookies:hover,
#accept-cookies:focus-visible {
  background: #f01848;
  border-color: #f01848;
}

@media (max-width: 1050px) {
  .home-header-desktop-nav {
    display: none;
  }

  body:not(.admin-page) .home-header.home-header--bridge .home-header-actions .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .site-public-layout,
  body.news-article-page .site-public-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-public-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }

  .site-footer-contact {
    grid-column: 1 / -1;
    max-width: 34rem;
  }
}

@media (max-width: 760px) {
  :root {
    --theme-space-page: 1rem;
    --theme-radius-lg: 16px;
    --theme-radius-xl: 20px;
  }

  .home-header-shell,
  .home-header-shell .home-header-inner,
  .home-header-inner {
    min-height: 66px;
  }

  .home-header-brand-copy--desktop {
    display: none;
  }

  .home-header-brand-copy--mobile {
    display: grid;
  }

  .home-header-tagline {
    display: block;
  }

  body:not(.admin-wp-look) h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .shell,
  body.home > .shell {
    padding-top: 1rem;
    gap: 1rem;
  }

  .hero,
  body.home .hero {
    padding: 2rem 1.35rem;
  }

  .hero h1,
  body.home .hero h1 {
    line-height: 1.02;
  }

  .home-seo-banner img {
    min-height: 0;
    aspect-ratio: 3.37 / 1;
    object-position: center;
  }

  body.home .news-lead-grid {
    grid-template-columns: 1fr;
  }

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

  .home-feature-card-link {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .homepage-videos-track,
  .home-latest-videos-band--count-4 .homepage-videos-track,
  .home-latest-videos-band--count-3 .homepage-videos-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .homepage-videos-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  body.home .home-homepage-section--grid .homepage-section-grid--related,
  .homepage-section-grid--related,
  .homepage-section-grid,
  .homepage-section-grid--3,
  .homepage-section-grid--4 {
    grid-template-columns: 1fr;
  }

  .site-public-sidebar {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
  }

  .site-footer-contact {
    grid-column: 1 / -1;
    max-width: 34rem;
  }

  .site-footer-inner {
    padding: 1.05rem 1rem 0.95rem;
  }

  .site-footer-legal-inner {
    padding: 0.9rem 1rem 1rem;
  }

  .cookie-banner {
    padding: 1rem;
  }

  .cookie-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .cookie-actions .cookie-button,
  .cookie-actions .cookie-link {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .site-footer {
    margin-top: 0.6rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .site-footer-contact {
    grid-column: auto;
    padding-bottom: 0.15rem;
  }

  .site-footer-column {
    gap: 0.4rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem 0.7rem;
  }

  .site-footer-project-brand {
    font-size: 1.2rem;
  }

  .site-footer-social-link {
    width: 38px;
    height: 38px;
  }

  .site-footer-social-icon {
    width: 20px;
    height: 20px;
  }

  .site-footer-copy,
  .site-footer-disclaimer {
    font-size: 0.66rem;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
