/* Editorial broadcast — layout tuned for Ghost Pro (Koenig + members-ready) */

:root {
  /* Theme colors from default.hbs (@custom): --accent, --header-bg, --ticker-bg, --latest-label-color, --header-rules-color, --site-bg. Do not redefine those here. */
  --site-bg: #ffffff;
  --text: #111;
  --text-muted: #555;
  --border: #e2e2e2;
  --surface: #fafafa;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  /* Wider than classic 1200px — closer to Daily Wire’s edge-to-edge hero band */
  --container: 1460px;
  --page-gutter: 1rem;
  /* Extra air past the math inset (header + hero + rails stay aligned) */
  --layout-nudge-left: 45px;
  /* Left edge matches .container content; right edge is not capped (full-bleed rails) */
  --align-inset: calc((100vw - min(100vw, var(--container))) / 2 + var(--page-gutter) + var(--layout-nudge-left));
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--site-bg);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--site-bg);
  overflow-x: clip;
}

#main.site-main,
.site-main {
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  clip: auto;
  width: auto;
  height: auto;
}

.container {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin: 0 auto;
  padding-left: calc(var(--page-gutter) + var(--layout-nudge-left));
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.container--narrow {
  max-width: 720px;
}

/* ——— Ticker ——— */
/* Flex row + overflow-x: auto; scrollbar hidden everywhere (no bar, swipe/trackpad still scrolls). */
.ticker {
  background: var(--ticker-bg);
  color: #f2f2f2;
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 3px solid var(--header-rules-color);
  overflow-x: clip;
  max-width: 100%;
}

.ticker::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ticker-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 2.5rem;
  padding-block: 0.35rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.ticker-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ticker-label {
  flex-shrink: 0;
  padding-top: 0.12em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--latest-label-color);
}

.ticker-track {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-flow: row nowrap;
  align-items: baseline;
  gap: 0 1.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

.ticker-item {
  flex: 0 0 auto;
  margin: 0.15rem 0;
  color: #e8e8e8;
  text-decoration: none;
  white-space: nowrap;
}

.ticker-item:hover {
  color: #fff;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}

/* ——— Welcome links (under header, home only): white band, accent text, pipes ——— */
.site-subnav-welcome {
  background: var(--site-bg);
  border-top: 3px solid var(--header-rules-color);
}

.site-subnav-welcome__inner {
  padding-top: clamp(15px, 2.4vw, 20px);
  padding-bottom: clamp(15px, 2.4vw, 20px);
}

.site-subnav-welcome__nav {
  width: 100%;
  overflow: hidden;
}

.site-subnav-welcome__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.site-subnav-welcome__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-subnav-welcome__item:not(:last-child)::after {
  content: "|";
  color: var(--accent);
  font-weight: 300;
  padding: 0 1.35rem;
  font-size: 1rem;
  line-height: 1;
}

.site-subnav-welcome__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-subnav-welcome__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-subnav-welcome__label {
  white-space: nowrap;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
}

.site-logo img {
  max-height: 40px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.site-nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.header-search input {
  width: 8rem;
  border: 0;
  padding: 0.4rem 0.6rem;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header-search-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.header-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e0e0e0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-link:hover {
  color: #fff;
}

.header-link--accent {
  color: #fff;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.header-link--accent:hover {
  filter: brightness(1.08);
  color: #fff;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    order: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .site-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(46vw, 13rem);
  }

  .header-link {
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
  }

  .header-link--accent {
    padding: 0.4rem 0.55rem;
  }

  .site-logo {
    order: 1;
    flex: 1;
    min-width: 0;
  }

  .header-actions {
    order: 2;
    gap: 0.35rem;
  }

  .site-nav {
    order: 3;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 200;
    flex: none;
  }

  .site-nav.is-open {
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    align-items: flex-start;
    width: 100%;
  }

  .header-search input {
    width: min(5rem, 18vw);
    min-width: 0;
  }
}

/* ——— Home hero ——— */
.home {
  padding: 0 0 3rem;
}

.home-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-post {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  min-height: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-post__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-post__media {
  position: relative;
  min-height: 280px;
}

.hero-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-post__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #2a2a2a, #444);
}

.hero-post__body {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-post__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hero-post__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-post__excerpt {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .hero-post {
    grid-template-columns: 1fr;
  }
}

/* ——— Homepage: Hosts — header aligns with .container; row scrolls to the right edge ——— */
.presenters--filter-pending {
  opacity: 0;
  pointer-events: none;
}

.presenters--filter-ready {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}

.presenters.presenters--hosts {
  margin: 2.5rem 0 2.5rem;
  padding: 0 0 0.25rem;
  background: transparent;
  border: 0;
  width: 100%;
  max-width: none;
}

.presenters__head-wrap {
  margin-bottom: 0;
}

.presenters__head {
  margin-bottom: 1.1rem;
}

.presenters__section-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* Full-bleed right: first card lines up with main column; list extends past viewport */
.presenters__carousel {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-left: var(--align-inset);
  padding-right: 0;
  margin-right: 0;
  width: 100%;
  max-width: none;
}

.presenters__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 0.5rem 0;
  width: max-content;
  max-width: none;
}

.presenters__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc(9.5rem * 1.24);
}

.presenters--hosts .presenters__card {
  width: 100%;
  min-width: 0;
}

.presenters__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  gap: 0.65rem;
}

.presenters__card:hover .presenters__name {
  color: var(--accent);
}

.presenters__media {
  display: block;
  width: 100%;
  max-width: calc(11rem * 1.24);
  margin: 0 auto;
  aspect-ratio: 3 / 5; /* ~25% taller than 3:4 at same width */
  border-radius: calc(14px * 1.24);
  overflow: hidden;
  background: #e0e0e2;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.presenters__media img.presenters__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.presenters__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.2;
}

.presenters__name {
  font-size: 1.05rem; /* +20% from 0.875rem */
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presenters--hosts .presenters__bio {
  display: none;
}

.presenters__bio {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Columns ——— */
.home-columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .home-columns {
    grid-template-columns: 1fr;
  }
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-rule {
  flex: 1;
  height: 3px;
  background: var(--accent);
}

.post-grid {
  display: grid;
  gap: 1.75rem;
}

.post-grid--home {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .post-grid--home {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.post-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ddd, #bbb);
}

.post-card__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-card__kicker a {
  color: var(--accent);
  text-decoration: none;
}

.post-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.post-card__title a {
  text-decoration: none;
  color: var(--text);
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card__read {
  margin-left: 0.5rem;
}

@media (max-width: 480px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__thumb {
    aspect-ratio: 16 / 9;
  }
}

/* ——— Sidebar ——— */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-card__text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.tag-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pills--inline {
  display: inline-flex;
  margin-top: 0.5rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
}

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

.btn--accent:hover {
  filter: brightness(1.06);
  color: #fff;
}

/* ——— Article ——— */
.article-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header--page {
  border-bottom: 0;
}

.article-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-kicker a {
  color: var(--accent);
  text-decoration: none;
}

.article-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.article-deck {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.byline-names a {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.article-feature {
  margin: 0;
  padding: 1.5rem 0 0;
}

.article-feature img {
  width: 100%;
  border-radius: var(--radius);
}

/* ——— Reel post: Daily Wire–style — portrait column width is locked on .reel-post-hero__surface (embeds cannot widen the flex row) ——— */
.article--reel .reel-post-hero {
  --reel-cap-h: min(94dvh, 1000px);
  --reel-w: calc(var(--reel-cap-h) * 9 / 16);
  --reel-max-h: var(--reel-cap-h);
  background: #000;
  color: #e8e8e8;
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid #222;
  overflow-x: hidden;
}

/*
 * Portrait column width: must stay valid in all target browsers.
 * calc(min(94dvh,1000px)*9/16) can be dropped entirely if unparsed → surface goes width:auto → iframe blows out ~60%+ viewport.
 * Default: rem/vw cap. Desktop: rem cap + calc(92vh*9/16) (no nested min inside product).
 */
.article--reel .reel-post-hero .reel-post-hero__surface {
  width: min(27.5rem, 92vw);
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}

.article--reel .reel-post-hero .article-kicker a {
  color: var(--accent);
}

.article--reel .reel-post-hero .article-title,
.article--reel .reel-post-hero .byline-names a {
  color: #fff;
}

.article--reel .reel-post-hero .article-deck,
.article--reel .reel-post-hero .article-date,
.article--reel .reel-post-hero .article-readtime {
  color: #9a9a9a;
}

/* Flex + explicit width: Ghost oembed often sets inline width:315px on .kg-embed-container; grid still collapsed for some builds */
.reel-post-hero__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(1.25rem, 3.5vw, 3rem);
}

.reel-post-hero__spacer {
  flex: 1 1 0;
  min-width: 0;
}

.reel-post-hero__player {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reel-post-hero__player .reel-post__content--hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.reel-post-hero__aside {
  flex: 0 1 22rem;
  min-width: 12rem;
  max-width: 24rem;
}

.reel-post-hero__aside-inner {
  position: sticky;
  top: 5.5rem;
}

.reel-post-hero__title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

.reel-post-hero__meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

/*
 * Koenig full-bleed (100vw + negative margins) breaks reel layout: embed spans viewport,
 * stacks under sticky .site-header (z-index 100), and collapses the flex row beside .reel-post-hero__aside.
 */
.article--reel .reel-post-hero .kg-width-wide,
.article--reel .reel-post-hero .kg-width-full,
.article--reel .reel-post__content--hero figure.kg-card,
.article--reel .reel-post__content--hero .kg-card {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
}

.article--reel .reel-post__content--hero .kg-embed-card,
.article--reel .reel-post__content--hero .kg-video-card,
.article--reel .reel-post__content--hero figure.kg-card.kg-embed-card {
  width: 100%;
  max-width: 100% !important;
  max-height: var(--reel-cap-h);
  overflow: hidden;
  margin: 0;
}

/* Portrait 9:16: aspect-ratio + mins — % padding-bottom collapses if flex gives width 0 mid-reflow (flash then disappear). */
.article--reel .reel-post__content--hero .kg-embed-card .kg-embed-container,
.article--reel .reel-post__content--hero .kg-video-card > div:first-of-type {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: var(--reel-cap-h) !important;
  aspect-ratio: 9 / 16;
  min-width: 1px;
  min-height: 280px;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.article--reel .reel-post__content--hero .kg-embed-card .kg-embed-container iframe,
.article--reel .reel-post__content--hero .kg-video-card iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: 0;
}

/* YouTube iframes often carry width/height attrs; override for hero fill */
.article--reel .reel-post-hero iframe {
  max-width: none !important;
}

.article--reel .reel-post__content--hero .kg-video-card video {
  width: 100%;
  height: auto;
  max-height: var(--reel-cap-h);
  aspect-ratio: auto;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: var(--radius);
  display: block;
}

.article--reel .reel-post__content--hero .reel-yt-embed {
  width: 100%;
  max-width: 100%;
  max-height: var(--reel-cap-h);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.reel-post-hero .reel-yt-embed__inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: var(--reel-cap-h);
  aspect-ratio: 9 / 16;
  min-width: 1px;
  min-height: 280px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
}

.reel-yt-embed__inner iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: 0;
}

@media (max-width: 960px) {
  .article--reel .reel-post-hero {
    --reel-cap-h: min(88dvh, 900px);
    --reel-w: calc(var(--reel-cap-h) * 9 / 16);
    --reel-max-h: var(--reel-cap-h);
  }

  .reel-post-hero__inner {
    flex-direction: column;
  }

  .reel-post-hero__spacer {
    display: none;
  }

  .article--reel .reel-post-hero .reel-post-hero__surface {
    width: min(100%, 27.5rem);
    width: min(100%, calc(min(88dvh, 900px) * 9 / 16));
  }

  .reel-post-hero__player {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    align-self: center;
    align-items: center;
  }

  .reel-post-hero__aside {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .reel-post-hero__aside-inner {
    position: static;
  }
}

@media (min-width: 961px) {
  .article--reel .reel-post-hero {
    /* Large portrait: use most of viewport height; width = 9/16 of that (YouTube fat bars if iframe is wider than this). */
    --reel-cap-h: min(96vh, calc(100vh - 5rem), 1080px);
    --reel-w: calc(var(--reel-cap-h) * 9 / 16);
    --reel-max-h: var(--reel-cap-h);
  }

  /* Ghost card CSS / injections sometimes reset .container or flex; keep spacer | player | meta row. */
  .article.article--reel .reel-post-hero .container.reel-post-hero__inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    min-width: 0;
    direction: ltr !important;
  }

  /* RTL (site locale) mirrors flex: aside can jump left and spacer eats the right — looks like “title left, black void right”. */
  .article--reel .reel-post-hero .reel-post-hero__spacer {
    order: 0;
  }

  .article--reel .reel-post-hero .reel-post-hero__player {
    order: 1;
  }

  .article--reel .reel-post-hero .reel-post-hero__aside {
    order: 2;
  }

  .article--reel .reel-post-hero .reel-post-hero__surface {
    width: min(48rem, calc(var(--reel-cap-h) * 9 / 16), 85vw);
    max-width: 100%;
  }

  /* Hard portrait width — match --reel-cap-h so the iframe is tall/narrow, not 560×315-style 16:9. */
  .article--reel .reel-post__content--hero .kg-embed-card .kg-embed-container,
  .article--reel .reel-post__content--hero .kg-video-card > div:first-of-type {
    width: min(100%, calc(var(--reel-cap-h) * 9 / 16), 48rem, 85vw) !important;
  }

  .reel-post-hero .reel-yt-embed__inner {
    width: min(100%, calc(var(--reel-cap-h) * 9 / 16), 48rem, 85vw);
    max-width: 100%;
  }
}

/*
 * Video episodes: flex tweaks + fixed 16:9 shell (.video-episode-player-aspect).
 * Debug logs (H12): embedBox null — no .kg-embed-container in tree; iframe rect 300×150 — old selectors never applied.
 */
.article--video.article--reel .reel-post-hero {
  --video-hero-max: 56rem;
}

.article--video.article--reel .reel-post-hero .reel-post-hero__surface {
  width: 100%;
  max-width: min(var(--video-hero-max), 100%);
  min-width: 0;
}

.article--video.article--reel .video-episode-player-aspect {
  position: relative;
  width: 100%;
  max-width: min(var(--video-hero-max), 100%);
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.article--video.article--reel .video-episode-player-aspect .kg-embed-card,
.article--video.article--reel .video-episode-player-aspect figure.kg-card.kg-embed-card,
.article--video.article--reel .video-episode-player-aspect .kg-video-card,
.article--video.article--reel .video-episode-player-aspect .reel-yt-embed {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.article--video.article--reel .video-episode-player-aspect .kg-embed-container,
.article--video.article--reel .video-episode-player-aspect .kg-video-card > div:first-of-type,
.article--video.article--reel .video-episode-player-aspect .reel-yt-embed__inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  min-height: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
}

.article--video.article--reel .video-episode-player-aspect iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
}

.article--video.article--reel .video-episode-player-aspect .kg-video-card video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

@media (max-width: 960px) {
  .article--video.article--reel .reel-post-hero .reel-post-hero__surface {
    width: 100% !important;
    max-width: 100% !important;
  }

  .article--video.article--reel .reel-post-hero__player {
    align-self: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .article--video.article--reel .video-episode-player-aspect {
    max-width: 100%;
  }
}

@media (min-width: 961px) {
  .article--video.article--reel .reel-post-hero .reel-post-hero__spacer {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .article--video.article--reel .reel-post-hero__player {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }

  .article--video.article--reel .reel-post-hero .reel-post-hero__surface {
    width: 100% !important;
    max-width: min(var(--video-hero-max), 100%) !important;
  }
}

.article-body-wrap {
  padding: 2rem 0 4rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-content {
  min-width: 0;
}

.article-content-inner {
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-content-inner > *:first-child {
  margin-top: 0;
}

.article-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-tags-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-box__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box__name {
  font-weight: 700;
  text-decoration: none;
}

.author-box__bio {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.related-link {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  line-height: 1.35;
}

.related-date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ——— Koenig / Ghost cards ——— */
.kg-width-wide,
.kg-width-full {
  margin-left: auto;
  margin-right: auto;
}

.kg-image-card img {
  border-radius: var(--radius);
}

.kg-gallery-card {
  margin: 1.5rem 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 4px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
}

pre,
code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  background: #1e1e1e;
  color: #eee;
  border-radius: var(--radius);
  overflow-x: auto;
}

/* ——— Archives ——— */
.archive-header {
  padding: 2.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.archive-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.archive-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.archive-desc {
  margin: 0.75rem 0 0;
  max-width: 640px;
  color: var(--text-muted);
}

.archive-author {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.archive-author__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.author-social a {
  font-weight: 600;
  font-size: 0.875rem;
}

.archive-body {
  padding: 2rem 0 3rem;
}

.archive-body .post-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .archive-body .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Pagination ——— */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.25rem 3rem;
  max-width: var(--container);
}

.pagination__status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pagination__link {
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--accent);
}

.pagination__gap {
  width: 5rem;
}

/* ——— Footer (Frontline-style; scoped .fxn-footer — does not affect article layout) ——— */
.site-footer.fxn-footer {
  background: #0a0a0a;
  color: #e8e8e8;
  padding: 0;
  margin-top: 2rem;
}

.fxn-footer__rec-wrap {
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fxn-footer__rec-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
}

.fxn-footer .recommendations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.fxn-footer .recommendation a {
  display: block;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-decoration: none;
  color: #e8e8e8;
}

.fxn-footer .recommendation a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fxn-footer .recommendation-title {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.fxn-footer .recommendation-url {
  font-size: 0.75rem;
  color: #999;
}

.fxn-footer .recommendation-description {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #bbb;
}

/* Pre-footer band */
.fxn-footer__pre {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
}

.fxn-footer__pre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* auto-fit: empty tracks collapse so 3 items don't leave a dead 4th column; 220px min keeps 4 cols on ~1025px+ */
@media (min-width: 1025px) {
  .fxn-footer__pre-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
  }

  .fxn-footer__pre-col--intro {
    align-self: start;
    position: relative;
    box-shadow: inset -4px 0 20px -6px color-mix(in srgb, var(--accent) 42%, transparent);
  }
}

.fxn-footer__pre-grid > * {
  padding: 1.35rem 1.25rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .fxn-footer__pre-grid > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 1024px) {
  .fxn-footer__pre-grid {
    grid-template-columns: 1fr;
    border-width: 1px 0;
  }

  .fxn-footer__pre-grid > * + * {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none;
  }
}

.fxn-footer__pre-kicker,
.fxn-footer__spot-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.fxn-footer__pre-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 6.5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.06;
  color: #fff;
}

.fxn-footer__pre-title-line {
  display: block;
}

.fxn-footer__pre-col--intro .fxn-footer__pre-title {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
}

@media (min-width: 1025px) {
  .fxn-footer__pre-col--intro .fxn-footer__pre-title {
    /* 25% smaller than prior desktop scale */
    font-size: clamp(1.46rem, 2.93vw, 2.59rem);
    line-height: 1.02;
  }
}

.fxn-footer__pre-col--intro {
  font-size: 1rem;
  line-height: 1.55;
  color: #e0e0e0;
}

.fxn-footer__pre-col--intro .fxn-footer__pre-kicker {
  font-size: 0.875rem;
  margin-bottom: 0.65rem;
}

.fxn-footer__pre-col--intro p {
  margin: 0 0 0.75rem;
}

.fxn-footer__spot {
  margin: 0;
  height: auto;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.fxn-footer__spot--split {
  display: block;
}

.fxn-footer__spot-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 100%;
}

.fxn-footer__spot--split .fxn-footer__spot-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.fxn-footer__spot-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #222;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

.fxn-footer__spot--split .fxn-footer__spot-media {
  height: auto;
  min-height: 10rem;
  flex-shrink: 0;
}

.fxn-footer__spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

.fxn-footer__spot-media--empty {
  min-height: 120px;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #111);
}

.fxn-footer__spot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem 1.1rem 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
}

/* Featured / trending / NL: red label only, bottom of frame (padding mirrors former top inset) */
.fxn-footer__spot-overlay--eyebrow {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem 1.1rem 1.2rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.32) 62%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.fxn-footer__spot-overlay--eyebrow .fxn-footer__spot-eyebrow {
  margin: 0;
  font-size: clamp(0.72rem, 1.15vw, 0.875rem);
  letter-spacing: 0.18em;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.88);
}

.fxn-footer__spot-below {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  padding-top: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
}

/* Match .site-nav a (0.9375rem / 600 / uppercase) on desktop */
.fxn-footer__spot-title {
  display: block;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.9375rem, 2.8vw, 1.08rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

@media (min-width: 1025px) {
  .fxn-footer__spot-title {
    font-size: 0.9375rem;
  }
}

.fxn-footer__spot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(1.006rem, 1.73vw, 1.15rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.fxn-footer__spot-below .fxn-footer__spot-cta,
.fxn-footer__spot-below .fxn-footer__pre-nl-cta {
  text-shadow: none;
}

.fxn-footer__cta-arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
  color: var(--accent);
  line-height: 0;
  vertical-align: middle;
}

.fxn-footer__cta-arrow-svg {
  display: block;
  width: 0.62em;
  height: 0.78em;
  flex-shrink: 0;
}

.fxn-footer__trending-slot {
  display: contents;
}

.fxn-footer__trending-slot .fxn-footer__spot--trend ~ .fxn-footer__spot--trend {
  display: none;
}

.fxn-footer__pre-col--nl {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  background: linear-gradient(165deg, #141414 0%, #0a0a0a 45%, #0a0a0a 100%);
}

/* Same stack as .fxn-footer__spot--split: 16:9 block + .fxn-footer__spot-below */
.fxn-footer__pre-nl-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #1c1c1c 0%, #0f0f0f 55%, #0a0a0a 100%);
  width: 100%;
  max-width: 100%;
  min-height: 10rem;
  flex-shrink: 0;
}

.fxn-footer__pre-nl-media .fxn-footer__pre-nl-icon-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  z-index: 0;
}

.fxn-footer__pre-col--nl .fxn-footer__spot-below {
  flex: 1 1 auto;
  min-height: 0;
}

.fxn-footer__pre-nl-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full ring, partial arc: conic fade + radial mask = incomplete glowing circle */
.fxn-footer__pre-nl-icon-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6.75rem;
  height: 6.75rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    color-mix(in srgb, var(--accent) 52%, transparent) 42deg,
    color-mix(in srgb, var(--accent) 22%, transparent) 118deg,
    transparent 165deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent 0 calc(100% - 3px),
    #000 calc(100% - 3px) calc(100% - 1px),
    transparent 100%
  );
  mask: radial-gradient(
    farthest-side,
    transparent 0 calc(100% - 3px),
    #000 calc(100% - 3px) calc(100% - 1px),
    transparent 100%
  );
}

.fxn-footer__pre-nl-icon {
  position: relative;
  z-index: 1;
  color: var(--accent);
}

.fxn-footer__pre-nl-icon svg {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
}

.fxn-footer__signup-icon {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.fxn-footer__signup-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.fxn-footer__pre-nl-title {
  margin: 0;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.9375rem, 2.6vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.35;
}

@media (min-width: 1025px) {
  .fxn-footer__pre-nl-title {
    font-size: 0.9375rem;
  }
}

.fxn-footer__pre-nl-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.fxn-footer__pre-nl-cta:hover {
  text-decoration: underline;
}

/* Main footer grid */
.fxn-footer__main {
  padding: 2.75rem 0 2rem;
  background: #000;
}

.fxn-footer__grid--desktop {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(0, 1fr)) minmax(180px, 1.1fr);
  gap: 1.5rem 1.25rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .fxn-footer__grid--desktop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fxn-footer__grid--desktop .fxn-footer__brand {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

.fxn-footer__grid--mobile {
  display: none;
}

.fxn-footer__logo-link {
  display: inline-block;
  text-decoration: none;
}

.fxn-footer__logo-img {
  max-width: 220px;
  height: auto;
}

.fxn-footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.fxn-footer__brand-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.fxn-footer__brand-desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #b0b0b0;
}

.fxn-footer__brand-accent {
  margin: 1rem 0 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.fxn-footer__col-head {
  margin: 0 0 1rem;
  padding-bottom: 0;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.fxn-footer__col-head::after {
  content: "";
  display: block;
  width: 2.85rem;
  height: 3px;
  margin-top: 0.55rem;
  background: var(--accent);
}

.fxn-footer__col--signup .fxn-footer__col-head::after {
  display: none;
}

.fxn-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fxn-footer__nav a {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 0.875rem;
}

.fxn-footer__nav a:hover {
  color: #fff;
}

.fxn-footer__list--action {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fxn-footer__action-link {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 0.875rem;
}

.fxn-footer__action-link:hover {
  color: var(--accent);
}

.fxn-footer__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #777;
  line-height: 1.4;
}

.fxn-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fxn-footer__social--icons {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.fxn-footer__social--icons > li:has(> a.fxn-footer__social-icon-link[href=""]) {
  display: none;
}

.fxn-footer__social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.fxn-footer__social-icon-link svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

.fxn-footer__social-icon-link:hover {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.fxn-footer__social-link {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 0.875rem;
}

.fxn-footer__social-link:hover {
  color: var(--accent);
}

.fxn-footer__social-dek {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.fxn-footer__signup-dek {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #bbb;
}

.fxn-footer__signup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fxn-footer__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #0c0c0c;
  color: #fff;
  border-color: #333;
}

.fxn-footer__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.fxn-footer__submit:hover {
  filter: brightness(1.08);
}

.fxn-footer__submit .fxn-footer__cta-arrow {
  color: #fff;
}

.fxn-footer__submit--link {
  text-align: center;
}

.fxn-footer__signup-msg {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #1a7f37;
}

.fxn-footer__signup-msg--err {
  color: var(--accent);
}

.fxn-footer__brand--mobile {
  display: none;
}

.fxn-footer__mobile-signup {
  padding: 0.5rem 0 0;
}

/* Mobile accordion */
@media (max-width: 900px) {
  .fxn-footer__grid--desktop {
    display: none;
  }

  .fxn-footer__grid--mobile {
    display: block;
  }

  .fxn-footer__brand--mobile {
    display: block;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fxn-footer__details {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
  }

  .fxn-footer__summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
  }

  .fxn-footer__summary::after {
    content: "";
    display: block;
    width: 2.85rem;
    height: 3px;
    margin-top: 0.55rem;
    background: var(--accent);
  }

  .fxn-footer__summary::-webkit-details-marker {
    display: none;
  }

  .fxn-footer__details[open] .fxn-footer__summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fxn-footer__details .fxn-footer__nav,
  .fxn-footer__details .fxn-footer__list--action,
  .fxn-footer__details .fxn-footer__social {
    padding: 0.75rem 1rem 1rem;
  }
}

.fxn-footer__sub--html {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: #e0e0e0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.fxn-footer__sub--html a {
  color: var(--accent);
}

.fxn-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  font-size: 0.75rem;
  color: #888;
}

.fxn-footer__copy {
  margin: 0;
}

.fxn-footer__byline {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fxn-footer__byline span:first-child {
  color: var(--accent);
}

.fxn-footer__byline span:last-child {
  color: #fff;
}

@media (max-width: 640px) {
  .fxn-footer__bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ——— Error ——— */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  margin: 0;
  color: var(--accent);
}

.error-text {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.error-actions {
  margin-top: 1.5rem;
}

/* ——— Members (signin / signup / account) ——— */
.members-page {
  padding: 3rem 1.25rem 4rem;
  max-width: 28rem;
}

.members-page__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.members-page__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.members-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.members-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.members-input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.members-submit {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
}

.members-form__hint {
  margin: 0;
  font-size: 0.9375rem;
  color: #1a7f37;
}

.members-form__error {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--accent);
}

.members-alt {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.members-alt a {
  font-weight: 600;
}

/* ——— Ghost comments block ——— */
.article-comments {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ——— Home: full-width video hero ——— */
.video-hero {
  position: relative;
  margin-bottom: 2rem;
}

.video-hero__link {
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
  text-decoration: none;
  min-height: min(70vh, 520px);
}

.video-hero__link:hover .video-hero__title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.video-hero__media {
  position: absolute;
  inset: 0;
  background: #111;
}

.video-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero__media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.video-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.video-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 3rem 1.25rem 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-hero__show {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.video-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

/* Home video hero only (.video-hero): hide post title + date/time on the image (kicker, deck, length chip, CTA stay) */
.video-hero .video-hero__title {
  display: none;
}

.video-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.video-hero .video-hero__meta time {
  display: none;
}

.video-hero .video-hero__meta:not(:has(.video-hero__length)) {
  display: none;
}

.video-hero__length {
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
}

.video-hero__deck {
  margin: 1rem auto 0;
  max-width: 40rem;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.video-hero__cta {
  position: absolute;
  top: 65%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  width: max-content;
  max-width: min(calc(100% - 1.5rem), calc(100vw - 1.5rem));
  box-sizing: border-box;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  white-space: nowrap;
}

.video-hero__cta-play {
  font-size: 0.75rem;
}

/* ——— Home lead: video + top stories (Daily Wire–style) ——— */
.home-lead {
  margin: 2rem 0 2.5rem;
  width: 100%;
  max-width: none;
}

/* Welcome bar already has symmetric vertical padding; drop stacked .home / hero top margin */
.site-subnav-welcome ~ main .home > .home-lead {
  margin-top: 0;
}

.home-lead__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: var(--align-inset);
  /* Tiny inset from the physical right edge (Daily Wire keeps almost no dead band) */
  padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.home-lead__grid {
  display: grid;
  /* ~Daily Wire: hero ~66% + lead rail ~34% */
  grid-template-columns: minmax(0, 66fr) minmax(220px, 34fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

.home-lead__grid:not(:has(.home-lead__sidebar)) {
  grid-template-columns: 1fr;
}

.home-lead__video {
  min-height: clamp(320px, 36vw, 520px);
  display: flex;
  flex-direction: column;
}

.video-hero--lead {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.video-hero--lead .video-hero__link {
  flex: 1;
  min-height: clamp(320px, 36vw, 520px);
  border-radius: 8px;
  overflow: hidden;
}

.video-hero__content--lead {
  max-width: none;
  width: 100%;
  padding: 2rem 1.25rem 1.75rem;
}

.home-lead__sidebar {
  background: transparent;
  border: 0;
  border-radius: 0;
  /* Rail uses .home-lead__inner right padding; no second gutter here */
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-lead__sidebar-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.home-lead__sidebar-title {
  margin: 0;
  flex-shrink: 0;
  font-size: 1.105rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #36454f;
}

.home-lead__sidebar-rule {
  flex: 1;
  min-width: 2rem;
  height: 3px;
  background: var(--accent);
}

.home-lead__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.home-lead__item {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
}

.home-lead__item:last-child {
  border-bottom: 0;
}

/* 14.5px + 1px border + 14.5px = 30px between one post block and the next */
.home-lead__link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 14.5px 0;
  text-decoration: none;
  color: #36454f;
  min-height: 0;
}

.home-lead__link:hover .home-lead__headline {
  color: var(--accent);
}

.home-lead__thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8e8;
}

.home-lead__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty thumb: same box as image on desktop; hidden with other thumbs on mobile */
.home-lead__thumb--empty {
  flex-shrink: 0;
}

.home-lead__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.home-lead__headline {
  font-family: var(--font-sans);
  font-size: 1.224rem;
  font-weight: 700;
  line-height: 1.3;
  color: #36454f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-lead__byline {
  font-size: 0.9rem;
  font-weight: 300;
  color: #b2beb5;
  line-height: 1.35;
}

.home-lead__author {
  font-weight: 300;
}

.home-lead__time {
  font-weight: 300;
}

.home-lead__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .home-lead__inner {
    padding-right: var(--page-gutter);
  }

  .home-lead__sidebar {
    padding-right: 0;
  }

  .home-lead__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-lead__video,
  .video-hero--lead .video-hero__link {
    min-height: min(280px, 58vw);
  }

  .home-lead__item:nth-child(5) {
    display: none;
  }

  .home-lead__thumb {
    display: none;
  }

  .home-lead__link {
    padding: 14.5px 0;
  }
}

/* ——— Video cards + carousel rail ——— */
.video-card {
  height: 100%;
}

.video-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.video-card__link:hover {
  border-color: #ccc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #222;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #444, #222);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0.95;
  transition: background 0.2s;
}

.video-card__link:hover .video-card__play {
  background: rgba(0, 0, 0, 0.5);
}

.video-card__play-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 0.9rem;
  padding-left: 0.2rem;
}

.video-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.video-card__show {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.video-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.video-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.video-card__length-inline {
  font-weight: 700;
}

.video-card__excerpt {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-rail {
  width: 100%;
  max-width: none;
}

.video-rail__head-wrap {
  margin-bottom: 0;
}

.video-rail__head {
  margin-bottom: 1rem;
}

.video-rail__carousel {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-left: var(--align-inset);
  padding-right: 0;
  margin-right: 0;
  width: 100%;
  max-width: none;
}

.video-rail__list {
  --rail-gap: 0.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--rail-gap);
  margin: 0;
  padding: 0 var(--page-gutter) 0.5rem 0;
  width: max-content;
  max-width: none;
}

/* ~3 cards visible per row (DailyWire-style density); scales down on narrow viewports */
.video-rail__item {
  flex: 0 0 max(
    11rem,
    min(
      380px,
      calc((100vw - var(--align-inset) - var(--page-gutter) - 2 * var(--rail-gap)) / 3)
    )
  );
  scroll-snap-align: start;
}

.video-rail__scroll-wrap {
  position: relative;
  width: 100%;
  max-width: none;
}

.video-rail__scroll-prev,
.video-rail__scroll-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  min-width: 2.75rem;
  width: max(2.75rem, min(3rem, 12vw));
  margin: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  color: #111;
  transition: opacity 0.2s ease;
}

.video-rail__scroll-prev {
  left: 0;
  right: auto;
  padding: 0 1rem 0 max(0.2rem, env(safe-area-inset-left, 0px));
  justify-content: flex-start;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.97) 35%, rgba(255, 255, 255, 0));
}

.video-rail__scroll-next {
  right: 0;
  left: auto;
  padding: 0 max(0.2rem, env(safe-area-inset-right, 0px)) 0 1rem;
  justify-content: flex-end;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.97) 35%, rgba(255, 255, 255, 0));
}

.video-rail__scroll-prev:focus,
.video-rail__scroll-next:focus {
  outline: none;
}

.video-rail__scroll-prev:focus-visible,
.video-rail__scroll-next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.video-rail__scroll-prev[hidden],
.video-rail__scroll-next[hidden] {
  display: none !important;
}

.video-rail__scroll-prev-icon,
.video-rail__scroll-next-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.video-rail--shows .video-rail__scroll-prev,
.video-rail--shows .video-rail__scroll-next {
  color: #fff;
}

.video-rail--shows .video-rail__scroll-prev {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.88) 40%, rgba(0, 0, 0, 0));
}

.video-rail--shows .video-rail__scroll-next {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.88) 40%, rgba(0, 0, 0, 0));
}

.video-rail--shows .video-rail__scroll-prev-icon,
.video-rail--shows .video-rail__scroll-next-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.author-video-rail .video-rail__track {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-left: var(--align-inset);
  padding-right: 0;
  margin-right: 0;
  width: 100%;
  max-width: none;
}

.video-rail .video-card__excerpt {
  display: none;
}

.video-rail .video-rail__list:empty,
.author-video-rail .video-rail__list:empty {
  display: none;
}

.video-rail:has(.video-rail__list:empty),
.author-video-rail:has(.video-rail__list:empty) {
  display: none;
}

/* ——— Shows rail: full width black band (section sits outside .container; same model as .site-header) ——— */
.video-rail--shows {
  margin: 0;
  padding: 2rem 0 2.35rem;
  background: #000;
  color: #fff;
  width: 100%;
  max-width: none;
}

.video-rail--shows__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.video-rail--shows__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.video-rail--shows__view-all {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.video-rail--shows__view-all:hover {
  color: rgba(255, 255, 255, 0.72);
}

.video-rail--shows .video-rail__carousel {
  padding-left: var(--align-inset);
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-rail--shows .video-rail__carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.video-rail--shows .video-rail__list {
  --rail-gap: 0.4rem;
}

.video-rail--shows .video-card__link {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
}

.video-rail--shows .video-card__link:hover {
  box-shadow: none;
  border: 0;
}

.video-rail--shows .video-card__thumb {
  border-radius: 2px;
  background: #1a1a1a;
}

.video-rail--shows .video-card__play {
  display: none;
}

.video-rail--shows .video-card__body {
  padding: 0.65rem 0 0;
  gap: 0.2rem;
}

.video-rail--shows .video-card__meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.video-rail--shows .video-card__length-inline {
  color: #fff;
}

.video-rail--shows .video-card__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.video-rail--shows .video-card__show {
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #a8a8a8;
}

/* ——— Latest episodes: light row on page background ——— */
.video-rail--episodes {
  margin: 0;
  padding: 2rem 0 2.35rem;
  background: transparent;
  color: #2d2d2d;
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--border);
}

.video-rail--episodes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.video-rail--episodes__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2d2d2d;
}

.video-rail--episodes__view-all {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d3d3d;
  text-decoration: none;
  white-space: nowrap;
}

.video-rail--episodes__view-all:hover {
  color: var(--accent);
}

.video-rail--episodes .video-card__meta {
  color: #4a4a4a;
}

.video-rail--episodes .video-card__length-inline {
  color: #4a4a4a;
}

.video-rail--episodes .video-card__title {
  color: #1f1f1f;
}

.video-rail--episodes .video-card__show {
  color: #5a5a5a;
}

/* ——— Shorts: Daily Wire–style vertical cards on black band ——— */
.shorts-rail {
  width: 100%;
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 2rem 0 2.35rem;
  background: #000;
  color: #fff;
}

.shorts-rail__inner {
  padding-left: var(--align-inset);
  padding-right: 0;
  box-sizing: border-box;
}

.shorts-rail__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.shorts-rail__carousel {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: none;
  scrollbar-width: thin;
}

.shorts-rail__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 0.35rem 0;
  width: max-content;
  max-width: none;
}

.shorts-rail__item {
  flex: 0 0 clamp(10.125rem, 39vw, 13.875rem); /* +50% vs prior clamp(6.75rem, 26vw, 9.25rem) */
  scroll-snap-align: start;
}

.shorts-rail__card {
  display: block;
  text-decoration: none;
  color: #fff;
  height: 100%;
}

.shorts-rail__card:hover .shorts-rail__caption {
  color: #fff;
}

.shorts-rail__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.shorts-rail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.shorts-rail__thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(160deg, #2a2a2a, #111);
}

.shorts-rail__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.25rem 0.55rem 0.55rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Video post template ——— */
.article--video .video-post-hero {
  position: relative;
  min-height: min(55vh, 420px);
  display: flex;
  align-items: flex-end;
}

.video-post-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.video-post-hero__media--empty {
  background: linear-gradient(145deg, #333, #111);
}

.video-post-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-post-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.video-post-hero__inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem 2rem;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.video-post-hero__show {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.video-post-hero__show a {
  color: var(--accent);
  text-decoration: none;
}

.video-post-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.video-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.video-post-hero__byline a {
  color: #fff;
  font-weight: 600;
}

.video-post-hero__length {
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
}

.video-post-body {
  padding: 2rem 0 4rem;
}

.video-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .video-post-layout {
    grid-template-columns: 1fr;
  }
}

.video-post-embed {
  margin-bottom: 2rem;
}

.video-post-embed .kg-video-card,
.video-post-embed .kg-embed-card,
.video-post-embed iframe {
  width: 100%;
  max-width: 100%;
}

.video-post-description {
  margin-bottom: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.video-post-description__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-post-description__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ——— Author / presenter profile ——— */
.author-profile-hero {
  position: relative;
  min-height: min(56vh, 520px);
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.author-profile-hero__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none; /* override global img { max-width: 100% } for full-bleed cover */
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

.author-profile-hero__cover--profile {
  filter: brightness(0.65);
  transform: scale(1.05);
}

.author-profile-hero__cover--fallback {
  background: linear-gradient(135deg, #2d2d2d, #0d0d0d);
}

.author-profile-hero__scrim {
  position: absolute;
  inset: 0;
  /* Default: strong scrim so text stays readable (do not change globally for one host) */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

.author-profile-hero--scrim-light .author-profile-hero__scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.18) 50%,
    rgba(0, 0, 0, 0.06) 100%
  );
}

.author-profile-hero--scrim-strong .author-profile-hero__scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(0, 0, 0, 0.62) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.author-profile-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  padding: 3rem 1.25rem 2.5rem;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.author-profile-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.author-profile-hero__avatar--from-cover {
  object-position: center 25%;
}

.author-profile-hero__text {
  flex: 1;
  min-width: 200px;
  color: #fff;
}

.author-profile-hero__label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.author-profile-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.author-profile-hero__title--sans {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.author-profile-hero__title--georgia {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.author-profile-hero__title--system {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
}

/* Per-host overrides (slug must match Ghost Staff profile URL, e.g. /author/andrew/ → andrew) */
.author-profile-hero[data-author-slug="jane-smith"] .author-profile-hero__title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
}

.author-profile-hero[data-author-slug="andrew"] .author-profile-hero__title {
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-shadow: none;
}

.author-profile-hero[data-author-slug="andrew"] .author-profile-hero__title::before {
  content: "";
  display: inline-block;
  width: min(92vw, 420px);
  height: min(92vw, 420px);
  max-height: 40vh;
  max-width: 100%;
  vertical-align: middle;
  background: url("https://frontline-xn.ghost.io/content/images/size/w1920/2026/03/Anna_mcgloughlin-Frontline-XN-1.png")
    left center / contain no-repeat;
}

/* Lighter scrim only for this slug (matches what you had in Code injection, with valid rgba) */
.author-profile-hero[data-author-slug="andrew"] .author-profile-hero__scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.author-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0.35rem 0 1rem;
}

.author-profile-hero__actions:not(:has(a)) {
  display: none;
}

.author-profile-hero__btn.author-profile-hero__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.author-profile-hero__btn.author-profile-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  filter: none;
}

.author-profile-hero__tagline {
  margin: 0 0 0.75rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-weight: 500;
}

.author-profile-hero__bio {
  margin: 0 0 1rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-weight: 400;
  white-space: pre-line;
}

.author-profile-hero__social a {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-right: 1rem;
}

.author-video-rail {
  padding: 2rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Show hub (tag URL + show-hub post): episodes under hero — #000 band, white copy */
.show-hub-episodes-rail {
  margin-top: 0;
  margin-bottom: 0;
  padding: 2rem 0 2.25rem;
  background: #000;
  color: #fff;
  border-top: 1px solid #000;
  border-bottom: 1px solid #0a0a0a;
}

.author-profile-hero + .show-hub-episodes-rail,
.show-hub-post .author-profile-hero + .show-hub-episodes-rail {
  margin-top: 0;
}

.show-hub-episodes-rail .section-title {
  color: #fff;
}

.show-hub-episodes-rail .section-rule {
  background: rgba(255, 255, 255, 0.35);
}

.show-hub-episodes-rail .video-card__link {
  color: #fff;
  background: #000;
  border: 0;
  box-shadow: none;
}

.show-hub-episodes-rail .video-card__link:hover {
  border-color: transparent;
  box-shadow: none;
}

.show-hub-episodes-rail .video-card__body {
  background: #000;
}

.show-hub-episodes-rail .video-card__meta,
.show-hub-episodes-rail .video-card__length-inline {
  color: rgba(255, 255, 255, 0.85);
}

.show-hub-episodes-rail .video-card__title {
  color: #fff;
}

.show-hub-episodes-rail .video-card__show {
  color: rgba(255, 255, 255, 0.65);
}

.show-hub-episodes-rail .video-card__excerpt {
  color: rgba(255, 255, 255, 0.78);
}

.show-hub-episodes-rail .video-rail__scroll-prev,
.show-hub-episodes-rail .video-rail__scroll-next {
  color: #fff;
}

.show-hub-episodes-rail .video-rail__scroll-prev {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 40%, rgba(0, 0, 0, 0));
}

.show-hub-episodes-rail .video-rail__scroll-next {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.92) 40%, rgba(0, 0, 0, 0));
}

.show-hub-episodes-rail .video-rail__scroll-prev-icon,
.show-hub-episodes-rail .video-rail__scroll-next-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* Gap between light “Latest articles” block and reels band: keep flush */
.show-hub-post .container.archive-body {
  margin-bottom: 0;
}

.archive-body + .shorts-rail {
  margin-top: 0;
}

.author-shows-rail .video-card__play {
  display: none;
}

.author-writing-head {
  margin: 2rem 0 1rem;
}

.show-hub-post__article {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.show-hub-post .article-comments {
  padding: 2.5rem 0 3rem;
}

/* ——— Mobile & narrow viewports (overflow, touch, density) ——— */
@media (max-width: 768px) {
  :root {
    --layout-nudge-left: 0px;
    --page-gutter: 0.75rem;
    --align-inset: calc((100vw - min(100vw, var(--container))) / 2 + var(--page-gutter));
  }

  .home {
    padding-bottom: 2.5rem;
  }

  .home-inner {
    gap: 2rem;
  }

  .presenters__carousel,
  .video-rail__carousel,
  .author-video-rail .video-rail__track,
  .shorts-rail__carousel {
    max-width: 100%;
  }

  .video-rail__list {
    --rail-gap: 0.4rem;
  }

  .video-rail__item {
    flex: 0 0 min(300px, calc(100vw - var(--align-inset) - var(--page-gutter) - 2.5rem));
  }

  .shorts-rail__item {
    flex: 0 0 min(11.25rem, 63vw); /* +50% vs min(7.5rem, 42vw) */
  }

  /* Video hero: ≥44px tap target (width/padding match desktop) */
  .video-hero__cta {
    min-height: 2.75rem;
    box-sizing: border-box;
  }

  .video-hero__content {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 640px) {
  .site-subnav-welcome__item:not(:last-child)::after {
    padding: 0 0.5rem;
  }

  .site-subnav-welcome__link {
    font-size: 0.9rem;
  }

  .home-lead__sidebar-title {
    font-size: 1rem;
  }

  .home-lead__headline {
    font-size: 1.05rem;
  }

  .home-lead__byline {
    font-size: 0.8125rem;
  }

  .video-hero__content {
    padding: 1.5rem max(0.75rem, env(safe-area-inset-left, 0px)) 1.75rem max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .video-hero__content--lead {
    padding: 1.25rem max(0.75rem, env(safe-area-inset-left, 0px)) 1.5rem max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .video-hero__link {
    min-height: min(52vh, 400px);
  }

  /* Same vertical position as desktop (65% from top of hero); pill wide enough for one line */
  .video-hero__cta {
    position: absolute;
    top: 65%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: max-content;
    max-width: min(calc(100% - 1.5rem), calc(100vw - 1.5rem));
    min-height: 2.75rem;
    box-sizing: border-box;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    gap: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .video-hero__cta-play {
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .video-hero__show {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .video-hero__meta {
    font-size: 0.75rem;
    gap: 0.35rem 0.65rem;
  }

  .video-hero__deck {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-top: 0.65rem;
  }

  .video-hero__title {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .article-header {
    padding: 1.25rem 0 1rem;
  }

  .article-body-wrap {
    padding: 1.25rem 0 2.5rem;
  }

  .article-content-inner {
    font-size: 1.0625rem;
  }

  .article-title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .pagination {
    flex-wrap: wrap;
    padding: 1.5rem var(--page-gutter) 2rem;
  }
}

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

  .header-link {
    font-size: 0.625rem;
  }
}

/* Koenig wide cards: avoid horizontal scroll on small screens */
@media (max-width: 640px) {
  .kg-width-wide,
  .kg-width-full {
    width: 100%;
    max-width: 100%;
  }

  .article-content-inner .kg-width-wide,
  .article-content-inner .kg-width-full {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ——— Ad / sponsored slots (theme settings) ——— */
.site-ad-banner {
  width: 100%;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

.site-ad-banner__inner {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--page-gutter) + var(--layout-nudge-left));
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.home .site-ad-banner--home .site-ad-banner__inner {
  max-width: 100%;
  padding-left: var(--align-inset);
}

.site-ad-banner__link {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.site-ad-banner__link:hover {
  border-color: #ccc;
}

.site-ad-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(280px, 42vh);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  vertical-align: middle;
}

.site-ad-banner__embed {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-sizing: border-box;
}

.site-ad-banner__embed iframe,
.site-ad-banner__embed img {
  max-width: 100%;
  vertical-align: middle;
}
