:root {
  --ink: #16202b;
  --muted: #667483;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #d8d0c4;
  --blue: #174f7a;
  --blue-deep: #0d2f4c;
  --gold: #c39334;
  --soft-blue: #e9f1f6;
  --ad-bg: #f4ead6;
  --ad-line: #b78935;
  --shadow: 0 18px 50px rgba(19, 31, 44, 0.09);
  --card-border: rgba(22, 32, 43, 0.08);
  --button-bg: rgba(23, 79, 122, 0.08);
  --button-border: rgba(23, 79, 122, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
}

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

button {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.utility-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 20px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.masthead-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  display: block;
  width: min(230px, 48vw);
  height: auto;
  filter: brightness(0) saturate(100%) invert(15%) sepia(36%) saturate(1261%) hue-rotate(167deg) brightness(89%) contrast(98%);
}

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-search input {
  width: clamp(150px, 16vw, 220px);
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  outline: none;
}

.site-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}

.primary-nav a,
.primary-nav span,
.text-button,
.mode-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
}

.menu-group {
  position: relative;
  display: inline-flex;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.menu-group > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: 2px;
  opacity: 0.72;
}

.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 240px;
  max-width: min(82vw, 980px);
  padding: 12px;
  display: grid;
  gap: 4px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.menu-group:hover > .sub-menu,
.menu-group:focus-within > .sub-menu,
.menu-group.is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-menu a,
.sub-menu span {
  width: 100%;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.sub-menu a:hover,
.sub-menu a:focus {
  background: var(--button-bg);
  color: var(--blue-deep);
}

.sub-menu span {
  color: var(--gold);
  cursor: default;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sub-menu .child-link {
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
}

.menu-group:not(.menu-wide) > .sub-menu {
  min-width: 280px;
  padding: 14px;
}

.mega-menu {
  right: -210px;
  width: min(980px, calc(100vw - 48px));
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.mega-menu > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
}

.mode-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}

.mode-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--blue-deep);
  box-shadow: inset -5px -2px 0 var(--paper);
}

.theme-dark .mode-icon {
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold);
}

.theme-dark .mode-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid var(--gold);
  opacity: 0.55;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.menu-group:focus-within > a,
.menu-group:hover > a,
.menu-group.is-open > a,
.text-button,
.mode-toggle {
  border-color: var(--button-border);
  background: var(--button-bg);
}

.lead-story .text-button {
  width: fit-content;
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.ad-band {
  padding: 0 0 26px;
  display: grid;
  justify-items: center;
}

.top-leaderboard-band {
  padding-top: 16px;
}

.ad-stack-728 {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.ad-slot,
.ad-frame {
  display: grid;
  place-items: center;
  border: 1px dashed var(--ad-line);
  background: repeating-linear-gradient(-45deg, var(--ad-bg), var(--ad-bg) 10px, #fbf4e8 10px, #fbf4e8 20px);
  color: #72551d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-frame {
  display: block;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.ad-728 {
  width: min(728px, 100%);
  max-width: 100%;
  height: 90px;
  margin: 0 auto;
}

.top-exclusive-ad {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.top-exclusive-ad img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-300 {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

.ad-300.quiet {
  opacity: 0.82;
}

.view {
  display: none;
  padding-bottom: 70px;
}

.view-active {
  display: block;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.home-main-column {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.lead-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #f4efe6;
  color: white;
  box-shadow: var(--shadow);
}

.lead-column-ad {
  width: 100%;
  padding: 0;
}

.latest-column-ad {
  margin: 26px 0 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lead-copy {
  min-width: 0;
  padding: clamp(30px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(13, 47, 76, 0.96), rgba(23, 79, 122, 0.78)),
    radial-gradient(circle at 90% 0%, rgba(195, 147, 52, 0.42), transparent 30%),
    linear-gradient(90deg, #18364b, #476a7c);
}

.lead-media {
  position: relative;
  order: -1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #18364b;
}

.lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.88) contrast(1.04);
  display: block;
}

.lead-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.meter-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 190px;
  padding: 18px;
  background: rgba(247, 244, 238, 0.92);
  color: var(--blue-deep);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.meter-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meter-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.kicker,
.channel-label,
.archive-feed > article > span {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead-story h1,
.page-title h1,
.article-body h1,
.issue-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 700;
}

.lead-story h1 {
  max-width: 100%;
  font-size: clamp(38px, 3.5vw, 50px);
}

.dek,
.article-intro,
.page-title p,
.issue-hero p {
  max-width: 720px;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 20px;
  line-height: 1.55;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0 24px;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 13px;
}

.front-rail,
.rail-card,
.channel-grid article,
.latest-list article,
.archive-feed article,
.issue-grid article,
.ad-spec-grid section {
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 32px rgba(19, 31, 44, 0.06);
}

.issue-grid h2 a {
  color: inherit;
  text-decoration: none;
}

.issue-grid h2 a:hover,
.issue-grid h2 a:focus-visible {
  color: var(--gold);
}

.front-rail {
  padding: 28px;
}

.front-rail .hero-issue-card {
  margin: -4px 0 24px;
}

.front-rail .hero-issue-card img {
  width: min(190px, 100%);
  margin: 0 auto 16px;
}

.front-rail .hero-issue-card h2 {
  margin-bottom: 6px;
}

.front-rail .hero-issue-card p {
  margin: 0;
}

.front-rail h2,
.rail-card h2,
.section-header h2,
.ad-spec-grid h2 {
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-size: clamp(24px, 3vw, 36px);
}

.front-rail a,
.rail-card a {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.35;
}

.rail-divider {
  height: 1px;
  margin: 8px 0 20px;
  background: var(--line);
}

.section-header {
  padding: 60px 0 22px;
}

.section-header.compact {
  padding: 0 0 14px;
}

.section-header h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.section-header.compact h2 {
  font-size: 24px;
  line-height: 1.16;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 34px;
}

.channel-grid article {
  min-height: 210px;
  padding: 24px;
}

.channel-grid h3,
.latest-list h3,
.archive-feed h2,
.issue-grid h2 {
  margin: 0;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.16;
}

.editorial-grid,
.article-layout,
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.editorial-grid {
  grid-template-areas:
    "latest rail"
    "continued rail";
}

.editorial-grid > .latest-list {
  grid-area: latest;
}

.editorial-grid > .sidebar-stack {
  grid-area: rail;
}

.editorial-grid > .after-ad {
  grid-area: continued;
}

.feature-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
  padding-bottom: 48px;
}

.image-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--blue-deep);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.image-card.large {
  grid-row: span 2;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
  transform: scale(1.01);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(8, 24, 38, 0.28) 48%, rgba(8, 24, 38, 0.92)),
    linear-gradient(90deg, rgba(195, 147, 52, 0.22), transparent 46%);
}

.image-card a {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: white;
}

.image-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-card h2 {
  margin: 0;
  max-width: 580px;
  font-size: clamp(27px, 3.5vw, 46px);
}

.image-card:not(.large) h2 {
  font-size: 28px;
}

.magazine-promo {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 54px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(13, 47, 76, 0.96), rgba(23, 79, 122, 0.84)),
    radial-gradient(circle at 92% 20%, rgba(195, 147, 52, 0.34), transparent 32%);
  color: white;
  box-shadow: var(--shadow);
}

.magazine-cover {
  display: block;
  width: 100%;
  max-width: 260px;
}

.magazine-cover img,
.issue-card img,
.cover-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.25);
}

.magazine-promo h2 {
  margin-bottom: 12px;
  color: white;
  font-size: clamp(38px, 6vw, 70px);
}

.magazine-promo p:not(.kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: white;
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

.issue-card {
  display: block;
  width: 100%;
  color: inherit;
}

.issue-card img {
  margin-bottom: 18px;
}

.department-run {
  padding: 12px 0 34px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.department-card,
.department-column {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 32px rgba(19, 31, 44, 0.06);
}

.department-card.feature {
  background:
    linear-gradient(135deg, rgba(13, 47, 76, 0.96), rgba(23, 79, 122, 0.82)),
    radial-gradient(circle at 92% 18%, rgba(195, 147, 52, 0.34), transparent 30%);
  color: white;
}

.department-card::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 54px;
  height: 54px;
  border-top: 1px solid rgba(195, 147, 52, 0.55);
  border-right: 1px solid rgba(195, 147, 52, 0.55);
}

.department-card span,
.department-column span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.department-card h3,
.department-column h2 {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.08;
}

.department-card.feature h3 {
  color: white;
}

.department-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.department-card.feature p {
  color: rgba(255, 255, 255, 0.76);
}

.department-card a,
.department-column a {
  display: block;
  color: var(--blue-deep);
  font-weight: 700;
}

.department-card.feature a {
  color: white;
}

.department-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 52px;
}

.department-column {
  min-height: 310px;
}

.department-column a {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.35;
}

.latest-list article {
  padding: 26px 0;
  background: transparent;
  border-width: 1px 0 0;
  box-shadow: none;
}

.latest-list span,
.issue-grid span,
.archive-feed > article > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.sticky-rail {
  position: sticky;
  top: 18px;
}

.article-layout {
  padding-top: 34px;
}

.article-body {
  max-width: 760px;
}

.article-hero-image {
  margin: 28px 0 10px;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--card-border);
  object-fit: cover;
}

.article-body img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  max-height: 520px;
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--card-border);
  object-fit: contain;
}

.article-body figure {
  max-width: min(100%, 560px);
  margin: 28px auto;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 34px 0 14px;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

.article-body h2 {
  font-size: 34px;
}

.article-body h3 {
  font-size: 26px;
}

.article-body p,
.article-body blockquote,
.article-body li {
  color: #283644;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.68;
}

.article-body p *,
.article-body li *,
.article-body blockquote *,
.archive-lead-content p *,
.archive-lead-content li *,
.archive-lead-content blockquote * {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.article-body ul,
.article-body ol {
  padding-left: 28px;
}

.article-body li + li {
  margin-top: 10px;
}

.article-body a {
  color: var(--blue-deep);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--gold);
  background: var(--soft-blue);
  color: var(--blue-deep);
}

.article-body table,
.archive-lead-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  color: inherit;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.article-body th,
.article-body td,
.archive-lead-content th,
.archive-lead-content td {
  border-bottom: 1px solid rgba(22, 34, 45, .16);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-body iframe,
.article-body object,
.article-body embed,
.archive-lead-content iframe,
.archive-lead-content object,
.archive-lead-content embed {
  display: block;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 28px auto;
  border: 0;
}

.related-strip {
  margin: 34px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--card-border);
}

.related-strip h2 {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: 28px;
}

.related-strip a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.ad-inline {
  padding: 20px 0 34px;
}

.rail-card {
  width: 100%;
  padding: 24px;
}

.rail-card p {
  color: var(--muted);
  line-height: 1.55;
}

.page-title,
.issue-hero {
  padding: 34px 0 30px;
}

.archive-feed {
  display: grid;
  gap: 16px;
}

.archive-feed article {
  padding: 30px;
}

.archive-feed .archive-lead {
  padding: clamp(28px, 4vw, 46px);
}

.archive-lead h2 {
  max-width: 780px;
  margin: 12px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
}

.archive-lead figure {
  max-width: min(100%, 680px);
  margin: 24px 0;
}

.archive-lead figure img,
.archive-lead-content img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  max-height: 520px;
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--card-border);
  object-fit: contain;
}

.archive-lead-excerpt,
.archive-lead-content p,
.archive-lead-content li,
.archive-lead-content blockquote {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.68;
}

.archive-lead-content h2,
.archive-lead-content h3,
.archive-lead-content h4 {
  max-width: 760px;
  margin: 32px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

.issue-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: stretch;
}

.cover-card {
  min-height: 380px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, var(--blue-deep), var(--blue) 62%, var(--gold));
  color: white;
  box-shadow: var(--shadow);
}

.cover-card img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.issue-footer {
  position: relative;
  margin-top: 30px;
  padding: 0;
  background: linear-gradient(180deg, #0f1544, #000000);
  color: #fff;
}

.home-issues {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 35px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0;
  list-style: none;
}

.home-issues::before {
  content: "Recent Issues";
  flex-basis: 100%;
  margin-bottom: 2em;
  color: #fff;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-align: center;
}

.home-issues li {
  width: 20%;
  padding: 0 20px;
  color: #fff;
  text-align: left;
}

.home-issues img {
  display: block;
  max-width: 100%;
  margin: 0 auto 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.home-issues a,
.home-issues h3 {
  color: #fff;
}

.home-issues h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2em;
}

.middle {
  padding: 8px 0 88px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.footer-brand .footer-logo {
  display: block;
  width: 50px;
  max-width: 50px;
  height: auto;
  margin: 0 auto 7px;
}

.footer-brand p {
  margin: 0 0 4px;
  font-size: 50%;
}

.footer-brand a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#wenger-footer-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: transparent;
  text-align: center;
  box-shadow: none;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
  will-change: transform, opacity;
}

#wenger-footer-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#wenger-footer-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

#wenger-footer-banner .inner {
  max-width: 1225px;
  margin: 0 auto;
  position: relative;
}

#wenger-footer-banner img {
  width: 100%;
  height: auto;
  max-height: 200px;
  display: block;
  margin: auto;
}

#close-sticky-footer {
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 100000;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.issue-grid,
.ad-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.past-issues-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}

.past-issues-grid article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 32px rgba(19, 31, 44, 0.06);
}

.past-issues-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.past-issues-grid h2 {
  margin: 16px 0 8px;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.past-issues-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.past-issues-grid a {
  color: inherit;
  font-weight: 700;
}

.past-issues-grid p a {
  color: var(--blue-deep);
}

.past-issues-grid span {
  color: var(--muted);
}

.issue-grid article,
.ad-spec-grid section {
  padding: 26px;
}

.ad-spec-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.ad-spec-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ad-spec-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.theme-dark {
  --ink: #eaf0f4;
  --muted: #9dacb9;
  --paper: #111820;
  --surface: #18232d;
  --line: #2d3a45;
  --blue: #78a9ca;
  --blue-deep: #f2f6f8;
  --gold: #d2a54c;
  --soft-blue: #1d2d39;
  --ad-bg: #1f2932;
  --ad-line: #b78935;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --card-border: rgba(255, 255, 255, 0.08);
  --button-bg: rgba(255, 255, 255, 0.08);
  --button-border: rgba(255, 255, 255, 0.16);
}

body.theme-dark {
  background: #111820;
  color: #eaf0f4;
}

.theme-dark header,
.theme-dark main {
  background: #111820;
}

.theme-dark .lead-story {
  background: #101820;
}

.theme-dark .lead-copy {
  background:
    linear-gradient(135deg, rgba(8, 18, 28, 0.96), rgba(18, 54, 77, 0.82)),
    radial-gradient(circle at 90% 0%, rgba(210, 165, 76, 0.32), transparent 30%),
    linear-gradient(90deg, #101820, #27465a);
}

.theme-dark .brand img {
  filter: none;
}

.theme-dark .meter-card {
  background: rgba(24, 35, 45, 0.94);
  color: var(--ink);
}

.theme-dark .ad-slot {
  background: repeating-linear-gradient(-45deg, #1f2932, #1f2932 10px, #24313b 10px, #24313b 20px);
  color: #d8bd7a;
}

.theme-dark .article-body p,
.theme-dark .article-body li {
  color: #d9e2e8;
}

.theme-dark .article-body h2,
.theme-dark .article-body h3,
.theme-dark .article-body h4,
.theme-dark .article-body a {
  color: #f3f8fb;
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, 720px);
  }

  .utility-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .utility-copy {
    width: 100%;
    flex: 1 1 100%;
  }

  .site-search {
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .masthead,
  .home-layout,
  .lead-story,
  .editorial-grid,
  .article-layout,
  .archive-layout,
  .issue-hero,
  .ad-spec-grid {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    grid-template-areas:
      "latest"
      "continued"
      "rail";
  }

  .masthead {
    align-items: flex-start;
    padding: 18px 0;
  }

  .masthead-actions {
    justify-items: start;
  }

  .primary-nav {
    justify-content: flex-start;
    position: relative;
  }

  .menu-wide {
    position: static;
  }

  .menu-wide > .mega-menu {
    left: 0;
    right: 0;
    width: min(100%, calc(100vw - 28px));
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lead-story {
    min-height: 0;
  }

  .lead-media {
    min-height: 0;
  }

  .feature-board {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .magazine-promo {
    grid-template-columns: 1fr;
  }

  .image-card.large {
    grid-row: auto;
  }

  .channel-grid,
  .issue-grid,
  .past-issues-grid,
  .department-grid,
  .department-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-rail {
    position: static;
  }
}

@media (max-width: 850px) {
  .home-issues li {
    width: 30%;
  }
}

@media (max-width: 760px) {
  .masthead {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }

  .masthead-actions {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .primary-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .primary-nav {
    position: relative;
  }

  .menu-wide {
    position: static;
  }

  .menu-wide > .mega-menu {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mega-menu > div {
    gap: 0;
  }

  .mega-menu > div + div {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .channel-grid,
  .issue-grid,
  .past-issues-grid,
  .department-grid,
  .department-split {
    grid-template-columns: 1fr;
  }

  .feature-board,
  .department-run,
  .department-split,
  .editorial-grid,
  .magazine-promo {
    padding-bottom: 34px;
  }

  .front-rail,
  .sidebar-stack {
    justify-items: center;
    text-align: center;
  }

  .front-rail {
    display: grid;
    gap: 18px;
    padding: 22px;
  }

  .front-rail .hero-issue-card,
  .rail-card {
    width: 100%;
    max-width: 320px;
  }

  .magazine-promo {
    justify-items: stretch;
    padding: 26px;
    text-align: left;
  }

  .magazine-cover {
    justify-self: center;
  }

  .department-card,
  .department-column {
    min-height: 0;
  }

  .department-column {
    text-align: left;
  }

  .latest-list article,
  .after-ad article {
    text-align: left;
  }

  .home-issues {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
    text-align: center;
  }

  .home-issues li {
    width: min(100%, 260px);
    padding: 0;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .masthead {
    display: grid;
  }

  .primary-nav {
    margin-top: 18px;
    gap: 4px;
  }

  .masthead-actions {
    display: flex;
  }

  .primary-nav a {
    padding: 9px 11px;
    font-size: 13px;
  }

  .menu-group {
    display: grid;
    width: 100%;
  }

  .menu-group > a {
    width: fit-content;
  }

  .menu-group:not(.menu-wide) > .sub-menu {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 4px 0 10px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .lead-story {
    min-height: 0;
  }

  .brand {
    min-width: 0;
    width: fit-content;
  }

  .brand img {
    width: 210px;
  }

  .lead-media {
    min-height: 0;
  }

  .meter-card {
    right: 12px;
    bottom: 12px;
    width: 160px;
  }

  .lead-story h1,
  .page-title h1,
  .article-body h1,
  .issue-hero h1 {
    font-size: 38px;
  }

  .dek,
  .article-intro,
  .page-title p,
  .issue-hero p {
    font-size: 17px;
  }

  .channel-grid,
  .issue-grid,
  .past-issues-grid,
  .department-grid,
  .department-split {
    grid-template-columns: 1fr;
  }

  .article-body p,
  .article-body blockquote {
    font-size: 19px;
  }

  .ad-728 {
    height: 78px;
  }

  .ad-300 {
    width: 100%;
    max-width: 300px;
  }

  .home-issues li {
    width: min(100%, 260px);
  }

  #wenger-footer-banner img {
    max-height: 120px;
  }

  #close-sticky-footer {
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    font-size: 12px;
  }
}
