/* Editorial homepage only. Keep article/template tokens and legacy styles isolated. */
body.omx-editorial {
    --ed-bg: #fff;
    --ed-text: #202023;
    --ed-muted: #65656e;
    --ed-surface: #f6f5f8;
    --ed-lilac: #f1eafd;
    --ed-line: #e9e9ec;
    --ed-accent: #6735c7;
    background: var(--ed-bg);
    color: var(--ed-text);
    --header-height: 64px;
}
:root[data-theme="dark"] body.omx-editorial {
    --ed-bg: #171719;
    --ed-text: #f5f5f7;
    --ed-muted: #b4b4bd;
    --ed-surface: #242329;
    --ed-lilac: #292235;
    --ed-line: #37373d;
    --ed-accent: #bf9afa;
}
.omx-editorial :where(.ed-main, .ed-footer) a { text-decoration: none; }
.omx-editorial :where(a, button, input):focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 5px; }
.omx-editorial .site-header { height: 64px; color: var(--ed-text); background: var(--ed-bg); border-bottom: 1px solid var(--ed-line); box-shadow: none; backdrop-filter: none; }
.omx-editorial .site-header__inner { height: 64px; min-height: 0; padding-inline: 22px; }
.omx-editorial .site-header__actions { display: flex; }
.omx-editorial .site-logo__image { width: 118px; }
.omx-editorial .site-header .icon-button { color: var(--ed-text); min-width: 44px; min-height: 44px; }
/* The open menu button has a dark background in style.css. Keep its X legible
   when the homepage's header icon color overrides the shared menu style. */
@media (max-width: 1080px) {
    body.omx-editorial.has-open-menu .site-header .site-header__menu-button { color: #fff; }
}
.ed-main { color: var(--ed-text); max-width: 1180px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 56px); }
.ed-main h1, .ed-main h2, .ed-main h3, .ed-main p { margin: 0; }
.ed-main a:hover { text-decoration: underline; text-underline-offset: .22em; }
.ed-main .ed-icon { width: 24px; height: 24px; flex: 0 0 auto; }
.ed-hero { position: relative; max-width: none; margin: 0 auto; padding: 72px 0 42px; background: none; border-bottom: 1px solid var(--ed-line); }
.ed-hero-heading { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 32px; padding: 0; }
.ed-hero h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.28; font-weight: 650; letter-spacing: -.04em; overflow-wrap: anywhere; padding-bottom: 22px; }
.ed-eyebrow { font-size: 11px; letter-spacing: .17em; color: var(--ed-accent); font-weight: 700; margin-bottom: 24px !important; }
.ed-mascot { display: block; width: 250px; height: 250px; object-fit: contain; object-position: bottom; }
.ed-search { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 7px 6px 20px; background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: 18px; }
.ed-search:focus-within { border-color: var(--ed-accent); }
.ed-search > svg { color: var(--ed-muted); width: 20px; }
.ed-search input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--ed-text); font-size: 16px; padding: 8px 0; }
.ed-search input::placeholder { color: var(--ed-muted); opacity: 1; }
.ed-search button { display: grid; place-items: center; border: 0; border-radius: 50%; width: 44px; height: 44px; flex: 0 0 44px; cursor: pointer; background: #6735c7; color: white; }
.ed-categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 22px; gap: 8px; }
.ed-categories > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 72px; padding: 8px; font-size: 12px; border-radius: 10px; }
.ed-categories a:hover { background: rgba(108, 59, 199, .09); }
.ed-categories small { font-size: 10px; }
.ed-unavailable { color: var(--ed-muted); }
.ed-section { margin-top: 68px; }
.ed-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ed-section-heading h2 { font-size: 25px; line-height: 1.5; font-weight: 580; letter-spacing: -.035em; }
.ed-section-heading > a { font-size: 13px; flex-shrink: 0; }
.ed-media { display: block; overflow: hidden; background: var(--ed-surface); border-radius: 8px; aspect-ratio: 16 / 10; }
.ed-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 58px); align-items: center; padding: 46px 0; border-bottom: 1px solid var(--ed-line); }
.ed-feature-media { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; }
.ed-feature-copy { grid-column: 1; grid-row: 1; }
.ed-feature-kicker { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--ed-accent); }
.ed-feature-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.ed-media-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: clamp(24px, 4vw, 46px); letter-spacing: -.065em; font-weight: 600; background: radial-gradient(circle at 78% 24%, rgba(124,72,215,.16), transparent 32%), linear-gradient(140deg, var(--ed-surface), var(--ed-lilac)); }
.ed-media-fallback > span { color: var(--ed-accent); }
.ed-meta { color: var(--ed-muted); font-size: 12px; line-height: 1.6; margin: 15px 0 7px !important; }
.ed-feature h2 { max-width: 940px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.45; letter-spacing: -.035em; font-weight: 580; overflow-wrap: anywhere; }
.ed-excerpt { margin-top: 14px !important; color: var(--ed-muted); font-size: 15px; line-height: 1.85; max-width: 800px; }
.ed-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ed-story h3 { font-size: 18px; line-height: 1.65; font-weight: 570; overflow-wrap: anywhere; }
.ed-story a { display: block; }
.ed-practice { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; }
.ed-practice-card { background: var(--ed-surface); border-radius: 12px; padding: 32px; min-width: 0; border: 1px solid var(--ed-line); }
.ed-learn { background: var(--ed-lilac); border-color: transparent; display: flex; flex-direction: column; justify-content: center; }
.ed-learn h3 { font-size: 27px; }
.ed-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 20px !important; }
.ed-practice h3 { font-size: 21px; line-height: 1.55; font-weight: 560; margin-bottom: 16px; }
.ed-practice p:not(.ed-kicker):not(.sr-only) { font-size: 15px; line-height: 1.9; color: var(--ed-muted); }
.ed-prompt-text { max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.8; margin: 16px 0; padding: 16px; background: var(--ed-bg); border-radius: 4px; }
.ed-practice-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.ed-copy { padding: 10px 20px; min-height: 44px; border: 0; border-radius: 6px; background: #6735c7; color: white; cursor: pointer; }
.ed-text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; color: var(--ed-accent); font-size: 14px; }
.ed-purposes { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; }
.ed-purposes a { padding-block: 12px; font-size: 14px; }
.ed-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ed-tool { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid var(--ed-line); }
.ed-tool > img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.ed-tool strong { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.ed-tool small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ed-muted); margin-top: 4px; font-size: 12px; line-height: 1.65; }
.ed-tool-initial { background: var(--ed-surface); width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; }
.ed-tool > .ed-icon { width: 18px; }
.ed-empty { color: var(--ed-muted); padding: 32px 0; line-height: 1.8; }
.ed-about { text-align: left; padding: 62px 0; margin-top: 48px; border-top: 1px solid var(--ed-line); background: transparent; }
.ed-about h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 550; letter-spacing: -.04em; }
.ed-about p { font-size: 14px; color: var(--ed-muted); line-height: 1.8; margin: 16px 0; }
.ed-about a { display: inline-block; padding: 12px 20px; border: 1px solid var(--ed-line); border-radius: 24px; font-size: 14px; }
.ed-footer { --color-bg: #19181d; --color-text: #f5f5f7; --color-muted: #b9b7c1; background: #19181d; color: #f5f5f7; padding: 38px clamp(22px, 4vw, 56px) 24px; margin-top: 0; }
.ed-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ed-footer-top img { display: block; width: 120px; height: auto; }
.ed-footer .social-links { display: flex; gap: 16px; padding: 0; margin: 0; list-style: none; }
.ed-footer .social-links a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: white; }
.ed-footer .social-links a:hover { color: #d5baff; }
.ed-footer .social-links a[aria-label*="YouTube"] svg { width: 26px; }
.ed-footer .social-links svg { width: 22px; height: 22px; fill: currentColor; }
.ed-footer .social-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ed-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }
.ed-footer-nav a { min-height: 44px; display: flex; align-items: center; font-size: 13px; }
.ed-footer-future { display: flex; gap: 24px; font-size: 12px; color: #b9b7c1; margin-block: 16px 24px; }
.ed-footer-future small { margin-left: 6px; font-size: 10px; }
.ed-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid #39363f; color: #b9b7c1; font-size: 11px; }
.ed-footer-bottom > div { display: flex; flex-wrap: wrap; gap: 18px; }
.ed-feature--text-only { display: block; padding-block: 40px; }
.ed-feature--text-only .ed-feature-copy { max-width: 760px; }
.ed-feature--text-only h2 { font-size: clamp(28px, 3.2vw, 44px); }
.ed-story--text-only { border-top: 2px solid var(--ed-line); padding-top: 16px; }
.ed-story--text-only .ed-meta { margin-top: 0 !important; }
.ed-story--text-only h3 { font-size: 22px; }
.ed-story--text-only > a { min-height: 130px; }
.ed-feature-link span, .ed-text-link { color: var(--ed-accent); }
@media (min-width: 1081px) {
    .omx-editorial { padding-left: 194px; }
    .omx-editorial .site-header { position: fixed; inset: 0 auto 0 0; width: 194px; height: 100dvh; border: 0; border-right: 1px solid var(--ed-line); }
    .omx-editorial .site-header__inner { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: 100%; padding: 32px 20px 22px; gap: 32px; }
    .omx-editorial .primary-nav { position: static; flex: 1; overflow-y: auto; }
    .omx-editorial .primary-nav__list { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 0; }
    .omx-editorial .primary-nav a { display: block; font-size: 14px; padding: 13px 10px; font-weight: 450; border-radius: 6px; color: var(--ed-text); }
    .omx-editorial .primary-nav__item--unavailable { display: list-item; color: var(--ed-muted); font-size: 13px; padding: 13px 10px; }
    .omx-editorial .primary-nav__item--unavailable small { display: block; font-size: 10px; margin-top: 3px; }
    .omx-editorial .site-header__actions { justify-content: flex-start; margin: 0; }
    .omx-editorial.admin-bar .site-header { top: 32px; height: calc(100dvh - 32px); }
}
@media (max-width: 1080px) {
    .omx-editorial .site-header__actions { display: flex; margin-right: 44px; }
    .omx-editorial .primary-nav { top: 76px; }
    .ed-hero { padding-top: 42px; }
    .ed-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ed-main { padding-inline: 22px; }
    .ed-hero { margin: 0; padding: 28px 0 26px; background: radial-gradient(ellipse at 85% 35%, rgba(136,88,226,.12), transparent 45%); }
    .ed-feature { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 32px 0; }
    .ed-feature-media { aspect-ratio: 16 / 9; }
    .ed-feature-copy { padding-top: 18px; }
    .ed-feature-kicker { font-size: 10px; }
    .ed-hero-heading { grid-template-columns: minmax(0, 1fr) 124px; gap: 6px; padding: 0; }
    .ed-eyebrow { font-size: 9px; margin-bottom: 16px !important; }
    .ed-hero h1 { font-size: clamp(25px, 6.6vw, 32px); line-height: 1.38; padding-bottom: 20px; }
    .ed-mascot { width: 124px; height: 158px; }
    .ed-search { min-height: 54px; padding-left: 14px; gap: 8px; }
    .ed-categories { margin-top: 18px; gap: 0; }
    .ed-categories > * { font-size: 11px; gap: 8px; padding-inline: 1px; min-height: 66px; }
    .ed-categories .ed-icon { width: 23px; height: 23px; }
    .ed-section { margin-top: 44px; }
    .ed-section-heading { margin-bottom: 18px; gap: 10px; }
    .ed-section-heading h2 { font-size: 21px; }
    .ed-section-heading > a { font-size: 12px; }
    .ed-feature-media { aspect-ratio: 16 / 9; }
    .ed-feature h2 { font-size: 24px; }
    .ed-excerpt { font-size: 14px; }
    .ed-stories { display: flex; flex-direction: column; gap: 22px; }
    .ed-story:not(.ed-story--text-only):not(:first-child) > a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; }
    .ed-story:not(:first-child) .ed-meta { margin-top: 0 !important; }
    .ed-story h3 { font-size: 17px; }
    .ed-story--text-only > a { min-height: 0; padding-bottom: 14px; }
    .ed-story--text-only h3 { font-size: 22px; }
    .ed-practice { grid-template-columns: 1fr; gap: 16px; }
    .ed-practice-card { padding: 22px; }
    .ed-practice h3 { font-size: 20px; }
    .ed-tools { grid-template-columns: 1fr; gap: 0; }
    .ed-tool { padding-block: 18px; }
    .ed-about { margin-top: 38px; padding: 38px 0; }
    .ed-footer { padding-top: 30px; }
    .ed-footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
    .ed-footer .social-links { margin-left: -12px; gap: 10px; }
    .ed-footer-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .ed-footer-bottom { line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
    body.omx-editorial, body.omx-editorial * { transition: none; }
    .omx-editorial a { transition: none; }
}

/* Section imagery from the approved visual concept. */
.ed-practice-visual { display:block; width:calc(100% + 64px); max-width:none; height:220px; object-fit:cover; margin:-32px -32px 28px; border-radius:12px 12px 0 0; }
.ed-learn { justify-content:flex-start; }
.ed-tools-visual { display:block; width:100%; height:260px; object-fit:cover; object-position:center 58%; border-radius:12px; margin:0 0 28px; }
.ed-about-visual { width:38%; height:auto; max-height:240px; float:right; aspect-ratio:16/10; object-fit:cover; border-radius:10px; margin-left:40px; }
.ed-about { min-height:260px; display:flow-root; }
.ed-about h2 { padding-top:30px; }
@media(max-width:600px) {
    .ed-practice-visual { width:calc(100% + 44px); margin:-22px -22px 24px; height:180px; }
    .ed-tools-visual { height:180px; }
    .ed-about-visual { float:none; width:100%; margin:0 0 24px; max-height:180px; }
    .ed-about h2 { padding-top:0; }
}

/* Desktop hero background: seamless fade */
@media (min-width: 601px) {
  .ed-hero {
    position: relative;
    isolation: isolate;
    background: none;
  }

  .ed-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse 70% 100% at 80% 35%,
      rgba(136, 88, 226, 0.13) 0%,
      rgba(171, 137, 235, 0.07) 40%,
      transparent 75%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 20%,
      black 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 20%,
      black 70%,
      transparent 100%
    );
  }
}
