

/* GT-8 Solstice Editorial — S8_7 fonts · S8_1 palette · mobile-first */
:root {
  --so-h2: 28px;
  --so-h3: 22px;
  --so-h4: 18px;
  --so-h5: 16px;
  --so-h6: 14px;
  --dur-base: 0.25s;
  --dur-fast: 0.15s;
  --ease: ease;
  --status-warning: #f59e0b;
  --status-danger: #dc2626;
  --surface-page: #FFFFFF;
  --surface-muted: #FBEDE4;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --text-primary: #2B1B14;
  --text-secondary: #8A7468;
  --text-muted: #A89588;
  --text-inverse: #FFFFFF;
  --brand-accent: #E85D3D;
  --brand-primary: #F6C453;
  --brand-on-primary: #2B1B14;
  --dark-neutral: #231208;
  --border-subtle: rgba(43, 27, 20, 0.10);
  --border-default: rgba(43, 27, 20, 0.18);
  --shadow-rest: 0 2px 10px rgba(35, 18, 8, 0.07);
  --shadow-hover: 0 16px 34px rgba(35, 18, 8, 0.14);
  --c-tech-bg: rgba(232, 93, 61, 0.12);
  --c-tech-fg: #C05A3A;
  --c-money-bg: rgba(96, 150, 138, 0.16);
  --c-money-fg: #3F7568;
  --c-marketing-bg: rgba(159, 110, 184, 0.16);
  --c-marketing-fg: #7A4A94;
  --c-lifestyle-bg: rgba(210, 110, 140, 0.16);
  --c-lifestyle-fg: #A8425F;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1280px;
  --maxw-article: 720px;
  --ease-liquid: cubic-bezier(.22, 1, .36, 1);
  --r-card: 10px;
  --r-btn: 10px;
  --r-badge: 6px;
  --r-chip: 9999px;
  --header-h: 56px;
  /* Spacing system — generic.md §7 */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --pad-card: 16px;
  --pad-card-sm: 12px;
  --pad-card-lg: 24px;
  --pad-inset: 16px;
  --pad-stack: 12px;
  --space-section: 48px;
  --space-section-sm: 32px;
  --space-section-lg: 64px;
  --space-before-footer: var(--space-section);
  --wrap-x: 16px;
  --grid-gap: 20px;
  --grid-gap-lg: 24px;
  --stack-xs: 8px;
  --stack-sm: 12px;
  --stack-md: 16px;
  --stack-lg: 24px;
  --stack-xl: 32px;
  --c-card: var(--surface-card);
  --r-input: var(--r-btn);
  --r-avatar: 50%;
  --sh-card: var(--shadow-rest);
  --sh-hover: var(--shadow-hover);
  --dur-med: 0.25s;
  --status-success: #059669;
}

@media (min-width: 768px) {
  :root {
    --header-h: 64px;
    --space-section: 56px;
    --space-section-sm: 40px;
    --space-section-lg: 72px;
    --space-before-footer: var(--space-section);
    --wrap-x: 20px;
    --grid-gap: 24px;
    --grid-gap-lg: 28px;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
    --space-section: 64px;
    --space-section-sm: 48px;
    --space-section-lg: 80px;
    --space-before-footer: var(--space-section-lg);
    --wrap-x: 24px;
    --grid-gap: 24px;
    --grid-gap-lg: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--wrap-x);
}

/* Spacing utilities — generic.md §7 */
.card-inset {
  padding: var(--pad-card);
}

.card-inset>.tag,
.card-inset>.chip {
  margin-bottom: var(--pad-stack);
}

.card-inset>h3 {
  margin-bottom: var(--stack-sm);
}

.card-inset>p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Motion — stellina_liquid */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity .9s var(--ease-liquid), transform .9s var(--ease-liquid), filter .9s var(--ease-liquid);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal-1 {
  transition-delay: .05s;
}

.reveal-2 {
  transition-delay: .12s;
}

.reveal-3 {
  transition-delay: .19s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--r-btn);
  transition: background .25s var(--ease-liquid), color .25s var(--ease-liquid), transform .25s var(--ease-liquid);
}

.btn-solid {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.btn-solid:hover {
  background: var(--brand-accent);
  color: #fff;
}

.btn-dark {
  background: var(--dark-neutral);
  color: var(--text-inverse);
}

.btn-dark:hover {
  background: var(--brand-accent);
}

.btn-outline {
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 24px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-chip);
  white-space: nowrap;
}

.chip-tech {
  background: var(--c-tech-bg);
  color: var(--c-tech-fg);
}

.chip-money {
  background: var(--c-money-bg);
  color: var(--c-money-fg);
}

.chip-marketing {
  background: var(--c-marketing-bg);
  color: var(--c-marketing-fg);
}

.chip-lifestyle {
  background: var(--c-lifestyle-bg);
  color: var(--c-lifestyle-fg);
}

/* Opaque badge so labels stay readable on light / busy hero photos */
.tag-frost {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #271638;
  color: #ffffff;
  padding: 6px 12px;
  font-family: var(--font-display, 'Space Grotesk', -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.tag-frost:hover {
  background: #3b1d5c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Header */
.masthead {
  background: var(--surface-page);
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow .2s ease;
  overflow: visible;
}

.masthead.is-stuck {
  box-shadow: 0 2px 14px rgba(35, 18, 8, 0.07);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .5px;
  flex-shrink: 0;
  min-width: 0;
}

/* Image logos size via shared HEADER_LOGO_CSS — fixed 180px slot so nav never shifts */
.logo.logo-has-image {
  width: 180px;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
}

.logo.logo-has-image .site-logo-img {
  max-width: 180px !important;
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
  object-fit: contain;
  object-position: left center;
}

.footer-logo.logo-has-image {
  width: auto;
  max-width: min(220px, 70vw);
}

.footer-logo.logo-has-image .site-logo-img {
  max-height: 40px;
}

.logo:not(.logo-has-image) {
  max-width: min(200px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo .dot {
  color: var(--brand-accent);
}

@media (min-width: 1024px) {
  .logo:not(.logo-has-image) {
    max-width: min(180px, 22vw);
  }

  .footer-logo.logo-has-image {
    max-width: min(200px, 20vw);
  }
}

.primary-nav {
  display: none;
}

.mega-menu {
  display: none;
}

.drawer-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

@media (min-width: 1024px) {
  .head-actions {
    background: var(--surface-page);
    box-shadow: -16px 0 12px 4px var(--surface-page);
    padding-left: 4px;
  }
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.icon-btn:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: var(--surface-muted);
}

.btn-subscribe {
  display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s, opacity .2s;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .menu-bars {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .menu-bars::before {
  transform: translateY(6px) rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .menu-bars::after {
  opacity: 0;
}

@media (min-width: 1024px) {

  /* Shared nav density: 35px logo→nav (wide logos), 10px hub gap, 22px chevron */
  .masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 35px;
    min-width: 0;
  }

  .masthead .head-actions {
    display: flex;
  }

  .icon-btn.nav-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    justify-content: flex-start;
    overflow: visible;
  }

  .drawer-head {
    display: none !important;
  }

  .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: auto;
    overflow: visible;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 44px;
    padding: 8px 2px 8px 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color .2s ease;
    white-space: nowrap;
    overflow: visible;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-decoration: none;
  }

  .nav-item--plain .nav-link {
    padding-right: 8px;
  }

  .nav-item--has-dropdown .nav-link {
    padding-right: 0;
  }

  .nav-link:hover,
  .nav-item.is-active .nav-link,
  .nav-item.is-open .nav-link {
    color: var(--brand-accent);
  }

  .nav-chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    transition: color .2s ease, background .2s ease;
  }

  .nav-chevron-btn:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
  }

  .nav-item.is-active:not(.is-open) .nav-chevron-btn {
    color: var(--text-muted);
  }

  .nav-item.is-open>.nav-chevron-btn {
    color: var(--brand-accent);
  }

  .nav-chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform .2s;
  }

  .nav-item.is-open>.nav-chevron-btn .nav-chevron {
    transform: rotate(180deg);
  }

  .mega-menu {
    display: none;
    position: absolute;
    /* Flush to nav row so hover does not drop through a gap under the chevron */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    max-width: min(320px, calc(100vw - 24px));
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card);
    padding: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 100;
  }

  .mega-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  .nav-item.is-open .mega-menu {
    display: block;
  }

  .mega-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: var(--r-badge);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mega-menu a:hover {
    background: var(--surface-muted);
    color: var(--brand-accent);
  }

  .mega-menu a.is-active,
  .mega-menu a.active {
    background: var(--surface-muted);
    color: var(--brand-accent);
    font-weight: 600;
  }

  .drawer-sub {
    display: none !important;
  }

  .btn-subscribe {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
    padding-inline: 14px;
    font-size: 14px;
  }

  .icon-btn.nav-toggle {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .masthead .wrap {
    gap: 35px;
  }

  .primary-nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 13px;
    padding: 8px 2px 8px 4px;
  }

  .nav-item--plain .nav-link {
    padding-right: 8px;
  }

  .nav-item--has-dropdown .nav-link {
    padding-right: 0;
  }

  .nav-chevron-btn {
    width: 20px;
  }
}

@media (min-width: 1440px) {
  .masthead .wrap {
    gap: 35px;
  }

  .primary-nav {
    gap: 12px;
  }

  /* Keep mid-desktop density — 14px re-triggers overflow on busy sites */
  .nav-link {
    font-size: 14px;
  }

  .nav-item--plain .nav-link {
    padding-right: 8px;
  }

  .nav-item--has-dropdown .nav-link {
    padding-right: 0;
  }

  .nav-chevron-btn {
    width: 22px;
  }

  .btn-subscribe {
    font-size: 14px;
    padding-inline: 14px;
  }
}

@media (max-width: 1023px) {
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--surface-page);
    padding: 16px 24px 24px;
    transform: translateX(100%);
    transition: transform .3s var(--ease-liquid);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  html.nav-locked,
  body.nav-locked {
    overflow: hidden;
    height: 100%;
  }

  body.nav-locked {
    position: fixed;
    width: 100%;
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }

  /* Text logos may ellipsis; image logos must not inherit the header's 18vw cap or overflow clip */
  .drawer-logo {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .drawer-logo:not(.logo-has-image) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drawer-logo.logo-has-image {
    max-width: min(220px, calc(100% - 56px));
    overflow: visible;
    display: inline-flex;
    align-items: center;
  }

  .drawer-logo.logo-has-image .site-logo-img {
    max-width: min(180px, 100%) !important;
    height: 40px !important;
    max-height: 40px !important;
  }

  .drawer-close {
    flex-shrink: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    color: var(--text-primary);
  }

  .nav-chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
  }

  .nav-chevron-btn:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
  }

  .nav-item.is-active:not(.is-open) .nav-chevron-btn {
    color: var(--text-muted);
  }

  .nav-item.is-open>.nav-chevron-btn {
    color: var(--brand-accent);
  }

  .nav-chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform .2s;
  }

  .nav-item.is-open>.nav-chevron-btn .nav-chevron {
    transform: rotate(180deg);
  }

  .mega-menu {
    display: none !important;
  }

  .drawer-sub {
    display: none;
    width: 100%;
    flex-basis: 100%;
    padding: 0 0 12px 16px;
  }

  .nav-item.is-open .drawer-sub {
    display: block;
  }

  .drawer-sub a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-secondary);
  }

  .icon-btn.nav-toggle {
    display: flex;
  }
}



/* Scroll chrome */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--brand-accent);
  z-index: 90;
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-neutral);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 70;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section-lg {
  padding: var(--space-section-lg) 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-head {
  margin-bottom: clamp(20px, 4vw, 32px);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-secondary);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

/* Hero mosaic */
.hero {
  padding: var(--space-section-sm) 0 var(--space-section);
  background: var(--surface-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
}

.hero-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.hero-item .media {
  position: relative;
  overflow: hidden;
  background: var(--surface-muted);
  border-radius: var(--r-card);
}

.hero-item.tall .media {
  aspect-ratio: 3/4;
}

.hero-item.short .media {
  aspect-ratio: 4/5;
}

.hero-item .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-liquid);
}

.hero-item:hover .media img {
  transform: scale(1.03);
}

.hero-item .info {
  padding: 14px 4px 0;
}

.hero-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
  color: var(--text-primary);
}

.hero-item:hover h3 {
  color: var(--brand-accent);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #271638;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-item.short .media {
    margin-top: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-item.short .media {
    margin-top: 56px;
  }
}

/* Featured band */
.featured-banner {
  padding: 0 0 var(--space-section);
  background: var(--surface-page);
}

.featured-banner-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--dark-neutral);
  color: var(--text-inverse);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.featured-banner-copy {
  min-width: 0;
}

.featured-banner-card h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
}

.featured-banner-media {
  border-radius: var(--r-badge);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.featured-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .featured-banner-card {
    display: grid;
    grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 24px;
  }

  .featured-banner-card .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .featured-banner-media {
    aspect-ratio: 1;
  }
}

@media (min-width: 1024px) {
  .featured-banner-card {
    grid-template-columns: 140px minmax(0, 1fr) auto;
  }

  .featured-banner-card .btn {
    grid-column: auto;
  }
}

/* Hub tiles */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.hub-tile {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-rest);
  transition: transform .25s var(--ease-liquid), box-shadow .25s var(--ease-liquid);
}

.hub-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hub-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-tile .tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(35, 18, 8, .65));
}

.hub-tile .label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

@media (min-width: 768px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hub-grid--count-5 {
    grid-template-columns: repeat(6, 1fr);
  }

  .hub-grid--count-5 .hub-tile {
    grid-column: span 2;
  }

  .hub-grid--count-5 .hub-tile:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .hub-grid--count-5 .hub-tile:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .hub-grid--count-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Guide cards */
.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  transition: transform .25s var(--ease-liquid), box-shadow .25s var(--ease-liquid);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.guide-card .card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.guide-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-liquid);
}

.guide-card:hover .card-media img {
  transform: scale(1.03);
}

.guide-card .card-body {
  padding: var(--pad-card);
}

.guide-card .card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0;
}

.guide-card .card-dek {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.guide-card .card-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
}

.card-grid>* {
  min-width: 0;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Bento latest */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
}

.g-big {
  display: block;
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-rest);
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease-liquid), box-shadow .25s var(--ease-liquid);
}

.g-big:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.g-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .5s var(--ease-liquid);
}

.g-big:hover img {
  transform: scale(1.03);
}

.g-big .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(35, 18, 8, .7));
}

.g-big .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #fff;
}

.g-big h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  margin: 8px 0;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-big {
    grid-column: 1 / -1;
    min-height: 360px;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }

  .g-big {
    grid-column: auto;
    grid-row: span 2;
    min-height: 480px;
  }
}

/* More reads + sidebar */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
}

.sidebar-module {
  margin-bottom: 28px;
}

.sidebar-module h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-accent);
}

.trending-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
  border-radius: var(--r-badge);
  transition: background .2s ease, padding-left .2s ease;
}

.trending-list li:hover {
  background: var(--surface-muted);
  padding-left: 8px;
}

.trending-list li a:hover {
  color: var(--brand-accent);
}

.trending-list li a {
  min-width: 0;
}

.trending-list .rank {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.list-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r-badge);
  transition: background .2s ease, transform .2s var(--ease-liquid);
}

.list-card:hover {
  background: var(--surface-muted);
  transform: translateX(4px);
}

.list-card:hover h4 {
  color: var(--brand-accent);
}

.list-card>div:not(.thumb) {
  min-width: 0;
  flex: 1;
}

.list-card .thumb {
  width: 88px;
  flex-shrink: 0;
  border-radius: var(--r-badge);
  overflow: hidden;
  aspect-ratio: 16/9;
}

@media (min-width: 768px) {
  .list-card .thumb {
    width: 100px;
  }
}

.list-card h4 {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sidebar-module .newsletter-card .newsletter-form {
  flex-direction: column;
}

.sidebar-module .newsletter-card .newsletter-form .btn {
  width: 100%;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }
}

/* Spotlight
   - Mobile (<768): image on top, card overlaps its bottom edge slightly.
   - Tablet (768-1023): wider image, card overlaps more, centred.
   - Desktop (>=1024): 12-col grid — image left 8 cols, card overlaps from the
     right, vertically centred. Grid (not absolute) so a long title can never
     overflow or detach from the image. */
.spotlight {
  padding: var(--space-section) 0 10px;
  overflow: visible;
}

.spotlight-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spotlight-image {
  width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-muted);
}

.spotlight-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin: -32px auto 0;
  width: calc(100% - 24px);
  max-width: 640px;
  min-width: 0;
  background: var(--surface-card);
  padding: 20px;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spotlight-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.3;
  font-weight: 600;
  margin: 12px 0 10px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-panel p {
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-panel .btn {
  margin-top: auto;
}

@media (max-width: 400px) {
  .spotlight-panel {
    width: calc(100% - 16px);
    padding: 16px;
  }

  .spotlight-panel .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .spotlight-image {
    aspect-ratio: 16/9;
  }

  .spotlight-panel {
    margin-top: -88px;
    width: calc(100% - 64px);
    padding: 28px;
  }

  .spotlight-panel h2 {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .spotlight-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .spotlight-image {
    grid-column: 1 / 9;
    grid-row: 1;
    aspect-ratio: 16/10;
  }

  .spotlight-panel {
    grid-column: 8 / 13;
    grid-row: 1;
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 32px;
  }

  .spotlight-panel h2 {
    font-size: clamp(24px, 2.2vw, 30px);
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

@media (min-width: 1440px) {
  .spotlight-panel {
    padding: 40px;
  }
}

/* Trending topics grid */
.trending-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.trending-topic {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease-liquid), box-shadow .25s var(--ease-liquid);
}

.trending-topic:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.trending-topic:hover strong {
  color: var(--brand-accent);
}

.trending-topic>div {
  min-width: 0;
}

.trending-topic .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Trust pillars — removed from product; do not ship in new themes (see playbook §15.7) */

/* Newsletter */
.newsletter-band {
  padding: var(--space-section-lg) 0;
}

.newsletter-band.section-muted {
  border-bottom: 1px solid var(--border-subtle);
}

.newsletter-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
  background: var(--surface-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
}

.newsletter-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 12px 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  width: 100%;
}

.newsletter-form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.newsletter-form-row input {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--r-btn);
  font-size: 16px;
  width: 100%;
}

.newsletter-form-row input[aria-invalid="true"] {
  border-color: var(--status-danger);
}

.newsletter-error-msg {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--status-danger);
  line-height: 1.4;
}

.newsletter-band .newsletter-error-msg {
  text-align: center;
}

@media (min-width: 768px) {
  .newsletter-form-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .newsletter-form-row input {
    flex: 1;
    min-width: 0;
  }
}

/* Footer */
.site-footer {
  background: var(--surface-muted);
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top: 1px solid var(--border-subtle);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.footer-columns>* {
  min-width: 0;
}

.footer-columns h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-columns a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-columns a:hover {
  color: var(--brand-accent);
}

.footer-topics-list,
.footer-company-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-topics-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 20px;
}

.footer-topics-list li,
.footer-company-list li {
  display: flex;
}

.footer-company-list a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-company-list a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 481px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns> :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr 1.5fr 1fr;
  }

  .footer-columns> :first-child {
    grid-column: auto;
  }

  .footer-topics-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Article layout — right TOC */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--brand-accent);
}

/* Hide breadcrumbs on mobile view */
@media (max-width: 768px) {
  .breadcrumb {
    display: none !important;
  }
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-section-sm) var(--wrap-x) var(--space-section-sm);
}

/* Center the reading column on tablet/phone — without this, max-width:720px sits left on iPad */
.article-main {
  max-width: var(--maxw-article);
  min-width: 0;
  width: 100%;
  margin-inline: auto;
}

.article-sidebar {
  display: none;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.author-block>a {
  flex-shrink: 0;
  line-height: 0;
  display: inline-flex;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.author-meta-name {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.author-meta-stats {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.author-meta-credentials {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.author-meta strong {
  color: var(--text-primary);
}

@media (min-width: 641px) {

  .article-header .author-meta-name,
  .article-header .author-meta-stats {
    display: inline;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .article-header .author-meta-name::after {
    content: ' · ';
    font-weight: 400;
    color: var(--text-secondary);
  }

  .article-header .author-meta-stats time {
    color: inherit;
  }
}

@media (max-width: 640px) {
  .article-header .author-block {
    align-items: flex-start;
  }

  .article-header .author-avatar {
    width: 36px;
    height: 36px;
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  .author-bio {
    text-align: center;
  }

  .author-bio .author-block {
    justify-content: center;
  }
}

.art-hero {
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 8px;
}

.art-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.img-credit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.art-lede {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
}

.key-takeaways {
  background: var(--surface-muted);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--r-card);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.key-takeaways h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.key-takeaways li {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.key-takeaways li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-accent);
}

.definition-block {
  background: var(--surface-muted);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 24px;
}

.definition-block .term {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.definition-block .def {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.definition-block .note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.article-sidebar {
  display: none;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 32px 0 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body figure {
  margin: 28px 0;
  text-align: center;
}

.article-body figure img {
  border-radius: var(--r-card);
  margin: 0 auto;
}

.article-body figcaption {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.mid-newsletter {
  background: var(--surface-muted);
  border-radius: var(--r-card);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}

.share-rail {
  display: none;
}

.share-btn {
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.article-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.article-share-row .eyebrow {
  margin-right: 4px;
}

.article-sidebar .toc-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--r-card, 12px);
  padding: 22px 20px;
  background: var(--surface-card, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.article-sidebar .toc-panel-heading {
  display: block !important;
  font-family: var(--font-display, inherit);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-primary, #1e293b);
  line-height: 1.25;
}

.article-sidebar .toc-panel summary {
  display: none !important;
}

.toc-panel summary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toc-panel-heading {
  display: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.toc-panel summary::-webkit-details-marker {
  display: none;
}

/* Chevron for mobile accordion — marker is hidden above */
.toc-panel summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.toc-panel[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.toc-list {
  margin-top: 12px;
}

.toc-list a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: #64748b;
  border-left: 2.5px solid transparent;
  padding-left: 14px;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s ease, border-left-color 0.15s ease;
}

.toc-list li.toc-subheading a {
  padding-left: 24px;
  font-size: 13px;
}

.toc-list a.is-active,
.toc-list a:hover {
  color: #271638;
  border-left-color: #271638;
  font-weight: 600;
}

.mobile-toc .toc-list a.is-active {
  color: var(--text-secondary);
  border-left-color: transparent;
  font-weight: inherit;
}

.mobile-toc {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 14px 16px;
  background: var(--surface-muted);
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 48px;
  }

  .article-main {
    max-width: none;
    min-width: 0;
    margin-inline: 0;
  }

  .article-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .toc-panel summary {
    display: none;
  }

  .toc-panel-heading {
    display: block;
  }

  .article-main .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .article-main .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .article-main .card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hub / Sub-hub */
.hub-masthead {
  padding: var(--space-section-sm) 0;
  background: var(--surface-muted);
}

/* Leaf / subcategory pages have no Browse Sub-Hubs — tighten gap into Featured */
.hub-masthead--compact {
  padding-bottom: var(--space-section-sm);
}

.hub-masthead--compact+.section {
  padding-top: var(--space-section-sm);
}

.hub-masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  margin-bottom: 12px;
}

.hub-masthead .hub-section-cta {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.35;
  height: auto;
  min-height: 44px;
  padding: 12px 20px;
}

.hub-stats {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin: 16px 0;
}

.subhub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.subhub-chips a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-chip);
  border: 1px solid var(--border-default);
}

.subhub-chips a.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.topic-spotlight {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  transition: transform .25s var(--ease-liquid), box-shadow .25s;
  min-width: 0;
}

.topic-spotlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.topic-spotlight .card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.topic-spotlight .card-body {
  padding: var(--pad-card);
}

/* Author */
.author-page {
  padding-top: 32px;
  padding-bottom: 64px;
}

.author-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
  padding: 0 0 var(--space-section-sm);
}

.author-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 8px;
}

.author-hero .author-role {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.author-hero .author-bio-text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.65;
}

.author-hero .author-social {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.author-articles-heading {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 40px 0 20px;
}

.author-portrait {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  max-width: 360px;
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.beats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 800px) {
  .author-hero {
    text-align: center;
  }

  .author-portrait {
    margin: 0 auto;
    max-width: 240px;
    aspect-ratio: 1;
  }

  .author-stats,
  .beats-row,
  .author-hero .author-social {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .author-hero {
    grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
    align-items: start;
  }

  .author-portrait {
    max-width: none;
  }
}



/* FAQ accordion — same chevron SVG pattern as other themes */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: none;
}

.faq-item__q {
  flex: 1;
  min-width: 0;
}

.faq-item .so-faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--dur-base) var(--ease);
}

.faq-item[open] .so-faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-item p {
  padding-bottom: 16px;
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 767px) {
  .faq-item summary {
    font-size: 17px;
    padding: 18px 0;
    min-height: 52px;
  }

  .faq-item p {
    font-size: 16px;
  }
}

.share-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  padding: 0;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.share-circle:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: var(--surface-muted);
}

.share-circle svg {
  display: block;
  width: 16px;
  height: 16px;
}

.g-big .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.g-big .tag-frost {
  position: relative;
  top: auto;
  left: auto;
  align-self: flex-start;
  margin-bottom: 8px;
  background: var(--surface-page);
  color: var(--text-primary);
  box-shadow: none;
}

.section-more-desks {
  border-top: 1px solid var(--border-subtle);
}

/* Page hero / static pages — mobile-safe shell (Solstice) */
.page-hero {
  padding: var(--space-section) 0;
  min-width: 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}

.static-page-inner {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.static-page-inner .breadcrumb {
  margin-bottom: 24px;
}

.prose {
  max-width: 720px;
}

.static-page-inner .prose {
  max-width: none;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.static-page-inner :is(img, video, iframe, svg, embed, object) {
  max-width: 100%;
  height: auto;
}

.static-page-inner :is(pre, table, .so-comparison-table) {
  max-width: 100%;
}

.static-page-inner pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 767px) {
  .static-page-inner[style*="max-width"] {
    max-width: 100% !important;
  }

  .static-page-inner :is(table, .so-comparison-table) {
    display: block;
    width: 100%;
    min-width: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .static-page-inner :is(th, td) {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

.prose p {
  margin-bottom: 16px;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--text-primary);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}

.prose h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.prose ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.prose ol li {
  margin-bottom: 8px;
  list-style: decimal;
}

.prose blockquote {
  border-left: 4px solid var(--brand-accent);
  padding: 8px 20px;
  margin: 28px 0;
  font-size: 18px;
  font-weight: 600;
  background: var(--surface-muted);
}

.prose a {
  color: var(--brand-accent);
  text-decoration: underline;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 40px 0;
}

.timeline-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-lg);
  margin: var(--space-section) 0;
}

.timeline-step {
  text-align: center;
  min-width: 0;
}

.timeline-step .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

@media (min-width: 768px) {
  .timeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .timeline-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}



.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  z-index: 9999;
  border-radius: var(--r-btn);
  font-weight: 600;
}

.success-msg {
  font-size: 14px;
  color: var(--status-success);
  font-weight: 600;
  margin-top: 8px;
}

form[data-newsletter].submitted {
  display: none !important;
}

form[data-newsletter].submitted+.success-msg,
.newsletter-band-form form[data-newsletter].submitted~.success-msg {
  display: block !important;
}

.newsletter-band-end {
  padding: var(--space-section-lg) 0;
  background: var(--surface-page);
  border-top: 1px solid var(--border-subtle);
}

.newsletter-band-end .newsletter-card {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
  padding: 32px 40px;
  background: var(--surface-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
}

.newsletter-band-end .newsletter-card h3 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 4vw, 28px);
}

.newsletter-band-end .newsletter-form {
  margin-top: 0;
}

.newsletter-band-end .newsletter-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .newsletter-band-end .newsletter-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .newsletter-band-copy {
    flex: 1;
    min-width: 0;
  }

  .newsletter-band-form {
    flex: 0 0 min(100%, 440px);
  }

  .newsletter-band-end .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-band.section-muted .newsletter-card {
  margin: 0 auto;
}

.breadcrumb .current {
  overflow-wrap: anywhere;
}

.breadcrumb a {
  color: inherit;
}

.chip-default {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.logo img {
  max-height: 40px;
  width: auto;
}

.footer-brand-col .footer-social {
  margin-top: 12px;
}

.footer-brand-col .footer-logo {
  display: inline-block;
  margin-bottom: 4px;
}

.mobile-toc {
  margin-top: 24px;
  margin-bottom: 24px;
}

@media(min-width:1024px) {
  .mobile-toc {
    display: none;
  }
}

.filter-chip {
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: transparent;
  min-height: 36px;
  height: auto;
  padding: 8px 16px;
  font-family: inherit;
  line-height: 1.2;
}

/* Active fill uses brand primary — force on-primary text so chip-* colors cannot hide the label */
.filter-chip.active,
.filter-chip.active.chip-tech,
.filter-chip.active.chip-money,
.filter-chip.active.chip-marketing,
.filter-chip.active.chip-lifestyle,
.filter-chip.active.chip-default {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.filter-empty-msg {
  margin: 28px 0 8px;
  padding: 28px 20px;
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border-radius: var(--r-card);
  border: 1px dashed var(--border-default);
}

.filter-empty-msg[hidden] {
  display: none !important;
}

.hub-section-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hub-section-cta .arrow {
  flex-shrink: 0;
}

:is(.article-body, .rich-text) {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

:is(.article-body, .rich-text) h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  ;
  scroll-margin-top: calc(var(--header-h) + 16px);
  color: var(--text-primary);
}

:is(.article-body, .rich-text) h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

:is(.article-body, .rich-text) h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

:is(.article-body, .rich-text) h6 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--text-muted);
}

:is(.article-body, .rich-text) p {
  margin: 0 0 16px;
}

:is(.article-body, .rich-text) a {
  color: var(--brand-accent);
  font-weight: 500;
  text-decoration: underline;
}

:is(.article-body, .rich-text) a:hover {
  text-decoration: none;
}

:is(.article-body, .rich-text) strong,
:is(.article-body, .rich-text) b {
  font-weight: 700;
}

:is(.article-body, .rich-text) ul,
:is(.article-body, .rich-text) ol {
  margin: 16px 0 20px;
  padding-left: 20px;
}

:is(.article-body, .rich-text) ul li {
  list-style: disc;
  line-height: 1.65;
  margin-bottom: 8px;
}

:is(.article-body, .rich-text) ol li {
  list-style: decimal;
  line-height: 1.65;
  margin-bottom: 8px;
}

:is(.article-body, .rich-text) blockquote {
  border-left: 4px solid var(--brand-accent);
  padding: 8px 20px;
  margin: 28px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-muted);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}

:is(.article-body, .rich-text) blockquote p {
  margin-bottom: 0;
}

:is(.article-body, .rich-text) code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-muted);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

:is(.article-body, .rich-text) pre {
  background: var(--dark-neutral);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 20px 24px;
  border-radius: var(--r-card);
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

:is(.article-body, .rich-text) pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

:is(.article-body, .rich-text) table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 28px 0;
}

:is(.article-body, .rich-text) table th {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:is(.article-body, .rich-text) table td {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

:is(.article-body, .rich-text) table tr:nth-child(even) td {
  background: var(--surface-muted);
}

:is(.article-body, .rich-text) table tr:last-child td {
  border-bottom: none;
}

:is(.article-body, .rich-text) table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.so-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  max-width: 100%;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
}

.so-table-scroll table {
  margin: 0;
  width: 100%;
  min-width: 100%;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Horizontal scroll from tablet down — fill the card width; scroll only when needed */
@media (max-width: 1023px) {
  :is(.article-body, .rich-text) pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .so-table-scroll table,
  .so-comparison-table,
  .so-table-scroll .so-comparison-table {
    width: 100%;
    min-width: 640px;
    table-layout: fixed;
  }

  .so-quick-facts,
  .so-verdict__table {
    width: 100%;
    min-width: 560px;
    table-layout: fixed;
  }

  .so-table-scroll:has(.so-quick-facts),
  .so-table-scroll:has(.so-verdict__table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .so-comparison-table th,
  .so-comparison-table td,
  .so-quick-facts td,
  .so-verdict__table th,
  .so-verdict__table td,
  :is(.article-body, .rich-text) table th,
  :is(.article-body, .rich-text) table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    padding: 10px 8px;
    font-size: 13px;
    letter-spacing: 0;
  }
}

:is(.article-body, .rich-text) hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--brand-primary), transparent);
  margin: 40px 0;
  opacity: 0.4;
}

:is(.article-body, .rich-text) address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 15px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin: 16px 0;
  line-height: 1.65;
}

:is(.article-body, .rich-text) dl {
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  overflow: hidden;
}

:is(.article-body, .rich-text) dt {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface-muted);
  padding: 8px 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

:is(.article-body, .rich-text) dd {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  margin-left: 0;
}

:is(.article-body, .rich-text) dd:last-child {
  border-bottom: none;
}

:is(.article-body, .rich-text) mark {
  background: color-mix(in srgb, var(--brand-accent) 25%, transparent);
  color: var(--text-primary);
  padding: 1px 3px;
  border-radius: 2px;
}

:is(.article-body, .rich-text) sup,
:is(.article-body, .rich-text) sub {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

:is(.article-body, .rich-text) sup {
  top: -0.5em;
}

:is(.article-body, .rich-text) sub {
  bottom: -0.25em;
}

:is(.article-body, .rich-text) del {
  text-decoration: line-through;
  color: var(--text-muted);
}

:is(.article-body, .rich-text) ins {
  text-decoration: underline;
  text-decoration-color: var(--brand-primary);
  text-underline-offset: 3px;
}

:is(.article-body, .rich-text) abbr {
  text-decoration: underline dotted;
  cursor: help;
}

:is(.article-body, .rich-text) u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:is(.article-body, .rich-text) details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  margin: 16px 0;
}

:is(.article-body, .rich-text) summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

:is(.article-body, .rich-text) summary::-webkit-details-marker {
  display: none;
}

:is(.article-body, .rich-text) summary::after {
  content: "▾";
  color: var(--text-muted);
  font-size: 14px;
  transition: transform var(--dur-base) var(--ease);
}

:is(.article-body, .rich-text) details[open] summary::after {
  transform: rotate(180deg);
}

:is(.article-body, .rich-text) details>*:not(summary) {
  padding: 0 16px 16px;
}

:is(.article-body, .rich-text) q {
  quotes: '"' '"' "'" "'";
}

:is(.article-body, .rich-text) q::before {
  content: open-quote;
}

:is(.article-body, .rich-text) q::after {
  content: close-quote;
}

:is(.article-body, .rich-text) cite {
  font-style: italic;
  color: var(--text-muted);
}

:is(.article-body, .rich-text) .so-step__html table,
:is(.article-body, .rich-text) .so-step__html pre,
:is(.article-body, .rich-text) .so-list-item__html table,
:is(.article-body, .rich-text) .so-list-item__html pre,
:is(.article-body, .rich-text) .so-myth-pair__explanation table,
:is(.article-body, .rich-text) .so-myth-pair__explanation pre {
  margin: 16px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width:768px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-cell {
  text-align: center;
  background: var(--surface-muted);
  padding: 20px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 8px 0 4px;
}

.stat-context {
  font-size: 13px;
  color: var(--text-muted);
}

.quote-block {
  border-left: 4px solid var(--brand-primary);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}

.quote-block .q {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}

.quote-block .attr {
  font-size: 16px;
  font-weight: 600;
}

.quote-block .role {
  font-size: 14px;
  color: var(--text-muted);
}

.callout {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  border-left: 3px solid;
}

.callout svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout .cb-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.callout .cb-body {
  font-size: 15px;
  margin: 0;
}

.callout.tip {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.callout.tip svg {
  color: var(--brand-primary);
}

.callout.warning {
  background: rgba(245, 158, 11, 0.10);
  border-color: var(--status-warning);
}

.callout.warning svg {
  color: var(--status-warning);
}

.callout.note {
  background: var(--surface-muted);
  border-color: var(--border-default);
}

.callout.note svg {
  color: var(--text-secondary);
}

.callout.important {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--status-danger);
}

.callout.important svg {
  color: var(--status-danger);
}

/* ============================================================
   ARTICLE COMPONENT STYLES (so- prefix) — all 13 templates
   ============================================================ */

.so-verdict {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 24px;
}

.so-verdict__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.so-verdict__summary {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.so-verdict__note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.so-verdict__table {
  margin-top: 16px;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
}

.so-verdict__table th {
  background: color-mix(in srgb, var(--brand-primary) 15%, transparent);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  padding: 8px 16px;
  border-bottom: 2px solid var(--brand-primary);
}

.so-verdict__table td {
  font-size: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.so-verdict__table tr:last-child td {
  border-bottom: none;
}

.so-verdict__table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.so-time-estimate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.so-time-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 6px 16px;
}

.so-badge--beginner {
  background: rgba(34, 160, 107, 0.10);
  color: var(--status-success);
  border: 1.5px solid var(--status-success);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
}

.so-badge--intermediate {
  background: rgba(245, 158, 11, 0.10);
  color: var(--status-warning);
  border: 1.5px solid var(--status-warning);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
}

.so-badge--advanced {
  background: rgba(220, 38, 38, 0.08);
  color: var(--status-danger);
  border: 1.5px solid var(--status-danger);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
}

.so-subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width:540px) {
  .so-subjects {
    grid-template-columns: 1fr;
  }
}

.so-subject-card {
  background: var(--surface-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 20px;
}

.so-subject-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.so-subject-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.so-subject-card__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.so-subject-card__best {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.so-verdict-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width:540px) {
  .so-verdict-cards {
    grid-template-columns: 1fr;
  }
}

.so-verdict-card {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border: 1px solid var(--brand-primary);
  border-radius: var(--r-card);
  padding: 16px;
}

.so-verdict-card__use {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.so-verdict-card__pick {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.so-verdict-card__reason {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.so-learning-path {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
}

.so-lpath-stage {
  flex: 1;
  min-width: 140px;
  padding: 16px;
  border-right: 1px solid var(--border-subtle);
  background: var(--c-card);
}

.so-lpath-stage:last-child {
  border-right: none;
}

.so-lpath-stage:first-child {
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.so-lpath-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.so-lpath-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.so-lpath-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.so-stat-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

@media (max-width:767px) {
  .so-stat-highlights {
    grid-template-columns: 1fr;
  }
}

.so-stat-card {
  background: var(--dark-neutral);
  border-radius: var(--r-card);
  padding: 20px;
  text-align: center;
}

.so-stat-card__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
  margin: 0;
}

.so-stat-card__label {
  font-size: 14px;
  color: color-mix(in srgb, var(--text-inverse) 80%, transparent);
  margin-top: 4px;
  font-weight: 500;
}

.so-stat-card__context {
  font-size: 12px;
  color: color-mix(in srgb, var(--text-inverse) 55%, transparent);
  margin-top: 4px;
}

.so-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.so-step {
  display: flex;
  gap: 20px;
  background: var(--c-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 20px;
}

.so-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.so-step__body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.so-step__heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.so-step__html {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 100%;
  min-width: 0;
}

.so-step__html .so-table-scroll {
  max-width: 100%;
}

.so-step__tip {
  margin-top: 12px;
  padding: 12px;
  background: rgba(34, 160, 107, 0.10);
  border-radius: var(--r-card);
  font-size: 13px;
  color: var(--status-success);
}

.so-step__warn {
  margin-top: 12px;
  padding: 12px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: var(--r-card);
  font-size: 13px;
  color: var(--status-danger);
}

.so-comparison-table {
  width: 100%;
  min-width: 640px;
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.so-comparison-table th {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 20px;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.so-comparison-table td {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.so-comparison-table tr:nth-child(even) td {
  background: var(--surface-muted);
}

.so-comparison-table tr:last-child td {
  border-bottom: none;
}

.so-comparison-table tr:hover td {
  background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
}

.so-comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.so-comparison-table th:first-child {
  width: 34%;
}

.so-list-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.so-list-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 20px;
}

.so-list-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.so-list-item__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
}

.so-list-item__heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.so-list-item__html {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.so-list-item__highlight {
  margin-top: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border-radius: var(--r-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.so-myth-pairs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.so-myth-pair {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  overflow: hidden;
}

.so-myth-pair__myth {
  background: #fff1f2;
  padding: 16px 20px;
}

.so-myth-pair__fact {
  background: #f0fdf4;
  padding: 16px 20px;
}

.so-myth-pair__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.so-myth-pair__myth .so-myth-pair__label {
  color: var(--status-danger);
}

.so-myth-pair__fact .so-myth-pair__label {
  color: var(--status-success);
}

.so-myth-pair__text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.so-myth-pair__explanation {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.55;
}

.so-checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.so-checklist-group__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
}

.so-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.so-checklist-item:last-child {
  border-bottom: none;
}

.so-checklist-item__text {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.so-priority {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
}

.so-priority--must {
  background: rgba(220, 38, 38, 0.08);
  color: var(--status-danger);
}

.so-priority--should {
  background: rgba(245, 158, 11, 0.10);
  color: var(--status-warning);
}

.so-priority--nice {
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  color: var(--status-info);
}

.so-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width:540px) {
  .so-pros-cons {
    grid-template-columns: 1fr;
  }
}

.so-pros-col,
.so-cons-col {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  overflow: hidden;
}

.so-pros-col__header {
  background: rgba(34, 160, 107, 0.10);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--status-success);
}

.so-cons-col__header {
  background: rgba(220, 38, 38, 0.08);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--status-danger);
}

.so-pro-item,
.so-con-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.so-pro-item:last-child,
.so-con-item:last-child {
  border-bottom: none;
}

.so-pro-item__point,
.so-con-item__point {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.so-pro-item__detail,
.so-con-item__detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.so-quote-block {
  border-left: 4px solid var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  padding: 24px;
  border-radius: 0 var(--r-card) var(--r-card) 0;
  margin: 24px 0;
}

.so-quote-block__text {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.so-quote-block__attribution {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 12px;
}

.so-callout {
  border-radius: var(--r-card);
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid currentColor;
}

.so-callout--tip {
  background: rgba(34, 160, 107, 0.10);
  color: var(--status-success);
}

.so-callout--warning {
  background: rgba(245, 158, 11, 0.10);
  color: var(--status-warning);
}

.so-callout--note {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  color: var(--status-info);
}

.so-callout--important {
  background: rgba(220, 38, 38, 0.08);
  color: var(--status-danger);
}

.so-callout__heading {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.so-callout__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.so-quick-facts {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  border: 1px solid var(--border-subtle);
}

.so-quick-facts td {
  padding: 12px 20px;
  font-size: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

.so-quick-facts tr:last-child td {
  border-bottom: none;
}

.so-quick-facts td:first-child {
  font-weight: 700;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  width: 38%;
  border-right: 2px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.so-quick-facts__note {
  font-size: 12px;
  color: var(--text-muted);
}

.so-quick-facts tr:hover td {
  background: color-mix(in srgb, var(--brand-primary) 4%, transparent);
}

.so-quick-facts tr:hover td:first-child {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.so-glossary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.so-glossary-item {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.so-glossary-item:last-child {
  border-bottom: none;
}

.so-glossary-item__term {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.so-glossary-item__def {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.55;
}

.so-expert-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.so-expert-tip {
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 20px;
}

.so-expert-tip__tip {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.so-expert-tip__rationale {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.55;
}

.so-quick-wins {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.so-quick-win {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-muted);
  border-radius: var(--r-card);
  border: 1px solid var(--border-subtle);
}

.so-quick-win__impact {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.so-quick-win__impact--high {
  background: rgba(34, 160, 107, 0.10);
  color: var(--status-success);
}

.so-quick-win__impact--medium {
  background: rgba(245, 158, 11, 0.10);
  color: var(--status-warning);
}

.so-quick-win__impact--low {
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  color: var(--status-info);
}

.so-quick-win__action {
  font-size: 14px;
  color: var(--text-secondary);
}

.so-resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.so-resource-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 16px;
}

.so-resource-card__type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 8px;
}

.so-resource-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.so-resource-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.so-prerequisites {
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 20px;
  margin: 20px 0;
}

.so-prerequisites__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.so-prerequisites__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.so-prerequisites__item::before {
  content: "—";
  color: var(--brand-primary);
  flex-shrink: 0;
  font-weight: 700;
}

.so-in-content-img {
  border-radius: var(--r-card);
  overflow: hidden;
  margin: 16px 0;
}

.so-in-content-img img {
  width: 100%;
  height: auto;
}

.so-in-content-img figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
}

.so-faq {
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  overflow: hidden;
}

.so-faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.so-faq-item:last-child {
  border-bottom: none;
}

.so-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 16px 20px;
  background: var(--c-card);
  border: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
  gap: 12px;
  cursor: pointer;
}

.so-faq-btn:hover {
  background: var(--surface-muted);
}

.so-faq-btn[aria-expanded="true"] {
  color: var(--brand-primary);
}

.so-faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease);
}

.so-faq-btn[aria-expanded="true"] .so-faq-chevron {
  transform: rotate(180deg);
}

.so-faq-body {
  display: none;
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.so-faq-body.open {
  display: block;
}

@media (max-width: 767px) {
  .so-faq-btn {
    font-size: 17px;
    padding: 18px 16px;
    min-height: 52px;
  }

  .so-faq-body {
    font-size: 16px;
    padding: 0 16px 18px;
  }
}

.so-summary-box {
  background: var(--surface-muted);
  border-radius: var(--r-card);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.so-summary-box__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin: 0;
}

.so-summary-box__text {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}



/* Shared header logo — fixed slot so nav never shifts (icon or wordmark) */
.logo.logo-has-image:not(.footer-logo),
a.logo.logo-has-image:not(.footer-logo),
.site-logo.logo-has-image,
.masthead .logo.logo-has-image,
.site-header .logo.logo-has-image,
.hl-logo.logo-has-image,
.bw-logo.logo-has-image,
.bs-logo.logo-has-image {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
}

.logo-has-image:not(.footer-logo) .site-logo-img,
.site-logo.logo-has-image .site-logo-img,
.masthead .logo-has-image .site-logo-img,
.site-header .logo-has-image .site-logo-img,
.hl-logo.logo-has-image .site-logo-img,
.bw-logo.logo-has-image .site-logo-img,
.bs-logo.logo-has-image .site-logo-img {
  display: block !important;
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1023px) {

  .logo.logo-has-image:not(.footer-logo),
  a.logo.logo-has-image:not(.footer-logo),
  .site-logo.logo-has-image,
  .masthead .logo.logo-has-image,
  .site-header .logo.logo-has-image,
  .hl-logo.logo-has-image,
  .bw-logo.logo-has-image,
  .bs-logo.logo-has-image {
    width: min(180px, calc(100vw - 96px)) !important;
    min-width: min(180px, calc(100vw - 96px)) !important;
    max-width: min(180px, calc(100vw - 96px)) !important;
  }
}

/* Category page — Load more */
.category-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}

.category-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--brand-primary, var(--c-brand, var(--b-primary, var(--accent, #111111))));
  color: var(--brand-on-primary, var(--c-brand-on, var(--c-text-inv, #ffffff)));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.category-load-more-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.category-load-more-btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.category-load-more-btn:focus-visible {
  outline: 2px solid var(--brand-primary, var(--c-brand, #111111));
  outline-offset: 3px;
}

/* ── Token aliases (resolved per-theme via each trail's :root vars) ── */
:root {
  --nxs-search-brand: var(--brand-primary, var(--b-primary, var(--c-brand, var(--hl-primary, var(--bw-primary, var(--bs-brand, #111))))));
  --nxs-search-on-brand: var(--brand-on-primary, var(--brand-onprimary, var(--b-onPrimary, var(--b-on-primary, var(--c-text-inv, #fff)))));
  --nxs-search-surface: var(--surface-card, var(--c-card, var(--surface-page, var(--c-page, var(--hl-surface, #fff)))));
  --nxs-search-ink: var(--text-primary, var(--t-primary, var(--c-text, var(--hl-ink, #111))));
  --nxs-search-muted: var(--text-tertiary, var(--text-muted, var(--t-muted, var(--c-text-muted, var(--hl-muted, #666)))));
  --nxs-search-secondary: var(--text-secondary, var(--t-secondary, var(--c-text-secondary, var(--hl-body, #444))));
  --nxs-search-border: var(--border-subtle, var(--border-default, var(--c-border, var(--hl-border, rgba(0, 0, 0, 0.12)))));
  --nxs-search-display: var(--font-display, var(--f-display, var(--hl-font-display, var(--font-body, var(--f-body, var(--hl-font, inherit))))));
  --nxs-search-body: var(--font-body, var(--f-body, var(--hl-font, inherit)));
  --nxs-search-radius: var(--radius, var(--radius-sm, var(--r-card, var(--radius-card, var(--hl-r-md, var(--bw-r-md, var(--bs-r-md, 12px)))))));
  --nxs-search-radius-btn: var(--radius-pill, var(--r-button, var(--r-btn, var(--radius-button, var(--hl-r-md, 9999px)))));
}

/* ── Search overlay lock ─────────────────────────────────────────── */
html.nxs-search-open,
body.nxs-search-open {
  overflow: hidden;
}

/* ── Header search button ────────────────────────────────────────── */
.nxs-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 9999px;
  transition: background 180ms ease, color 180ms ease;
}

.nxs-search-btn:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.nxs-search-btn:focus-visible {
  outline: 2px solid var(--nxs-search-brand, currentColor);
  outline-offset: 2px;
}

/* ── Overlay ─────────────────────────────────────────────────────── */
.nxs-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(10vh, 48px) 20px 32px;
}

.nxs-search-overlay[hidden] {
  display: none !important;
}

.nxs-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nxs-search-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  background: var(--nxs-search-surface);
  color: var(--nxs-search-ink);
  font-family: var(--nxs-search-body);
  border-radius: var(--nxs-search-radius);
  border: 1px solid var(--nxs-search-border);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 28px 64px rgba(0, 0, 0, 0.22);
  padding: 28px 28px 22px;
  animation: nxs-search-panel-in 220ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes nxs-search-panel-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nxs-search-overlay__panel {
    animation: none;
  }
}

.nxs-search-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--nxs-search-muted);
  border-radius: var(--nxs-search-radius-btn);
  transition: background 160ms ease, color 160ms ease;
}

.nxs-search-overlay__close:hover {
  background: color-mix(in srgb, var(--nxs-search-ink) 6%, transparent);
  color: var(--nxs-search-ink);
}

.nxs-search-overlay__eyebrow {
  margin: 0 36px 14px 0;
  font-family: var(--nxs-search-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nxs-search-brand);
  line-height: 1.2;
}

.nxs-search-overlay__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nxs-search-overlay__form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-right: 4px;
}

.nxs-search-overlay__input {
  flex: 1;
  min-width: 0;
  font-family: var(--nxs-search-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding: 10px 2px 14px;
  border: none;
  border-bottom: 2px solid var(--nxs-search-border);
  background: transparent;
  color: var(--nxs-search-ink);
  border-radius: 0;
  transition: border-color 180ms ease;
}

/* Hide browser clear (X) on type=search — overlay already has its own close control */
.nxs-search-overlay__input::-webkit-search-cancel-button,
.nxs-search-overlay__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.nxs-search-overlay__input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.nxs-search-overlay__input::placeholder {
  color: var(--nxs-search-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nxs-search-overlay__input:focus {
  outline: none;
  border-bottom-color: var(--nxs-search-brand);
}

.nxs-search-overlay__submit {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--nxs-search-radius-btn);
  cursor: pointer;
  background: var(--nxs-search-brand);
  color: var(--nxs-search-on-brand);
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease, background 160ms ease;
}

.nxs-search-overlay__submit:not(:disabled):hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.nxs-search-overlay__submit:disabled {
  cursor: not-allowed;
  background: color-mix(in srgb, var(--nxs-search-brand) 28%, var(--nxs-search-border));
  color: color-mix(in srgb, var(--nxs-search-on-brand) 85%, transparent);
  opacity: 1;
}

.nxs-search-overlay__hint {
  margin: 14px 0 0;
  font-family: var(--nxs-search-body);
  font-size: 0.875rem;
  color: var(--nxs-search-muted);
  line-height: 1.4;
}

.nxs-search-overlay__hint[hidden] {
  display: none !important;
}

/* ── Search route layout (sticky footer — main fills remaining viewport) ── */
html:has(main.nxs-search-page) {
  height: 100%;
}

body:has(main.nxs-search-page) {
  min-height: 100dvh !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

body:has(main.nxs-search-page) main#main.nxs-search-page {
  flex: 1 0 auto !important;
  min-height: 0;
}

body:has(main.nxs-search-page) .drawer,
body:has(main.nxs-search-page) .drawer-scrim,
body:has(main.nxs-search-page) .nxs-search-overlay {
  position: fixed !important;
}

body:has(main.nxs-search-page) .skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ── Search results page ─────────────────────────────────────────── */
main#main.nxs-search-page {
  flex: 1 0 auto !important;
  /* Same container as Contact Us / static pages (.wrap + .page-hero) */
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-section) var(--wrap-x);
  box-sizing: border-box;
  font-family: var(--nxs-search-body);
  color: var(--nxs-search-ink);
  background: var(--surface-page, var(--c-page, transparent));
}

#nxs-search-results {
  min-height: 0;
}

.nxs-search-page__title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-family: var(--nxs-search-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--nxs-search-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nxs-search-page__sub {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--nxs-search-muted);
  line-height: 1.5;
}

.nxs-search-status {
  padding: 16px 0;
  font-size: 1.05rem;
  color: var(--nxs-search-secondary);
  word-break: break-word;
}

.nxs-search-status--error {
  color: var(--status-danger, #8a2b2b);
}

.nxs-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nxs-search-result {
  border-bottom: 1px solid var(--nxs-search-border);
}

.nxs-search-result:last-child {
  border-bottom: none;
}

.nxs-search-result__link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-decoration: none;
  color: var(--nxs-search-ink);
  transition: color 160ms ease;
}

/* Override theme-global a:hover underline — brand color shift instead */
.nxs-search-result__link:hover,
.nxs-search-result__link:focus-visible {
  text-decoration: none;
  color: var(--nxs-search-ink);
}

.nxs-search-result__link:hover .nxs-search-result__title,
.nxs-search-result__link:focus-visible .nxs-search-result__title {
  color: var(--nxs-search-brand);
  text-decoration: none;
}

.nxs-search-result__link:hover .nxs-search-result__desc,
.nxs-search-result__link:focus-visible .nxs-search-result__desc {
  color: color-mix(in srgb, var(--nxs-search-brand) 58%, var(--nxs-search-secondary));
  text-decoration: none;
}

.nxs-search-result__body {
  min-width: 0;
  flex: 1;
}

.nxs-search-result__rank {
  margin: 0 0 6px;
  font-family: var(--nxs-search-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nxs-search-brand);
  line-height: 1.2;
}

.nxs-search-result__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--nxs-search-display);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms ease;
}

.nxs-search-result__desc {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--nxs-search-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms ease;
}

.nxs-search-result__media {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  overflow: hidden;
  border-radius: calc(var(--nxs-search-radius) * 0.35);
  background: var(--c-muted, var(--surface-muted, var(--hl-surface-2, #eee)));
}

.nxs-search-result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .nxs-search-overlay__panel {
    padding: 22px 18px 18px;
  }

  .nxs-search-overlay__input {
    font-size: 1.35rem;
  }

  .nxs-search-page__title {
    font-size: 1.5rem;
    letter-spacing: -0.015em;
  }

  .nxs-search-result__link {
    gap: 14px;
  }

  .nxs-search-result__media {
    width: 96px;
    height: 72px;
  }

  .nxs-search-result__title {
    font-size: 1.1rem;
  }
}

/* ── Desktop nav overflow (right of search) ──────────────────────── */
.nxs-nav-more {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  /* Inherit actions/header color — never force --nxs-search-ink (invisible on dark mastheads) */
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
}

.nxs-nav-more .nxs-nav-more__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.nxs-nav-more:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.nxs-nav-more:focus-visible {
  outline: 2px solid var(--nxs-search-brand, currentColor);
  outline-offset: 2px;
}

/* Only when JS reveals it AND desktop nav is active (mobile hamburger hidden) */
@media (min-width: 1024px) {

  /*
   * Search + mobile menu cluster — pinned right of the nav slot (overflow is outside this).
   */
  [data-nxs-header-tools],
  .nxs-header-tools {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto !important;
    margin-inline-start: auto !important;
    position: relative;
    z-index: 5;
  }

  /*
   * Overflow inside the tools cluster (search → overflow → mobile menu).
   * Do not viewport-pin — keeps the control in the header row flex flow.
   */
  [data-nxs-header-tools] .nxs-nav-more:not([hidden]) {
    display: inline-flex;
    position: static;
    transform: none;
    margin: 0;
    flex-shrink: 0;
  }

  /*
   * Overflow btn as direct child of full-width <header> (viewport trailing edge),
   * outside the centered .container — pinned without altering max-width on the row.
   */
  :is(.site-header, .masthead, .bw-header, .hl-header, .bs-header)>.nxs-nav-more:not([hidden]) {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 6;
    margin: 0 !important;
    flex-shrink: 0;
  }

  @media (min-width: 768px) {
    :is(.site-header, .masthead, .bw-header, .hl-header, .bs-header)>.nxs-nav-more:not([hidden]) {
      right: 20px;
    }
  }

  @media (min-width: 1024px) {
    :is(.site-header, .masthead, .bw-header, .hl-header, .bs-header)>.nxs-nav-more:not([hidden]) {
      right: 24px;
    }
  }

  /*
   * Mid-width desktop (~1024–1560px): keep centered header rows clear of the
   * viewport-pinned overflow control while their trailing edge remains nearby.
   */
  @media (max-width: 1560px) {

    :is(.site-header, .masthead, .bw-header, .hl-header, .bs-header):has(> .nxs-nav-more:not([hidden]))> :is(.header-row, .header-inner, .row, .wrap, .container, .site-header__row,
      .bw-header__inner, .hl-header__inner, .bs-header__inner) {
      padding-right: 80px;
      box-sizing: border-box;
    }
  }

  /*
   * Logo | nav slot | actions — one flex budget on every theme header row.
   * Do NOT set width/max-width here — themes define .container max-width (e.g. 1280px).
   */
  :is(.header-row, .header-inner, .masthead .row, .masthead .wrap,
    .masthead .container.row, .site-header .row, .site-header__row,
    .bw-header__inner, .hl-header__inner, .bs-header__inner) {
    justify-content: flex-start !important;
    min-width: 0;
  }

  /*
   * Bound the hub row to the flex slot; JS hides hubs that do not fit.
   * overflow:visible so theme mega dropdowns (absolute; top:100%) still paint.
   */
  [data-nxs-nav-fit] {
    min-width: 0;
    max-width: 100%;
    /* flex-basis 0% stops the hub row growing with its content on themes that
       use flex:1 — without this nav.clientWidth can equal content width and the
       overflow hamburger never appears even when links crowd the search icon. */
    flex: 1 1 0% !important;
    flex-shrink: 1;
    /* Pack hubs from the logo edge — same slot budget as Full Story / Pulse Press */
    justify-content: flex-start !important;
    align-items: center;
  }

  [data-nxs-nav-fit]>ul,
  [data-nxs-nav-fit]>ol {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start !important;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  [data-nxs-nav-fit]>ul {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  /*
   * Mid-desktop density — generic themes only; health themes keep their own
   * token padding/gap (inline ul gaps are set via rules below).
   */
  @media (min-width: 1024px) and (max-width: 1439px) {

    [data-nxs-nav-fit]:not(.hl-nav):not(.bw-nav):not(.bs-nav) :is(.nav-link, .hub-link, .nav-plain, .nav-item__link,
      .masthead nav > a) {
      font-weight: 500;
    }

    [data-nxs-nav-fit]:not(.hl-nav):not(.bw-nav):not(.bs-nav) :is(.nav-item--plain, .hub-item):not(:has(.nav-toggle, .hub-chevron, .nav-chevron-btn)) :is(.nav-link, .hub-link) {
      padding-right: 8px;
    }

    [data-nxs-nav-fit]:not(.hl-nav):not(.bw-nav):not(.bs-nav) .nav-item--has-dropdown .nav-link,
    [data-nxs-nav-fit]:not(.hl-nav):not(.bw-nav):not(.bs-nav) .hub-item:has(.hub-chevron) .hub-link {
      padding-right: 0;
    }
  }

  /* Health hub rows — theme tokens set link padding; sync flex gap on inner <ul> */
  @media (min-width: 1024px) and (max-width: 1439px) {
    :is(.hl-nav, .bw-nav, .bs-nav)[data-nxs-nav-fit]>ul {
      gap: 10px !important;
    }
  }

  @media (min-width: 1440px) {
    :is(.hl-nav, .bw-nav, .bs-nav)[data-nxs-nav-fit]>ul {
      gap: 14px !important;
    }
  }

  [data-nxs-nav-fit],
  [data-nxs-nav-fit]>ul,
  [data-nxs-nav-item] {
    overflow: visible !important;
  }

  /* Keep hub megas above sibling header chrome (actions fade, etc.) */
  [data-nxs-nav-item] .bw-mega,
  [data-nxs-nav-item] .hl-mega,
  [data-nxs-nav-item] .bs-mega,
  [data-nxs-nav-item] .mega,
  [data-nxs-nav-item] .mega-menu,
  [data-nxs-nav-item] .mega-panel {
    z-index: 60;
  }
}

@media (max-width: 1023px) {
  .nxs-nav-more {
    display: none !important;
  }
}

.nxs-nav-item--clipped {
  display: none !important;
}

[data-nxs-nav-fit] {
  min-width: 0;
}

.nxs-nav-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(8, 10, 14, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.nxs-nav-more-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nxs-nav-more-overlay[hidden] {
  display: none !important;
}

.nxs-nav-more-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 10050;
  width: min(360px, 92vw);
  height: 100dvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nxs-search-surface, #fff);
  color: var(--nxs-search-ink, #111);
  font-family: var(--nxs-search-body, inherit);
  border-left: 1px solid var(--nxs-search-border, rgba(0, 0, 0, 0.12));
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 280ms;
}

.nxs-nav-more-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nxs-nav-more-panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {

  .nxs-nav-more-overlay,
  .nxs-nav-more-panel {
    transition: none;
  }
}

.nxs-nav-more-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--nxs-search-border, rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
}

.nxs-nav-more-panel__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nxs-search-brand, #111);
}

.nxs-nav-more-panel__close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--nxs-search-muted, #666);
  border-radius: 8px;
}

.nxs-nav-more-panel__close:hover {
  color: var(--nxs-search-ink, #111);
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.nxs-nav-more-panel__body {
  flex: 1;
  overflow: auto;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.nxs-nav-more__empty {
  margin: 16px;
  color: var(--nxs-search-muted, #666);
  font-size: 0.95rem;
}

.nxs-nav-more__group {
  border-bottom: 1px solid var(--nxs-search-border, rgba(0, 0, 0, 0.08));
}

.nxs-nav-more__row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nxs-nav-more__link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 14px 8px 14px 16px;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--nxs-search-ink, #111);
  text-decoration: none;
  line-height: 1.3;
}

.nxs-nav-more__link--solo {
  padding-right: 16px;
}

.nxs-nav-more__link:hover {
  color: var(--nxs-search-brand, #111);
  text-decoration: none;
}

.nxs-nav-more__acc {
  flex-shrink: 0;
  width: 48px;
  border: none;
  background: transparent;
  color: var(--nxs-search-muted, #666);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nxs-nav-more__acc:hover {
  color: var(--nxs-search-ink, #111);
}

.nxs-nav-more__acc[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nxs-nav-more__acc svg {
  transition: transform 160ms ease;
}

.nxs-nav-more__subs {
  display: flex;
  flex-direction: column;
  padding: 0 16px 12px 24px;
  gap: 2px;
}

.nxs-nav-more__subs[hidden] {
  display: none !important;
}

.nxs-nav-more__sublink {
  padding: 10px 8px;
  font-size: 0.9rem;
  color: var(--nxs-search-secondary, #444);
  text-decoration: none;
  border-radius: 6px;
}

.nxs-nav-more__sublink:hover {
  color: var(--nxs-search-brand, #111);
  background: color-mix(in srgb, var(--nxs-search-brand, #111) 8%, transparent);
  text-decoration: none;
}

/* Lock page scroll while desktop overflow panel is open (all themes). */
html.nxs-nav-more-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.nxs-nav-more-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 1023px) {

  .nxs-nav-more-overlay,
  .nxs-nav-more-panel {
    display: none !important;
  }
}

figure[data-nsb-image] img,
figure[data-nsb-image] svg {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: unset;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body>main {
  flex: 1 0 auto;
}


/* Palette Theme Override */
:root {
  --brand-accent: #240341;
  --brand-primary: #040007;
  --brand-on-primary: #FFFFFF;
  --surface-page: #f9f8fa;
  --surface-muted: #e7e1ec;
  --dark-neutral: #271636;
  --text-primary: #2c2235;
  --text-secondary: #715e82;
  --text-muted: #907f9f;
  --text-inverse: #f0ecf3;
  --border-subtle: #e1dae7;
  --border-default: #d4c9de;
  --c-tech-fg: #240341;
  --c-tech-bg: color-mix(in srgb, #240341 14%, transparent);
  --c-money-fg: #040007;
  --c-money-bg: color-mix(in srgb, #040007 14%, transparent);
  --c-marketing-fg: #9b2fbc;
  --c-marketing-bg: color-mix(in srgb, #9b2fbc 14%, transparent);
  --c-lifestyle-fg: #6133cc;
  --surface-tint: color-mix(in srgb, #240341 8%, white);
  --brand-accent-soft: color-mix(in srgb, #240341 72%, white);
  --editors-panel: #271636;
  --c-lifestyle-bg: color-mix(in srgb, #6133cc 14%, transparent);
}

/* --- NXS Contact Card & Form Styles --- */
.nxs-contact-card {
  margin: 32px 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.nxs-contact-card__inner {
  position: relative;
  max-width: 640px;
  padding: 40px 36px 36px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.nxs-contact-card__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--brand-primary, #0f172a) 0%,
      var(--brand-accent, #240341) 50%,
      var(--brand-primary, #0f172a) 100%);
}

.nxs-contact-card__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.nxs-contact-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
  line-height: 1.2;
}

.nxs-contact-card__desc {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary, #64748b);
}

.nxs-contact-form {
  display: grid;
  gap: 20px;
}

.nxs-contact-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .nxs-contact-name-row {
    grid-template-columns: 1fr;
  }
}

.nxs-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nxs-contact-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary, #1e293b);
}

.nxs-contact-label__optional {
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

.nxs-contact-input,
.nxs-contact-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  color: var(--text-primary, #0f172a);
  background: #fff;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.nxs-contact-textarea {
  min-height: 132px;
  resize: vertical;
}

.nxs-contact-input::placeholder,
.nxs-contact-textarea::placeholder {
  color: var(--text-muted, #94a3b8);
}

.nxs-contact-input:hover,
.nxs-contact-textarea:hover {
  border-color: var(--border-default, #cbd5e1);
}

.nxs-contact-input:focus,
.nxs-contact-textarea:focus {
  border-color: var(--brand-primary, #0f172a);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent, #240341) 16%, transparent);
  background: #fff;
}

.nxs-contact-input.is-invalid,
.nxs-contact-textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.nxs-contact-error {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  line-height: 1.4;
}

.nxs-contact-error.is-visible {
  display: block;
}

.nxs-contact-submit {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg,
      var(--brand-accent, #240341) 0%,
      var(--brand-primary, #040007) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(36, 3, 65, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nxs-contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(36, 3, 65, 0.28);
}

.nxs-contact-submit:active:not(:disabled) {
  transform: translateY(0);
}

.nxs-contact-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.nxs-contact-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nxs-contact-spin 0.7s linear infinite;
}

.nxs-contact-submit.is-loading .nxs-contact-submit__spinner {
  display: block;
}

.nxs-contact-submit.is-loading .nxs-contact-submit__label {
  opacity: 0.85;
}

@keyframes nxs-contact-spin {
  to {
    transform: rotate(360deg);
  }
}

.nxs-contact-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.nxs-contact-success.is-visible {
  display: block;
}

.nxs-contact-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
}

.nxs-contact-success__title {
  margin: 0 0 10px;
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.nxs-contact-success__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary, #64748b);
}

@media (max-width: 640px) {
  .nxs-contact-card__inner {
    padding: 32px 20px 28px;
    border-radius: 16px;
  }
}

/* --- Contact & Imprint Responsive 2-Column Grid Layout --- */

.contact-layout-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

@media (min-width: 860px) {
  .contact-layout-wrap {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.95fr);
    gap: 32px;
    align-items: start;
  }
}

.contact-layout-wrap .nxs-contact-card {
  margin: 0;
}

.contact-layout-wrap .nxs-contact-card__inner {
  max-width: none;
  width: 100%;
}

.contact-info-card {
  margin: 0;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
}

.contact-info-card__inner {
  position: relative;
  padding: 40px 32px 36px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 36px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.contact-info-card__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--brand-accent, #240341) 0%,
      var(--brand-primary, #F6C453) 100%);
}

.contact-info-card__title {
  margin: 0 0 20px;
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #1e293b);
  line-height: 1.25;
}

.contact-info-card__company {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  line-height: 1.5;
}

.contact-info-card__email {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.contact-info-card__email a {
  color: var(--text-primary, #1e293b);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.contact-info-card__email a:hover {
  color: var(--brand-accent, #240341);
}

.contact-info-card__address {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary, #475569);
}

.contact-info-card__address p {
  margin: 0 0 4px;
}

.contact-info-card__address p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .contact-info-card__inner {
    padding: 32px 20px 28px;
    border-radius: 16px;
  }
}

/* --- Preferences Styles --- */
#preferences-content-wrap a.modify-preference {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--text-primary, #000);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-primary, #000);
  cursor: pointer;
  font-weight: 500;
  background: transparent;
  box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, .04);
  transition: all 0.2s ease;
}

#preferences-content-wrap a.modify-preference:hover {
  background: var(--text-primary, #271636);
  color: #fff;
}

.skeleton-container p {
  width: 100%;
  height: 20px;
  margin-bottom: 14px;
  display: block;
  animation: skeleton-loading 1s linear infinite alternate;
  border-radius: 4px;
}

.skeleton-container p:nth-of-type(1) {
  width: 50%;
  height: 32px;
}

@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 88%);
  }

  100% {
    background-color: hsl(200, 20%, 96%);
  }
}

/* Cookie Preferences Slider Switch */
.pref-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease;
}

input:checked+.pref-slider::before {
  transform: translateX(20px);
}

/* Category links on card chips/tags */
[data-cat-link] {
  cursor: pointer !important;
  z-index: 10;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.chip[data-cat-link] {
  position: relative;
}

[data-cat-link]:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}


/* Hero Section Category Badges */
.hero-item .media .tag-frost,
.hero-item .tag-frost,
.tag-frost {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: #271638 !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  font-family: var(--font-display, 'Space Grotesk', -apple-system, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20 !important;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease !important;
}

.hero-item .media .tag-frost:hover,
.hero-item .tag-frost:hover,
.tag-frost:hover {
  background: #3b1d5c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
}

/* Clean Component & Utility Classes (Moved from inline styles) */

.site-logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.footer-logo .site-logo-img {
  max-width: 160px;
}

.heading-link,
.section-head h2 a {
  color: inherit;
  text-decoration: none;
}

.section-head h2 a:hover {
  color: var(--brand-accent);
}

.hub-section-cta-wrap {
  margin-top: 24px;
}

.contact-address-img {
  max-width: 100%;
  height: auto;
  display: block;
  width: auto;
}

.contact-office-address {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.contact-office-address span {
  font-size: 14px;
  font-weight: 400;
}

.author-bio {
  background: var(--surface-muted);
  border-radius: var(--r-card);
  padding: 24px;
  margin: 32px 0;
}

.related-stories-heading {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 32px 0 20px;
}

.article-disclaimer {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.dnslinkwrap a#dnslink {
  display: none;
}


/* Additional Theme Component Styles */
.spotlight-panel p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-address-wrap {
  margin-top: 8px;
}

.author-block-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.author-bio-text {
  margin-top: 12px;
  font-size: 16px;
}

.sidebar-module-wrap {
  margin-top: 24px;
}

.sidebar-module-title {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 12px;
}

.cat-subtitle,
#cat-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
}

.category-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 20px;
}

.category-subhubs-heading {
  margin-bottom: 24px;
}

.category-story-grid {
  margin-top: 20px;
}

.topic-spotlight-link {
  display: block;
  min-height: 360px;
}
/* ==========================================================
   DiamondTheme (MinimalAPICore) additions
   ========================================================== */
/* "Read more" clamp for the first article paragraph when ads are shown */
.threelinedot {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.8em;
  cursor: pointer;
}
.threelinedot.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}
.article-body #relatedsearches1,
.article-body #relatedsearches2 { margin: 1.25rem 0; }
.article-body .clear { clear: both; }

/* Sponsored blocks on the search page */
.nxs-search-page .iframe-container { width: 100%; margin: 0 0 1.5rem; }
.nxs-search-page .nxs-search-page__query { color: var(--text-secondary, #8A7468); margin: -0.5rem 0 1.5rem; }
.nxs-search-result__url { font-size: .8rem; color: var(--text-secondary, #8A7468); word-break: break-all; margin: 0 0 .35rem; }

/* Text logo fallback when a domain has no logo image */
.logo.logo-text { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.footer-logo.logo-text { color: #fff; }

/* Rich-text content coming from the CMS (contact / privacy) */
.contact-db-content { margin-bottom: 2rem; }

/* ==========================================================================
   Header category nav: max 6 inline + "More" dropdown (desktop >= 1024px).
   Hamburger + drawer only below 1024px (phones / tablets).
   ========================================================================== */
.nav-more-dup:not(.is-shown) {
  display: none !important;
}

@media (min-width: 1024px) {
  /* Extras exist only inside the More menu on desktop */
  .nav-item--extra {
    display: none !important;
  }

  /* Categories sit next to the search icon (right side), not after the logo */
  .masthead .primary-nav[data-nxs-nav-fit] {
    justify-content: flex-end !important;
  }

  /* No extra categories and nothing clipped → no More button */
  .nav-item--more-empty:not(.is-needed) {
    display: none !important;
  }

  /* Match the plain category links exactly (buttons don't inherit font by default) */
  .primary-nav .nav-link.nav-more-btn {
    gap: 6px;
    padding-right: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: inherit;
    color: var(--text-primary);
  }

  .nav-more-btn .nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform .2s;
  }

  .nav-item--more.is-open .nav-more-btn,
  .nav-item--more:hover .nav-more-btn {
    color: var(--brand-accent);
  }

  .nav-item--more.is-open .nav-more-btn .nav-chevron {
    transform: rotate(180deg);
  }

  /* Right-aligned so it never runs off-screen next to the search icon */
  .nav-item--more .nav-more-menu {
    left: auto;
    right: 0;
    transform: none;
    min-width: 220px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-item--more .nav-more-menu--cols {
    max-width: min(480px, calc(100vw - 24px));
    width: max-content;
    display: none;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 2px 8px;
  }

  .nav-item--more.is-open .nav-more-menu--cols {
    display: grid;
  }
}

@media (min-width: 1440px) {
  .primary-nav .nav-link.nav-more-btn {
    font-size: 14px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .nav-item--more:hover .nav-more-menu {
    display: block;
  }

  .nav-item--more:hover .nav-more-menu--cols {
    display: grid;
  }
}

@media (max-width: 1023px) {
  /* Drawer lists every category flat — no More toggle needed */
  .nav-item--more {
    display: none !important;
  }
}

/* Contact page without the form: info card on its own, not stretched full width */
.contact-layout-wrap--single {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 560px;
}

.prose .contact-info-card__title,
.rich-text .contact-info-card__title {
  margin-top: 0;
}

/* Contact Us default details (no DB content): support cards grid */
.contact-cards-heading {
  margin-top: 32px;
}

.contact-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-cards .contact-info-card,
.contact-cards .contact-info-card__inner {
  height: 100%;
}

.contact-cards .contact-info-card__inner {
  box-sizing: border-box;
  padding: 28px 24px 24px;
}

.contact-info-card--wide {
  grid-column: 1 / -1;
}

.prose .contact-info-card__desc,
.contact-info-card__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary, #475569);
}

.prose .contact-info-card__row,
.contact-info-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary, #1e293b);
  overflow-wrap: anywhere;
}

.contact-info-card__row:last-child {
  margin-bottom: 0;
}

.contact-info-card__label {
  flex: 0 0 auto;
  min-width: 48px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.contact-info-card__row a {
  color: var(--text-primary, #1e293b);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info-card__row a:hover {
  color: var(--brand-accent, #240341);
}

.prose .contact-info-card__company,
.rich-text .contact-info-card__company {
  margin-top: 0;
}

/* 2-column tablet grid: the 3rd support card would sit alone — let it span the row */
@media (min-width: 768px) and (max-width: 1099px) {
  .contact-cards > .contact-info-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Images inserted inline in article content (editor wraps them in <p><span>) */
.article-body p img,
.article-body span img {
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: var(--r-card);
}

/* Search: empty state */
.nxs-search-empty {
  margin: 8px 0 32px;
  padding: 24px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--r-card);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: 16px;
  text-align: center;
  overflow-wrap: anywhere;
}
