/* V3 editorial imagery, section entries and catalogue cards. */
.ax-landing .ax-hero {
  padding: clamp(46px, 7vw, 90px) 0 clamp(54px, 7vw, 96px);
  background: #0a1321;
}
.ax-landing .ax-hero .w { gap: clamp(25px, 5vw, 65px); grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); }
.ax-hero .ax-hero-copy h1 { font-size: clamp(2.4rem, 5.2vw, 4.85rem); }
.ax-hero-media { position: relative; min-width: 0; min-height: 400px; border: 1px solid #3a536c; border-radius: 24px; isolation: isolate; overflow: hidden; box-shadow: 0 25px 65px #030812a6; }
.ax-hero-media picture, .ax-hero-media picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ax-hero-media picture img { object-fit: cover; object-position: 68% 50%; transition: transform .6s var(--ax-ease); }
.ax-hero-media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, #07111f 2%, #07111f12 70%); pointer-events: none; }
.ax-hero-media:hover picture img { transform: scale(1.035); }
.ax-hero-caption {
  z-index: 1; position: absolute; inset: auto 16px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 16px; border: 1px solid #789fb34d; border-radius: 15px; color: #eff8ff; background: #0a1927e8; text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.ax-hero-caption:hover { transform: translateY(-3px); border-color: var(--ax-mint); background: #102a3a; }
.ax-hero-caption .ax-overline { grid-column: 1 / -1; }
.ax-hero-caption b { font-size: clamp(1.04rem, 1.8vw, 1.36rem); }
.ax-hero-caption i { font-style: normal; font-size: 1.3rem; color: var(--ax-mint); }
.ax-hero-copy .ax-hero-trust { color: var(--ax-soft); margin-top: 20px; font-size: .8rem; letter-spacing: .04em; }
.ax-landing .ax-aof-feature { border: 1px solid #294359; background: #112234; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 23px; }
.ax-aof-feature > div { padding: clamp(22px, 5vw, 44px); align-self: center; }
.ax-aof-feature h2 { font-size: clamp(1.4rem, 3vw, 2.35rem); line-height: 1.13; margin: 10px 0; letter-spacing: -.04em; }
.ax-aof-feature p { color: var(--ax-soft); line-height: 1.62; margin: 0 0 20px; }
.ax-aof-feature img { width: 100%; height: 100%; min-height: 245px; object-fit: cover; object-position: 65% 50%; }
.ax-program-card { text-decoration: none; }
.ax-program-card:hover, .ax-program-card:focus-visible { border-color: var(--ax-mint); }
.ax-directory-page { color-scheme: dark; margin: 0; background: #0a1321; color: #edf4fc; font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
.ax-directory-page * { box-sizing: border-box; }
.ax-directory-page [hidden] { display: none !important; }
.ax-directory-page :focus-visible { outline: 2px solid #89ead1; outline-offset: 4px; }
.ax-directory-nav { background: #101e2d; border-bottom: 1px solid #273a4f; }
.ax-directory-nav > div, .ax-directory, .ax-directory-footer { width: min(1120px, calc(100% - 36px)); margin: auto; }
.ax-directory-nav > div { display: flex; min-height: 68px; gap: 16px; align-items: center; justify-content: space-between; }
.ax-directory-nav a { color: #d8e7f7; text-decoration: none; font-size: .92rem; }
.ax-directory-brand { display: flex; align-items: center; font-weight: 800; gap: 9px; }
.ax-directory-brand img { border-radius: 8px; object-fit: cover; }
.ax-directory { padding: clamp(26px, 5vw, 62px) 0; }
.ax-directory-hero { display: grid; grid-template-columns: 1fr 1fr; background: #132336; border: 1px solid #2e455d; border-radius: 25px; overflow: hidden; }
.ax-directory-hero > div { padding: clamp(22px, 4vw, 44px); align-self: center; }
.ax-directory-hero h1, .ax-directory > h1 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.06em; line-height: 1.06; margin: 12px 0; overflow-wrap: anywhere; }
.ax-directory-hero p, .ax-directory > p { margin: 0 0 21px; color: #c2d2e2; line-height: 1.64; }
.ax-directory-hero img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; object-position: 65% 50%; }
.ax-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border-radius: 11px; background: #92edcf; color: #082124; font-weight: 750; text-decoration: none; margin: 4px 6px 4px 0; transition: transform .2s, box-shadow .2s; }
.ax-cta.alt { border: 1px solid #42647e; background: #1a3045; color: #e6f5fd; }
.ax-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 24px #91efc928; }
.ax-entry-state { display: block; color: #a9c3d9; margin-top: 10px; font-size: .84rem; }
.ax-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 22px; }
.ax-entry-card { padding: 20px; border-radius: 16px; border: 1px solid #2e455d; background: #101e2d; }
.ax-entry-card h2 { font-size: 1.16rem; margin: 13px 0 4px; }
.ax-entry-card p { font-size: .92rem; color: #b5c6d7; line-height: 1.55; min-height: 2.9em; }
.ax-entry-icon { color: #92edcf; border: 1px solid #3a5e72; padding: 6px 9px; border-radius: 7px; font-size: .78rem; }
.ax-directory-courses { margin: 30px 0 0; }
.ax-directory-courses h2 { margin: 7px 0 13px; }
.ax-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 10px; }
.ax-course-grid a { display: grid; gap: 5px; padding: 14px; border: 1px solid #324960; border-radius: 11px; background: #132336; color: #edf4fc; text-decoration: none; }
.ax-course-grid a:hover { border-color: var(--ax-mint); }
.ax-course-grid small, .ax-directory-footer { color: #aac2d6; }
.ax-directory-footer { border-top: 1px solid #2e455d; padding: 18px 0; font-size: .85rem; }
@media (max-width: 760px) {
  .ax-landing .ax-hero .w, .ax-aof-feature, .ax-directory-hero, .ax-entry-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ax-hero-media { min-height: 280px; }
  .ax-directory-hero img { min-height: 0; aspect-ratio: 16 / 9; }
  .ax-entry-card p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-hero-media picture img, .ax-hero-caption, .ax-cta, .ax-directory-page * { animation: none !important; transition: none !important; }
}

.ax-demo-help { color: var(--ax-soft); font-size: .84rem; }
.ax-demo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ax-quiz .ax-quiz-skip { color: #a9bdd0; }
.ax-source-nav { margin: 5px 0 17px; }
.ax-youtube-group { margin: 0 0 14px; scroll-margin-top: 74px; }
.ax-youtube-group h3 { margin: 0 0 12px; }
.ax-youtube-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.ax-youtube-card {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
  min-height: 64px; padding: 10px; border-radius: 10px; border: 1px solid #355069; background: #15293b;
  color: #eaf4fd; text-decoration: none; transition: transform .18s, border-color .18s;
}
.ax-youtube-card:hover { border-color: var(--ax-mint); transform: translateY(-2px); }
.ax-youtube-card small { display: block; color: #b7cadb; font-size: .76rem; margin-top: 3px; line-height: 1.3; }
.ax-youtube-card i { color: var(--ax-mint); font-style: normal; }
.ax-youtube-play { display: grid; width: 30px; height: 27px; place-items: center; color: #ffe0e6; background: #862b4b; border-radius: 7px; font-size: .72rem; }
.ax-book-results { max-height: min(560px, 66vh); overflow: auto; padding-right: 6px; }
.ax-studio .ax-book-result { display: grid; grid-template-columns: 53px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 6px; min-height: 82px; }
.ax-book-meta { min-width: 0; overflow-wrap: anywhere; }
.ax-book-thumb { width: 53px; height: 72px; display: grid; place-items: center; flex: none; border: 1px solid #42627b; background: #132438; border-radius: 5px; overflow: hidden; }
.ax-book-thumb.large { width: 62px; height: 84px; }
.ax-book-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ax-book-thumb img:not([hidden]) + .ax-book-missing { display: none; }
.ax-book-missing { font-size: .66rem; color: #b0c5d9; text-align: center; padding: 5px; }
.ax-book-source { color: #94f0d1; display: inline-flex; margin-top: 3px; font-size: .76rem; }
@media (max-width: 440px) {
  .ax-studio .ax-book-result { grid-template-columns: 45px minmax(0, 1fr); gap: 7px 10px; }
  .ax-studio .ax-book-result .ax-book-thumb { width: 45px; height: 61px; grid-row: span 2; }
  .ax-studio .ax-book-result button { justify-self: start; }
  #demoLiveBar .ax-demo-help { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-youtube-card, .ax-book-result { animation: none !important; transition: none !important; }
}
