/*
 * home-editions.css: the home page (pricing.html, served at / and /pricing), the four plan pages and the
 * sectionals guide, each laid out as an opening and a run of chapters.
 * A full-screen opening with a ruled index box, a chapter rail, chapters that open on a pinned plate with one
 * enormous word and a sentence, then feature items on a flat paper panel.
 *
 * A plate is the chapter's own screenshot, toned into the teal and bled to the edges (or, where a chapter has
 * no screenshot, a drawing made from our own screens' shapes). There are no photographs or paintings here.
 *
 * How it moves (all of it optional: with script off, or motion reduced, the page reads the same):
 *   - a chapter's plate is PINNED (position: sticky) while its word and sentence scroll over it, and the
 *     paper panel slides up over the plate like a sheet; when that panel ends, the next plate is already
 *     in place beneath it. CSS only.
 *   - the index box's title and chapter list travel to the corners and become the rail (script).
 *   - a "stage" pins one frame while the feature's points scroll past, changing the screenshot to match
 *     the point being read and moving in on the part that point is about (script; without it every
 *     screenshot is simply shown in turn).
 *   - words, sentences and screenshots arrive with the scroll (script sets --hm-p from 0 to 1).
 *
 * Every class is hm- prefixed (bar .pln-partner and .mp-codebar, which the partner-code scripts write, and
 * the vid- classes the video pop-up script looks for) and every rule sits under html[data-restyle].
 * Colours: the shared --rm-* tokens, plus the page tokens below, each with its dark value beside it. The
 * plates stay teal in both themes; the paper panels turn teal in dark.
 * One typeface, the site's own (Manrope, served from our own files): light for long sentences, heavy for
 * headings and figures. No Tailwind on these pages: the few resets they need are at the top.
 */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/home/manrope.woff2) format("woff2"); }

/* ---- page tokens (light); the dark values follow ---- */
html[data-restyle] {
    --hm-ink: #021d24;                              /* behind the closing band and the plates' shade */
    --hm-ground: #537c86;                           /* a plate's teal: its screenshot is multiplied into it */
    --hm-d-ink: rgba(247, 245, 238, 0.34);          /* a drawn plate: lines, rules, fills */
    --hm-d-rule: rgba(247, 245, 238, 0.13);
    --hm-d-fill: rgba(247, 245, 238, 0.2);
    --hm-d-faint: rgba(247, 245, 238, 0.09);
    --hm-d-heat: rgba(143, 180, 189, 0.4);
    --hm-d-warm: rgba(252, 195, 25, 0.38);
    --hm-on-art: #f7f5ee;                           /* text set over art */
    --hm-on-art-dim: rgba(247, 245, 238, 0.76);
    --hm-on-art-rule: rgba(247, 245, 238, 0.6);
    --hm-on-art-faint: rgba(247, 245, 238, 0.46);
    --hm-box: rgba(2, 29, 36, 0.34);                /* inside the index box */
    --hm-scrim-top: rgba(2, 29, 36, 0.66);          /* under the top bar, so the links read */
    --hm-shade-foot: rgba(2, 29, 36, 0.82);         /* a plate darkens towards its foot, under the type */
    --hm-shade-mid: rgba(2, 29, 36, 0.4);
    --hm-shade-head: rgba(2, 29, 36, 0.2);
    --hm-paper: #f3f0e8;                            /* the panel a chapter's body sits on */
    --hm-paper-rule: #cfcabb;
    --hm-paper-dim: #5a5b54;
    --hm-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --hm-rail: 196px;                               /* the left rail's column */
}
@media screen {
html[data-restyle][data-theme="dark"] {
    --hm-ink: #021d24;
    --hm-ground: #537c86;
    --hm-d-ink: rgba(247, 245, 238, 0.34);
    --hm-d-rule: rgba(247, 245, 238, 0.13);
    --hm-d-fill: rgba(247, 245, 238, 0.2);
    --hm-d-faint: rgba(247, 245, 238, 0.09);
    --hm-d-heat: rgba(143, 180, 189, 0.4);
    --hm-d-warm: rgba(252, 195, 25, 0.38);
    --hm-on-art: #f7f5ee;
    --hm-on-art-dim: rgba(247, 245, 238, 0.76);
    --hm-on-art-rule: rgba(247, 245, 238, 0.6);
    --hm-on-art-faint: rgba(247, 245, 238, 0.46);
    --hm-box: rgba(2, 29, 36, 0.34);
    --hm-scrim-top: rgba(2, 29, 36, 0.66);
    --hm-shade-foot: rgba(2, 29, 36, 0.82);
    --hm-shade-mid: rgba(2, 29, 36, 0.4);
    --hm-shade-head: rgba(2, 29, 36, 0.2);
    --hm-paper: #04323d;
    --hm-paper-rule: rgba(255, 255, 255, 0.24);
    --hm-paper-dim: rgba(255, 255, 255, 0.74);
}
}

/* ---- the few resets ---- */
html[data-restyle] { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html[data-restyle] { scroll-behavior: auto; } }
html[data-restyle] body { margin: 0; }
html[data-restyle] .hm-page { background: var(--hm-ink); font-family: var(--hm-sans); line-height: 1.5; -webkit-text-size-adjust: 100%; }
html[data-restyle] :where(.hm-page) :where(*, *::before, *::after) { box-sizing: border-box; }
html[data-restyle] .hm-page *::before, html[data-restyle] .hm-page *::after { box-sizing: border-box; }
html[data-restyle] :where(.hm-page) :where(h1, h2, h3, h4, p, ol, ul, figure, table) { margin: 0; }
html[data-restyle] :where(.hm-page) :where(ol, ul) { padding: 0; list-style: none; }
html[data-restyle] :where(.hm-page) :where(img) { max-width: 100%; height: auto; }
html[data-restyle] :where(.hm-page) :where(a) { color: inherit; }
html[data-restyle] .hm-page :is(a, summary, button):focus-visible { outline: 2px solid var(--rm-gold); outline-offset: 2px; }
html[data-restyle] .hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
 * The top bar: the shared header's classes, quiet over the art, a teal band over paper
 * ===================================================================== */
html[data-restyle] .hm-hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color 0.25s; }
html[data-restyle] .hm-hdr::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(var(--hm-scrim-top), transparent); pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.25s; }
html[data-restyle].hm-js .hm-hdr:not([data-hm-solid]) { background: transparent; }
html[data-restyle].hm-js .hm-hdr:not([data-hm-solid])::before { opacity: 1; }
html[data-restyle] .hm-hdr .rmx-hdr-inner { max-width: none; padding: 9px 18px; flex-wrap: nowrap; }
html[data-restyle] .hm-hdr .rmx-brand-logo { height: 26px; }
html[data-restyle] .hm-hdr .rmx-brand-vr { height: 26px; }
html[data-restyle] .hm-hdr .rmx-brand-name { font-size: 16px; line-height: 18px; }
html[data-restyle] .hm-hdr .rmx-brand-tag { font-size: 10px; line-height: 12px; }
html[data-restyle] .hm-hdr .rmx-hdr-tools { flex-wrap: nowrap; gap: 6px; }
html[data-restyle] .hm-hdr .rmx-htool { text-decoration: none; white-space: nowrap; }
html[data-restyle] .hm-hdr .rmx-htool.rmx-hdr-link { border-color: transparent; font-weight: 600; padding: 7px 9px; }
html[data-restyle] .hm-hdr .rmx-htool.hm-htool-in { font-weight: 700; }
html[data-restyle] .hm-hdr .rmx-htool.hm-htool-cta { background: var(--rm-gold); border-color: var(--rm-gold); color: var(--rm-on-gold); font-weight: 800; border-radius: 999px; padding: 7px 16px; }
html[data-restyle] .hm-hdr .rmx-htool.hm-htool-cta:hover { background: var(--rm-gold); filter: brightness(1.06); }
html[data-restyle] .hm-hdr .rmx-htool.hm-only-sm { display: none; }
@media (max-width: 768px) {
    html[data-restyle] .hm-hdr .rmx-hdr-inner { padding: 8px 12px; gap: 8px; }
    html[data-restyle] .hm-hdr .rmx-htool.hm-hide-sm { display: none; }
    html[data-restyle] .hm-hdr .rmx-htool.hm-only-sm { display: inline-flex; }
    html[data-restyle] .hm-hdr .rmx-htool.hm-htool-cta { padding: 7px 12px; }
}

/* the chapter menu in the bar, wherever the rail is not shown: a <details>, so it opens without script */
html[data-restyle] .hm-menu { position: relative; }
html[data-restyle] .hm-menu > summary { list-style: none; cursor: pointer; }
html[data-restyle] .hm-menu > summary::-webkit-details-marker { display: none; }
html[data-restyle] .hm-menu-ico { display: block; width: 16px; height: 16px; }
html[data-restyle] .hm-menu-sheet { position: fixed; top: 46px; left: 0; right: 0; max-height: calc(100vh - 46px); overflow-y: auto; background: var(--rm-band); color: var(--rm-on-band); border-top: 1px solid var(--rm-on-band-rule); padding: 6px 16px 18px; box-shadow: var(--rm-pop-shadow); }
html[data-restyle] .hm-menu-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; padding: 9px 0; border-bottom: 1px solid var(--rm-on-band-rule); }
html[data-restyle] .hm-menu-list .hm-num { color: var(--rm-on-band-dim); }
html[data-restyle] .hm-menu-more { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; font-weight: 600; font-size: 14px; }
html[data-restyle] .hm-menu-more a { text-decoration: none; }
@media (min-width: 1100px) { html[data-restyle] .hm-menu { display: none; } }

/* =====================================================================
 * Plates: the opening and every chapter's first screen
 * ===================================================================== */
/* a chapter's plate: pinned for the whole chapter, starting one screen early so it is already in place
   when the panel above lifts off it. The panel (z-index 2) hides it for the rest of the chapter. */
html[data-restyle] .hm-art { position: absolute; left: 0; right: 0; top: -100vh; top: -100lvh; bottom: 0; z-index: 0; pointer-events: none; }
html[data-restyle] .hm-plate-art { position: sticky; top: 0; display: block; height: 100vh; height: 100lvh; overflow: hidden; background: var(--hm-ground); }
html[data-restyle] .hm-plate-art img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 0; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.25) brightness(1.08); opacity: 0.92; }
html[data-restyle] .hm-plate-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--hm-shade-foot) 0%, var(--hm-shade-mid) 46%, var(--hm-shade-head) 100%); }

/* a chapter with no screenshot opens on a drawing made from our own screens' shapes */
html[data-restyle] .hm-plate-drawn { background: var(--rm-primary); }
html[data-restyle] .hm-plate-drawn svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
html[data-restyle] .hm-plate-drawn .d-rule { stroke: var(--hm-d-rule); stroke-width: 2; fill: none; }
html[data-restyle] .hm-plate-drawn .d-ink { stroke: var(--hm-d-ink); fill: none; stroke-linejoin: round; stroke-linecap: round; }
html[data-restyle] .hm-plate-drawn .d-gold { stroke: var(--rm-gold); fill: none; stroke-linejoin: round; stroke-linecap: round; }
html[data-restyle] .hm-plate-drawn :is(.d-dot, .d-goldfill) { fill: var(--rm-gold); }
html[data-restyle] .hm-plate-drawn .d-fill { fill: var(--hm-d-fill); }
html[data-restyle] .hm-plate-drawn .d-faint { fill: var(--hm-d-faint); }
html[data-restyle] .hm-plate-drawn .d-line { fill: none; stroke: var(--hm-d-ink); stroke-width: 3; }
html[data-restyle] .hm-plate-drawn .d-goldline { fill: none; stroke: var(--rm-gold); stroke-width: 4; }
html[data-restyle] .hm-plate-drawn .d-heat { fill: var(--hm-d-heat); }
html[data-restyle] .hm-plate-drawn .d-warm { fill: var(--hm-d-warm); }
html[data-restyle] .hm-plate-drawn :is(.d-text, .d-textgold) { font-family: var(--hm-sans); font-weight: 800; letter-spacing: -0.04em; fill: var(--hm-d-fill); }
html[data-restyle] .hm-plate-drawn .d-textgold { fill: var(--rm-gold); }

/* ---- the opening: the index box is the hero ---- */
html[data-restyle] .hm-hero { position: relative; z-index: 3; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 76px 16px 56px; color: var(--hm-on-art); }
html[data-restyle] .hm-hero .hm-plate-art { position: absolute; inset: 0; height: auto; }
html[data-restyle] .hm-hero .hm-plate-art::after { background: var(--hm-shade-mid); }
html[data-restyle] .hm-index { position: relative; z-index: 2; width: min(100%, 348px); padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 20px; }
html[data-restyle] .hm-index::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--hm-on-art-rule); background: var(--hm-box); }
html[data-restyle] .hm-index-title { font-family: var(--hm-sans); font-weight: 800; font-size: 31px; line-height: 0.94; letter-spacing: -0.035em; color: var(--hm-on-art); }
html[data-restyle] :is(.hm-index-title, .hm-rail-title) > span { display: block; }
html[data-restyle] .hm-index-line { font-family: var(--hm-sans); font-size: 16.5px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; color: var(--hm-on-art); }
html[data-restyle] .hm-index-list { display: flex; flex-direction: column; }
html[data-restyle] .hm-index-list a { display: flex; align-items: baseline; gap: 8px; color: var(--hm-on-art); text-decoration: none; font-weight: 800; font-size: 16px; line-height: 1.14; letter-spacing: -0.03em; padding: 1.5px 0; }
html[data-restyle] :is(.hm-index-list, .hm-rail-list) a::after { content: ""; flex: 1; order: 1; border-bottom: 1px dotted transparent; transform: translateY(-3px); }
html[data-restyle] .hm-index-list a:is(:hover, :focus-visible)::after { border-bottom-color: var(--hm-on-art-rule); }
html[data-restyle] .hm-num { order: 2; font-family: var(--hm-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; color: var(--hm-on-art-dim); min-width: 2.2em; text-align: right; }
html[data-restyle] .hm-index-foot { border-top: 1px solid var(--hm-on-art-rule); padding-top: 13px; display: flex; flex-direction: column; gap: 10px; font-family: var(--hm-sans); font-size: 14px; line-height: 1.3; color: var(--hm-on-art); font-weight: 500; }
html[data-restyle] .hm-index-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html[data-restyle] .hm-index-member { font-size: 13.5px; color: var(--hm-on-art-dim); }
html[data-restyle] .hm-index-member a { color: var(--hm-on-art); font-weight: 600; text-underline-offset: 2px; }
html[data-restyle] .hm-hero-foot { position: absolute; z-index: 4; left: 18px; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 24px; }
html[data-restyle] .hm-hero-note { font-size: 12px; color: var(--hm-on-art-dim); font-family: var(--hm-sans); font-weight: 600; line-height: 15px; }
@media (max-width: 700px) {
    html[data-restyle] .hm-hero { padding-bottom: 84px; }
    html[data-restyle] .hm-hero-foot { left: 16px; right: 16px; }
}

/* buttons: the one gold pill, and an outlined partner for it */
html[data-restyle] .hm-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--rm-gold); color: var(--rm-on-gold); border: 1px solid var(--rm-gold); font-family: var(--hm-sans); font-weight: 800; font-size: 14px; line-height: 18px; padding: 9px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap; text-align: center; }
html[data-restyle] .hm-page a.hm-btn { color: var(--rm-on-gold); }
html[data-restyle] .hm-btn:hover { filter: brightness(1.06); }
html[data-restyle] .hm-btn-sm { font-size: 13px; line-height: 16px; padding: 7px 15px; }
html[data-restyle] .hm-btn-line { background: transparent; border-color: currentColor; color: inherit; }
html[data-restyle] .hm-page a.hm-btn-line { color: inherit; }
html[data-restyle] .hm-btn-line:hover { filter: none; text-decoration: underline; }
html[data-restyle] .hm-btn-wide { display: flex; width: 100%; white-space: normal; }

/* =====================================================================
 * The rail: page title top left, chapters bottom left, from the first chapter on
 * ===================================================================== */
html[data-restyle] .hm-rail { position: fixed; z-index: 40; left: 18px; top: 62px; bottom: 14px; width: calc(var(--hm-rail) - 30px); display: none; flex-direction: column; justify-content: space-between; pointer-events: none; }
html[data-restyle].hm-js .hm-rail { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
html[data-restyle].hm-js .hm-rail[data-hm-show] { opacity: 1; visibility: visible; }
html[data-restyle].hm-js .hm-rail[data-hm-morph] { transition: none; }
html[data-restyle] .hm-rail > * { pointer-events: auto; }
html[data-restyle] .hm-rail-title { display: inline-block; font-weight: 800; font-size: 19px; line-height: 0.95; letter-spacing: -0.035em; color: var(--hm-on-art); text-decoration: none; transition: color 0.2s; }
html[data-restyle] .hm-page .hm-rail-title { color: var(--hm-on-art); }
html[data-restyle] .hm-rail-list a { display: flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 800; font-size: 14px; line-height: 1.12; letter-spacing: -0.03em; padding: 1.5px 0; transition: color 0.2s; }
html[data-restyle] .hm-page .hm-rail-list a { color: var(--hm-on-art-dim); }
html[data-restyle] .hm-page .hm-rail-list a:is([aria-current], :hover) { color: var(--hm-on-art); }
html[data-restyle] .hm-rail-list a[aria-current]::after { border-bottom-color: currentColor; }
html[data-restyle] .hm-rail-list .hm-num { color: inherit; font-size: 10px; min-width: 2em; }
html[data-restyle] .hm-rail-go { margin-top: 12px; }
html[data-restyle] .hm-rail-legal { margin-top: 12px; display: flex; flex-direction: column; gap: 1px; font-family: var(--hm-sans); font-size: 10.5px; line-height: 13px; color: var(--hm-on-art-dim); transition: color 0.2s; font-weight: 600; letter-spacing: 0.02em; }
html[data-restyle] .hm-rail-legal a { text-decoration: none; }
html[data-restyle] .hm-rail-legal a:hover { text-decoration: underline; }
/* over a paper panel the rail takes the page's own text colour */
html[data-restyle] .hm-page .hm-rail-top[data-hm-on="paper"] .hm-rail-title { color: var(--rm-text); }
html[data-restyle] .hm-page .hm-rail-foot[data-hm-on="paper"] .hm-rail-list a { color: var(--rm-text-faint); }
html[data-restyle] .hm-page .hm-rail-foot[data-hm-on="paper"] .hm-rail-list a:is([aria-current], :hover) { color: var(--rm-text); }
html[data-restyle] .hm-rail-foot[data-hm-on="paper"] .hm-rail-legal { color: var(--hm-paper-dim); }
@media (min-width: 1100px) { html[data-restyle] .hm-rail { display: flex; } }

/* =====================================================================
 * A chapter: plate (one enormous word, one sentence), then the paper panel
 * ===================================================================== */
html[data-restyle] .hm-chapter { position: relative; }
html[data-restyle] .hm-plate-copy { position: relative; z-index: 1; min-height: 100vh; min-height: 100lvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 46vh 20px clamp(120px, 16vh, 190px); color: var(--hm-on-art); }
html[data-restyle] .hm-plate-copy > * { position: relative; }
html[data-restyle] .hm-word { font-family: var(--hm-sans); font-weight: 800; font-size: clamp(60px, 17.2vw, 228px); line-height: 0.86; letter-spacing: -0.045em; color: var(--hm-on-art); margin: 0 0 0.3em -0.04em; }
html[data-restyle] .hm-word-long { font-size: min(228px, calc((100vw - 40px) / 5.3)); }
html[data-restyle] .hm-word-num { display: block; font-family: var(--hm-sans); font-weight: 600; font-size: clamp(13px, 1.15vw, 17px); line-height: 1; letter-spacing: 0.06em; color: var(--hm-on-art-dim); margin: 0 0 1.2em 0.3em; }
html[data-restyle] .hm-statement { font-family: var(--hm-sans); font-weight: 300; font-size: clamp(24px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.035em; color: var(--hm-on-art); max-width: 21em; text-wrap: balance; }
html[data-restyle] .hm-statement-line { margin-bottom: 0.7em; }
html[data-restyle] .hm-plate-line { font-family: var(--hm-sans); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; color: var(--hm-on-art); }

/* the paper panel: a straight edge under a gold rule */
html[data-restyle] .hm-panel { position: relative; z-index: 2; min-height: 100vh; min-height: 100lvh; background: var(--hm-paper); color: var(--rm-text); padding: clamp(40px, 6vw, 96px) 20px clamp(64px, 9vw, 140px); box-shadow: inset 0 5px 0 var(--rm-gold); }
html[data-restyle] .hm-col { max-width: 1480px; margin: 0 auto; }
@media (min-width: 1100px) {
    html[data-restyle] .hm-plate-copy { padding-left: calc(var(--hm-rail) + 56px); padding-right: 40px; }
    html[data-restyle] .hm-word-long { font-size: min(228px, calc((100vw - 300px) / 5.3)); }
    html[data-restyle] .hm-panel { padding-left: calc(var(--hm-rail) + 56px); padding-right: 24px; }
    html[data-restyle] .hm-col { margin: 0; }
}

html[data-restyle] .hm-sub { font-family: var(--hm-sans); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -0.045em; color: var(--rm-text); margin: clamp(64px, 9vw, 132px) 0 clamp(28px, 3.2vw, 48px); max-width: 20em; text-wrap: balance; scroll-margin-top: 80px; }
html[data-restyle] .hm-col > .hm-sub:first-child { margin-top: 0; }
html[data-restyle] .hm-lede { font-family: var(--hm-sans); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.3; letter-spacing: -0.02em; max-width: 30em; margin: calc(-1 * clamp(10px, 1.4vw, 22px)) 0 clamp(28px, 3.2vw, 48px); font-weight: 400; }

/* a feature: small bold label (with its plan tag), a sentence or two, the detail set small, tiny outlined links */
html[data-restyle] .hm-item { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; scroll-margin-top: 84px; }
html[data-restyle] .hm-item-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--hm-sans); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -0.02em; color: var(--rm-text); }
html[data-restyle] .hm-tag { display: inline-block; font-family: var(--hm-sans); font-weight: 800; font-size: 10.5px; line-height: 13px; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
html[data-restyle] .hm-tag-gold { background: var(--rm-gold); border-color: var(--rm-gold); color: var(--rm-on-gold); }
html[data-restyle] .hm-item-text { font-family: var(--hm-sans); font-weight: 400; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.3; letter-spacing: -0.02em; color: var(--rm-text); max-width: 26em; }
html[data-restyle] .hm-item-text a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
html[data-restyle] .hm-item-more { font-family: var(--hm-sans); font-size: 14.5px; line-height: 1.48; color: var(--hm-paper-dim); max-width: 40em; margin-top: 4px; }
html[data-restyle] ul.hm-item-more { display: flex; flex-direction: column; border-top: 1px solid var(--hm-paper-rule); width: 100%; }
html[data-restyle] ul.hm-item-more > li { padding: 7px 0; border-bottom: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-item-more strong { color: var(--rm-text); font-weight: 800; }
html[data-restyle] .hm-item-note { font-family: var(--hm-sans); font-weight: 700; font-size: 13.5px; color: var(--rm-text); }
html[data-restyle] .hm-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
html[data-restyle] .hm-link { display: inline-flex; align-items: center; gap: 5px; font-family: var(--hm-sans); font-weight: 700; font-size: 12.5px; line-height: 15px; text-decoration: none; border: 1px solid currentColor; border-radius: 3px; padding: 4px 8px; background: transparent; }
html[data-restyle] .hm-page a.hm-link { color: var(--rm-text); }
html[data-restyle] .hm-link::after { content: "\2197"; font-size: 11px; line-height: 1; }
html[data-restyle] .hm-page a.hm-link:hover { background: var(--rm-text); color: var(--hm-paper); border-color: var(--rm-text); }
html[data-restyle] .hm-page a.hm-link-go { background: var(--rm-gold); border-color: var(--rm-gold); color: var(--rm-on-gold); }
html[data-restyle] .hm-page a.hm-link-go:hover { background: var(--rm-gold); border-color: var(--rm-gold); color: var(--rm-on-gold); filter: brightness(1.06); }

/* rows: an item beside its screenshot, or items two, three and four across */
html[data-restyle] .hm-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3.4vw, 56px); align-items: start; margin-top: clamp(52px, 7vw, 108px); }
html[data-restyle] .hm-col > :is(.hm-sub, .hm-lede) + .hm-row { margin-top: 0; }
html[data-restyle] .hm-stack { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 36px); min-width: 0; }
@media (min-width: 640px) {
    html[data-restyle] .hm-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    html[data-restyle] .hm-row-split { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
    html[data-restyle] .hm-row-split.hm-row-flip { grid-template-columns: minmax(0, 9fr) minmax(0, 4fr); }
    html[data-restyle] .hm-row-split.hm-row-flip > :first-child { order: 2; }
    html[data-restyle] .hm-row-split > .hm-shot { position: sticky; top: 76px; }
    html[data-restyle] .hm-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-restyle] .hm-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
    html[data-restyle] .hm-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* screenshots: as large as their column allows, square-cornered, with a small caption */
html[data-restyle] .hm-shot { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html[data-restyle] .hm-shot-frame {  }
html[data-restyle] .hm-shot-frame img { display: block; width: 100%; border: 1px solid var(--hm-paper-rule); background: var(--rm-surface); box-shadow: var(--rm-pop-shadow); }
html[data-restyle] .hm-shot-tall .hm-shot-frame img { max-height: 620px; width: auto; margin: 0 auto; }
html[data-restyle] .hm-shot figcaption { font-family: var(--hm-sans); font-size: 12px; line-height: 15px; font-weight: 600; color: var(--hm-paper-dim); }

/* the AI Race Cards sample: a small drawn example, not a screenshot */
html[data-restyle] .hm-aic { background: var(--rm-page); border: 1px solid var(--hm-paper-rule); font-family: var(--hm-sans); color: var(--rm-text); }
html[data-restyle] .hm-aic-title { background: var(--rm-band); color: var(--rm-on-band); padding: 10px 16px; font-weight: 800; font-size: 15px; text-align: center; }
html[data-restyle] .hm-aic-body { padding: 12px 14px; }
html[data-restyle] .hm-aic-course { background: var(--rm-zebra); padding: 8px 12px; border-left: 5px solid var(--rm-gold); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
html[data-restyle] .hm-aic-race { background: var(--rm-zebra); padding: 6px 10px; font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
html[data-restyle] .hm-aic-rname { flex: 1; }
html[data-restyle] .hm-aic-going { font-size: 11px; padding: 3px 8px; background: var(--rm-sel-bg); color: var(--rm-sel-text); border-radius: 4px; font-weight: 600; }
html[data-restyle] .hm-aic-row { background: var(--rm-surface); border: 1px solid var(--rm-line); padding: 8px 10px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
html[data-restyle] .hm-aic-silk { width: 30px; height: 30px; background: var(--rm-zebra); border-radius: 4px; flex: none; }
html[data-restyle] .hm-aic-no { font-weight: 700; font-size: 13px; }
html[data-restyle] .hm-aic-horse { font-weight: 700; font-size: 13px; flex: 1; min-width: 0; }
html[data-restyle] .hm-aic-score { position: relative; height: 22px; background: var(--rm-zebra); border-radius: 20px; overflow: hidden; width: 90px; flex: none; }
html[data-restyle] .hm-aic-fill { display: block; height: 100%; background: var(--rm-gold); border-radius: 20px; }
html[data-restyle] .hm-aic-fill-88 { width: 88%; }
html[data-restyle] .hm-aic-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: var(--rm-on-gold); }
html[data-restyle] .hm-aic-note { background: var(--rm-note-bg); padding: 5px 10px; margin-bottom: 6px; font-size: 12px; line-height: 1.5; color: var(--rm-text-dim); }

html[data-restyle] .hm-back { display: inline-flex; align-items: center; gap: 6px; margin-top: clamp(60px, 8vw, 120px); font-family: var(--hm-sans); font-weight: 700; font-size: 12.5px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
html[data-restyle] .hm-back::before { content: "\2191"; }

/* =====================================================================
 * Chapter IX: the RM7 competition
 * ===================================================================== */
html[data-restyle] .hm-rm7 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { html[data-restyle] .hm-rm7 { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
html[data-restyle] .hm-steps { display: flex; flex-direction: column; border-top: 1px solid var(--hm-paper-rule); width: 100%; max-width: 40em; margin-top: 8px; }
html[data-restyle] .hm-steps > li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-step-n { font-family: var(--hm-sans); font-size: 30px; line-height: 1; letter-spacing: -0.05em; grid-row: span 2; font-weight: 800; }
html[data-restyle] .hm-step-t { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
html[data-restyle] .hm-step-d { font-size: 14.5px; color: var(--hm-paper-dim); }
html[data-restyle] .hm-prizes { border: 1px solid var(--rm-text); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
html[data-restyle] .hm-prizes-h { font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
html[data-restyle] .hm-prizes-list > li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hm-paper-rule); font-weight: 700; font-size: 15px; }
html[data-restyle] .hm-prize { font-family: var(--hm-sans); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; min-width: 1em; }
html[data-restyle] .hm-prizes-foot { border-top: 1px solid var(--hm-paper-rule); padding-top: 10px; font-size: 13.5px; color: var(--hm-paper-dim); }
html[data-restyle] .hm-rm7-small { font-size: 13.5px; line-height: 1.5; color: var(--hm-paper-dim); margin-top: 14px; }

/* =====================================================================
 * Chapter X: plans, the comparison table, the sectionals note, questions
 * ===================================================================== */
html[data-restyle] .hm-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 0; }
html[data-restyle] .hm-plan { position: relative; display: flex; flex-direction: column; gap: 16px; border-top: 3px solid var(--rm-text); padding: 16px 0 0; min-width: 0; }
html[data-restyle] .hm-plan-top { border-top-color: var(--rm-gold); }
html[data-restyle] .hm-plan-flag { position: absolute; top: -3px; right: 0; background: var(--rm-gold); color: var(--rm-on-gold); font-weight: 800; font-size: 10.5px; letter-spacing: 0.08em; padding: 3px 8px; }
html[data-restyle] .hm-plan-head { display: flex; flex-direction: column; gap: 2px; }
html[data-restyle] .hm-plan-head h3 { font-family: var(--hm-sans); font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -0.02em; }
html[data-restyle] .hm-plan-price { font-family: var(--hm-sans); font-weight: 800; font-size: clamp(46px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: lining-nums; margin-top: 6px; }
html[data-restyle] .hm-plan-per { font-size: 13.5px; color: var(--hm-paper-dim); }
html[data-restyle] .hm-plan-buy { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
html[data-restyle] .hm-plan-buy a:not(.hm-btn) { font-size: 13.5px; font-weight: 600; text-underline-offset: 3px; }
html[data-restyle] .hm-plan-list { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.4; border-top: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-plan-list > li { display: grid; grid-template-columns: 1.3em minmax(0, 1fr); padding: 6px 0; border-bottom: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-plan-list > li.hm-in { padding-left: 1.3em; color: var(--hm-paper-dim); border-bottom-style: dotted; }
html[data-restyle] .hm-plan-list > li.hm-off { color: var(--rm-text-faint); }
html[data-restyle] .hm-plan-list > li.hm-add { color: var(--hm-paper-dim); }
html[data-restyle] .hm-yes { color: var(--rm-pos); font-weight: 800; }
html[data-restyle] .hm-no { color: var(--rm-text-faint); }
html[data-restyle] .hm-part { color: var(--rm-bronze); font-weight: 700; }
@media (min-width: 560px) {
    html[data-restyle] .hm-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 0; }
    html[data-restyle] .hm-plan { padding-right: 22px; }
}
@media (min-width: 900px) {
    html[data-restyle] .hm-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
    html[data-restyle] .hm-plans { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    html[data-restyle] .hm-plans-col { max-width: 1440px; }
}

html[data-restyle] .hm-cmp-wrap { overflow-x: auto; border-top: 3px solid var(--rm-text); margin-top: clamp(48px, 6vw, 88px); -webkit-overflow-scrolling: touch; }
html[data-restyle] .hm-cmp { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 14px; line-height: 1.35; color: var(--rm-text); }
html[data-restyle] .hm-cmp :is(th, td) { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-cmp thead th { font-weight: 800; font-size: 13px; letter-spacing: 0.02em; border-bottom: 1px solid var(--rm-text); background: var(--hm-paper); }
html[data-restyle] .hm-cmp thead th.hm-th-gold { background: var(--rm-gold); color: var(--rm-on-gold); }
html[data-restyle] .hm-cmp :is(th, td):first-child { text-align: left; font-weight: 700; padding-left: 0; max-width: 24em; }
html[data-restyle] .hm-cmp tbody tr:hover td { background: var(--rm-hover); }
html[data-restyle] .hm-cmp .hm-small { font-size: 12px; color: var(--hm-paper-dim); }
html[data-restyle] .hm-cmp .hm-tag { text-transform: none; letter-spacing: 0; font-size: 11.5px; white-space: normal; }

html[data-restyle] .hm-addon { border: 1px solid var(--rm-text); padding: clamp(18px, 2.4vw, 30px); margin-top: clamp(36px, 4vw, 56px); max-width: 60em; scroll-margin-top: 80px; }
html[data-restyle] .hm-addon h4 { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 8px; }
html[data-restyle] .hm-addon p { font-size: 14.5px; line-height: 1.55; }
html[data-restyle] .hm-addon p + p { margin-top: 10px; }
html[data-restyle] .hm-addon a { font-weight: 700; text-underline-offset: 3px; }

html[data-restyle] .hm-faq { max-width: 50em; border-top: 1px solid var(--rm-text); }
html[data-restyle] .hm-faq-item { border-bottom: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; font-family: var(--hm-sans); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
html[data-restyle] .hm-faq-item > summary::-webkit-details-marker { display: none; }
html[data-restyle] .hm-faq-item > summary::after { content: "+"; font-family: var(--hm-sans); font-weight: 400; font-size: 22px; line-height: 1; flex: none; }
html[data-restyle] .hm-faq-item[open] > summary::after { content: "\2212"; }
html[data-restyle] .hm-faq-a { font-size: 15px; line-height: 1.55; color: var(--hm-paper-dim); padding: 0 0 18px; max-width: 44em; }

/* the closing call to action and the footer */
html[data-restyle] .hm-close { position: relative; z-index: 1; background: var(--hm-ink); color: var(--hm-on-art); padding: clamp(110px, 14vw, 210px) 20px clamp(64px, 8vw, 120px); text-align: center; }

html[data-restyle] .hm-close-h { font-family: var(--hm-sans); font-weight: 800; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -0.045em; }
html[data-restyle] .hm-close-p { font-family: var(--hm-sans); font-size: clamp(18px, 1.75vw, 23px); line-height: 1.35; letter-spacing: -0.015em; color: var(--hm-on-art-dim); max-width: 30em; margin: 18px auto 30px; font-weight: 400; }
html[data-restyle] .hm-close-go { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
html[data-restyle] .hm-close .hm-btn { font-size: 16px; padding: 12px 28px; }

html[data-restyle] .hm-foot { position: relative; z-index: 1; background: var(--rm-band); color: var(--rm-on-band); padding: 44px 20px 40px; box-shadow: inset 0 1px 0 var(--rm-on-band-rule); }
html[data-restyle] .hm-foot-in { max-width: 1180px; margin: 0 auto; }
html[data-restyle] .hm-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
html[data-restyle] .hm-foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; text-decoration: none; }
html[data-restyle] .hm-foot-logo { display: block; height: 28px; width: auto; background: var(--rm-white); border-radius: 4px; padding: 3px 6px; }
html[data-restyle] .hm-foot-dim { color: var(--rm-on-band-dim); font-size: 14px; }
html[data-restyle] .hm-foot-social { display: flex; gap: 12px; }
html[data-restyle] .hm-social { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rm-on-band-line); }
html[data-restyle] .hm-social:hover { background: var(--rm-on-band-hover); }
html[data-restyle] .hm-social svg { width: 20px; height: 20px; }
html[data-restyle] .hm-foot-links { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rm-on-band-rule); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: 14px; color: var(--rm-on-band-dim); }
html[data-restyle] .hm-foot-links a { text-decoration: none; padding: 0 12px; border-right: 1px solid var(--rm-on-band-rule); }
html[data-restyle] .hm-foot-links a:last-child { border-right: 0; }
html[data-restyle] .hm-foot-links a:hover { color: var(--rm-on-band); }
html[data-restyle] .hm-foot-line { margin-top: 18px; text-align: center; font-size: 12px; color: var(--rm-on-band-dim); }
@media (min-width: 1100px) { html[data-restyle] .hm-foot { padding-left: calc(var(--hm-rail) + 20px); } }

/* ---- the partner-code bar the script adds (the script's own class names) ---- */
html[data-restyle] .pln-partner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--rm-band); color: var(--rm-on-band); padding: 10px 16px; text-align: center; font-size: 14px; box-shadow: var(--rm-pop-shadow); }
html[data-restyle] .pln-partner-code { color: var(--rm-gold); }

/* =====================================================================
 * The plan pages and the sectionals guide: the same book, one subject a page
 * ===================================================================== */
/* the opening: a price line above a larger title, and the page's own buttons at the foot of the index box */
html[data-restyle] .hm-index-kicker { font-family: var(--hm-sans); font-weight: 800; font-size: 11.5px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-on-art-dim); margin-bottom: -10px; }
html[data-restyle] .hm-index-title-big { font-size: clamp(42px, 13vw, 56px); }

/* running text on paper, where a page says more than a feature's sentence */
html[data-restyle] .hm-para { font-family: var(--hm-sans); font-size: 15.5px; line-height: 1.6; color: var(--rm-text); max-width: 44em; margin-top: clamp(22px, 2.6vw, 36px); }
html[data-restyle] .hm-para strong { font-weight: 800; }
html[data-restyle] .hm-para a { font-weight: 700; text-underline-offset: 3px; }
html[data-restyle] .hm-col > .hm-sub + .hm-para { margin-top: 0; }

/* a plan's two prices side by side; a table that follows its heading directly; points set two across */
html[data-restyle] .hm-plans-2 { max-width: 46em; }
@media (min-width: 900px) { html[data-restyle] .hm-plans.hm-plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-restyle] .hm-cmp-first { margin-top: 0; }
html[data-restyle] ul.hm-points-2 { max-width: none; }
@media (min-width: 900px) { html[data-restyle] ul.hm-points-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(26px, 3.4vw, 56px); } }
html[data-restyle] .hm-item-wide { margin-top: clamp(52px, 7vw, 108px); }
html[data-restyle] .hm-item-wide > .hm-shot { width: 100%; margin-top: 8px; }

/* the video wall: the pop-up script opens a.vid-card, so those names stay */
html[data-restyle] .hm-vids { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 2.6vw, 36px) clamp(18px, 2.2vw, 30px); }
@media (min-width: 640px) { html[data-restyle] .hm-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { html[data-restyle] .hm-vids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html[data-restyle] .hm-vids .vid-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; }
html[data-restyle] .hm-vids .vid-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hm-ink); border: 1px solid var(--hm-paper-rule); }
html[data-restyle] .hm-vids .vid-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
html[data-restyle] .hm-vids .vid-card:is(:hover, :focus-visible) .vid-thumb img { transform: scale(1.04); }
html[data-restyle] .hm-vids .vid-play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--rm-gold); display: flex; align-items: center; justify-content: center; box-shadow: var(--rm-pop-shadow); }
html[data-restyle] .hm-vids .vid-play::after { content: ""; border-left: 13px solid var(--rm-on-gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
html[data-restyle] .hm-vids .vid-body h3 { font-family: var(--hm-sans); font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; color: var(--rm-text); }
html[data-restyle] .hm-vids .vid-body p { font-size: 13.5px; line-height: 1.4; color: var(--hm-paper-dim); margin-top: 3px; }
html[data-restyle] .hm-vid-dim { font-weight: 600; color: var(--rm-text-faint); }

/* the partner-code bar the plan pages' script adds (it sets its own position inline) */
html[data-restyle] .mp-codebar { background: var(--rm-band); color: var(--rm-on-band); box-shadow: var(--rm-pop-shadow); }
html[data-restyle] .mp-codebar strong { color: var(--rm-gold); }

/* =====================================================================
 * A stage: one pinned frame, and the feature's points scrolling past it. The screenshot changes to match
 * the point being read, and moves in on the part that point is about (a point names it: data-hm-zoom="x y scale").
 * Without script every screenshot is shown in turn, in the page's flow.
 * ===================================================================== */
html[data-restyle] .hm-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3.4vw, 56px); align-items: start; margin-top: clamp(52px, 7vw, 108px); }
html[data-restyle] .hm-col > :is(.hm-sub, .hm-lede) + .hm-stage { margin-top: 0; }
html[data-restyle] .hm-stage-shots { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
html[data-restyle].hm-js .hm-stage-frame { position: sticky; top: 58px; z-index: 2; background: var(--hm-paper); padding-bottom: 10px; }
@media (max-width: 899px) { html[data-restyle].hm-js .hm-stage-frame { order: -1; margin: 0 -20px; padding: 8px 20px 10px; } }
html[data-restyle].hm-js .hm-stage-shots { display: grid; }
html[data-restyle].hm-js .hm-stage-shots > .hm-shot { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
html[data-restyle].hm-js .hm-stage-shots > .hm-shot[data-hm-on] { opacity: 1; visibility: visible; transition: opacity 0.45s ease, visibility 0s; }
html[data-restyle].hm-js .hm-stage-shots .hm-shot-frame { aspect-ratio: var(--hm-ar, 16 / 10); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
html[data-restyle].hm-js .hm-stage-shots .hm-shot-frame img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.2, 1); }
html[data-restyle].hm-js .hm-stage[data-hm-live] ul.hm-item-more > li { opacity: 0.5; transition: opacity 0.3s; }
html[data-restyle].hm-js .hm-stage[data-hm-live] ul.hm-item-more > li[data-hm-on] { opacity: 1; }
html[data-restyle].hm-js .hm-stage[data-hm-live] ul.hm-item-more > li[data-hm-on] strong { box-shadow: inset 0 -0.5em 0 var(--rm-gold); color: var(--rm-on-gold); }
html[data-restyle] .hm-stage ul.hm-item-more > li { padding: 14px 0; }
@media (min-width: 900px) {
    html[data-restyle] .hm-stage { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
    html[data-restyle].hm-js .hm-stage-frame { top: 84px; background: transparent; padding-bottom: 0; }
    html[data-restyle] .hm-stage ul.hm-item-more > li { padding: clamp(20px, 5vh, 46px) 0; }
    html[data-restyle] .hm-stage .hm-item { padding-bottom: 12vh; }
}

/* =====================================================================
 * Arrivals. Script sets --hm-p on a piece from 0 (just entering at the foot of the screen) to 1 (settled).
 * Nothing is hidden when motion is reduced, when script has not run, or on paper.
 * ===================================================================== */
@media screen and (prefers-reduced-motion: no-preference) {
    html[data-restyle].hm-js .hm-rise { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
    html[data-restyle].hm-js .hm-rise[data-hm-in] { opacity: 1; transform: none; }
    html[data-restyle].hm-js .hm-word[data-hm-p] { opacity: calc(var(--hm-p, 1) * 1.6); transform: translateY(calc((1 - var(--hm-p, 1)) * 9vh)); }
    html[data-restyle].hm-js .hm-statement[data-hm-p] { opacity: calc(var(--hm-p, 1) * 1.4 - 0.2); transform: translateY(calc((1 - var(--hm-p, 1)) * 7vh)); }
    html[data-restyle].hm-js .hm-chapter .hm-plate-art img { transform: scale(calc(1.5 - 0.5 * var(--hm-open, 1))); transform-origin: 70% 0; }
    html[data-restyle].hm-js .hm-chapter .hm-plate-drawn svg { transform: translateY(calc((1 - var(--hm-open, 1)) * 14vh)) scale(calc(1.1 - 0.1 * var(--hm-open, 1))); }
    html[data-restyle].hm-js .hm-shot[data-hm-p] .hm-shot-frame { overflow: hidden; clip-path: inset(0 0 calc((1 - var(--hm-p, 1)) * 30%) 0); transform: translateY(calc((1 - var(--hm-p, 1)) * 46px)); }
    html[data-restyle].hm-js .hm-shot[data-hm-p] .hm-shot-frame > :is(img, .hm-aic) { transform: scale(calc(1.3 - 0.3 * var(--hm-p, 1))); transform-origin: 50% 0; }
    html[data-restyle].hm-js .hm-shot[data-hm-p] figcaption { opacity: calc(var(--hm-p, 1) * 3 - 2); }
    html[data-restyle].hm-js .hm-hero .hm-plate-art { opacity: calc(1 - var(--hm-hero, 0) * 1.1); }
    html[data-restyle].hm-js .hm-hero .hm-plate-art img { transform: scale(calc(1 + 0.1 * var(--hm-hero, 0))); }
    html[data-restyle].hm-js .hm-hero :is(.hm-index-line, .hm-index-foot, .hm-hero-foot) { opacity: calc(1 - var(--hm-hero, 0) * 3); }
    html[data-restyle].hm-js .hm-index::before { opacity: calc(1 - var(--hm-hero, 0) * 3); }
    html[data-restyle].hm-js .hm-hero[data-hm-morph] :is(.hm-index-title, .hm-index-list) { opacity: calc(1 - var(--hm-hero, 0) * 9); }
    html[data-restyle].hm-js .hm-hero:not([data-hm-morph]) :is(.hm-index-title, .hm-index-list) { opacity: calc(1 - var(--hm-hero, 0) * 3); }
    html[data-restyle].hm-js .hm-rail[data-hm-morph] :is(.hm-rail-title, .hm-rail-list) { opacity: calc(var(--hm-hero, 1) * 9); transform-origin: 0 0; will-change: transform; }
    html[data-restyle].hm-js .hm-rail[data-hm-morph] :is(.hm-rail-go, .hm-rail-legal) { opacity: calc(var(--hm-hero, 1) * 2.4 - 1.2); }
}

@media print {
    html[data-restyle] :is(.hm-hdr, .hm-rail) { display: none; }
    html[data-restyle] :is(.hm-plate-copy, .hm-panel, .hm-hero) { min-height: 0; }
    html[data-restyle] .hm-plate-art { position: static; height: 40vh; }
    html[data-restyle] .hm-art { position: static; }
}

/* =====================================================================
 * SECTIONALS GUIDE ONLY (sectionals.html). Appended section: nothing above it is changed by it.
 * That page keeps the site's shared header (shared-nav.js fills #rmx-header and puts the menu bar under it),
 * so there is no fixed bar of ours: the header scrolls away with the page and the rail takes over.
 * ===================================================================== */
/* the header and menu bar stay above the first plate, which starts one screen early */
html[data-restyle] .hm-page > :is(#rmx-header, #rm-nav-bar) { position: relative; z-index: 4; }
/* the opening fills what is left of the first screen under them; "Back to the top" brings the header back too */
html[data-restyle] .hm-hero-under { --hm-site-hdr: 52px; min-height: calc(100vh - var(--hm-site-hdr)); min-height: calc(100svh - var(--hm-site-hdr)); padding-top: 32px; padding-bottom: 104px; scroll-margin-top: 240px; }
@media (min-width: 769px) { html[data-restyle] .hm-hero-under { --hm-site-hdr: 112px; padding-bottom: 64px; } }

/* a wider index box: the page's name, its line and headline on one side, the chapters and buttons on the other */
html[data-restyle] :is(.hm-index-main, .hm-index-side) { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
html[data-restyle] .hm-index-wide .hm-index-title { font-size: 22px; }
html[data-restyle] .hm-index-head { font-family: var(--hm-sans); font-weight: 800; font-size: clamp(36px, 10.5vw, 44px); line-height: 0.98; letter-spacing: -0.045em; color: var(--hm-on-art); text-wrap: balance; }
html[data-restyle] .hm-index-head em { font-style: normal; color: var(--rm-gold); }
html[data-restyle] .hm-index-wide .hm-index-member { display: flex; flex-wrap: wrap; gap: 2px 12px; }
@media (min-width: 720px) {
    html[data-restyle] .hm-index-wide { width: min(100%, 840px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 40px; align-items: start; padding: 26px 28px 22px; }
    html[data-restyle] .hm-index-head { font-size: clamp(44px, 4.4vw, 58px); }
    html[data-restyle] .hm-index-wide .hm-index-line { font-size: 17.5px; }
}
/* the opening's four figures, along its foot */
html[data-restyle] .hm-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; align-items: start; }
html[data-restyle] .hm-hero-stats b { color: var(--rm-gold); font-weight: 800; font-size: 14px; }
@media (min-width: 769px) { html[data-restyle] .hm-hero-stats { display: flex; justify-content: center; gap: 4px 44px; } }

/* a section's small heading line, above the heading or the row it belongs to */
html[data-restyle] .hm-kick { font-family: var(--hm-sans); font-weight: 800; font-size: 11.5px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-paper-dim); margin: clamp(64px, 9vw, 132px) 0 16px; }
html[data-restyle] .hm-col > .hm-kick:first-child { margin-top: 0; }
html[data-restyle] .hm-col > .hm-kick + :is(.hm-sub, .hm-lede, .hm-row) { margin-top: 0; }

/* the thirteen tab names */
html[data-restyle] .hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
html[data-restyle] .hm-chips .hm-tag { text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 15px; padding: 3px 8px; }

/* coverage and the two packages, three across; a price with its term beside it */
@media (min-width: 900px) { html[data-restyle] .hm-plans.hm-plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html[data-restyle] .hm-plans-3 { max-width: 76em; }
html[data-restyle] .hm-plan-price > .hm-plan-per { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; letter-spacing: 0; font-weight: 600; }

/* the video cards here keep their number, running time and <h4> (the pop-up script reads the <h4>) */
html[data-restyle] .hm-vids .vid-body h4 { font-family: var(--hm-sans); font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; color: var(--rm-text); }
html[data-restyle] .hm-vid-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-family: var(--hm-sans); font-size: 12px; line-height: 15px; font-weight: 700; color: var(--hm-paper-dim); font-variant-numeric: tabular-nums; }
html[data-restyle] .hm-vid-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 2px 5px; border: 1px solid currentColor; border-radius: 3px; font-weight: 800; color: var(--rm-text); }
html[data-restyle] .hm-btn-ico { gap: 7px; }

/* the reference links: the whole tile is the link */
html[data-restyle] .hm-page a.hm-ref { text-decoration: none; border-top: 1px solid var(--rm-text); padding-top: 12px; color: var(--rm-text); }
html[data-restyle] .hm-page a.hm-ref:is(:hover, :focus-visible) .hm-item-label { text-decoration: underline; text-underline-offset: 3px; }

/* the page's own one-line footer */
html[data-restyle] .hm-foot-plain { text-align: center; font-size: 14px; line-height: 1.7; color: var(--rm-on-band-dim); }
html[data-restyle] .hm-foot-plain a { text-decoration: none; }
html[data-restyle] .hm-foot-plain a:hover { color: var(--rm-on-band); text-decoration: underline; }

@media screen and (prefers-reduced-motion: no-preference) {
    html[data-restyle].hm-js .hm-hero .hm-index-wide :is(.hm-index-kicker, .hm-index-head) { opacity: calc(1 - var(--hm-hero, 0) * 3); }
}
/* below the rail's width nothing travels, and this opening can be taller than a phone's screen: its foot must still
   be readable when it is scrolled to, so nothing in the box fades there */
@media screen and (prefers-reduced-motion: no-preference) and (max-width: 1099px) {
    html[data-restyle].hm-js .hm-hero.hm-hero-under :is(.hm-index-title, .hm-index-list, .hm-index-kicker, .hm-index-head, .hm-index-line, .hm-index-foot, .hm-hero-foot) { opacity: 1; }
    html[data-restyle].hm-js .hm-hero.hm-hero-under .hm-index::before { opacity: 1; }
}
/* ===== end of the sectionals guide's section ===== */
