/*
 * Al Maydan platform UI
 *
 * This is the final presentation contract loaded after the historical theme
 * styles. It gives each editorial surface an explicit layout while leaving the
 * immersive Reels viewer isolated.
 */

:root {
  --amx-page: min(1320px, calc(100% - 48px));
  --amx-reading: 760px;
  --amx-ink: #11151d;
  --amx-ink-soft: #667080;
  --amx-surface: #f4f6f9;
  --amx-surface-muted: #e9edf2;
  --amx-surface-subtle: #f9fafc;
  --amx-surface-raised: #ffffff;
  --amx-border: #dce2e9;
  --amx-brand: #ff315a;
  --amx-brand-deep: #d91b44;
  --amx-brand-soft: #ffe7ed;
  --amx-signal: #48dfd0;
  --amx-violet: #7865ff;
  --amx-header-height: 76px;
  --amx-radius-xs: 10px;
  --amx-radius-sm: 14px;
  --amx-radius: 20px;
  --amx-radius-lg: 30px;
  --amx-shadow-soft: 0 12px 34px rgb(13 18 28 / 8%);
  --amx-shadow: 0 24px 70px rgb(13 18 28 / 13%);
  --amx-shadow-strong: 0 32px 90px rgb(5 8 14 / 24%);
  --amx-ease: cubic-bezier(.2, .72, .2, 1);
  --amx-font: "Segoe UI", Tahoma, Arial, sans-serif;
  --amx-display: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] {
  --amx-font: Tahoma, "Segoe UI", Arial, sans-serif;
  --amx-display: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  --amx-ink: #f4f7fb;
  --amx-ink-soft: #9ca7b7;
  --amx-surface: #080b10;
  --amx-surface-muted: #0d121a;
  --amx-surface-subtle: #0b0f16;
  --amx-surface-raised: #111722;
  --amx-border: rgb(255 255 255 / 10%);
  --amx-brand-soft: rgb(255 49 90 / 14%);
  --amx-shadow-soft: 0 14px 38px rgb(0 0 0 / 22%);
  --amx-shadow: 0 28px 76px rgb(0 0 0 / 34%);
  --amx-shadow-strong: 0 38px 100px rgb(0 0 0 / 52%);
}

html {
  max-width: 100%;
  overflow-x: clip;
  background: var(--amx-surface);
  scroll-padding-top: 112px;
}

body:not(.amx-reels-page) {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--amx-ink);
  background:
    radial-gradient(circle at 88% 5%, rgb(72 223 208 / 5%), transparent 30rem),
    var(--amx-surface);
  font-family: var(--amx-font);
  font-weight: 500;
  line-height: 1.7;
}

body:not(.amx-reels-page) :is(h1, h2, h3, h4, .amx-card-title, .amx-brand) {
  font-family: var(--amx-display);
}

html[dir="rtl"] body:not(.amx-reels-page) :is(h1, h2, h3, h4, .amx-card-title, .amx-brand) {
  letter-spacing: 0 !important;
}

body:not(.amx-reels-page) :is(
  .amx-header-inner > *,
  .amx-search-form > *,
  .amx-grid > *,
  .amx-card,
  .amx-card-link,
  .amx-entry-content
) {
  min-inline-size: 0;
}

body:not(.amx-reels-page) :is(img, video, svg, iframe) {
  max-inline-size: 100%;
}

body:not(.amx-reels-page) .amx-shell {
  max-width: 100%;
  overflow: clip;
}

body:not(.amx-reels-page) .amx-container {
  width: var(--amx-page);
  max-width: 100%;
  margin-inline: auto;
}

body:not(.amx-reels-page) .amx-main {
  min-height: 64vh;
  background: transparent;
}

body:not(.amx-reels-page) :is(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--amx-signal);
  outline-offset: 3px;
}

/* Header and global navigation. */
body:not(.amx-reels-page) .amx-site-header {
  position: sticky;
  z-index: 100;
  top: var(--wp-admin--admin-bar--height, 0px);
  color: #fff;
  background: rgb(6 8 12 / 92%);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

body:not(.amx-reels-page) .amx-site-header.is-scrolled {
  background: rgb(6 8 12 / 97%);
  box-shadow: 0 14px 38px rgb(0 0 0 / 24%);
}

@media (max-width: 960px) {
  body:not(.amx-reels-page) .amx-site-header {
    transition:
      transform 260ms cubic-bezier(.22, 1, .36, 1),
      background-color 180ms ease,
      box-shadow 180ms ease;
    will-change: transform;
  }

  body:not(.amx-reels-page) .amx-site-header.is-scroll-hidden {
    transform: translateY(calc(-100% - 2px));
    box-shadow: none;
    pointer-events: none;
  }

  body.menu-is-open:not(.amx-reels-page) .amx-site-header,
  body:not(.amx-reels-page) .amx-site-header:focus-within {
    transform: translateY(0);
    pointer-events: auto;
  }
}

body:not(.amx-reels-page) .amx-header-inner {
  display: grid;
  min-height: var(--amx-header-height);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  direction: inherit;
}

body:not(.amx-reels-page) .amx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body:not(.amx-reels-page) .amx-brand-wordmark {
  color: #fff;
}

body:not(.amx-reels-page) .amx-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgb(255 49 90 / 31%);
}

/* Central brand lockups use native WordPress media with resilient fallbacks. */
body:not(.amx-reels-page) .amx-brand__lockup,
body:not(.amx-reels-page) .amx-brand__lockup--fallback {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

body:not(.amx-reels-page) .amx-brand-logo {
  display: block;
  width: auto;
  max-width: clamp(108px, 15vw, 190px);
  height: auto;
  max-height: 42px;
  max-inline-size: clamp(108px, 15vw, 190px);
  max-block-size: 42px;
  object-fit: contain;
}

body:not(.amx-reels-page) .amx-brand__compact {
  display: none;
}

body:not(.amx-reels-page) .amx-brand-mark--image {
  overflow: hidden;
  padding: 0;
  background: #ff315a;
}

body:not(.amx-reels-page) .amx-brand-mark--image::before,
body:not(.amx-reels-page) .amx-brand-mark--image::after,
body:not(.amx-reels-page) .amx-brand-mark--image > span {
  display: none;
}

body:not(.amx-reels-page) .amx-brand-mark__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

body:not(.amx-reels-page) .amx-primary-nav {
  min-width: 0;
  margin-inline: auto;
}

body:not(.amx-reels-page) .amx-primary-nav > ul,
body:not(.amx-reels-page) .amx-primary-nav > .menu {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 2px;
  padding: 5px;
  margin: 0 auto;
  list-style: none;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
}

body:not(.amx-reels-page) .amx-primary-nav a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 16px;
  color: rgb(255 255 255 / 67%);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}

body:not(.amx-reels-page) .amx-primary-nav a:hover,
body:not(.amx-reels-page) .amx-primary-nav .current-menu-item > a,
body:not(.amx-reels-page) .amx-primary-nav .current-menu-ancestor > a {
  color: #fff;
  background: rgb(72 223 208 / 14%);
  box-shadow: inset 0 0 0 1px rgb(72 223 208 / 28%);
}

.amx-mobile-nav-utilities {
  display: none;
}

body:not(.amx-reels-page) .amx-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

body:not(.amx-reels-page) :is(.amx-header-control, .amx-language-switch, .amx-menu-toggle) {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 13px;
}

body:not(.amx-reels-page) :is(.amx-header-control, .amx-language-switch, .amx-menu-toggle):hover {
  color: #fff;
  background: rgb(255 255 255 / 11%);
  border-color: rgb(72 223 208 / 38%);
  transform: translateY(-1px);
}

body:not(.amx-reels-page) .amx-install-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff4267, #e51d49);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgb(255 49 90 / 28%);
}

body:not(.amx-reels-page) .amx-install-button[hidden] {
  display: none !important;
}

body:not(.amx-reels-page) .amx-search-panel {
  z-index: 96;
  padding-block: 14px;
  color: var(--amx-ink);
  background: color-mix(in srgb, var(--amx-surface-raised) 97%, transparent);
  border-bottom: 1px solid var(--amx-border);
  box-shadow: 0 20px 44px rgb(0 0 0 / 14%);
  backdrop-filter: blur(22px);
}

body:not(.amx-reels-page) .amx-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:not(.amx-reels-page) .amx-search-form input {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--amx-ink);
  background: var(--amx-surface);
  border: 1px solid var(--amx-border);
}

body:not(.amx-reels-page) .amx-search-form .amx-button {
  flex: 0 0 auto;
  margin: 0;
}

/* PWA messages are non-blocking product toasts. */
body:not(.amx-reels-page) .amx-app-notice {
  position: fixed;
  z-index: 140;
  inset-block: auto 24px;
  inset-inline: auto 24px;
  width: min(500px, calc(100% - 32px));
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgb(72 223 208 / 15%), transparent 15rem),
    #121823;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 18px;
  box-shadow: 0 24px 76px rgb(0 0 0 / 38%);
}

body:not(.amx-reels-page) .amx-app-notice[hidden] {
  display: none;
}

body:not(.amx-reels-page) .amx-app-notice__inner {
  width: 100%;
  min-height: 0;
  padding: 16px;
}

body:not(.amx-reels-page) .amx-app-notice p {
  color: #fff;
  font-size: .86rem;
  line-height: 1.6;
}

/* Landing hero and format discovery. */
body:not(.amx-reels-page) .amx-hero {
  min-height: clamp(620px, calc(100svh - 106px), 820px);
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  background: #070a0f;
}

body:not(.amx-reels-page) .amx-hero-content {
  position: relative;
  inset: auto;
  display: flex;
  min-height: inherit;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  width: var(--amx-page);
  max-width: 100%;
  padding: clamp(88px, 10vh, 126px) 0 clamp(46px, 6.5vh, 78px);
  margin-inline: auto;
}

body:not(.amx-reels-page) .amx-hero h1 {
  max-width: min(1000px, 21ch);
  font-size: clamp(2.85rem, min(4.15vw, 7.5vh), 4.75rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (min-width: 761px) {
  body:not(.amx-reels-page) .amx-hero--title-long h1 {
    max-width: min(1040px, 23ch);
    font-size: clamp(2.7rem, min(3.65vw, 6.8vh), 4.15rem);
  }

  body:not(.amx-reels-page) .amx-hero--title-xlong h1 {
    max-width: min(1100px, 26ch);
    font-size: clamp(2.55rem, min(3.25vw, 6vh), 3.7rem);
    line-height: 1.08;
  }
}

body:not(.amx-reels-page) .amx-hero-content > p {
  max-width: 650px;
  line-height: 1.75;
}

body:not(.amx-reels-page) .amx-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

body:not(.amx-reels-page) .amx-format-strip {
  overflow: hidden;
  background: #090d14;
}

body:not(.amx-reels-page) .amx-format-strip__inner {
  min-height: 76px;
}

body:not(.amx-reels-page) .amx-format-strip__links {
  min-width: 0;
}

body:not(.amx-reels-page) .amx-format-strip__links a {
  min-height: 46px;
  padding: 7px 15px;
  border-radius: 13px;
}

/* Shared section rhythm. */
body:not(.amx-reels-page) .amx-section {
  padding-block: clamp(68px, 7.5vw, 104px);
}

body:not(.amx-reels-page) .amx-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

body:not(.amx-reels-page) :is(.amx-section-heading h2, .amx-page-heading h1, .amx-library__header h1) {
  max-width: 22ch;
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body:not(.amx-reels-page) .amx-section-kicker,
body:not(.amx-reels-page) .amx-page-heading__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--amx-brand);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

html[dir="rtl"] body:not(.amx-reels-page) :is(.amx-section-kicker, .amx-page-heading__eyebrow) {
  letter-spacing: 0;
}

body:not(.amx-reels-page) .amx-section-link {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 12px;
}

/* Cards and metadata. */
body:not(.amx-reels-page) .amx-grid {
  min-width: 0;
}

body:not(.amx-reels-page) .amx-card {
  min-width: 0;
}

body:not(.amx-reels-page) .amx-card-link {
  color: inherit;
  text-decoration: none;
}

body:not(.amx-reels-page) .amx-card-media {
  background: #111722;
  border: 1px solid var(--amx-border);
  border-radius: 18px;
  box-shadow: var(--amx-shadow-soft);
  transition: border-color 220ms ease, box-shadow 300ms var(--amx-ease), transform 300ms var(--amx-ease);
}

/* Reset the historical 45% pseudo-element height. Without this reset its
 * lower edge draws a horizontal seam through every modern card cover. */
body:not(.amx-reels-page) .amx-card-media::after {
  inset: 0;
  width: auto;
  height: 100%;
}

body:not(.amx-reels-page) .amx-card:hover .amx-card-media,
body:not(.amx-reels-page) .amx-card:focus-within .amx-card-media {
  border-color: rgb(255 49 90 / 34%);
  box-shadow: var(--amx-shadow);
  transform: translateY(-4px);
}

body:not(.amx-reels-page) .amx-card-media :is(img, .amx-card-preview) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.amx-reels-page) .amx-card-title {
  overflow-wrap: anywhere;
}

body:not(.amx-reels-page) .amx-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: .72rem;
  line-height: 1.4;
}

body:not(.amx-reels-page) .amx-card-meta > :is(span, time) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  unicode-bidi: isolate;
}

body:not(.amx-reels-page) .amx-card-meta .amx-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body:not(.amx-reels-page) :is(.amx-card-duration, .amx-card-views) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Archive and search contracts. */
body:not(.amx-reels-page) .amx-platform-archive {
  padding-bottom: clamp(76px, 9vw, 128px);
}

body:not(.amx-reels-page) .amx-page-heading {
  position: relative;
  padding-block: clamp(62px, 8vw, 104px) clamp(30px, 4vw, 48px);
}

body:not(.amx-reels-page) .amx-page-heading::before {
  top: clamp(34px, 4vw, 52px);
  width: 136px;
  height: 4px;
}

body:not(.amx-reels-page) .amx-page-heading__eyebrow {
  margin-bottom: 10px;
}

body:not(.amx-reels-page) .amx-page-heading > div {
  max-width: 68ch;
  margin-top: 14px;
  color: var(--amx-ink-soft);
}

body:not(.amx-reels-page) .amx-listing-tabs {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin: 0 0 clamp(28px, 4vw, 46px);
  overflow-x: auto;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 16px;
  box-shadow: var(--amx-shadow-soft);
  scrollbar-width: none;
}

body:not(.amx-reels-page) .amx-listing-tabs::-webkit-scrollbar {
  display: none;
}

body:not(.amx-reels-page) .amx-listing-tabs a {
  min-width: max-content;
  min-height: 42px;
  padding: 9px 16px;
  color: var(--amx-ink-soft);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
  border-radius: 11px;
}

body:not(.amx-reels-page) .amx-listing-tabs a:hover,
body:not(.amx-reels-page) .amx-listing-tabs a.is-active {
  color: #fff;
  background: var(--amx-brand);
}

body.post-type-archive-short:not(.amx-reels-page) .amx-listing-tabs {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 10%);
}

body.post-type-archive-short:not(.amx-reels-page) .amx-listing-tabs a {
  color: rgb(255 255 255 / 66%);
}

body.post-type-archive-short:not(.amx-reels-page) .amx-listing-tabs a:hover,
body.post-type-archive-short:not(.amx-reels-page) .amx-listing-tabs a.is-active {
  color: #fff;
}

body:not(.amx-reels-page) .amx-search-summary {
  margin-top: 12px;
  color: var(--amx-ink-soft);
}

body:not(.amx-reels-page) .amx-search-page-form {
  position: relative;
  display: flex;
  max-width: 860px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0 0 clamp(36px, 5vw, 58px);
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 18px;
  box-shadow: var(--amx-shadow-soft);
}

body:not(.amx-reels-page) .amx-search-page-form > .amx-icon {
  position: absolute;
  inset-inline-start: 22px;
  width: 20px;
  height: 20px;
  color: var(--amx-ink-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  pointer-events: none;
}

body:not(.amx-reels-page) .amx-search-page-form input {
  width: auto;
  min-width: 0;
  min-height: 50px;
  flex: 1 1 auto;
  padding-inline: 46px 14px;
  color: var(--amx-ink);
  font: inherit;
  background: var(--amx-surface);
  border: 1px solid transparent;
  border-radius: 12px;
}

body:not(.amx-reels-page) .amx-search-page-form .amx-button {
  min-height: 50px;
  flex: 0 0 auto;
  margin: 0;
}

body:not(.amx-reels-page) .amx-grid--archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px);
}

body:not(.amx-reels-page) .amx-grid--archive > * {
  width: auto;
  min-width: 0;
  grid-column: auto !important;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-video, .amx-grid--archive-story, .amx-grid--archive-search, .amx-grid--archive-mixed, .amx-grid--related) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.amx-reels-page) :is(.amx-grid--archive-search, .amx-grid--archive-mixed) {
  align-items: start;
}

body:not(.amx-reels-page) .amx-grid--archive-creator {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not(.amx-reels-page) .amx-grid--archive-short {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 36px) clamp(12px, 1.5vw, 20px);
}

body.post-type-archive-short:not(.amx-reels-page) .amx-main {
  color: #fff;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px) 0 0 / clamp(72px, 8vw, 132px) 100%,
    radial-gradient(circle at 88% 0%, rgb(120 101 255 / 17%), transparent 30rem),
    radial-gradient(circle at 8% 100%, rgb(255 49 90 / 12%), transparent 30rem),
    #070a0f;
}

body.post-type-archive-short:not(.amx-reels-page) .amx-page-heading :is(h1, .amx-page-heading__eyebrow) {
  color: #fff;
}

body.post-type-archive-short:not(.amx-reels-page) .amx-page-heading::before {
  background: linear-gradient(90deg, var(--amx-brand), var(--amx-signal), transparent);
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card {
  overflow: hidden;
  background: #10151e;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 20%);
  transition: border-color 220ms ease, box-shadow 300ms var(--amx-ease), transform 300ms var(--amx-ease);
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card:hover,
body:not(.amx-reels-page) .amx-grid--archive-short .amx-card:focus-within {
  border-color: rgb(255 49 90 / 62%);
  box-shadow: 0 26px 64px rgb(0 0 0 / 35%);
  transform: translateY(-6px);
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card:hover .amx-card-media,
body:not(.amx-reels-page) .amx-grid--archive-short .amx-card:focus-within .amx-card-media {
  border: 0;
  box-shadow: none;
  transform: none;
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-media::after {
  background: linear-gradient(0deg, rgb(3 5 9 / 98%) 0%, rgb(3 5 9 / 72%) 28%, transparent 63%);
  opacity: 1;
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-body {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  bottom: 0;
  padding: 42% 15px 16px;
  color: #fff;
  background: linear-gradient(0deg, rgb(3 5 9 / 92%), transparent);
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-topic {
  color: var(--amx-signal);
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-title {
  color: #fff;
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.4;
  -webkit-line-clamp: 3;
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-meta {
  color: rgb(255 255 255 / 67%);
}

body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-play {
  width: 50px;
  height: 50px;
}

/* One Short cover contract for both the archive and homepage carousel. */
body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short {
  position: relative;
  align-self: start;
  overflow: hidden;
  background: #10151e;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 20%);
  transition: border-color 220ms ease, box-shadow 300ms var(--amx-ease), transform 300ms var(--amx-ease);
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short:hover,
body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short:focus-within {
  border-color: rgb(255 49 90 / 62%);
  box-shadow: 0 26px 64px rgb(0 0 0 / 35%);
  transform: translateY(-6px);
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-link {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  isolation: isolate;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: #090d14;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short:hover .amx-card-media,
body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short:focus-within .amx-card-media {
  border: 0;
  box-shadow: none;
  transform: none;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-media::after {
  inset: 0;
  height: 100%;
  opacity: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgb(3 5 9 / 3%) 38%,
    rgb(3 5 9 / 28%) 56%,
    rgb(3 5 9 / 76%) 78%,
    rgb(3 5 9 / 97%) 100%
  );
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-body {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  bottom: 0;
  padding: 0 15px 16px;
  color: #fff;
  background: none;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-topic {
  color: var(--amx-signal);
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-title,
body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short:hover .amx-card-title {
  color: #fff;
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.4;
  -webkit-line-clamp: 2;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-meta {
  color: rgb(255 255 255 / 67%);
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-type {
  display: none;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-duration {
  inset-inline: auto;
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
}

body:not(.amx-reels-page) :is(.amx-grid--archive-short, .amx-grid--shorts) .amx-card--short .amx-card-preview-label {
  top: 54px;
  bottom: auto;
}

/* The homepage reel keeps one explicit visual selection. JavaScript moves the
 * selection with the arrow-controlled rail, so the user always knows which
 * Short is current without relying on the counter alone. */
body:not(.amx-reels-page) .amx-section--reel .amx-grid--shorts .amx-card--short {
  opacity: .82;
  scroll-snap-align: center;
  transform: scale(.985);
  transition: opacity 220ms ease, border-color 240ms ease, box-shadow 320ms var(--amx-ease), transform 320ms var(--amx-ease);
}

body:not(.amx-reels-page) .amx-section--reel .amx-grid--shorts .amx-card--short.is-reel-active,
body:not(.amx-reels-page) .amx-section--reel .amx-grid--shorts .amx-card--short.is-reel-active:hover,
body:not(.amx-reels-page) .amx-section--reel .amx-grid--shorts .amx-card--short.is-reel-active:focus-within {
  z-index: 2;
  opacity: 1;
  border-color: color-mix(in srgb, var(--amx-signal) 74%, #fff);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 70%),
    0 0 0 5px rgb(69 223 209 / 12%),
    0 28px 72px rgb(0 0 0 / 42%);
  transform: translateY(-7px) scale(1);
}

body:not(.amx-reels-page) .amx-section--reel .amx-grid--shorts .amx-card--short.is-reel-active .amx-card-play {
  background: linear-gradient(145deg, var(--amx-brand), #ff496b);
  border-color: rgb(255 255 255 / 58%);
  box-shadow: 0 12px 34px rgb(255 53 91 / 38%);
}

/* Creator cards. */
body:not(.amx-reels-page) .amx-creator-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 20px;
  box-shadow: var(--amx-shadow-soft);
}

body:not(.amx-reels-page) .amx-creator-card__link {
  display: flex;
  min-height: 100%;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

body:not(.amx-reels-page) .amx-creator-card:hover,
body:not(.amx-reels-page) .amx-creator-card:focus-within {
  border-color: rgb(255 49 90 / 34%);
  box-shadow: var(--amx-shadow);
  transform: translateY(-4px);
}

body:not(.amx-reels-page) .amx-creator-card .amx-creator-avatar {
  width: 74px;
  height: 74px;
  min-width: 74px;
}

body:not(.amx-reels-page) .amx-creator-name {
  margin: 0;
  color: var(--amx-ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

/* Reading, video and static pages. */
body:not(.amx-reels-page) .amx-single {
  margin-inline: auto;
  padding-block: clamp(58px, 7vw, 96px);
}

body:not(.amx-reels-page) :is(.amx-single--article, .amx-single--page) {
  width: min(1120px, calc(100% - 48px));
}

body:not(.amx-reels-page) :is(.amx-single--article, .amx-single--page) > :is(.amx-single-header, .amx-entry-content, .amx-engagement) {
  width: min(100%, var(--amx-reading));
  margin-inline: auto;
}

body:not(.amx-reels-page) .amx-single-header {
  margin-bottom: clamp(28px, 4vw, 44px);
}

body:not(.amx-reels-page) .amx-single-header h1 {
  max-width: 18ch;
  margin-block: 10px 18px;
  color: var(--amx-ink);
  font-size: clamp(2.7rem, 5.2vw, 5.25rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body:not(.amx-reels-page) .amx-single-deck {
  max-width: 62ch;
  margin: 0 0 20px;
  color: var(--amx-ink-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.26rem);
  line-height: 1.8;
}

body:not(.amx-reels-page) .amx-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--amx-ink-soft);
}

body:not(.amx-reels-page) .amx-single-image {
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 58px);
  border-radius: 26px;
  box-shadow: var(--amx-shadow);
}

body:not(.amx-reels-page) .amx-single-image img {
  width: 100%;
  height: auto;
}

body:not(.amx-reels-page) .amx-entry-content {
  color: var(--amx-ink);
  font-size: clamp(1.05rem, 1.3vw, 1.16rem);
  line-height: 2;
  overflow-wrap: anywhere;
}

body:not(.amx-reels-page) .amx-entry-content > * + * {
  margin-block-start: 1.35em;
}

body:not(.amx-reels-page) .amx-entry-content :is(h2, h3, h4) {
  margin-block: 1.8em .65em;
  line-height: 1.3;
}

body:not(.amx-reels-page) .amx-entry-content :is(img, figure, .wp-block-image) {
  max-width: 100%;
  border-radius: 18px;
}

body:not(.amx-reels-page) .amx-entry-content figcaption {
  margin-top: 8px;
  color: var(--amx-ink-soft);
  font-size: .78rem;
  line-height: 1.6;
}

body:not(.amx-reels-page) .amx-entry-content :is(ul, ol) {
  padding-inline-start: 1.35em;
}

body:not(.amx-reels-page) .amx-entry-content li + li {
  margin-top: .5em;
}

body:not(.amx-reels-page) .amx-entry-content blockquote {
  padding: clamp(20px, 3vw, 30px);
  margin-inline: 0;
  background: var(--amx-brand-soft);
  border-inline-start: 4px solid var(--amx-brand);
  border-radius: 16px;
}

body:not(.amx-reels-page) .amx-entry-content :is(pre, table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

body:not(.amx-reels-page) .amx-entry-content pre {
  padding: 18px;
  color: #edf2f7;
  background: #0b1018;
  border-radius: 14px;
}

body:not(.amx-reels-page) .amx-engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px;
  margin-top: 32px;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 18px;
  box-shadow: var(--amx-shadow-soft);
}

body:not(.amx-reels-page) .amx-engagement-item {
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--amx-ink-soft);
  background: var(--amx-surface);
  border: 1px solid var(--amx-border);
  border-radius: 12px;
}

body:not(.amx-reels-page) button.amx-engagement-item:hover,
body:not(.amx-reels-page) .amx-engagement-item.is-active {
  color: var(--amx-brand);
  background: var(--amx-brand-soft);
  border-color: rgb(255 49 90 / 26%);
}

body:not(.amx-reels-page) .amx-engagement-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
}

body:not(.amx-reels-page) .amx-engagement-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body:not(.amx-reels-page) .amx-video-page {
  width: min(1280px, calc(100% - 48px));
  padding-top: clamp(46px, 6vw, 76px);
}

body:not(.amx-reels-page) .amx-video-page .amx-single-header h1 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
}

body:not(.amx-reels-page) .amx-video-page .amx-media-player {
  overflow: hidden;
  background: #020407;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 24px;
  box-shadow: var(--amx-shadow-strong);
}

/* The standard player uses the same generous interaction contract as the
 * immersive feed without inheriting its full-viewport layout. */
body:not(.amx-reels-page) .amx-video-page .amx-player__controls {
  gap: 10px;
  padding: 44px 18px 15px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__timeline {
  height: 24px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__timeline::-webkit-slider-runnable-track,
body:not(.amx-reels-page) .amx-video-page .amx-player__timeline::-moz-range-track,
body:not(.amx-reels-page) .amx-video-page .amx-player__timeline::-moz-range-progress {
  height: 5px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__timeline::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__timeline::-moz-range-thumb {
  width: 16px;
  height: 16px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__control-row {
  gap: 6px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__control,
body:not(.amx-reels-page) .amx-video-page .amx-player__controls .amx-player__caption-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__control svg {
  width: 21px;
  height: 21px;
}

body:not(.amx-reels-page) .amx-video-page .amx-player__speed {
  width: 46px;
  min-width: 46px;
}

body:not(.amx-reels-page) .amx-video-page__details {
  display: grid;
  grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 28px;
}

body:not(.amx-reels-page) .amx-video-page__details > :only-child {
  grid-column: 1 / -1;
}

body:not(.amx-reels-page) .amx-video-page :is(.amx-single-details, .amx-entry-content) {
  padding: clamp(20px, 3vw, 30px);
  margin: 0;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 18px;
}

body:not(.amx-reels-page) .amx-video-page .amx-entry-content:empty {
  display: none;
}

body:not(.amx-reels-page) .amx-related {
  padding-top: clamp(54px, 7vw, 84px);
  margin-top: clamp(54px, 7vw, 84px);
  border-top: 1px solid var(--amx-border);
}

/* Creator profile. */
body:not(.amx-reels-page) .amx-creator-profile {
  min-height: clamp(480px, 62vh, 680px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgb(72 223 208 / 20%), transparent 28rem),
    radial-gradient(circle at 10% 100%, rgb(255 49 90 / 23%), transparent 30rem),
    #090d14;
}

body:not(.amx-reels-page) .amx-creator-profile .amx-creator-hero-content {
  display: grid;
  min-height: inherit;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
  padding-block: 80px 58px;
}

body:not(.amx-reels-page) .amx-creator-profile .amx-creator-avatar {
  width: 150px;
  height: 150px;
  min-width: 150px;
  border: 5px solid rgb(255 255 255 / 18%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}

body:not(.amx-reels-page) .amx-creator-profile h1 {
  max-width: 18ch;
  margin-block: 10px;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 1.04;
}

body:not(.amx-reels-page) .amx-creator-profile p,
body:not(.amx-reels-page) .amx-creator-profile .amx-single-meta {
  color: rgb(255 255 255 / 70%);
}

body:not(.amx-reels-page) .amx-creator-socials {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.amx-reels-page) .amx-creator-socials a {
  min-height: 42px;
  padding: 9px 13px;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
}

/* Library, states and pagination. */
body:not(.amx-reels-page) .amx-library {
  width: var(--amx-page);
  margin-inline: auto;
  padding-block: clamp(62px, 8vw, 104px);
}

body:not(.amx-reels-page) .amx-library__header {
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--amx-border);
}

body:not(.amx-reels-page) .amx-library__header > .amx-text-button {
  min-height: 44px;
  padding: 9px 14px;
  color: var(--amx-brand);
  background: var(--amx-brand-soft);
  border: 1px solid rgb(255 49 90 / 24%);
  border-radius: 12px;
}

body:not(.amx-reels-page) .amx-library__guest {
  max-width: 820px;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgb(72 223 208 / 24%), transparent 24rem),
    radial-gradient(circle at 3% 100%, rgb(120 101 255 / 27%), transparent 26rem),
    #0d121b;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 26px;
  box-shadow: var(--amx-shadow);
}

body:not(.amx-reels-page) .amx-library__guest :is(h2, p) {
  color: inherit;
}

body:not(.amx-reels-page) .amx-library__section {
  padding-top: clamp(48px, 6vw, 72px);
}

body:not(.amx-reels-page) .amx-library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.amx-reels-page) .amx-library__grid > .amx-card {
  width: auto;
  grid-column: auto !important;
}

body:not(.amx-reels-page) :is(.amx-empty, .amx-library__empty) {
  padding: clamp(26px, 5vw, 48px);
  color: var(--amx-ink-soft);
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 20px;
  box-shadow: var(--amx-shadow-soft);
}

body:not(.amx-reels-page) .amx-not-found {
  display: grid;
  min-height: 64vh;
  place-items: center;
}

body:not(.amx-reels-page) .amx-not-found .amx-empty {
  position: relative;
  width: min(720px, 100%);
  overflow: hidden;
  text-align: center;
}

body:not(.amx-reels-page) .amx-not-found .amx-empty::before {
  display: block;
  margin-bottom: -28px;
  color: var(--amx-brand-soft);
  content: "404";
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 950;
  line-height: .9;
}

body:not(.amx-reels-page) .amx-not-found .amx-search-page-form {
  margin: 24px auto 18px;
}

body:not(.amx-reels-page) .amx-not-found__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

body:not(.amx-reels-page) .amx-not-found__links a {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--amx-ink-soft);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--amx-surface);
  border: 1px solid var(--amx-border);
  border-radius: 11px;
}

body:not(.amx-reels-page) .amx-not-found__links a:hover {
  color: var(--amx-brand);
  border-color: rgb(255 49 90 / 30%);
}

body:not(.amx-reels-page) .amx-pagination {
  margin-top: clamp(44px, 6vw, 72px);
}

body:not(.amx-reels-page) .amx-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.amx-reels-page) .amx-pagination .page-numbers {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 12px;
}

/* Footer and mobile app dock. */
body:not(.amx-reels-page) .amx-site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgb(72 223 208 / 10%), transparent 28rem),
    #06090e;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

body:not(.amx-reels-page) .amx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: clamp(38px, 7vw, 100px);
  padding-block: clamp(62px, 8vw, 98px);
}

body:not(.amx-reels-page) .amx-site-footer :is(.amx-footer-copy, .amx-footer-nav a, .amx-footer-language) {
  color: rgb(255 255 255 / 64%);
}

body:not(.amx-reels-page) .amx-footer-bottom {
  padding-block: 20px;
  color: rgb(255 255 255 / 48%);
}

.amx-mobile-dock {
  display: none;
}

.amx-reels-page .amx-mobile-dock {
  display: none !important;
}

/* Homepage editorial composition stays distinct from archives. */
body:not(.amx-reels-page) .amx-grid--editorial .amx-card--lead {
  grid-column: span 7;
}

body:not(.amx-reels-page) .amx-grid--editorial .amx-card:not(.amx-card--lead) {
  grid-column: span 5;
}

body:not(.amx-reels-page) .amx-grid--editorial .amx-card:nth-child(n + 4) {
  grid-column: span 6;
}

body:not(.amx-reels-page) .amx-section--stories .amx-card {
  grid-column: span 3;
}

body:not(.amx-reels-page) .amx-grid--creators .amx-creator-card {
  grid-column: span 3;
}

body:not(.amx-reels-page) .amx-section--reel {
  overflow: hidden;
}

body:not(.amx-reels-page) .amx-reel__stage {
  position: relative;
}

body:not(.amx-reels-page) .amx-reel__arrow {
  color: #fff;
  background: rgb(9 13 20 / 72%);
  border: 1px solid rgb(255 255 255 / 18%);
  box-shadow: 0 16px 42px rgb(0 0 0 / 32%);
  backdrop-filter: blur(14px);
}

body:not(.amx-reels-page) .amx-reel__arrow:hover {
  color: #fff;
  background: var(--amx-brand);
  border-color: var(--amx-brand);
  transform: translateY(-50%) scale(1.06);
}

body:not(.amx-reels-page) .amx-reel__track {
  --amx-reel-card-width: clamp(208px, 17vw, 248px);
  grid-auto-columns: var(--amx-reel-card-width);
  padding-inline: max(4px, calc((100% - var(--amx-reel-card-width)) / 2));
  overflow-x: auto;
  cursor: grab;
  overscroll-behavior-inline: none;
  scroll-padding-inline: max(4px, calc((100% - var(--amx-reel-card-width)) / 2));
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}

body:not(.amx-reels-page) .amx-reel__track:active {
  cursor: grabbing;
}

body:not(.amx-reels-page) .amx-reel__track::-webkit-scrollbar {
  display: none;
}

/* News and creator rails use the same centred circular-navigation contract as
 * Shorts and programme episodes, with card widths suited to each format. */
body:not(.amx-reels-page) .amx-editorial-reel {
  position: relative;
  isolation: isolate;
}

body:not(.amx-reels-page) .amx-editorial-reel__track {
  --amx-editorial-card-width: clamp(300px, 29vw, 382px);
  display: grid;
  width: 100%;
  grid-template-columns: none;
  grid-auto-columns: var(--amx-editorial-card-width);
  grid-auto-flow: column;
  gap: clamp(14px, 1.5vw, 21px);
  padding: 12px max(4px, calc((100% - var(--amx-editorial-card-width)) / 2)) 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: max(4px, calc((100% - var(--amx-editorial-card-width)) / 2));
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

body:not(.amx-reels-page) .amx-editorial-reel__track--creators {
  --amx-editorial-card-width: clamp(310px, 30vw, 400px);
}

body:not(.amx-reels-page) .amx-editorial-reel__track > :is(.amx-card, .amx-creator-card) {
  grid-column: auto;
  min-width: 0;
  opacity: .72;
  scroll-snap-align: center;
  transform: scale(.975);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body:not(.amx-reels-page) .amx-editorial-reel__track > :is(.amx-card, .amx-creator-card).is-reel-active {
  z-index: 2;
  opacity: 1;
  border-color: color-mix(in srgb, var(--amx-signal) 62%, var(--amx-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amx-signal) 25%, transparent), var(--amx-shadow);
  transform: translateY(-4px) scale(1);
}

body:not(.amx-reels-page) .amx-editorial-reel__track--creators > .amx-creator-card,
body:not(.amx-reels-page) .amx-editorial-reel__track--creators > .amx-creator-card > a {
  min-height: 156px;
}

body:not(.amx-reels-page) .amx-editorial-reel__arrow {
  top: 50%;
}

body:not(.amx-reels-page) .amx-editorial-reel .amx-reel__footer {
  color: var(--amx-ink-soft);
}

body:not(.amx-reels-page) .amx-editorial-reel .amx-reel__hint,
body:not(.amx-reels-page) .amx-editorial-reel .amx-reel__counter {
  color: var(--amx-ink-soft);
}

body:not(.amx-reels-page) .amx-editorial-reel .amx-reel__progress > span {
  background: color-mix(in srgb, var(--amx-ink) 14%, transparent);
}

/* Dedicated newsroom archive. */
body.amx-newsroom-page:not(.amx-reels-page) .amx-main {
  background:
    radial-gradient(circle at 82% 4%, rgb(232 40 78 / 11%), transparent 28rem),
    var(--amx-surface);
}

body:not(.amx-reels-page) .amx-newsroom-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgb(8 11 17 / 98%), rgb(17 23 34 / 92%)),
    #0b0f16;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

body:not(.amx-reels-page) .amx-newsroom-hero::before,
body:not(.amx-reels-page) .amx-newsroom-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

body:not(.amx-reels-page) .amx-newsroom-hero::before {
  width: 420px;
  height: 420px;
  top: -240px;
  inset-inline-end: 8%;
  border: 1px solid rgb(232 40 78 / 24%);
  box-shadow: 0 0 100px rgb(232 40 78 / 10%);
}

body:not(.amx-reels-page) .amx-newsroom-hero::after {
  width: 300px;
  height: 300px;
  bottom: -245px;
  inset-inline-start: 15%;
  border: 1px solid rgb(80 224 211 / 17%);
}

body:not(.amx-reels-page) .amx-newsroom-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(340px, 44vw, 520px);
  padding-block: clamp(82px, 10vw, 132px) clamp(60px, 8vw, 94px);
  align-items: end;
  justify-content: space-between;
  gap: 42px;
}

body:not(.amx-reels-page) .amx-newsroom-hero h1 {
  max-width: 830px;
  margin: 14px 0 18px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.06em;
}

body:not(.amx-reels-page) .amx-newsroom-hero p {
  max-width: 680px;
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.8;
}

body:not(.amx-reels-page) .amx-newsroom-hero__mark {
  display: grid;
  width: clamp(118px, 13vw, 168px);
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  color: rgb(255 255 255 / 82%);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  backdrop-filter: blur(14px);
}

body:not(.amx-reels-page) .amx-newsroom-hero__mark i {
  width: 38%;
  height: 4px;
  background: linear-gradient(90deg, var(--amx-brand), var(--amx-signal));
  border-radius: 99px;
}

body:not(.amx-reels-page) .amx-newsroom-hero__mark b {
  font-size: .8rem;
}

body:not(.amx-reels-page) .amx-newsroom-content {
  padding-block: 34px clamp(72px, 9vw, 118px);
}

body:not(.amx-reels-page) .amx-newsroom-formats {
  margin-bottom: 18px;
}

body:not(.amx-reels-page) .amx-newsroom-topics {
  display: flex;
  gap: 8px;
  padding-block: 8px 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

body:not(.amx-reels-page) .amx-newsroom-topics::-webkit-scrollbar {
  display: none;
}

body:not(.amx-reels-page) .amx-newsroom-topics a {
  display: inline-flex;
  padding: 9px 13px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--amx-ink);
  font-size: .78rem;
  font-weight: 800;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 999px;
}

body:not(.amx-reels-page) .amx-newsroom-topics a:hover {
  color: var(--amx-brand);
  border-color: color-mix(in srgb, var(--amx-brand) 45%, var(--amx-border));
}

body:not(.amx-reels-page) .amx-newsroom-topics span {
  color: var(--amx-ink-soft);
  font-size: .68rem;
}

body:not(.amx-reels-page) .amx-newsroom-grid {
  align-items: stretch;
}

/* News cards and article detail. */
body:not(.amx-reels-page) .amx-card--news {
  position: relative;
}

body:not(.amx-reels-page) .amx-card-urgency {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 4;
  display: inline-flex;
  min-height: 29px;
  padding: 5px 10px;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  background: rgb(12 16 25 / 84%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  backdrop-filter: blur(12px);
}

body:not(.amx-reels-page) .amx-card-urgency i,
body:not(.amx-reels-page) .amx-news-urgency i {
  width: 7px;
  height: 7px;
  background: var(--amx-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(255 49 90 / 17%);
}

body:not(.amx-reels-page) .amx-card-urgency--important i,
body:not(.amx-reels-page) .amx-news-urgency--important i {
  background: #ffb547;
  box-shadow: 0 0 0 4px rgb(255 181 71 / 17%);
}

body:not(.amx-reels-page) .amx-single--news {
  width: min(100% - 32px, 1120px);
  padding-top: clamp(50px, 7vw, 100px);
}

body:not(.amx-reels-page) .amx-single--news .amx-single-header {
  max-width: 960px;
  margin-inline: auto;
  text-align: start;
}

body:not(.amx-reels-page) .amx-single-newsline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

body:not(.amx-reels-page) .amx-news-urgency {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 11px;
  align-items: center;
  gap: 8px;
  color: var(--amx-ink);
  font-size: 12px;
  font-weight: 850;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 999px;
}

body:not(.amx-reels-page) .amx-news-urgency--breaking {
  color: #fff;
  background: var(--amx-brand-deep);
  border-color: var(--amx-brand);
}

body:not(.amx-reels-page) .amx-news-urgency--breaking i {
  background: #fff;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 18%);
}

body:not(.amx-reels-page) .amx-news-byline-card {
  display: flex;
  width: min(100%, 960px);
  padding: 13px 15px;
  align-items: center;
  gap: 11px;
  margin: 25px auto 18px;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 16px;
}

body:not(.amx-reels-page) .amx-news-byline-card > :first-child {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amx-brand), #643fe0);
  border-radius: 50%;
}

body:not(.amx-reels-page) .amx-news-byline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.amx-reels-page) .amx-news-byline-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body:not(.amx-reels-page) .amx-news-byline-card small {
  color: var(--amx-ink-soft);
  font-size: 11px;
}

body:not(.amx-reels-page) .amx-news-byline-card :is(a, strong) {
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body:not(.amx-reels-page) .amx-single--news .amx-single-image {
  width: min(100%, 1120px);
  aspect-ratio: 16 / 8.2;
  border: 1px solid var(--amx-border);
  border-radius: clamp(18px, 2.2vw, 30px);
  box-shadow: var(--amx-shadow);
}

body:not(.amx-reels-page) .amx-single--news .amx-entry-content {
  width: min(100%, 760px);
  margin-inline: auto;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.95;
}

body:not(.amx-reels-page) .amx-single--news .amx-entry-content :is(h2, h3) {
  line-height: 1.3;
  letter-spacing: -.025em;
}

body:not(.amx-reels-page) .amx-news-source {
  display: flex;
  width: min(100%, 760px);
  padding: 16px;
  align-items: center;
  gap: 13px;
  margin: 30px auto;
  background: color-mix(in srgb, var(--amx-brand) 7%, var(--amx-surface-raised));
  border: 1px solid color-mix(in srgb, var(--amx-brand) 24%, var(--amx-border));
  border-radius: 16px;
}

body:not(.amx-reels-page) .amx-news-source > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--amx-brand);
  background: var(--amx-brand-soft);
  border-radius: 12px;
}

body:not(.amx-reels-page) .amx-news-source > span .amx-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body:not(.amx-reels-page) .amx-news-source > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body:not(.amx-reels-page) .amx-news-source small,
body:not(.amx-reels-page) .amx-news-source p {
  margin: 0;
  color: var(--amx-ink-soft);
  font-size: 11px;
}

body:not(.amx-reels-page) .amx-news-source :is(a, strong) {
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body:not(.amx-reels-page) .amx-related-news {
  padding-block: clamp(40px, 6vw, 90px);
  border-top: 1px solid var(--amx-border);
}

@media (max-width: 720px) {
  body:not(.amx-reels-page) .amx-editorial-reel__track {
    --amx-editorial-card-width: min(82vw, 330px);
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding-inline: max(14px, calc(((100% - var(--amx-editorial-card-width)) / 2) + 14px));
    scroll-padding-inline: max(14px, calc(((100% - var(--amx-editorial-card-width)) / 2) + 14px));
  }

  body:not(.amx-reels-page) .amx-editorial-reel__track--creators {
    --amx-editorial-card-width: min(84vw, 350px);
  }

  body:not(.amx-reels-page) .amx-newsroom-hero__inner {
    min-height: 390px;
    padding-block: 76px 52px;
    align-items: flex-start;
  }

  body:not(.amx-reels-page) .amx-newsroom-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  body:not(.amx-reels-page) .amx-newsroom-hero__mark {
    display: none;
  }
}

@media (max-width: 1180px) {
  :root {
    --amx-page: min(1320px, calc(100% - 36px));
  }

  body:not(.amx-reels-page) .amx-primary-nav a {
    padding-inline: 12px;
    font-size: .81rem;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.amx-reels-page) .amx-grid--archive-creator {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body:not(.amx-reels-page) .amx-reel__track {
    --amx-reel-card-width: clamp(190px, 24vw, 230px);
  }

  body:not(.amx-reels-page) .amx-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  body:not(.amx-reels-page) .amx-primary-nav {
    position: fixed;
    z-index: 105;
    top: calc(var(--amx-header-height) + var(--wp-admin--admin-bar--height, 0px) + 8px);
    inset-inline: 14px;
    display: none;
    max-height: calc(100dvh - var(--amx-header-height) - var(--wp-admin--admin-bar--height, 0px) - 28px);
    padding: 14px;
    overflow-y: auto;
    color: var(--amx-ink);
    background: color-mix(in srgb, var(--amx-surface-raised) 98%, transparent);
    border: 1px solid var(--amx-border);
    border-radius: 20px;
    box-shadow: var(--amx-shadow-strong);
    backdrop-filter: blur(22px);
  }

  body:not(.amx-reels-page) .amx-primary-nav.is-open {
    display: block;
  }

  body:not(.amx-reels-page) .amx-primary-nav > ul,
  body:not(.amx-reels-page) .amx-primary-nav > .menu {
    display: grid;
    width: 100%;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  body:not(.amx-reels-page) .amx-primary-nav a {
    min-height: 48px;
    padding: 12px 14px;
    color: var(--amx-ink);
    font-size: .95rem;
    border-radius: 12px;
  }

  body:not(.amx-reels-page) .amx-primary-nav a:hover,
  body:not(.amx-reels-page) .amx-primary-nav .current-menu-item > a {
    color: var(--amx-brand);
    background: var(--amx-brand-soft);
    box-shadow: none;
  }

  body:not(.amx-reels-page) .amx-primary-nav .sub-menu {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 4px 14px;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  body:not(.amx-reels-page) .amx-mobile-nav-utilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--amx-border);
  }

  body:not(.amx-reels-page) .amx-primary-nav .amx-mobile-nav-utility {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--amx-ink-soft);
    background: var(--amx-surface);
    border: 1px solid var(--amx-border);
  }

  body:not(.amx-reels-page) .amx-mobile-nav-utility .amx-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  body:not(.amx-reels-page) .amx-menu-toggle {
    display: inline-grid;
  }

  body.menu-is-open:not(.amx-reels-page) {
    overflow: hidden;
  }

  body:not(.amx-reels-page) .amx-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.amx-reels-page) .amx-grid--archive-short {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.amx-reels-page) .amx-grid--archive-creator {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.amx-reels-page) .amx-library__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.amx-reels-page) .amx-section--stories .amx-card,
  body:not(.amx-reels-page) .amx-grid--creators .amx-creator-card {
    grid-column: span 6;
  }

  body:not(.amx-reels-page) .amx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.amx-reels-page) .amx-footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --amx-page: min(1320px, calc(100% - 28px));
    --amx-header-height: 66px;
  }

  html {
    scroll-padding-top: calc(var(--amx-header-height) + 14px);
  }

  body:not(.amx-reels-page) .amx-site-header,
  body:not(.amx-reels-page) .amx-site-header.is-scroll-hidden {
    position: sticky;
    top: 0;
    transform: none !important;
    pointer-events: auto;
    will-change: auto;
  }

  body:not(.amx-reels-page) .amx-shell {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body:not(.amx-reels-page) .amx-header-inner {
    min-height: var(--amx-header-height);
    grid-template-columns: minmax(0, auto) 1fr auto;
    gap: 8px;
    direction: inherit;
  }

  body:not(.amx-reels-page) .amx-brand {
    min-width: 0;
    gap: 8px;
    font-size: 1rem;
  }

  body:not(.amx-reels-page) .amx-brand-wordmark {
    display: inline !important;
  }

  body:not(.amx-reels-page) .amx-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  body:not(.amx-reels-page) .amx-header-actions {
    gap: 5px;
    direction: inherit;
  }

  body:not(.amx-reels-page) :is(.amx-language-switch, .amx-account-link) {
    display: none !important;
  }

  body:not(.amx-reels-page) :is(.amx-header-control, .amx-menu-toggle, .amx-install-button) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
  }

  body:not(.amx-reels-page) .amx-theme-toggle {
    display: inline-grid !important;
  }

  body:not(.amx-reels-page) .amx-install-button span {
    display: none;
  }

  body:not(.amx-reels-page) .amx-primary-nav {
    top: calc(var(--amx-header-height) + var(--wp-admin--admin-bar--height, 0px) + 8px);
    bottom: calc(82px + env(safe-area-inset-bottom));
    inset-inline: 10px;
    height: calc(100dvh - var(--amx-header-height) - var(--wp-admin--admin-bar--height, 0px) - 98px - env(safe-area-inset-bottom));
    min-height: 260px;
    max-height: none;
    padding: 12px;
    border-radius: 18px;
  }

  body:not(.amx-reels-page) .amx-search-panel {
    position: fixed;
    z-index: 104;
    top: calc(var(--amx-header-height) + var(--wp-admin--admin-bar--height, 0px));
    inset-inline: 0;
    padding-block: 12px;
  }

  body:not(.amx-reels-page) .amx-search-form {
    gap: 8px;
  }

  body:not(.amx-reels-page) .amx-search-form input {
    min-height: 46px;
    padding-inline: 42px 12px;
    font-size: 16px;
  }

  body:not(.amx-reels-page) .amx-search-form .amx-button {
    min-width: 70px;
    min-height: 46px;
    padding-inline: 12px;
  }

  body:not(.amx-reels-page) .amx-app-notice {
    inset-block-end: calc(86px + env(safe-area-inset-bottom));
    inset-inline: 12px;
    width: auto;
    border-radius: 17px;
  }

  body:not(.amx-reels-page) .amx-app-notice__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }

  body:not(.amx-reels-page) .amx-app-notice p {
    font-size: .78rem;
    line-height: 1.5;
  }

  body:not(.amx-reels-page) .amx-app-notice__actions {
    gap: 5px;
  }

  body:not(.amx-reels-page) .amx-app-notice .amx-button--small {
    min-height: 40px;
    padding-inline: 10px;
  }

  body:not(.amx-reels-page) .amx-app-notice .amx-text-button {
    min-height: 40px;
    padding-inline: 8px;
  }

  body:not(.amx-reels-page) .amx-hero {
    min-height: clamp(540px, calc(100svh - var(--amx-header-height)), 690px);
  }

  body:not(.amx-reels-page) .amx-hero-content {
    width: var(--amx-page);
    padding-block: 72px 28px;
  }

  body:not(.amx-reels-page) .amx-hero-position {
    margin-bottom: 10px;
  }

  body:not(.amx-reels-page) .amx-hero-kicker-row {
    margin-bottom: 10px;
  }

  body:not(.amx-reels-page) .amx-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.1rem, 10vw, 3.35rem);
    line-height: 1.08;
  }

  body:not(.amx-reels-page) .amx-hero-content > p {
    margin-top: 12px;
    font-size: .88rem;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }

  body:not(.amx-reels-page) .amx-hero-actions {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-top: 17px;
  }

  body:not(.amx-reels-page) .amx-hero .amx-button {
    min-height: 44px;
  }

  body:not(.amx-reels-page) .amx-hero-meta {
    flex: 1 1 140px;
  }

  body:not(.amx-reels-page) .amx-format-strip__inner {
    min-height: 0;
    align-items: start;
    flex-direction: column;
    gap: 8px;
    padding-block: 14px;
  }

  body:not(.amx-reels-page) .amx-format-strip p {
    margin: 0;
  }

  body:not(.amx-reels-page) .amx-format-strip__links {
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding-inline: 14px;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  body:not(.amx-reels-page) .amx-format-strip__links::-webkit-scrollbar {
    display: none;
  }

  body:not(.amx-reels-page) .amx-format-strip__links a {
    min-width: max-content;
    min-height: 42px;
    scroll-snap-align: start;
  }

  body:not(.amx-reels-page) .amx-section {
    padding-block: 54px;
  }

  body:not(.amx-reels-page) .amx-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
  }

  body:not(.amx-reels-page) :is(.amx-section-heading h2, .amx-page-heading h1, .amx-library__header h1) {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.14;
  }

  body:not(.amx-reels-page) .amx-section-link {
    min-height: 40px;
  }

  body:not(.amx-reels-page) .amx-grid--editorial .amx-card--lead,
  body:not(.amx-reels-page) .amx-grid--editorial .amx-card:not(.amx-card--lead),
  body:not(.amx-reels-page) .amx-grid--editorial .amx-card:nth-child(n + 4),
  body:not(.amx-reels-page) .amx-section--stories .amx-card {
    grid-column: span 12;
  }

  body:not(.amx-reels-page) .amx-grid--creators .amx-creator-card {
    grid-column: span 12;
  }

  body:not(.amx-reels-page) .amx-grid--editorial .amx-card--lead .amx-card-title {
    font-size: 1.55rem;
  }

  body:not(.amx-reels-page) .amx-grid--shorts,
  body:not(.amx-reels-page) .amx-reel__track {
    --amx-reel-card-width: min(68vw, 260px);
    width: calc(100% + 28px);
    grid-auto-columns: var(--amx-reel-card-width);
    margin-inline: -14px;
    padding-inline: max(14px, calc(((100% - var(--amx-reel-card-width)) / 2) + 14px));
    scroll-padding-inline: max(14px, calc(((100% - var(--amx-reel-card-width)) / 2) + 14px));
  }

  body:not(.amx-reels-page) .amx-reel__arrow {
    width: 48px;
    height: 48px;
  }

  body:not(.amx-reels-page) .amx-reel__edge {
    width: 34px;
  }

  body:not(.amx-reels-page) .amx-page-heading {
    padding-block: 52px 28px;
  }

  body:not(.amx-reels-page) .amx-page-heading::before {
    top: 30px;
    width: 96px;
    height: 3px;
  }

  body:not(.amx-reels-page) .amx-listing-tabs {
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding-inline: 14px;
    background: transparent;
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body:not(.amx-reels-page) .amx-search-page-form {
    gap: 7px;
    padding: 6px;
    border-radius: 15px;
  }

  body:not(.amx-reels-page) .amx-search-page-form input {
    min-height: 46px;
    padding-inline-start: 42px;
    font-size: 16px;
  }

  body:not(.amx-reels-page) .amx-search-page-form > .amx-icon {
    inset-inline-start: 19px;
  }

  body:not(.amx-reels-page) .amx-search-page-form .amx-button {
    min-width: 70px;
    min-height: 46px;
    padding-inline: 10px;
  }

  body:not(.amx-reels-page) .amx-grid--archive {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short,
  body:not(.amx-reels-page) .amx-grid--archive-creator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-creator .amx-creator-card__link {
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 18px 10px;
    text-align: center;
  }

  body:not(.amx-reels-page) .amx-grid--archive-creator .amx-creator-card__content {
    width: 100%;
    min-width: 0;
  }

  body:not(.amx-reels-page) .amx-grid--archive-creator .amx-creator-name {
    overflow-wrap: anywhere;
  }

  body:not(.amx-reels-page) .amx-grid--archive-creator :is(.amx-creator-role, .amx-creator-stats) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card {
    border-radius: 18px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-body {
    padding: 44% 12px 13px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-title {
    margin-top: 5px;
    font-size: clamp(.91rem, 4vw, 1.04rem);
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-topic {
    font-size: .67rem;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-meta {
    gap: 5px 8px;
    margin-top: 8px;
    font-size: .64rem;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-date .amx-icon {
    display: none;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-play {
    width: 44px;
    height: 44px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short :is(.amx-card-type, .amx-card-duration) {
    top: 10px;
    padding: 4px 7px;
    font-size: .61rem;
  }

  body:not(.amx-reels-page) :is(.amx-single--article, .amx-single--page, .amx-video-page) {
    width: min(100% - 28px, 1280px);
    padding-block: 48px 68px;
  }

  body:not(.amx-reels-page) .amx-single-header h1,
  body:not(.amx-reels-page) .amx-video-page .amx-single-header h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9.5vw, 3.25rem);
    line-height: 1.16;
  }

  body:not(.amx-reels-page) .amx-single-deck {
    font-size: 1rem;
    line-height: 1.75;
  }

  body:not(.amx-reels-page) .amx-single-image,
  body:not(.amx-reels-page) .amx-video-page .amx-media-player {
    border-radius: 17px;
  }

  body:not(.amx-reels-page) .amx-video-page .amx-player__controls {
    gap: 6px;
    padding: 38px 10px 10px;
  }

  body:not(.amx-reels-page) .amx-video-page .amx-player__timeline {
    height: 28px;
  }

  body:not(.amx-reels-page) .amx-video-page .amx-player__control-row {
    gap: 2px;
  }

  body:not(.amx-reels-page) .amx-video-page :is(.amx-player__time, .amx-player__time-separator) {
    font-size: .64rem;
  }

  body:not(.amx-reels-page) .amx-video-page .amx-player__speed {
    width: 44px;
    min-width: 44px;
  }

  body:not(.amx-reels-page) .amx-entry-content {
    font-size: 1.02rem;
    line-height: 1.92;
  }

  body:not(.amx-reels-page) .amx-video-page__details {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:not(.amx-reels-page) .amx-video-page :is(.amx-single-details, .amx-entry-content) {
    padding: 20px;
  }

  body:not(.amx-reels-page) .amx-creator-profile {
    min-height: 510px;
  }

  body:not(.amx-reels-page) .amx-creator-profile .amx-creator-hero-content {
    display: flex;
    min-height: inherit;
    align-items: start;
    flex-direction: column;
    justify-content: end;
    gap: 20px;
    padding-block: 90px 42px;
  }

  body:not(.amx-reels-page) .amx-creator-profile .amx-creator-avatar {
    width: 104px;
    height: 104px;
    min-width: 104px;
  }

  body:not(.amx-reels-page) .amx-creator-profile h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  body:not(.amx-reels-page) .amx-creator-socials {
    width: calc(100% + 28px);
    flex-wrap: nowrap;
    margin-inline: -14px;
    padding-inline: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body:not(.amx-reels-page) .amx-library {
    width: min(100% - 28px, 1320px);
    padding-block: 52px 72px;
  }

  body:not(.amx-reels-page) .amx-library__header {
    padding-bottom: 24px;
  }

  body:not(.amx-reels-page) .amx-library__grid {
    grid-template-columns: 1fr;
  }

  body:not(.amx-reels-page) .amx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding-block: 48px 38px;
  }

  body:not(.amx-reels-page) .amx-footer-brand-column {
    grid-column: 1 / -1;
  }

  body:not(.amx-reels-page) .amx-footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 24px;
  }

  .amx-mobile-dock {
    position: fixed;
    z-index: 130;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    min-height: 66px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 6px 5px 7px;
    color: rgb(255 255 255 / 62%);
    background: rgb(9 12 18 / 90%);
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 22px;
    box-shadow: 0 18px 54px rgb(0 0 0 / 38%);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
  }

  .amx-mobile-dock__item {
    display: flex;
    min-width: 0;
    min-height: 53px;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px;
    color: inherit;
    font-size: clamp(.55rem, 2.45vw, .67rem);
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
  }

  .amx-mobile-dock__item > .amx-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
  }

  .amx-mobile-dock__item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .amx-mobile-dock__item:hover,
  .amx-mobile-dock__item.is-active {
    color: #fff;
    background: rgb(255 255 255 / 7%);
  }

  .amx-mobile-dock__item.is-active:not(.amx-mobile-dock__item--feature) .amx-icon {
    color: var(--amx-signal);
    filter: drop-shadow(0 0 8px rgb(72 223 208 / 40%));
  }

  .amx-mobile-dock__item--feature {
    position: relative;
    justify-content: end;
    overflow: visible;
  }

  .amx-mobile-dock__feature-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #ff4c70, #df1644);
    border: 4px solid #10141d;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgb(255 49 90 / 42%);
    transform: rotate(5deg);
  }

  .amx-mobile-dock__feature-icon .amx-icon {
    width: 23px;
    height: 23px;
    fill: currentColor;
    stroke: none;
    transform: rotate(-5deg);
  }

  .amx-mobile-dock__item--feature.is-active .amx-mobile-dock__feature-icon {
    background: linear-gradient(145deg, #ff6482, #f02250);
    box-shadow: 0 14px 36px rgb(255 49 90 / 58%);
  }
}

@media (max-width: 370px) {
  :root {
    --amx-page: min(1320px, calc(100% - 22px));
  }

  body:not(.amx-reels-page) .amx-site-header .amx-brand__lockup {
    display: none;
  }

  body:not(.amx-reels-page) .amx-site-header .amx-brand__compact {
    display: grid;
  }

  body:not(.amx-reels-page) .amx-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  body:not(.amx-reels-page) .amx-header-actions {
    gap: 4px;
  }

  body:not(.amx-reels-page) :is(.amx-header-control, .amx-menu-toggle, .amx-install-button) {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short {
    gap: 20px 9px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-body {
    padding-inline: 10px;
  }

  body:not(.amx-reels-page) .amx-grid--archive-short .amx-card-meta {
    font-size: .6rem;
  }

  .amx-mobile-dock {
    right: 6px;
    left: 6px;
  }

  .amx-mobile-dock__item {
    font-size: .54rem;
  }
}

@media (hover: none) {
  body:not(.amx-reels-page) .amx-card:hover .amx-card-media,
  body:not(.amx-reels-page) .amx-card:hover,
  body:not(.amx-reels-page) .amx-creator-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.amx-reels-page) *,
  body:not(.amx-reels-page) *::before,
  body:not(.amx-reels-page) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  body:not(.amx-reels-page) :is(.amx-mobile-dock, .amx-app-notice, .amx-site-header, .amx-card, .amx-creator-card) {
    border: 1px solid CanvasText;
  }

  body:not(.amx-reels-page) .amx-mobile-dock__feature-icon {
    border: 2px solid CanvasText;
  }
}

/* Institutional footer: app acquisition, official channels, and trust links. */
body:not(.amx-reels-page) .amx-site-footer {
  position: relative;
  padding: clamp(26px, 4vw, 58px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 5%, rgb(30 205 190 / 13%), transparent 31rem),
    radial-gradient(circle at 6% 72%, rgb(255 49 90 / 10%), transparent 27rem),
    #06090e;
}

body:not(.amx-reels-page) .amx-site-footer::after {
  position: absolute;
  right: -12vw;
  bottom: -40vw;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgb(255 255 255 / 4%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body:not(.amx-reels-page) .amx-footer-app {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.7fr) auto;
  gap: clamp(24px, 4vw, 66px);
  align-items: center;
  padding: clamp(28px, 4vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgb(255 49 90 / 18%), transparent 42%),
    linear-gradient(135deg, #17111d 0%, #0e1822 57%, #0a2425 100%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: clamp(26px, 3vw, 40px);
  box-shadow: 0 34px 90px rgb(0 0 0 / 28%);
}

body:not(.amx-reels-page) .amx-footer-app::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 62%);
  content: "";
}

body:not(.amx-reels-page) .amx-footer-app__art {
  position: relative;
  width: clamp(150px, 16vw, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

body:not(.amx-reels-page) .amx-footer-app__orbit {
  position: absolute;
  inset: 3%;
  border: 1px solid rgb(63 224 211 / 28%);
  border-radius: 50%;
}

body:not(.amx-reels-page) .amx-footer-app__orbit--one::after,
body:not(.amx-reels-page) .amx-footer-app__orbit--two::after {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #44e0d2;
  border: 4px solid rgb(68 224 210 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 24px #44e0d2;
  content: "";
}

body:not(.amx-reels-page) .amx-footer-app__orbit--one::after {
  top: 10%;
  right: 16%;
}

body:not(.amx-reels-page) .amx-footer-app__orbit--two {
  inset: 23%;
  border-color: rgb(255 73 111 / 38%);
}

body:not(.amx-reels-page) .amx-footer-app__orbit--two::after {
  right: -5px;
  bottom: 24%;
  background: #ff315a;
  border-color: rgb(255 49 90 / 20%);
  box-shadow: 0 0 24px #ff315a;
}

body:not(.amx-reels-page) .amx-footer-app__mark {
  width: 76px;
  height: 76px;
  border-radius: 23px;
  box-shadow: 0 22px 52px rgb(255 49 90 / 42%);
}

body:not(.amx-reels-page) .amx-footer-app__content {
  max-width: 720px;
}

body:not(.amx-reels-page) .amx-footer-eyebrow {
  margin: 0 0 12px;
  color: #4ce3d5;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body:not(.amx-reels-page) .amx-footer-app h2 {
  max-width: 17ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.1vw, 3.35rem);
  line-height: 1.07;
  letter-spacing: -.04em;
}

body:not(.amx-reels-page) .amx-footer-app__content > p:not(.amx-footer-eyebrow) {
  max-width: 60ch;
  margin: 16px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  line-height: 1.85;
}

body:not(.amx-reels-page) .amx-footer-app__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: .76rem;
  font-weight: 800;
  list-style: none;
}

body:not(.amx-reels-page) .amx-footer-app__features li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

body:not(.amx-reels-page) .amx-footer-app__features li::before {
  width: 6px;
  height: 6px;
  background: #4ce3d5;
  border-radius: 50%;
  box-shadow: 0 0 12px rgb(76 227 213 / 65%);
  content: "";
}

body:not(.amx-reels-page) .amx-footer-install {
  display: inline-flex;
  min-width: 190px;
  min-height: 68px;
  gap: 13px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #fff;
  text-align: start;
  background: linear-gradient(135deg, #ff4d70, #ed1647);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgb(238 30 72 / 32%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body:not(.amx-reels-page) .amx-footer-install[hidden] {
  display: none !important;
}

body:not(.amx-reels-page) .amx-footer-install:hover {
  box-shadow: 0 22px 54px rgb(238 30 72 / 46%);
  transform: translateY(-3px);
}

body:not(.amx-reels-page) .amx-footer-install__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgb(255 255 255 / 13%);
  border-radius: 13px;
}

body:not(.amx-reels-page) .amx-footer-install svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body:not(.amx-reels-page) .amx-footer-install > span:last-child {
  display: grid;
  gap: 2px;
  font-weight: 900;
}

body:not(.amx-reels-page) .amx-footer-install small {
  color: rgb(255 255 255 / 68%);
  font-size: .62rem;
  letter-spacing: .15em;
}

body:not(.amx-reels-page) .amx-footer-grid {
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, .7fr));
  gap: clamp(32px, 5vw, 74px);
  padding-block: clamp(58px, 7vw, 92px) clamp(42px, 5vw, 66px);
}

body:not(.amx-reels-page) .amx-footer-brand-column .amx-brand {
  width: max-content;
}

body:not(.amx-reels-page) .amx-footer-copy {
  max-width: 37ch;
  margin-top: 18px;
  color: rgb(255 255 255 / 58%);
  font-size: .9rem;
  line-height: 1.9;
}

body:not(.amx-reels-page) .amx-footer-title {
  position: relative;
  padding-bottom: 14px;
  margin: 0 0 10px;
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
}

body:not(.amx-reels-page) .amx-footer-title::after {
  position: absolute;
  inset-inline-start: 0;
  bottom: 4px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #ff315a, #4ce3d5);
  border-radius: 99px;
  content: "";
}

body:not(.amx-reels-page) .amx-footer-nav li + li {
  margin-top: 3px;
}

body:not(.amx-reels-page) .amx-footer-nav a {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: rgb(255 255 255 / 62%);
  font-size: .86rem;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

body:not(.amx-reels-page) .amx-footer-nav a:hover {
  color: #fff;
  transform: translateX(3px);
}

[dir="rtl"] body:not(.amx-reels-page) .amx-footer-nav a:hover {
  transform: translateX(-3px);
}

body:not(.amx-reels-page) .amx-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

body:not(.amx-reels-page) .amx-footer-socials a {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body:not(.amx-reels-page) .amx-footer-socials a:hover {
  color: #fff;
  background: rgb(255 49 90 / 18%);
  border-color: rgb(255 75 111 / 48%);
  transform: translateY(-3px);
}

body:not(.amx-reels-page) .amx-footer-socials svg,
body:not(.amx-reels-page) .amx-footer-email svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body:not(.amx-reels-page) .amx-footer-socials .amx-icon-fill {
  fill: currentColor;
  stroke: none;
}

body:not(.amx-reels-page) .amx-footer-email {
  display: inline-flex;
  max-width: 100%;
  gap: 9px;
  align-items: center;
  padding: 11px 13px;
  margin-top: 18px;
  overflow: hidden;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 13px;
  font-size: .74rem;
}

body:not(.amx-reels-page) .amx-footer-email span {
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.amx-reels-page) .amx-footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

body:not(.amx-reels-page) .amx-footer-copyright {
  display: grid;
  gap: 4px;
  color: rgb(255 255 255 / 46%);
  font-size: .72rem;
}

body:not(.amx-reels-page) .amx-footer-copyright span:last-child {
  color: rgb(255 255 255 / 32%);
}

body:not(.amx-reels-page) .amx-footer-legal,
body:not(.amx-reels-page) .amx-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

body:not(.amx-reels-page) .amx-footer-legal a,
body:not(.amx-reels-page) .amx-footer-language {
  color: rgb(255 255 255 / 52%);
  font-size: .72rem;
  font-weight: 700;
}

body:not(.amx-reels-page) .amx-footer-legal a:hover,
body:not(.amx-reels-page) .amx-footer-language:hover {
  color: #fff;
}

body:not(.amx-reels-page) .amx-footer-language {
  display: inline-grid;
  min-width: 50px;
  min-height: 42px;
  place-items: center;
  padding-inline: 10px;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
}

body:not(.amx-reels-page) .amx-footer-top {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #061013;
  background: #4ce3d5;
  border: 0;
  border-radius: 14px;
}

body:not(.amx-reels-page) .amx-footer-top:hover {
  background: #fff;
}

body:not(.amx-reels-page) .amx-footer-top svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Bilingual institutional pages. */
body:not(.amx-reels-page) .amx-institutional {
  background: var(--amx-surface);
}

body:not(.amx-reels-page) .amx-institutional-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(380px, 50vw, 600px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 30%, rgb(255 49 90 / 30%), transparent 25rem),
    radial-gradient(circle at 86% 10%, rgb(53 212 202 / 17%), transparent 24rem),
    linear-gradient(135deg, #111520, #070a0f 70%);
}

body:not(.amx-reels-page) .amx-institutional-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgb(255 255 255 / 3%) 48% 48.1%, transparent 48.1%),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 100% 100%, 100% 74px;
  content: "";
}

body:not(.amx-reels-page) .amx-institutional-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding-block: clamp(74px, 10vw, 128px) clamp(52px, 7vw, 86px);
}

body:not(.amx-reels-page) .amx-institutional-hero__copy {
  max-width: 900px;
}

body:not(.amx-reels-page) .amx-institutional-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 14px;
  color: #4ce3d5;
  font-size: .78rem;
  font-weight: 900;
}

body:not(.amx-reels-page) .amx-institutional-eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

body:not(.amx-reels-page) .amx-institutional-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: .96;
  letter-spacing: -.06em;
}

body:not(.amx-reels-page) .amx-institutional-hero__copy > p:last-child {
  max-width: 62ch;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 67%);
  font-size: clamp(.98rem, 1.35vw, 1.2rem);
  line-height: 1.85;
}

body:not(.amx-reels-page) .amx-institutional-hero__index {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgb(255 255 255 / 44%);
  font-size: .72rem;
  font-weight: 900;
}

body:not(.amx-reels-page) .amx-institutional-hero__index span {
  color: #fff;
  font-size: 1.3rem;
}

body:not(.amx-reels-page) .amx-institutional-hero__index i {
  width: clamp(42px, 7vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, #ff315a, #4ce3d5);
}

body:not(.amx-reels-page) .amx-institutional-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: clamp(44px, 8vw, 118px);
  align-items: start;
  padding-block: clamp(64px, 8vw, 110px);
}

body:not(.amx-reels-page) .amx-institutional-content {
  width: 100%;
  max-width: 920px;
  margin: 0;
}

body:not(.amx-reels-page) .amx-info-section + .amx-info-section {
  padding-top: clamp(48px, 6vw, 78px);
  margin-top: clamp(48px, 6vw, 78px);
  border-top: 1px solid var(--amx-border);
}

body:not(.amx-reels-page) .amx-info-section > h2 {
  max-width: 17ch;
  margin: 0 0 20px;
  color: var(--amx-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

body:not(.amx-reels-page) .amx-info-section > p {
  max-width: 72ch;
  margin: 0;
  color: var(--amx-ink-soft);
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 2;
}

body:not(.amx-reels-page) .amx-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

body:not(.amx-reels-page) .amx-info-card {
  min-height: 220px;
  padding: 26px;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgb(10 17 28 / 5%);
}

body:not(.amx-reels-page) .amx-info-card::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 38px;
  background: linear-gradient(90deg, #ff315a, #4ce3d5);
  border-radius: 99px;
  content: "";
}

body:not(.amx-reels-page) .amx-info-card h3 {
  margin: 0 0 10px;
  color: var(--amx-ink);
  font-size: 1rem;
}

body:not(.amx-reels-page) .amx-info-card p {
  margin: 0;
  color: var(--amx-ink-soft);
  font-size: .85rem;
  line-height: 1.85;
}

body:not(.amx-reels-page) .amx-institutional-aside {
  position: sticky;
  top: calc(var(--amx-header-height, 78px) + 28px);
  display: grid;
  gap: 18px;
}

body:not(.amx-reels-page) .amx-institutional-directory,
body:not(.amx-reels-page) .amx-institutional-contact {
  padding: 24px;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 24px;
}

body:not(.amx-reels-page) .amx-institutional-directory > p {
  margin: 0 0 14px;
  color: var(--amx-ink-soft);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:not(.amx-reels-page) .amx-institutional-directory ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

body:not(.amx-reels-page) .amx-institutional-directory li + li {
  border-top: 1px solid var(--amx-border);
}

body:not(.amx-reels-page) .amx-institutional-directory a {
  display: flex;
  min-height: 48px;
  gap: 13px;
  align-items: center;
  color: var(--amx-ink-soft);
  font-size: .82rem;
  font-weight: 800;
}

body:not(.amx-reels-page) .amx-institutional-directory a span {
  color: color-mix(in srgb, var(--amx-ink-soft) 55%, transparent);
  font-size: .64rem;
}

body:not(.amx-reels-page) .amx-institutional-directory a[aria-current="page"] {
  color: var(--amx-brand);
}

body:not(.amx-reels-page) .amx-institutional-contact {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgb(60 220 208 / 22%), transparent 14rem),
    #0b1119;
  border-color: rgb(255 255 255 / 10%);
}

body:not(.amx-reels-page) .amx-institutional-contact .amx-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

body:not(.amx-reels-page) .amx-institutional-contact h2 {
  margin: 28px 0 20px;
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
}

body:not(.amx-reels-page) .amx-institutional-contact a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 17px;
  color: #fff;
  background: var(--amx-brand);
  border-radius: 13px;
  font-size: .78rem;
  font-weight: 900;
}

body:not(.amx-reels-page) .amx-institutional-contact small {
  display: block;
  margin-top: 16px;
  color: rgb(255 255 255 / 48%);
  font-size: .7rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  body:not(.amx-reels-page) .amx-footer-app {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  body:not(.amx-reels-page) .amx-footer-install {
    grid-column: 2;
    width: max-content;
  }

  body:not(.amx-reels-page) .amx-footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  body:not(.amx-reels-page) .amx-footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  body:not(.amx-reels-page) .amx-footer-grid > :last-child .amx-footer-copy {
    max-width: 60ch;
  }

  body:not(.amx-reels-page) .amx-institutional-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 44px;
  }

  body:not(.amx-reels-page) .amx-info-grid {
    grid-template-columns: 1fr;
  }

  body:not(.amx-reels-page) .amx-info-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body:not(.amx-reels-page) .amx-site-footer {
    padding-top: 14px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  body:not(.amx-reels-page) .amx-footer-app {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    border-radius: 26px;
  }

  body:not(.amx-reels-page) .amx-footer-app__art {
    position: absolute;
    top: -55px;
    inset-inline-end: -35px;
    z-index: -1;
    width: 180px;
    opacity: .48;
  }

  body:not(.amx-reels-page) .amx-footer-app__content {
    position: relative;
    z-index: 1;
  }

  body:not(.amx-reels-page) .amx-footer-app h2 {
    max-width: 14ch;
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  body:not(.amx-reels-page) .amx-footer-install {
    grid-column: auto;
    width: 100%;
    min-height: 62px;
  }

  body:not(.amx-reels-page) .amx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 24px;
    padding-block: 54px 42px;
  }

  body:not(.amx-reels-page) .amx-footer-brand-column,
  body:not(.amx-reels-page) .amx-footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  body:not(.amx-reels-page) .amx-footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    padding-block: 22px 8px;
  }

  body:not(.amx-reels-page) .amx-footer-copyright,
  body:not(.amx-reels-page) .amx-footer-legal {
    grid-column: 1 / -1;
  }

  body:not(.amx-reels-page) .amx-footer-legal {
    gap: 9px 16px;
  }

  body:not(.amx-reels-page) .amx-footer-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }

  body:not(.amx-reels-page) .amx-institutional-hero {
    min-height: 420px;
  }

  body:not(.amx-reels-page) .amx-institutional-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 90px 48px;
  }

  body:not(.amx-reels-page) .amx-institutional-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
  }

  body:not(.amx-reels-page) .amx-institutional-hero__index {
    justify-self: start;
  }

  body:not(.amx-reels-page) .amx-institutional-layout {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 54px 74px;
  }

  body:not(.amx-reels-page) .amx-institutional-aside {
    position: static;
  }

  body:not(.amx-reels-page) .amx-info-section > h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (max-width: 410px) {
  body:not(.amx-reels-page) .amx-footer-grid {
    grid-template-columns: 1fr;
  }

  body:not(.amx-reels-page) .amx-footer-brand-column,
  body:not(.amx-reels-page) .amx-footer-grid > :last-child {
    grid-column: auto;
  }
}

/* Mobile editorial rails must stay one card per implicit column. The generic
 * 12-column mobile grid rule is correct for archives, but must never make a
 * horizontally scrolling news/creator card span twelve rail columns. */
@media (max-width: 760px) {
  body:not(.amx-reels-page) .amx-editorial-reel__track {
    --amx-editorial-card-width: min(88vw, 344px);
    grid-template-columns: none;
    grid-auto-columns: var(--amx-editorial-card-width);
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding: 8px max(14px, calc(((100% - var(--amx-editorial-card-width)) / 2) + 14px)) 18px;
    scroll-padding-inline: max(14px, calc(((100% - var(--amx-editorial-card-width)) / 2) + 14px));
  }

  body:not(.amx-reels-page) .amx-editorial-reel__track--creators {
    --amx-editorial-card-width: min(86vw, 340px);
  }

  body:not(.amx-reels-page) .amx-editorial-reel__track > :is(.amx-card, .amx-creator-card) {
    width: auto;
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
  }

  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-card,
  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-card-link {
    height: auto;
  }

  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-card-media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }

  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-card-body {
    padding: 16px 4px 4px;
  }

  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-card-title {
    margin-top: 6px;
    font-size: clamp(1.08rem, 5vw, 1.28rem);
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-card-meta {
    margin-top: 9px;
  }

  body:not(.amx-reels-page) .amx-section--stories .amx-section-heading {
    margin-bottom: 18px;
  }

  body:not(.amx-reels-page) .amx-editorial-reel--news .amx-reel__footer {
    min-height: 40px;
    margin-top: 0;
  }
}
