/* Feature components added to HeyStory without replacing its visual system. */

.heystory-reader-gate {
  position: relative;
  overflow-anchor: none;
}

.heystory-reader-gate__content,
.heystory-reader-gate__dock {
  overflow-anchor: none;
}

body:has(.heystory-reader-gate) > .continue-reading,
body:has(#storyFloatingBar) > .continue-reading {
  display: none;
}

.heystory-reader-gate.is-ready {
  overflow: hidden;
  transition: max-height 420ms ease;
}

.heystory-reader-gate.is-revealing {
  transition: none;
}

.heystory-reader-gate.is-open {
  overflow: visible;
}

.heystory-reader-gate__content > :first-child {
  margin-top: 0;
}

.heystory-reader-gate__dock {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: none;
  justify-content: center;
  align-items: end;
  min-height: 150px;
  padding: 62px 16px 14px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface) 92%, transparent) 38%, var(--surface) 72%);
}

.heystory-reader-gate.is-collapsed .heystory-reader-gate__dock {
  display: flex;
}

.heystory-reader-gate__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(100%, 250px);
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-button);
  background: var(--color-primary);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 24%, transparent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  touch-action: manipulation;
}

.heystory-reader-gate__button:hover,
.heystory-reader-gate__button:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.heystory-reader-gate__button:disabled {
  cursor: wait;
  opacity: .72;
}

.heystory-reader-gate__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heystory-reader-gate__button.has-cue:not(:disabled) svg {
  animation: heystory-reader-cue 1.7s ease-in-out infinite;
}

.heystory-reader-gate--text .heystory-reader-gate__button,
.heystory-reader-gate--divider .heystory-reader-gate__button {
  min-width: auto;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--color-primary);
}

.heystory-reader-gate--outline .heystory-reader-gate__button,
.heystory-reader-gate--paper .heystory-reader-gate__button {
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  color: var(--color-primary);
}

.heystory-reader-gate--pill .heystory-reader-gate__button {
  border-radius: 999px;
}

.heystory-reader-gate--label .heystory-reader-gate__button {
  border-radius: 8px;
  box-shadow: none;
}

.heystory-reader-gate--sticky .heystory-reader-gate__dock {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
}

.heystory-reader-gate [hidden] {
  display: none !important;
}

.single-layout.without-sidebar {
  grid-template-columns: minmax(0, var(--article-width));
}

.single-layout.has-share-rail.without-sidebar {
  grid-template-columns: 48px minmax(0, var(--article-width));
}

.heystory-sticky-sidebar .single-layout > .sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
}

.featured-image.has-feature-ratio img {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--featured-ratio);
  object-fit: cover;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}

.article-tags a {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.article-tags a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Legal-page generator and Latest News shortcode, expressed in HeyStory's
   existing surface, spacing, and card language. */
.am-page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 34px;
  padding: clamp(26px, 6vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.am-page-hero h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.08;
}

.am-page-hero p {
  position: relative;
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.am-page-hero.has-hero-image {
  min-height: 300px;
  display: flex;
  justify-content: end;
  flex-direction: column;
  color: #fff;
  background: #191919;
}

.am-page-hero.has-hero-image::after {
  position: absolute;
  content: '';
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.am-page-hero.has-hero-image > *:not(.am-hero-image) {
  z-index: 1;
}

.am-page-hero.has-hero-image p { color: rgba(255, 255, 255, .82); }

.am-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
}

.am-stats-grid,
.am-cards-grid,
.am-team-grid,
.am-sitemap-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.am-stat,
.am-card,
.am-team-member,
.am-sitemap-column,
.am-contact-info {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: min(var(--radius-card), 16px);
  background: var(--surface);
}

.am-stat-number {
  display: block;
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 800;
}

.am-stat-label,
.am-card p,
.am-team-member p {
  color: var(--muted);
  font-size: 13px;
}

.am-info-box {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
  background: var(--surface-soft);
}

.am-info-box.warning { border-left-color: #d97706; }
.am-info-box.success { border-left-color: #16a34a; }

.am-contact-row {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.am-contact-row:last-child { border-bottom: 0; }

.am-latest-news {
  display: block;
  max-width: none !important;
  margin: 36px 0;
}

.am-ln-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.am-ln-live {
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.am-ln-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
}

.am-ln-count { margin-left: auto; }

.am-ln-grid {
  margin-top: 20px;
}

.am-ln-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.am-ln-more {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.am-ln-more:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Compatibility design for publisher pages created with the amx component
   vocabulary. These pages predate the current legal-page generator and keep
   their content intact when the theme is upgraded. */
.page-content:has(.entry-content > .amx-hero) {
  width: min(calc(100% - 48px), 1180px);
  padding-top: clamp(20px, 3vw, 38px);
}

.page-content:has(.entry-content > .amx-hero) > header {
  display: none;
}

.page-content:has(.entry-content > .amx-hero) > .entry-content,
.entry-content:has(> .amx-hero) {
  width: 100%;
  max-width: none;
  color: var(--text);
  font-size: var(--article-size, 19px);
  line-height: 1.76;
}

.entry-content:has(> .amx-hero) > * {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.entry-content:has(> .amx-hero) > p:not([class]),
.entry-content:has(> .amx-hero) > ul:not([class]),
.entry-content:has(> .amx-hero) > ol:not([class]) {
  max-width: 76ch;
  margin-right: auto;
  margin-left: auto;
}

.entry-content:has(> .amx-hero) > p:first-of-type::first-letter {
  float: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.entry-content:has(> .amx-hero) :is(.amx-hero, .amx-card, .amx-h) > p:empty {
  display: none;
}

.amx-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(290px, 36vw, 410px);
  flex-direction: column;
  justify-content: end;
  margin: 0 0 clamp(28px, 4vw, 42px);
  padding: clamp(34px, 6vw, 66px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary) 34%, #272329);
  border-radius: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 88% 2%, color-mix(in srgb, var(--color-primary) 72%, #f2b5a2) 0, transparent 34%),
    linear-gradient(130deg, #151515 0%, #272225 58%, color-mix(in srgb, var(--color-primary) 62%, #171719) 100%);
  box-shadow: 0 24px 62px rgba(18, 16, 17, .16);
  color: #fff;
}

.amx-hero::before {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: clamp(20px, 7vw, 100px);
  width: clamp(180px, 30vw, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: '';
  box-shadow:
    0 0 0 40px rgba(255, 255, 255, .025),
    0 0 0 90px rgba(255, 255, 255, .018);
}

.amx-hero--slim {
  min-height: clamp(230px, 28vw, 310px);
}

.amx-hero-kicker {
  display: block;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--color-primary) 32%, #fff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.amx-hero-title {
  max-width: 15ch;
  margin: 0 0 14px !important;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em;
}

.amx-hero--slim .amx-hero-title {
  font-size: clamp(34px, 5vw, 58px) !important;
}

.amx-hero-sub {
  max-width: 61ch;
  margin: 0 !important;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.62;
}

.amx-lede {
  max-width: 800px !important;
  margin: 0 auto clamp(30px, 5vw, 54px) !important;
  color: var(--text);
  font-size: clamp(20px, 2.35vw, 27px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.48;
  text-align: center;
}

.amx-grid-3,
.amx-grid-4 {
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
  margin: 24px 0 clamp(40px, 6vw, 64px);
}

.amx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amx-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amx-card,
.amx-stat {
  min-width: 0;
  padding: clamp(19px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: min(var(--radius-card), 18px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.amx-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.amx-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--border));
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.amx-card :is(h3, h4) {
  margin: 14px 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.22;
  letter-spacing: -.03em;
}

.amx-card h4 {
  font-size: 18px;
}

.amx-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.amx-ico {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--color-primary) 11%, var(--surface));
  color: var(--color-primary);
}

.amx-ico svg {
  width: 21px;
  height: 21px;
}

.amx-stat {
  text-align: center;
}

.amx-stat-number {
  display: block;
  color: var(--color-primary);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.amx-stat-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.amx-h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(42px, 6vw, 70px) 0 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}

.amx-h::after {
  height: 3px;
  flex: 1;
  max-width: 86px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--color-primary);
  content: '';
}

.amx-h-num {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--color-primary) 11%, var(--surface));
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.amx-h h2 {
  margin: 0 !important;
  font-size: clamp(25px, 3.2vw, 36px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.04em;
}

.amx-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 46px;
  padding: 0 !important;
  list-style: none;
  counter-reset: amx-step;
}

.amx-steps li {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding: 25px 24px 23px 74px;
  border: 1px solid var(--border);
  border-radius: min(var(--radius-card), 17px);
  background: var(--surface);
  box-shadow: var(--shadow);
  counter-increment: amx-step;
}

.amx-steps li::before {
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  content: counter(amx-step, decimal-leading-zero);
  font-size: 10px;
  font-weight: 800;
}

.amx-steps strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.25;
}

.amx-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.amx-check {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 22px 0 46px;
  padding: 0 !important;
  list-style: none;
}

.amx-check li {
  position: relative;
  margin: 0;
  padding: 15px 17px 15px 48px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}

.amx-check li::before {
  position: absolute;
  top: 14px;
  left: 15px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, #15803d 13%, var(--surface));
  color: #15803d;
  content: '✓';
  font-size: 12px;
  font-weight: 800;
}

.amx-note {
  max-width: 900px !important;
  margin: 22px auto !important;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--border));
  border-left: 5px solid var(--color-primary);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-primary) 6%, var(--surface));
  font-size: 14px;
  line-height: 1.68;
}

.amx-note--info {
  border-color: color-mix(in srgb, #2563eb 25%, var(--border));
  border-left-color: #2563eb;
  background: color-mix(in srgb, #2563eb 6%, var(--surface));
}

.amx-note--warn {
  border-color: color-mix(in srgb, #d97706 28%, var(--border));
  border-left-color: #d97706;
  background: color-mix(in srgb, #d97706 7%, var(--surface));
}

.amx-note--ok {
  border-color: color-mix(in srgb, #15803d 25%, var(--border));
  border-left-color: #15803d;
  background: color-mix(in srgb, #15803d 6%, var(--surface));
}

.amx-note :is(p, ul, ol) {
  margin-top: 7px;
  margin-bottom: 0;
}

.amx-note:has(> svg) {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
}

.amx-note > svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-primary);
}

.amx-note > p:empty {
  display: none;
}

.amx-note--info > svg { color: #2563eb; }
.amx-note--warn > svg { color: #d97706; }
.amx-note--ok > svg { color: #15803d; }

.amx-cta {
  position: relative;
  isolation: isolate;
  margin: clamp(42px, 6vw, 72px) 0 0;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border-radius: clamp(17px, 2vw, 24px);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--color-primary) 70%, #e1a18c), transparent 37%),
    #171719;
  color: #fff;
}

.amx-cta h3 {
  max-width: 18ch;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.amx-cta > p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.amx-cta > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.amx-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.amx-btn:hover {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
}

.amx-btn--ghost {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .08);
}

.amx-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
}

.amx-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--border);
}

.amx-contact-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
}

.amx-contact-row > p:empty {
  display: none;
}

.amx-contact-row > div {
  min-width: 0;
}

.amx-contact-row strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.amx-contact-row a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.amx-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 26px 0 42px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.amx-toc a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.amx-toc a:hover {
  background: var(--color-primary);
  color: #fff;
}

.amx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--surface));
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.amx-badge svg {
  width: 13px;
  height: 13px;
}

.amx-table-wrap {
  margin: 22px 0 46px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.amx-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.amx-table :is(th, td) {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.amx-table th {
  background: var(--surface-soft);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.amx-table tr:last-child td {
  border-bottom: 0;
}

.amx-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin: 26px 0 0;
}

.amx-sitemap > p:empty {
  display: none;
}

.amx-sitemap-col {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.amx-sitemap-col h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.amx-sitemap-col ul + h3 {
  margin-top: 28px;
}

.amx-sitemap-col :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.amx-sitemap-col li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.amx-sitemap-col li:last-child {
  border-bottom: 0;
}

.amx-sitemap-col a {
  display: inline;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.amx-sitemap-col a::after {
  margin-left: 5px;
  color: var(--color-primary);
  content: '→';
}

@media (max-width: 900px) {
  .amx-grid-4,
  .amx-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amx-contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .page-content:has(.entry-content > .amx-hero) {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .entry-content:has(> .amx-hero) {
    font-size: 16px;
    line-height: 1.72;
  }

  .amx-hero,
  .amx-hero--slim {
    min-height: 270px;
    margin-inline: 0;
    padding: 27px 21px;
    border-radius: 16px;
  }

  .amx-hero-title,
  .amx-hero--slim .amx-hero-title {
    font-size: clamp(34px, 11vw, 47px) !important;
  }

  .amx-hero-sub {
    font-size: 14px;
  }

  .amx-lede {
    font-size: 20px;
    text-align: left;
  }

  .amx-grid-3,
  .amx-grid-4,
  .amx-steps,
  .amx-check,
  .amx-toc,
  .amx-sitemap {
    grid-template-columns: minmax(0, 1fr);
  }

  .amx-grid-3,
  .amx-grid-4 {
    gap: 10px;
  }

  .amx-card,
  .amx-stat {
    padding: 19px;
  }

  .amx-h {
    align-items: flex-start;
  }

  .amx-h::after {
    display: none;
  }

  .amx-h-num {
    width: 34px;
    height: 34px;
  }

  .amx-h h2 {
    font-size: 25px !important;
  }

  .amx-steps li {
    min-height: 0;
    padding: 20px 18px 20px 65px;
  }

  .amx-steps li::before {
    top: 19px;
    left: 17px;
  }

  .amx-note {
    padding: 16px 17px;
  }

  .amx-cta {
    padding: 27px 21px;
  }

  .amx-cta > p:last-child {
    display: grid;
  }

  .amx-btn {
    width: 100%;
  }

  .amx-toc {
    padding: 11px;
  }
}

/* HeyStory trust and legal center. */
.page-content:has(.hs-legal-document) {
  width: min(calc(100% - 48px), 1120px);
}

.page-content:has(.hs-legal-document) > header {
  display: none;
}

.page-content:has(.hs-legal-document) > .entry-content,
.entry-content > .hs-legal-document {
  max-width: 1040px;
}

.hs-legal-document {
  color: var(--text);
  font-size: 17px;
  line-height: 1.78;
}

.hs-legal-document > h2,
.hs-legal-document > h3,
.hs-legal-document > p,
.hs-legal-document > ul,
.hs-legal-document > ol {
  max-width: 72ch;
  margin-right: auto;
  margin-left: auto;
}

.hs-legal-document > h2 {
  margin-top: 2.1em;
  margin-bottom: .55em;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.035em;
}

.hs-legal-document > h3 { margin-top: 1.7em; }
.hs-legal-document li + li { margin-top: 8px; }

.hs-legal-hero {
  position: relative;
  min-height: clamp(280px, 40vw, 430px);
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--color-primary) 74%, #fff), transparent 34%),
    linear-gradient(135deg, #1d1c21 0%, #29242a 58%, color-mix(in srgb, var(--color-primary) 60%, #17171a) 100%);
  color: #fff;
}

.hs-legal-hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(13, 13, 15, .85), rgba(13, 13, 15, .2));
}

.hs-legal-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
}

.hs-legal-hero__content {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 760px;
  padding: clamp(26px, 5vw, 54px);
}

.hs-legal-hero__content > span {
  display: inline-block;
  margin-bottom: 11px;
  color: #f1a8ba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hs-legal-hero h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1;
  letter-spacing: -.055em;
}

.hs-legal-hero p {
  max-width: 55ch;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.55;
}

.hs-legal-meta,
.hs-legal-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
}

.hs-legal-meta > span,
.hs-legal-contact > div {
  padding: 15px 17px;
  background: var(--surface);
  font-size: 13px;
}

.hs-legal-meta strong,
.hs-legal-contact span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hs-legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  scrollbar-width: none;
}

.hs-legal-nav strong,
.hs-legal-nav a {
  flex: none;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
}

.hs-legal-nav strong { color: var(--muted); }
.hs-legal-nav a { background: var(--surface-soft); color: var(--text); font-weight: 700; }
.hs-legal-nav a:hover { background: var(--color-primary); color: #fff; }

.hs-legal-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.hs-legal-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-legal-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hs-legal-grid > section {
  min-width: 0;
  padding: clamp(18px, 2.8vw, 28px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hs-legal-grid > section > span {
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hs-legal-grid h3 { margin: 8px 0; font-size: 20px; line-height: 1.2; }
.hs-legal-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.hs-legal-grid ul { padding-left: 18px; }
.hs-legal-grid a { font-weight: 700; }

.hs-legal-callout {
  max-width: 72ch;
  margin: 34px auto;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--border));
  border-left: 5px solid var(--color-primary);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-primary) 7%, var(--surface));
}

.hs-legal-callout p { margin: 5px 0 0; color: var(--muted); }

@media (max-width: 700px) {
  .page-content:has(.hs-legal-document) { width: calc(100% - 24px); padding-top: 18px; }
  .hs-legal-document { font-size: 16px; line-height: 1.72; }
  .hs-legal-hero { min-height: 310px; margin-inline: 0; border-radius: 14px; }
  .hs-legal-hero__content { padding: 23px 20px; }
  .hs-legal-hero h2 { font-size: clamp(34px, 11vw, 46px); }
  .hs-legal-grid--three,
  .hs-legal-grid--two,
  .hs-legal-meta,
  .hs-legal-contact { grid-template-columns: minmax(0, 1fr); }
  .hs-legal-grid { gap: 10px; }
  .hs-legal-nav { margin-inline: 0; }
}

/* Publisher center v2. The generated pages use a compact editorial frame,
   readable policy column, and a sticky contents rail instead of oversized
   generic page sections. */
.page-content:has(.hs-trust-page) {
  width: min(calc(100% - 40px), 1180px);
  padding-top: clamp(20px, 3vw, 38px);
}

.page-content:has(.hs-trust-page) > .entry-content,
.entry-content > .hs-trust-page {
  width: 100%;
  max-width: none;
}

.hs-trust-page {
  --trust-ink: var(--text);
  --trust-faint: color-mix(in srgb, var(--muted) 84%, transparent);
  --trust-rule: color-mix(in srgb, var(--border) 88%, transparent);
  --trust-tint: color-mix(in srgb, var(--color-primary) 6%, var(--surface));
  font-size: 16px;
  line-height: 1.76;
}

.hs-trust-page .hs-legal-hero {
  min-height: clamp(260px, 31vw, 360px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: clamp(18px, 2vw, 26px);
  background:
    radial-gradient(circle at 86% 0%, color-mix(in srgb, var(--color-primary) 58%, #b87559), transparent 36%),
    linear-gradient(125deg, #151515 0%, #252122 62%, #3d292c 100%);
  box-shadow: 0 22px 58px rgba(15, 15, 18, .14);
}

.hs-trust-page .hs-legal-hero::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: clamp(20px, 5vw, 72px);
  width: 1px;
  height: 100%;
  content: '';
  background: linear-gradient(transparent, rgba(255, 255, 255, .16), transparent);
}

.hs-trust-page .hs-legal-hero::after {
  background: linear-gradient(90deg, rgba(10, 10, 12, .9) 0%, rgba(10, 10, 12, .46) 66%, rgba(10, 10, 12, .18) 100%);
}

.hs-trust-page .hs-legal-hero__content {
  max-width: 760px;
  padding: clamp(28px, 5vw, 56px);
}

.hs-trust-page .hs-legal-hero__content > span {
  margin-bottom: 14px;
  color: #ffd1c6;
  font-size: 10px;
  letter-spacing: .2em;
}

.hs-trust-page .hs-legal-hero h2 {
  max-width: 15ch;
  margin-bottom: 14px;
  font-size: clamp(35px, 5.1vw, 60px);
  line-height: .99;
}

.hs-trust-page .hs-legal-hero p {
  max-width: 58ch;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(14px, 1.5vw, 17px);
}

.hs-trust-page .hs-legal-meta {
  position: relative;
  z-index: 2;
  width: calc(100% - clamp(32px, 7vw, 84px));
  margin: -1px auto 0;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 34px rgba(15, 15, 18, .06);
}

.hs-trust-page .hs-legal-meta > span {
  min-width: 0;
  padding: 15px clamp(14px, 2vw, 21px);
  overflow-wrap: anywhere;
}

.hs-trust-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  align-items: start;
  gap: clamp(38px, 6vw, 78px);
  margin-top: clamp(34px, 5vw, 62px);
}

.hs-trust-sidebar {
  position: sticky;
  top: 106px;
  min-width: 0;
  padding-top: 8px;
}

.hs-trust-sidebar__label {
  display: block;
  margin-bottom: 13px;
  color: var(--trust-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hs-trust-sidebar nav {
  display: grid;
  border-top: 1px solid var(--trust-rule);
}

.hs-trust-sidebar nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--trust-rule);
  color: var(--trust-ink);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
}

.hs-trust-sidebar nav i {
  color: var(--trust-faint);
  font-size: 13px;
  font-style: normal;
  transition: transform 160ms ease, color 160ms ease;
}

.hs-trust-sidebar nav a:hover,
.hs-trust-sidebar nav a:focus-visible {
  color: var(--color-primary);
}

.hs-trust-sidebar nav a:hover i,
.hs-trust-sidebar nav a:focus-visible i {
  color: var(--color-primary);
  transform: translateX(3px);
}

.hs-trust-sidebar > p {
  margin: 18px 0 0;
  color: var(--trust-faint);
  font-size: 11px;
  line-height: 1.6;
}

.hs-trust-content {
  min-width: 0;
  max-width: 720px;
  padding-bottom: 54px;
  color: var(--trust-ink);
}

.hs-trust-content > :first-child { margin-top: 0; }

.hs-trust-content > h2 {
  margin: 2.1em 0 .52em;
  color: var(--trust-ink);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.14;
  letter-spacing: -.035em;
  scroll-margin-top: 120px;
}

.hs-trust-content > h2::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: var(--color-primary);
  content: '';
}

.hs-trust-content > h3 {
  margin: 1.7em 0 .45em;
  font-size: 20px;
  line-height: 1.25;
}

.hs-trust-content > p,
.hs-trust-content > ul,
.hs-trust-content > ol {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.hs-trust-content > p {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.hs-trust-lead {
  margin-bottom: 30px !important;
  color: var(--trust-ink);
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(20px, 2.35vw, 25px);
  line-height: 1.5;
  letter-spacing: -.018em;
}

.hs-trust-statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 42px;
}

.hs-trust-statements > section {
  position: relative;
  min-height: 172px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--trust-rule);
  border-radius: 17px;
  background: var(--surface);
}

.hs-trust-statements > section:first-child {
  border-color: transparent;
  background: #1a1a1d;
  color: #fff;
}

.hs-trust-statements > section::after {
  position: absolute;
  right: -20px;
  bottom: -36px;
  width: 100px;
  height: 100px;
  border: 22px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  border-radius: 50%;
  content: '';
}

.hs-trust-statements span,
.hs-trust-directory > section > span,
.hs-trust-contact-card > span {
  display: block;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hs-trust-statements > section:first-child span { color: #ffb8a8; }

.hs-trust-statements strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 19px;
  line-height: 1.38;
}

.hs-trust-steps {
  margin: 26px 0 40px;
  border-top: 1px solid var(--trust-rule);
}

.hs-trust-steps > section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--trust-rule);
}

.hs-trust-steps b {
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: .08em;
}

.hs-trust-steps h3 { margin: 0 0 4px; font-size: 18px; }
.hs-trust-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.hs-trust-checklist {
  display: grid;
  gap: 0;
  margin: 22px 0 36px !important;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--trust-rule);
}

.hs-trust-checklist li {
  position: relative;
  margin: 0 !important;
  padding: 14px 0 14px 31px;
  border-bottom: 1px solid var(--trust-rule);
}

.hs-trust-checklist li::before {
  position: absolute;
  top: 18px;
  left: 2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  content: '\2713';
  font-size: 10px;
  font-weight: 900;
}

.hs-trust-page .hs-legal-grid {
  gap: 12px;
  margin: 25px 0 38px;
}

.hs-trust-page .hs-legal-grid > section {
  padding: 22px;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: none;
}

.hs-trust-page .hs-legal-grid h3 { font-size: 18px; }
.hs-trust-page .hs-legal-grid p { font-size: 13px; line-height: 1.65; }

.hs-trust-action {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-primary);
  font-size: 12px;
  text-decoration: none;
}

.hs-trust-contact-card {
  display: grid;
  margin-top: 38px;
  padding: 25px;
  border: 1px solid var(--trust-rule);
  border-radius: 17px;
  background: var(--trust-tint);
}

.hs-trust-contact-card > span { margin-bottom: 7px; }
.hs-trust-contact-card > strong { font-size: 19px; }
.hs-trust-contact-card > a { width: fit-content; margin-top: 3px; font-weight: 700; }
.hs-trust-contact-card > p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.hs-trust-page .hs-legal-callout {
  max-width: none;
  margin: 34px 0;
  padding: 21px 22px;
  border-radius: 13px;
}

.hs-legal-callout--quiet {
  border-color: var(--trust-rule) !important;
  border-left-width: 1px;
  background: var(--surface-soft);
}

.hs-trust-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hs-trust-directory > section {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--trust-rule);
  border-radius: 16px;
  background: var(--surface);
}

.hs-trust-directory > section > span { margin-bottom: 4px; }
.hs-trust-directory h2 { margin: 0 0 16px; font-size: 21px; letter-spacing: -.025em; }
.hs-trust-directory ul { margin: 0; padding: 0; list-style: none; }
.hs-trust-directory li { margin: 0; border-top: 1px solid var(--trust-rule); }
.hs-trust-directory a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--trust-ink);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}
.hs-trust-directory a:hover { color: var(--color-primary); }
.hs-trust-directory i { font-style: normal; }

.hs-trust-latest-feed { margin-top: 30px; }
.hs-trust-latest-feed .am-latest-news { margin: 0; }

@media (max-width: 920px) {
  .hs-trust-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 30px;
  }

  .hs-trust-sidebar {
    position: static;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--trust-rule);
    border-radius: 14px;
    background: var(--surface);
  }

  .hs-trust-sidebar nav {
    display: flex;
    gap: 7px;
    padding-top: 11px;
    overflow-x: auto;
    border-top: 1px solid var(--trust-rule);
    scrollbar-width: none;
  }

  .hs-trust-sidebar nav a {
    flex: none;
    padding: 7px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 11px;
  }

  .hs-trust-sidebar nav i,
  .hs-trust-sidebar > p { display: none; }
}

@media (max-width: 700px) {
  .page-content:has(.hs-trust-page) {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .hs-trust-page {
    font-size: 15px;
    line-height: 1.72;
  }

  .hs-trust-page .hs-legal-hero {
    min-height: 250px;
    border-radius: 15px;
  }

  .hs-trust-page .hs-legal-hero::before { display: none; }
  .hs-trust-page .hs-legal-hero__content { padding: 25px 20px; }
  .hs-trust-page .hs-legal-hero h2 { font-size: clamp(32px, 10.8vw, 44px); }
  .hs-trust-page .hs-legal-hero p { font-size: 13px; line-height: 1.5; }

  .hs-trust-page .hs-legal-meta {
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr);
    margin-top: -1px;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
  }

  .hs-trust-page .hs-legal-meta > span { padding: 10px 13px; }
  .hs-trust-layout { gap: 24px; margin-top: 25px; }
  .hs-trust-sidebar { padding: 13px; border-radius: 12px; }
  .hs-trust-sidebar__label { margin-bottom: 8px; }
  .hs-trust-sidebar nav { margin: 0; }
  .hs-trust-content { padding: 0 4px 38px; }
  .hs-trust-content > h2 { margin-top: 1.85em; font-size: 25px; scroll-margin-top: 92px; }
  .hs-trust-content > h2::before { width: 27px; margin-bottom: 10px; }
  .hs-trust-lead { margin-bottom: 24px !important; font-size: 19px; line-height: 1.48; }
  .hs-trust-statements { grid-template-columns: minmax(0, 1fr); margin: 24px 0 32px; }
  .hs-trust-statements > section { min-height: 132px; padding: 20px; }
  .hs-trust-steps > section { grid-template-columns: 39px minmax(0, 1fr); gap: 10px; padding: 16px 0; }
  .hs-trust-page .hs-legal-grid--three,
  .hs-trust-page .hs-legal-grid--two,
  .hs-trust-directory { grid-template-columns: minmax(0, 1fr); }
  .hs-trust-page .hs-legal-grid > section,
  .hs-trust-directory > section { padding: 19px; }
  .hs-trust-page .hs-legal-callout { padding: 18px; }
}

@keyframes heystory-reader-cue {
  0%, 70%, 100% { transform: translateY(0); }
  82% { transform: translateY(3px); }
  92% { transform: translateY(-1px); }
}

.r34c8-toc {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: min(var(--radius-card), 14px);
  background: var(--surface-soft);
}

.r34c8-toc-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.r34c8-toc ol {
  margin: 0;
  padding-inline-start: 22px;
}

.r34c8-toc li {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.45;
}

.r34c8-toc a {
  color: var(--text);
  text-decoration: none;
}

.r34c8-toc a:hover {
  color: var(--color-primary);
}

.story-continue-wrap {
  display: grid;
  gap: 10px;
  margin: 30px 0 6px;
}

.story-nav-buttons,
.story-layout-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.story-continue-btn,
.story-btn-card,
.story-btn-netflix,
.story-btn-magazine {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: min(var(--radius-card), 14px);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.story-continue-btn:hover,
.story-btn-card:hover,
.story-btn-netflix:hover,
.story-btn-magazine:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.story-btn-card-body,
.story-btn-netflix-info,
.story-btn-magazine-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.story-btn-card-title,
.story-btn-netflix-title,
.story-btn-magazine-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-btn-card-sub,
.story-btn-netflix-label,
.story-btn-magazine-label,
.story-continue-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.story-btn-netflix-thumb,
.story-btn-magazine-thumb {
  width: 82px;
  align-self: stretch;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
}

.story-btn-netflix-thumb img,
.story-btn-magazine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-floating-bar {
  position: fixed;
  z-index: 65;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  width: min(680px, calc(100% - 32px));
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity .2s, transform .2s;
  backdrop-filter: blur(14px);
}

.story-floating-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.story-floating-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-floating-bar-left {
  min-width: 80px;
  flex: 1;
}

.story-floating-bar-progress {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-floating-bar-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.story-floating-bar-fill {
  height: 100%;
  background: var(--color-primary);
}

.story-floating-bar-btn {
  padding: 10px 13px;
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.story-floating-bar-btn-prev {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.story-continue-wrap .fa-arrow-right::before,
.story-floating-bar .fa-arrow-right::before { content: '→'; }
.story-continue-wrap .fa-arrow-left::before,
.story-floating-bar .fa-arrow-left::before { content: '←'; }
.story-continue-wrap .fa-chevron-right::before { content: '›'; }
.story-continue-wrap .fa-chevron-left::before { content: '‹'; }
.story-continue-wrap .fa-check-circle::before { content: '✓'; }
.story-continue-wrap .fa-play::before { content: '▶'; }

.r34c8-lazy-ad,
.r34c8-ic-ad,
.ad-slot {
  max-width: 100%;
  overflow: hidden;
}

.heystory-feed-ad {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0;
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, var(--bg));
  text-align: center;
}

.ad-slot-sticky-bottom {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 99990;
  max-width: 760px;
  min-height: 90px;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  text-align: center;
}

@media (max-width: 768px) {
  .r34c8-ad-fw {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .heystory-feed-ad.r34c8-ad-fw {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

.heystory-back-to-top {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

.heystory-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.heystory-back-to-top span {
  font-size: 19px;
  line-height: 1;
}

.heystory-back-to-top small {
  margin-top: -8px;
  color: var(--muted);
  font-size: 10px;
}

.heystory-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 52px 20px 24px;
  background: rgba(0, 0, 0, .9);
}

.heystory-lightbox.is-open {
  display: grid;
}

.heystory-lightbox img {
  max-width: min(94vw, 1200px);
  max-height: 78vh;
  object-fit: contain;
  background: transparent;
}

.heystory-lightbox p {
  max-width: 70ch;
  margin: 10px 0 0;
  color: #ddd;
  font-size: 12px;
  text-align: center;
}

.heystory-lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 28px;
}

.entry-content img.is-lightbox-ready {
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .r34c8-toc {
    margin-bottom: 22px;
    padding: 15px 16px;
  }

  .story-nav-buttons,
  .story-layout-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-continue-btn,
  .story-btn-card,
  .story-btn-netflix,
  .story-btn-magazine {
    padding: 13px 14px;
  }

  .am-stats-grid,
  .am-cards-grid,
  .am-team-grid,
  .am-sitemap-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .am-page-hero {
    margin-inline: 0;
    padding: 24px 20px;
  }

  .heystory-back-to-top {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 1000px) {
  .heystory-sticky-sidebar .single-layout > .sidebar {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heystory-back-to-top,
  .heystory-reader-gate.is-ready,
  .story-floating-bar {
    transition: none;
  }

  .heystory-reader-gate__button.has-cue svg {
    animation: none;
  }
}
