/* Aurora's look, one for every page under peepsoapps.com/aurora: the PHP pages (through index.php, after the shared
   _shared/style.css) and the static ones (history, widgets, dev/citycodes, which link this file themselves).
   Matt, 2026-11-23: "all /aurora pages/subpages are to use main bg #0c0f17 and the general styling of fonts, content
   width etc needs to be unified". The names come from the static pages (--ground, --panel, --ink, --rule, ...); the
   shared stylesheet's names (--bg, --text, --border, ...) are mapped onto them, so both kinds of page follow. */

:root {
    color-scheme: dark;

    /* Colours */
    --ground: #0c0f17;
    --panel: #121826;
    --ink: #f1f3f7;
    --text: #d9dde4;
    --muted: #8a93a3;
    --rule: #262e3f;
    --accent: #7cb4ff;
    --accent-hover: #a6ccff;
    --orange: #e08a45;

    /* Type */
    --display: 'Schibsted Grotesk', -apple-system, 'Helvetica Neue', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --text-size: 16px;
    --text-line: 1.6;
    --small: 14px;

    /* Widths: one page width for the header and every page. Content fills it (Matt, 2026-11-23: "content generally
       needs to use the entire container designated for it, imagery needs to be centered"), so --measure, the width of
       running text, is the whole page width too. 1440 since 2026-11-23 (was 1200; Matt: "increase the main content
       maxwidth so that on very wide screens the widget previews have no scroll"): the widgets table needs 1330 px of
       content, which a 1440 page holds inside its gutters and the preview's own padding. */
    --page: 1440px;
    --measure: 100%;
    --gutter-left: max(16px, env(safe-area-inset-left, 0px));
    --gutter-right: max(16px, env(safe-area-inset-right, 0px));
    --bar-height: 85px; /* the sticky header's height with its hairline; a page's own sticky bar sits at top: var(--bar-height) */

    /* The shared stylesheet's names */
    --bg: var(--ground);
    --surface: var(--panel);
    --border: var(--rule);
    --heading: var(--ink);
    --wrap: var(--page);
}

html {
    background: var(--ground);
}

/* Where a jump to a section or keyboard focus stops: below the sticky header. Scroll margins on the targets, not scroll padding
   on the page, which made focusing anything inside the sticky bars scroll the page (review of the mobile pass, 2026-11-23). */
:where([id], a[href], button, input, select, textarea, summary, [tabindex]) {
    scroll-margin-top: calc(var(--bar-height) + 12px);
}

:where(.aurora-bar, .docs-jump, .aurora-top, #bar),
:where(.aurora-bar, .docs-jump, .aurora-top, #bar) :where(*) {
    scroll-margin-top: 0;
}

body.aurora,
body:has(> .aurora-bar) {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: var(--display);
    font-size: var(--text-size);
    line-height: var(--text-line);
    -webkit-font-smoothing: antialiased;
}

/* One page width everywhere. body.aurora outranks a page's own .wrap rule. */
body.aurora .wrap,
.aurora-page {
    max-width: var(--page);
    margin-inline: auto;
    padding-left: var(--gutter-left);
    padding-right: var(--gutter-right);
}

/* The sticky header */

.aurora-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 15, 23, 0.82);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--display);
}

.aurora-bar__in {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--page);
    min-height: 84px;
    margin-inline: auto;
    padding-left: var(--gutter-left);
    padding-right: var(--gutter-right);
}

/* The logo at twice its first size, the name over "World Clock by PeepSo®" (Matt, 2026-11-23: "global header - double the size of
   the icon, bigger title + subtitle World Clock by PeepSo®") */
.aurora-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: none;
    color: var(--ink);
    text-decoration: none;
}

.aurora-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aurora-brand__name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.aurora-brand__sub {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.aurora-brand:hover {
    color: var(--ink);
    text-decoration: none;
}

.aurora-brand img {
    display: block;
    width: 68px;
    height: 56px;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.aurora-nav {
    margin-left: auto;
    min-width: 0;
}

.aurora-nav ul {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A spacer between the menu's groups */
.aurora-nav__gap {
    flex: none;
    width: 14px;
}

.aurora-nav a {
    display: block;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.aurora-nav a:hover {
    color: var(--ink);
    text-decoration: none;
}

.aurora-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.aurora-nav a:focus-visible,
.aurora-brand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* The menu button: phones and narrow windows only (Matt, 2026-11-23: "mobile screen design pass ... main menu hamburger?") */
.aurora-menu-btn {
    display: none;
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0 -8px 0 auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.aurora-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.aurora-bar.is-open .aurora-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aurora-bar.is-open .aurora-menu-btn span:nth-child(2) { opacity: 0; }
.aurora-bar.is-open .aurora-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.aurora-menu-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Phones and narrow windows (960 and under, where the logo, name and menu no longer fit one line): the logo at one and a
   half times its first size, and the menu behind the button, dropping down under the header */
@media (max-width: 960px) {
    :root {
        --bar-height: 67px;
    }

    .aurora-bar__in {
        min-height: 66px;
        gap: 12px;
    }

    .aurora-brand {
        gap: 10px;
    }

    .aurora-brand img {
        width: 51px;
        height: 42px;
    }

    .aurora-brand__name {
        font-size: 21px;
    }

    .aurora-brand__sub {
        font-size: 12px;
    }

    .aurora-menu-btn {
        display: flex;
    }

    .aurora-bar:has(.aurora-menu-btn) .aurora-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        max-height: calc(100vh - var(--bar-height));
        max-height: calc(100dvh - var(--bar-height));
        overflow-y: auto;
        padding: 8px var(--gutter-right) 16px var(--gutter-left);
        border-bottom: 1px solid var(--rule);
        background: var(--ground); /* opaque: a blur inside the header's own blur does not take */
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .aurora-bar:has(.aurora-menu-btn).is-open .aurora-nav {
        display: block;
    }

    .aurora-bar:has(.aurora-menu-btn) .aurora-nav ul {
        flex-direction: column;
        gap: 2px;
        max-width: var(--page);
        margin-inline: auto;
    }

    .aurora-bar:has(.aurora-menu-btn) .aurora-nav a {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 17px;
    }

    .aurora-bar:has(.aurora-menu-btn) .aurora-nav .aurora-nav__gap {
        width: auto;
        height: 1px;
        margin: 6px 14px;
        background: var(--rule);
    }

    /* A header from an old cached header-js has no menu button: its menu stays a row under the logo that scrolls sideways */
    .aurora-bar:not(:has(.aurora-menu-btn)) .aurora-bar__in {
        flex-wrap: wrap;
    }

    .aurora-bar:not(:has(.aurora-menu-btn)) .aurora-nav {
        flex: 1 0 100%;
        margin: 0 0 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    /* The footer's copy of the menu: rows and links big enough to tap */
    .aurora-foot .aurora-nav ul {
        row-gap: 8px;
    }

    .aurora-foot .aurora-nav a {
        padding-block: 11.5px;
    }
}

@keyframes aurora-drop {
    from { opacity: 0; transform: translateY(-6px); }
}

/* The menu drops in only when nobody asked for reduced motion: an override inside a reduce block lost to the :has() rule's weight */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
    .aurora-bar:has(.aurora-menu-btn).is-open .aurora-nav { animation: aurora-drop 0.18s ease-out; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-menu-btn span { transition: none; }
}

/* Back to top, on every page once it has scrolled a screen or so (Matt, 2026-11-23: "a "back to top" button maybe for all
   screens") */
.aurora-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.88);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.aurora-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.aurora-top:hover {
    border-color: var(--muted);
}

.aurora-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .aurora-top,
    .aurora-top.is-shown { transition: none; }
}

/* The PHP pages: the shared layout's document, header and footer in Aurora's type and widths */

body.aurora .doc {
    max-width: var(--measure);
    padding-top: 48px;
}

body.aurora .doc h1 {
    color: var(--ink);
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

body.aurora .doc h2 {
    color: var(--ink);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.aurora .doc .updated,
body.aurora .site-footer {
    font-size: var(--small);
}

body.aurora .doc code {
    font-family: var(--mono);
}

/* Pictures sit in the middle of the column */
body.aurora .doc img,
body.aurora .doc figure,
body.aurora .doc video {
    margin-left: auto;
    margin-right: auto;
}

body.aurora .site-footer {
    border-top-color: var(--rule);
}

@media (max-width: 600px) {
    body.aurora .doc {
        padding-top: 32px;
    }

    body.aurora .doc h1 {
        font-size: 28px;
    }
}

/* A page in a script Schibsted Grotesk does not have (Greek, the privacy policy's el-gr, 1.4.2) sets its text in the system
   font throughout: left to fall back letter by letter, each line would mix two typefaces (the Greek in the system font, the
   Latin names, digits and the email address in Schibsted). The header, menu and footer stay English, in Schibsted. Add a
   language here when another such script arrives (Cyrillic, Arabic, CJK...). */
:root:lang(el) body.aurora main {
    --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-family: var(--display);
}

/* The privacy policy's language menu */

.aurora-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 28px;
    color: var(--muted);
    font-size: var(--small);
}

.aurora-lang select {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 34px 7px 12px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a93a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--ink);
    font: 500 15px/1.4 var(--display);
    cursor: pointer;
}

.aurora-lang select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* A page's opening line under its title, a little larger than the body */

.aurora-lede,
body.aurora .doc .aurora-lede {
    margin: 0 0 28px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.55;
}

/* Support: two ways to reach us, side by side, stacked on phones */

.aurora-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.aurora-card,
body.aurora .doc .aurora-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--panel);
}

body.aurora .doc .aurora-card h2 {
    margin: 0 0 8px;
}

.aurora-card p {
    flex: 1;
    margin: 0 0 20px;
}

.aurora-button,
body.aurora .doc .aurora-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ground);
    font: 600 15px/1.3 var(--display);
    text-decoration: none;
}

.aurora-button:hover,
body.aurora .doc .aurora-button:hover {
    background: #ffffff;
    color: var(--ground);
    text-decoration: none;
}

.aurora-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* The footer on every page, PHP and static: the copyright on the left, a 1:1 copy of the menu on the right (Matt, 2026-11-23:
   "all get a footer, and bottom right gets a 1:1 copy of the navigation"). On a narrow screen the menu wraps under the copyright. */

.aurora-foot {
    margin-top: 56px;
    border-top: 1px solid var(--rule);
    background: var(--ground);
    color: var(--muted);
    font-family: var(--display);
    font-size: var(--small);
}

.aurora-foot__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: var(--page);
    margin-inline: auto;
    padding: 20px var(--gutter-right) 32px var(--gutter-left);
}

.aurora-foot .aurora-nav ul {
    flex-wrap: wrap;
}

/* A short page still puts its footer near the foot of the screen */
body.aurora > main {
    min-height: calc(100svh - var(--bar-height) - 170px);
}

/* Documentation (Matt, 2026-11-23: "documentation needs to explain the basic concepts and purpose of the app along with how to
   use it, how to customize the UI, etc. ... if something needs to be interacted with, screenshots need to be marked where the
   thing they need to tap is"). A table of contents beside the sections on wide screens; each topic's text beside its
   screenshots; numbered markers over the screenshots match the numbered steps. */

.docs-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.docs-toc {
    position: sticky;
    top: calc(var(--bar-height) + 24px);
    max-height: calc(100vh - var(--bar-height) - 48px);
    overflow-y: auto;
    font-size: var(--small);
}

.docs-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--rule);
}

.docs-toc a {
    display: block;
    padding: 5px 0 5px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.35;
}

.docs-toc a:hover,
.docs-toc a[aria-current="true"] {
    color: var(--ink);
    border-left-color: var(--orange);
    text-decoration: none;
}

.docs-section {
    padding-top: 8px;
    margin-bottom: 64px;
}

body.aurora .doc .docs-section h2 {
    margin: 0 0 16px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

body.aurora .doc .docs-section h3 {
    margin: 32px 0 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
}

.docs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: start;
    margin: 24px 0 40px;
}

.docs-row .docs-text > :first-child {
    margin-top: 0;
}

.docs-shot,
body.aurora .doc .docs-shot {
    margin: 0;
    justify-self: center;
}

.docs-phones {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: flex-start;
}

.docs-phone {
    position: relative;
    flex: none;
    width: 270px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.docs-phones--pair .docs-phone--portrait {
    width: 220px;
}

.docs-phone--landscape {
    width: min(100%, 480px);
}

/* Landscape screenshots need the width: their row puts the text above them, two phones side by side */
.docs-row:has(.docs-phone--landscape) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.docs-phones--pair:has(.docs-phone--landscape) {
    flex-wrap: wrap;
}

.docs-phones--pair .docs-phone--landscape {
    width: min(100%, calc(50% - 9px), 520px);
}

@media (max-width: 760px) {
    .docs-phones--pair .docs-phone--landscape {
        width: 100%;
    }
}

body.aurora .doc .docs-phone img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.docs-marks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.docs-ring {
    fill: rgba(224, 138, 69, 0.14);
    stroke: var(--orange);
    stroke-width: 3.5;
    animation: docs-pulse 2.4s ease-in-out infinite;
}

.docs-drag {
    stroke: var(--orange);
    stroke-width: 5;
    stroke-linecap: round;
}

.docs-area {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.5;
    stroke-dasharray: 9 7;
}

.docs-badge circle {
    fill: var(--orange);
    stroke: var(--ground);
    stroke-width: 2.5;
}

.docs-badge text {
    fill: #ffffff;
    font: 700 16px var(--display);
    text-anchor: middle;
    dominant-baseline: central;
}

@keyframes docs-pulse {
    50% { stroke-opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .docs-ring { animation: none; }
}

.docs-shot figcaption {
    max-width: 300px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: var(--small);
    line-height: 1.45;
    text-align: center;
}

.docs-steps,
body.aurora .doc .docs-steps {
    margin: 12px 0 20px;
    padding: 0;
    list-style: none;
}

.docs-steps li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 36px;
}

.docs-steps li:not(:has(.docs-mark))::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0.68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
}

.docs-mark {
    position: absolute;
    left: 0;
    top: 0.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: #ffffff;
    font: 700 13px/1 var(--display);
}

.docs-note,
body.aurora .doc .docs-note {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
}

.docs-pro {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6d77c, #c9952e);
    color: #2a1d04;
    font: 700 11px/1.5 var(--display);
    letter-spacing: 0.02em;
    vertical-align: 2px;
}

@media (max-width: 960px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .docs-toc {
        position: static;
        max-height: none;
    }

    .docs-toc ol {
        columns: 2;
        column-gap: 24px;
    }

    /* With the section bar in place (aurora.js), it stands in for the contents list */
    .has-docs-jump .docs-toc {
        display: none;
    }

    /* Jumps and focus stop below the header and the section bar too */
    .has-docs-jump :where([id], a[href], button, input, select, textarea, summary, [tabindex]) {
        scroll-margin-top: calc(var(--bar-height) + 64px);
    }

    .has-docs-jump :where(.aurora-bar, .docs-jump, .aurora-top),
    .has-docs-jump :where(.aurora-bar, .docs-jump, .aurora-top) :where(*) {
        scroll-margin-top: 0;
    }

    /* The section bar's own hairline replaces the first section's rule */
    .has-docs-jump .docs-main > .docs-section:first-child {
        border-top: 0;
        padding-top: 0;
    }
}

/* THE SECTION BAR, phones and narrow windows: the documentation's contents as a sticky bar under the header that names the
   section being read and drops down to jump to any other (Matt, 2026-11-23: "docs internal navigation could collapse to a
   sticky bar with a dropdown of sorts, updating itself as they scroll, letting them jump to sections") */
.docs-jump {
    display: none;
}

@media (max-width: 960px) {
    .docs-jump {
        display: block;
        position: sticky;
        top: var(--bar-height);
        z-index: 50;
        margin: 8px calc(-1 * var(--gutter-right)) 24px calc(-1 * var(--gutter-left));
        border-bottom: 1px solid var(--rule);
        background: rgba(12, 15, 23, 0.92);
        -webkit-backdrop-filter: saturate(150%) blur(16px);
        backdrop-filter: saturate(150%) blur(16px);
    }

    .docs-jump__btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 50px;
        padding: 8px var(--gutter-right) 8px var(--gutter-left);
        border: 0;
        background: transparent;
        color: var(--ink);
        font: 600 16px/1.3 var(--display);
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .docs-jump__label {
        flex: none;
        color: var(--muted);
        font: 500 12px var(--mono);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .docs-jump__now {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .docs-jump__chev {
        flex: none;
        color: var(--muted);
        transition: transform 0.2s ease;
    }

    .docs-jump.is-open .docs-jump__chev {
        transform: rotate(180deg);
    }

    .docs-jump__btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -2px;
    }

    /* The list drops down over the page (out of the flow, so opening it moves nothing), as tall as the screen allows */
    .docs-jump__list,
    body.aurora .doc .docs-jump__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: min(480px, calc(100vh - var(--bar-height) - 52px));
        max-height: min(480px, calc(100dvh - var(--bar-height) - 52px));
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: 0;
        padding: 4px var(--gutter-right) 12px var(--gutter-left);
        list-style: none;
        border-top: 1px solid var(--rule);
        border-bottom: 1px solid var(--rule);
        background: var(--ground);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .docs-jump__list a {
        display: block;
        padding: 11px 12px;
        border-radius: 10px;
        color: var(--text);
        font-size: 16px;
        text-decoration: none;
    }

    .docs-jump__list a[aria-current="true"] {
        background: var(--panel);
        color: var(--ink);
        box-shadow: inset 3px 0 0 var(--orange);
    }
}

@media (prefers-reduced-motion: reduce) {
    .docs-jump__chev { transition: none; }
}

@media (max-width: 760px) {
    .docs-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .docs-phones--pair .docs-phone--portrait {
        width: calc(50% - 9px);
        max-width: 220px;
    }
}

@media (max-width: 520px) {
    .docs-toc ol {
        columns: 1;
    }

    .docs-phone {
        width: min(270px, 80vw);
    }
}
