:root {
    --header: #141414;
    --header-accent: #f1f0eb;
    --body: #434343;
    --text: #ffffff;
    --text-muted: #dbdbdb;
    --info: #484848;
    --accent: #ff5a2c;
    --bg: #161616;
    --bg-soft: #1f1f1f;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 90, 44, 0.32);
    --accent-fill: #ff5a2c;
    --accent-fill-hover: #ff6a40;
    --accent-shadow: rgba(255, 90, 44, 0.14);
    --accent-focus: rgba(255, 90, 44, 0.2);
    --accent-border: rgba(255, 90, 44, 0.4);
    --accent-border-strong: rgba(255, 90, 44, 0.52);
    --radius: 4px;
    --sidebar-width: 320px;
    --content-max-width: 960px;
    --font-ui: 'SF Mono', 'Monaco', 'Menlo', Consolas, 'Courier New', monospace;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-size: 16px;
    color: var(--text);
    font-family: var(--font-ui);
    background: #141414;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

body * {
    -webkit-user-select: text;
    user-select: text;
}

body[data-text-size="large"] {
    font-size: 17px;
}

body[data-text-size="xlarge"] {
    font-size: 18px;
}

body[data-contrast="high"] {
    --header-accent: #ffffff;
    --text: #ffffff;
    --text-muted: #f0f0f0;
    --line: rgba(255, 255, 255, 0.18);
    --line-strong: rgba(255, 90, 44, 0.58);
    --accent-fill-hover: #ff7a53;
    background: #0c0c0c;
}

body[data-contrast="high"] :is(.doc-accordion, .asset-location-card, .media-card, .access-panel, .nav-empty, .code-block) {
    border-color: rgba(255, 255, 255, 0.18);
}

body[data-contrast="high"] :is(.page-link, .ref-link, .access-toggle, .access-reset) {
    background: #353535;
    border-color: rgba(255, 255, 255, 0.18);
}

body[data-contrast="high"] .search-wrap input {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.98);
}

html[data-motion="reduced"] {
    scroll-behavior: auto;
}

body[data-links="underlined"] .footer-link {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    border-bottom-color: transparent;
}

body[data-links="underlined"] .copy-text-button-label {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

body[data-motion="reduced"] *,
body[data-motion="reduced"] *::before,
body[data-motion="reduced"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

body.is-sidebar-open {
    overflow: hidden;
}

a,
button {
    color: inherit;
}

:is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid rgba(255, 249, 227, 0.92);
    outline-offset: 2px;
}

body[data-focus="boosted"] :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(255, 249, 227, 1);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 90, 44, 0.24);
}

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 40;
    padding: 10px 12px;
    color: var(--header);
    text-decoration: none;
    background: #f4f3ef;
    border: 1px solid rgba(255, 249, 227, 0.9);
    border-radius: var(--radius);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    max-width: 1500px;
    min-height: 100vh;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 20px 24px 24px;
    overflow: auto;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(20, 20, 20, 0.94));
}

.sidebar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    gap: 12px;
    padding-bottom: 18px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 1) 78%, rgba(20, 20, 20, 0));
}

.menu-toggle,
.home-link,
.group-link,
.group-toggle,
.page-link {
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    color: var(--header-accent);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
    color: var(--header-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1em;
    font-weight: 700;
    background: transparent;
    border-color: transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.home-link:hover,
.home-link:focus-visible {
    color: var(--header-accent);
    background: transparent;
    border-color: rgba(255, 249, 227, 0.82);
    box-shadow: inset 0 0 0 2px rgba(255, 249, 227, 0.22);
}

.home-link.is-active {
    color: var(--accent);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.home-link.is-active:hover,
.home-link.is-active:focus-visible {
    color: var(--accent);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.home-link-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.home-link-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.home-link-text {
    font-weight: 700;
}

.search-wrap {
    position: relative;
    display: block;
    margin-top: 2px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: rgba(255, 249, 227, 0.72);
    pointer-events: none;
}

.search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.search-wrap input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px 0 34px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.93em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    outline: none;
    caret-color: var(--header-accent);
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.search-wrap input:focus {
    color: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.search-wrap input[type="search"]::-webkit-search-decoration,
.search-wrap input[type="search"]::-webkit-search-cancel-button,
.search-wrap input[type="search"]::-webkit-search-results-button,
.search-wrap input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.nav-groups {
    display: grid;
    gap: 16px;
    margin-top: 6px;
    padding-top: 10px;
}

body.is-sidebar-panel-open .home-link,
body.is-sidebar-panel-open .search-wrap,
body.is-sidebar-panel-open .nav-groups {
    display: none !important;
}

.sidebar-utility {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 260px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.utility-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 2px;
}

.utility-group-title {
    color: var(--header-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.93em;
    font-weight: 700;
    opacity: 0.9;
    transition: color 160ms ease;
}

.sidebar-utility:has(.access-toggle[aria-expanded="true"]) .utility-group-title {
    color: var(--accent);
    opacity: 1;
}

.sidebar-footer {
    display: grid;
    justify-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    z-index: 1;
}

.sidebar-footer > * {
    width: 100%;
    max-width: 260px;
}

.access-toggle,
.access-reset {
    min-height: 38px;
    padding: 0 12px;
    color: var(--header-accent);
    cursor: pointer;
    text-align: left;
    background: #404040;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.access-toggle {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.93em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.04);
}

.access-toggle-icon {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.access-toggle-icon svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.access-toggle-text {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    align-self: center;
    text-align: left;
    padding-right: 24px;
    line-height: 1.35;
}

.access-toggle-chevron {
    position: absolute;
    display: grid;
    place-items: center;
    top: 0;
    bottom: 0;
    right: 0;
    width: 34px;
    color: currentColor;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.access-toggle-chevron::before {
    content: "+";
}

.access-toggle[aria-expanded="true"] {
    color: var(--header-accent);
    border-color: rgba(255, 90, 44, 0.58);
    background: linear-gradient(90deg, rgba(255, 90, 44, 0.12), rgba(255, 90, 44, 0.04));
    box-shadow: inset 2px 0 0 var(--accent);
}

.access-toggle[aria-expanded="true"] .access-toggle-chevron::before {
    content: "-";
}

.access-toggle:hover,
.access-toggle:focus-visible,
.access-action-button:hover,
.access-action-button:focus-visible {
    color: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.access-panel {
    display: grid;
    gap: 14px;
    margin-top: 2px;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.access-panel[hidden] {
    display: none !important;
}

.access-panel-header {
    display: grid;
    gap: 4px;
}

.access-panel-copy,
.access-legend {
    margin: 0;
}

.access-panel-copy {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.access-form {
    display: grid;
    gap: 12px;
}

.access-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}

.access-legend {
    color: var(--header-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.setting-choice-list {
    display: grid;
    gap: 6px;
}

.setting-choice,
.setting-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.setting-choice input,
.setting-toggle input {
    margin: 0;
    accent-color: var(--accent);
}

.access-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.access-action-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    color: var(--header-accent);
    cursor: pointer;
    text-align: center;
    background: #404040;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 100px;
}

.site-settings-back {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.access-actions > .access-action-button:first-child {
    margin-right: 0;
}

.access-actions > .access-action-button:last-child {
    margin-left: 0;
}

.access-reset-hold {
    isolation: isolate;
}

.access-reset-hold-fill {
    position: absolute;
    inset: 0;
    width: calc(var(--hold-progress, 0) * 100%);
    background: rgba(255, 90, 44, 0.28);
    z-index: 0;
    transition: width 80ms linear;
}

.access-reset-hold-text {
    position: relative;
    z-index: 1;
}

.access-declaration {
    display: grid;
    gap: 6px;
    padding-top: 2px;
    border-top: 1px solid var(--line);
}

.access-declaration-title,
.access-declaration-copy {
    margin: 0;
}

.access-declaration-title {
    color: var(--header-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.access-declaration-copy {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.ai-toggle {
    margin-top: 0;
}

.ai-toggle-icon svg {
    width: 14px;
    height: 14px;
}

.ai-panel {
    padding-top: 14px;
}

.achievement-toggle.is-locked {
    opacity: 0.64;
    cursor: not-allowed;
}

.achievement-toggle .access-toggle-icon svg {
    width: 14px;
    height: 14px;
}

.achievement-toggle .access-toggle-icon {
    color: var(--header-accent);
}

.achievement-toggle .access-toggle-icon svg path {
    fill: currentColor;
    stroke: none;
}

.achievement-toggle.is-locked:hover,
.achievement-toggle.is-locked:focus-visible {
    color: rgba(255, 255, 255, 0.74);
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.achievement-panel strong {
    color: var(--accent);
}

.achievement-row {
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.66);
}

.achievement-total-score {
    margin: 0 0 6px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.82);
}

.achievement-row:first-child {
    border-top: 0;
}

.achievement-title,
.achievement-score {
    margin: 0;
    line-height: 1.5;
}

.achievement-title {
    font-weight: 700;
}

.achievement-score {
    font-size: 0.84rem;
}

.achievement-row.is-unlocked {
    color: var(--accent);
}

.achievement-row.achievement-ultra.is-unlocked {
    color: #ff7a4e;
    text-shadow:
        0 0 8px rgba(255, 90, 44, 0.55),
        0 0 16px rgba(255, 90, 44, 0.38);
}

.nav-group {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.group-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 0;
}

.group-link,
.group-toggle {
    min-height: 38px;
    color: var(--header-accent);
    background: transparent;
    border-color: transparent;
}

.group-link {
    display: flex;
    align-items: center;
    padding: 0 2px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.93em;
    font-weight: 700;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    cursor: pointer;
    opacity: 0.9;
}

.group-link.is-active {
    color: var(--accent);
    background: transparent;
    opacity: 1;
}

.group-link.is-active:hover,
.group-link.is-active:focus-visible {
    color: var(--accent);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.group-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left-color: transparent;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.group-link:hover,
.group-link:focus-visible,
.group-toggle:hover,
.group-toggle:focus-visible {
    color: var(--header-accent);
    background: transparent;
    border-color: rgba(255, 249, 227, 0.82);
    box-shadow: inset 0 0 0 2px rgba(255, 249, 227, 0.22);
}

.group-toggle::before {
    content: "▾";
    font-size: 0.9rem;
    transition: transform 160ms ease;
}

.nav-group.is-collapsed .group-toggle::before {
    transform: rotate(-90deg);
}

.page-list {
    display: grid;
    gap: 6px;
    margin-left: 0;
    padding: 0;
    border-left: none;
}

.nav-group.is-collapsed .page-list {
    display: none;
}

.group-toggle::before {
    content: "-";
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 160ms ease;
}

.nav-group.is-collapsed .group-toggle::before {
    content: "+";
    transform: rotate(0deg);
}

.page-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.93em;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.04);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.page-link:hover {
    color: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.page-link.is-active {
    color: var(--header-accent);
    border-color: rgba(255, 90, 44, 0.58);
    background: linear-gradient(90deg, rgba(255, 90, 44, 0.12), rgba(255, 90, 44, 0.04));
    box-shadow: inset 2px 0 0 var(--accent);
}

.page-link:focus-visible,
.group-link:focus-visible,
.group-toggle:focus-visible,
.home-link:focus-visible,
.ref-link:focus-visible,
.page-action-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-empty {
    padding: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.nav-search-heading {
    margin: 0;
    color: var(--header-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ref-results {
    display: grid;
    gap: 6px;
}

.ref-link {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    background: #404040;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.ref-link:hover {
    color: var(--text);
    border-color: rgba(255, 249, 227, 0.82);
    background: #494949;
    box-shadow: inset 0 0 0 2px rgba(255, 249, 227, 0.42);
}

.ref-link.is-active {
    color: var(--header-accent);
    border-color: var(--line-strong);
    background: #545454;
    box-shadow: inset 0 0 0 1px var(--accent-shadow);
}

.ref-link-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ref-link-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.ref-link-snippet {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.55;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 32px 56px 72px 43px;
}

.site-header {
    margin: 0 0 28px;
    text-align: center;
}

.site-header-sidebar {
    margin: 0;
    text-align: left;
    display: grid;
    gap: 8px;
}

.sidebar-label,
.site-kicker,
.site-subtitle,
.page-group,
.page-meta {
    margin: 0;
    letter-spacing: 0.03em;
}

.sidebar-label {
    color: var(--header-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-kicker {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.site-home-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: clamp(44px, 5vw, 68px);
    height: auto;
    margin-bottom: 4px;
}

.site-title {
    margin: 4px 0 6px;
    color: var(--accent);
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
}

.site-subtitle {
    color: var(--header-accent);
    font-size: 0.82rem;
}

.site-header-sidebar .site-title {
    margin-top: 0;
    font-size: clamp(2rem, 2.6vw, 3.2rem);
}

.site-home-link:hover .site-title,
.site-home-link:focus-visible .site-title {
    color: var(--accent-fill-hover);
}

.site-home-link:focus-visible {
    outline: 1px solid rgba(255, 249, 227, 0.35);
    outline-offset: 6px;
}

.site-publisher-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--header-accent);
    font-size: 0.82rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.site-publisher-link:hover,
.site-publisher-link:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.page-header,
.page-assets,
.section-list,
.doc-section {
    max-width: var(--content-max-width);
}

.page-header {
    position: relative;
    margin-bottom: 48px;
}

.page-header-sticky {
    position: sticky;
    display: grid;
    gap: 8px;
    top: 0;
    z-index: 5;
    padding: 18px 0 16px;
    margin-bottom: 16px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: padding 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (max-width: 720px) {
    .page-header-sticky {
        padding-top: 22px;
    }
}

.page-header-sticky:has(h2[hidden]) {
    padding-top: 22px;
}

.page-group {
    color: var(--accent);
    font-size: 0.88rem;
    text-transform: uppercase;
    display: none;
    margin: 0;
    transition: color 180ms ease, transform 220ms ease, opacity 220ms ease;
}

.page-group[hidden] {
    display: none !important;
}

body.is-home-page .page-group {
    display: block;
    color: var(--header-accent);
}

.page-header h2 {
    margin: 10px 0 18px;
    color: var(--text);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 0.98;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: font-size 220ms ease, margin 220ms ease, letter-spacing 220ms ease, transform 220ms ease;
}

.page-header h2.is-deciphering {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 0 18px rgba(255, 90, 44, 0.18);
}

.page-header h2.is-easter-egg {
    color: var(--accent);
    text-shadow: none;
    letter-spacing: 0.08em;
}

.page-header h2.is-easter-egg-ultra {
    color: #ffd9cc;
    text-shadow: 0 0 24px rgba(255, 90, 44, 0.56);
}

.home-replay-easter-egg-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    padding: 10px 14px;
    color: #ffd9cc;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255, 90, 44, 0.56);
    border-radius: var(--radius);
    background: rgba(20, 10, 8, 0.95);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    animation: home-replay-easter-toast-in 180ms ease-out;
}

.home-replay-easter-egg-toast.is-ultra-rare {
    color: #fff6f0;
    border-color: rgba(255, 138, 94, 0.82);
    background: rgba(30, 10, 6, 0.97);
    box-shadow: 0 12px 30px rgba(255, 90, 44, 0.26);
}

.home-replay-binary-rain {
    position: fixed;
    inset: 0;
    z-index: 58;
    pointer-events: none;
    overflow: hidden;
}

.home-replay-binary-bit {
    position: absolute;
    top: -24px;
    color: rgba(255, 160, 128, 0.82);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 90, 44, 0.34);
    animation-name: home-replay-binary-fall;
    animation-timing-function: linear;
    animation-fill-mode: both;
}

@keyframes home-replay-binary-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(115vh) rotate(18deg);
        opacity: 0;
    }
}

@keyframes home-replay-easter-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-summary,
.section-body p,
.section-body li {
    color: var(--text-muted);
    line-height: 1.8;
}

.page-summary {
    margin: 0;
    font-size: 1.08rem;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease, margin 220ms ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-comment-box {
    margin-top: 14px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    max-width: 820px;
}

.page-comment-hotspot {
    position: absolute;
    left: 10px;
    top: 182px;
    width: min(360px, 58%);
    height: 26px;
    border: 0;
    background: transparent;
    opacity: 0;
    cursor: default;
}

.page-comment-hotspot:focus,
.page-comment-hotspot:focus-visible {
    outline: none;
    box-shadow: none;
}

.page-comment-title {
    margin: 0 0 8px;
    color: var(--header-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.page-comment-input {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(10, 10, 12, 0.74);
    color: var(--text);
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.6;
    padding: 9px 10px;
}

.page-comment-input:focus {
    outline: none;
    border-color: rgba(255, 90, 44, 0.7);
    box-shadow: 0 0 0 1px rgba(255, 90, 44, 0.25);
}

.page-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.page-comment-save {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 90, 44, 0.5);
    border-radius: var(--radius);
    background: rgba(255, 90, 44, 0.08);
    color: var(--header-accent);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.page-comment-save:hover,
.page-comment-save:focus-visible {
    border-color: rgba(255, 90, 44, 0.8);
    background: rgba(255, 90, 44, 0.14);
    color: var(--text);
}

.page-comment-status {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

body.is-home-page .page-summary {
    max-height: 180px;
    overflow: hidden;
}

body.is-home-page .page-header,
body.is-home-page .page-assets,
body.is-home-page .page-lead-sections,
body.is-home-page .section-list {
    width: min(100%, 1120px);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

body.is-home-page .doc-section {
    width: 100%;
    max-width: none;
}

body.is-home-page .page-header {
    position: relative;
    margin-bottom: 56px;
    transition: margin-bottom 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-home-page .page-header::before {
    content: none;
}

body.is-home-page .page-header-sticky {
    position: sticky;
    top: 14px;
    justify-items: center;
    padding: clamp(30px, 6vw, 52px) clamp(22px, 4vw, 48px) 30px;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(24, 24, 24, 0.96);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
    text-align: center;
}

body.is-home-page .page-header-sticky::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 64px;
    height: 2px;
    background: rgba(255, 90, 44, 0.88);
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 180ms ease;
}

body.is-home-page .page-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--header-accent);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
}

body.is-home-page .page-header h2 {
    max-width: 12ch;
    margin: 20px auto 0;
    font-size: clamp(3rem, 6.8vw, 5rem);
    line-height: 0.94;
    letter-spacing: 0.04em;
    text-wrap: balance;
}

body.is-home-page .page-summary {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.14rem;
    text-align: center;
}

body.is-home-page .page-actions {
    justify-content: center;
    margin-top: 28px;
    transition: margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-home-page.is-home-decipher-complete .page-header {
    margin-bottom: 30px;
}

body.is-home-page.is-home-decipher-complete .page-header-sticky {
    padding-bottom: 22px;
}

body.is-home-page.is-home-decipher-complete .page-actions {
    margin-top: 14px;
}

body.is-home-page .page-action-link {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.is-home-page .page-actions .page-action-link.page-action-primary {
    color: var(--accent);
    border-color: rgba(255, 90, 44, 0.52);
    background: rgba(255, 90, 44, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 44, 0.14);
}

body.is-home-page .page-actions .page-action-link.page-action-primary:hover,
body.is-home-page .page-actions .page-action-link.page-action-primary:focus-visible {
    color: var(--accent);
    border-color: rgba(255, 90, 44, 0.66);
    background: rgba(255, 90, 44, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 44, 0.24);
}

body.is-home-page .page-actions .page-action-link.page-action-secondary {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

body.is-home-page .page-actions .page-action-link.page-action-secondary:hover,
body.is-home-page .page-actions .page-action-link.page-action-secondary:focus-visible {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.is-home-page .page-actions .page-action-link.page-action-replay {
    cursor: pointer;
    font: inherit;
    border-style: dashed;
    border-color: rgba(255, 90, 44, 0.34);
    background: rgba(255, 90, 44, 0.06);
}

body.is-home-page .page-actions .page-action-link.page-action-replay:hover,
body.is-home-page .page-actions .page-action-link.page-action-replay:focus-visible {
    color: var(--text);
    border-color: rgba(255, 90, 44, 0.62);
    background: rgba(255, 90, 44, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 44, 0.2);
}

body.is-home-page .page-actions .page-action-link.page-action-replay:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

body.is-home-page .page-lead-sections,
body.is-home-page .section-list,
body.is-home-page .page-assets {
    display: grid;
    gap: 24px;
}

body.is-home-page .doc-accordion,
body.is-home-page .media-card {
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.022);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

body.is-home-page .doc-accordion-summary {
    padding: 18px 22px;
}

body.is-home-page .doc-accordion-body {
    padding: 6px 22px 22px;
}

body.is-home-page .media-gallery {
    gap: 24px;
}

body.is-home-page .media-image-frame {
    padding: 22px;
}

body.is-home-page.is-header-condensed .page-header-sticky {
    top: 14px;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

body.is-home-page.is-header-condensed .page-header-sticky::before {
    opacity: 0;
}

body.is-home-page.is-header-condensed .page-group {
    color: var(--accent);
    transform: translateY(0);
}

body.is-home-page.is-header-condensed .page-header h2 {
    margin: 0;
    max-width: none;
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    letter-spacing: 0.08em;
}

body.is-home-page.is-header-condensed .page-summary {
    max-height: 0;
    opacity: 0;
    margin: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.page-pitch {
    margin: 10px 0 0;
    color: rgba(255, 249, 227, 0.8);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 780px;
}

.page-pitch-link {
    color: var(--header-accent);
    text-decoration: none;
}

.page-pitch-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 2px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    vertical-align: middle;
}

.page-pitch-link:hover,
.page-pitch-link:focus-visible {
    color: var(--accent);
    border-color: rgba(255, 90, 44, 0.52);
    background: rgba(255, 90, 44, 0.08);
    text-decoration: none;
}

.page-pitch[hidden] {
    display: none !important;
}

.page-overview {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    max-width: 820px;
}

.page-overview p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.01rem;
}

.page-meta {
    margin-top: 16px;
    color: rgba(255, 249, 227, 0.76);
    font-size: 0.88rem;
}

.page-meta[hidden] {
    display: none !important;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.page-actions[hidden] {
    display: none !important;
}

.page-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    color: var(--header-accent);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 500;
    transition: all 160ms ease;
}

.page-action-link:hover,
.page-action-link:focus-visible {
    color: var(--text);
    border-color: rgba(255, 90, 44, 0.58);
    background: rgba(255, 90, 44, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 44, 0.2);
}

.page-assets {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.page-lead-sections {
    margin-bottom: 20px;
}

body.is-home-page .page-lead-sections {
    margin-bottom: 24px;
}

.page-assets[hidden] {
    display: none !important;
}

.page-addon-assets {
    margin-top: 20px;
}

.addon-divider {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.addon-divider-label {
    margin: 0;
    color: var(--header-accent);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.asset-location-card,
.media-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.asset-location-card {
    padding: 14px 16px;
}

.asset-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.asset-card-label {
    margin: 0;
    color: var(--header-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.asset-location-path,
.media-card-text {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.media-gallery {
    display: grid;
    gap: 20px;
}

.media-card {
    overflow: hidden;
}

.media-card.is-compact {
    max-width: 420px;
}

.media-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 520px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--line);
}

.media-image-frame.is-compact {
    min-height: auto;
    max-height: none;
    padding: 16px 16px 0;
    border-bottom: 0;
    background: transparent;
}

.media-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 486px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-bottom: 0;
}

.media-image.is-compact {
    width: auto;
    max-width: 100%;
    max-height: 160px;
    margin: 0 auto;
    background: transparent;
}

.media-card-body {
    padding: 16px;
}

.section-group-media .doc-accordion {
    border: 0;
    background: transparent;
}

.section-group-media .doc-accordion-summary {
    padding: 10px 28px 10px 0;
}

.section-group-media .doc-accordion-summary::after {
    right: 0;
}

.section-group-media .doc-accordion-body {
    padding: 8px 0 0;
}

.section-group-media .media-card {
    border: 0;
    background: transparent;
}

.section-group-media .media-image-frame {
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
    background: transparent;
    border-bottom: 0;
}

.section-group-media .media-card-body {
    padding: 12px 0 0;
}

.media-group-heading {
    margin: 10px 0 2px;
    color: var(--header-accent);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.media-card-title {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.media-card-text {
    margin-top: 8px;
}

.media-card-detail {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.media-card-detail:last-child {
    margin-bottom: 0;
}

.section-link-list {
    margin: 0;
    padding-left: 1.2rem;
}

.section-faq-list {
    display: grid;
    gap: 14px;
}

.section-faq-item {
    display: grid;
    gap: 6px;
}

.section-faq-question,
.section-faq-answer {
    margin: 0;
}

.section-faq-question {
    color: var(--header-accent);
    font-weight: 700;
    line-height: 1.5;
}

.section-faq-answer {
    color: var(--text-muted);
    line-height: 1.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--header-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

.footer-link::after,
.page-action-link[target="_blank"]::after,
.page-pitch-link[target="_blank"]::after,
.section-link[target="_blank"]::after {
    content: "";
    width: 0.72em;
    height: 0.72em;
    flex: 0 0 0.72em;
    background: currentColor;
    clip-path: polygon(14% 100%, 0 86%, 60% 26%, 24% 26%, 24% 6%, 94% 6%, 94% 76%, 74% 76%, 74% 40%);
}

.definition-link {
    color: var(--header-accent);
    text-decoration: underline;
    text-underline-offset: 0.16em;
    text-decoration-thickness: 0.08em;
}

.definition-link:hover {
    color: var(--accent);
}

.code-block {
    margin: 20px 0 0;
    padding: 14px 16px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #211d1f;
}

.code-content {
    display: block;
    color: #e7e3de;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre;
}

.code-line-number {
    color: #9b918b;
}

.code-keyword {
    color: #ee8a59;
}

.code-type {
    color: #ddb897;
}

.code-method {
    color: #f1c08a;
}

.code-variable {
    color: #f2efea;
}

.code-string {
    color: #cf8d62;
}

.code-comment {
    color: #b7b1ab;
}

.mobile-code-card,
.mobile-code-viewer {
    display: none;
}

.mobile-code-card {
    width: 100%;
    margin: 20px 0 0;
    padding: 14px;
    color: var(--header-accent);
    font: inherit;
    text-align: left;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-code-card-kicker,
.mobile-code-card-title,
.mobile-code-card-footer,
.mobile-code-card-meta,
.mobile-code-card-action {
    display: block;
}

.mobile-code-card-kicker {
    margin-bottom: 8px;
    color: rgba(255, 249, 227, 0.76);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-code-card-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-code-preview {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #211d1f;
}

.mobile-code-preview::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 36px;
    background: linear-gradient(180deg, rgba(33, 29, 31, 0), rgba(33, 29, 31, 0.98));
    pointer-events: none;
}

.mobile-code-preview-content {
    max-height: 8.2em;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.55;
}

.mobile-code-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.mobile-code-card-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.mobile-code-card-action {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-code-card:hover,
.mobile-code-card:focus-visible {
    border-color: rgba(255, 90, 44, 0.5);
    background: rgba(255, 90, 44, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 44, 0.14);
}

.mobile-code-viewer {
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 16px;
    background: rgba(8, 8, 10, 0.78);
}

.mobile-code-viewer-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(100%, 860px);
    max-height: 100%;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(18, 18, 20, 0.98);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.mobile-code-viewer-header {
    display: grid;
    gap: 6px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-code-viewer-kicker,
.mobile-code-viewer-title {
    margin: 0;
}

.mobile-code-viewer-kicker {
    color: rgba(255, 249, 227, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-code-viewer-title {
    color: var(--text);
    font-size: 1.04rem;
    line-height: 1.35;
}

.mobile-code-viewer-close {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    width: 100%;
    min-height: 42px;
    justify-content: center;
    color: var(--header-accent);
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.mobile-code-viewer-close:hover,
.mobile-code-viewer-close:focus-visible {
    color: var(--text);
    border-color: rgba(255, 90, 44, 0.5);
    background: rgba(255, 90, 44, 0.08);
}

.mobile-code-viewer-body {
    padding: 14px;
    overflow: hidden;
}

.mobile-code-viewer-block {
    height: 100%;
    max-height: min(68vh, 560px);
    margin: 0;
    padding: 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.section-list {
    display: grid;
    gap: 28px;
}

.doc-section {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.content-section {
    padding-top: 0;
    border-top: 0;
}

.doc-section h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1.2rem;
}

.doc-accordion {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.doc-accordion.is-open {
    border-color: var(--line);
}

.doc-accordion-summary {
    position: relative;
    display: block;
    width: 100%;
    padding: 14px 44px 14px 16px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.04rem;
    font-weight: 700;
    text-align: left;
    background: transparent;
    border: 0;
}

.doc-accordion-summary::after {
    content: "\25BE";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%) rotate(180deg);
    color: var(--header-accent);
    font-size: 0.9rem;
    transition: transform 160ms ease;
}

.doc-accordion-summary[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(0deg);
}

.section-upcoming-production-tools > .doc-accordion-summary {
    color: var(--accent);
}

body.is-home-page .section-why-i-am-making-these-unity-tools > .doc-accordion-summary,
body.is-home-page .section-read-other-commonly-asked-questions > .doc-accordion-summary {
    color: var(--accent);
}

.doc-accordion-body {
    padding: 0 16px 16px;
}

.doc-accordion-body[hidden] {
    display: none !important;
}

.section-group {
    margin-top: 20px;
}

.section-group + .section-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.section-group .section-group {
    border: none;
    background: transparent;
}

.section-group-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 52px;
    padding: 14px 16px 8px;
    cursor: pointer;
}

.section-group-summary {
    color: var(--accent);
    display: flex;
    align-items: center;
    min-height: 28px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
}

.section-group-version {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 12px;
}

.section-group-controls {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.section-group:not(.is-open) .section-group-controls {
    display: none;
}

.section-group-control-button {
    min-height: 28px;
    padding: 0 10px;
    color: var(--header-accent);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.section-group-control-button:hover,
.section-group-control-button:focus-visible {
    color: var(--text);
    border-color: rgba(255, 249, 227, 0.82);
    box-shadow: inset 0 0 0 2px rgba(255, 249, 227, 0.24);
}

.section-group-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 28px;
    padding: 0;
    margin-left: auto;
    color: var(--accent);
    cursor: pointer;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.section-group-toggle-chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.section-group-toggle[aria-expanded="true"] .section-group-toggle-chevron {
    transform: rotate(-135deg);
}

.section-group-toggle:hover,
.section-group-toggle:focus-visible {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.section-group-preview {
    margin: 0;
    padding: 8px 16px 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-group.is-open .section-group-preview {
    padding-bottom: 8px;
}

.section-group-body {
    display: grid;
    gap: 22px;
    padding-bottom: 16px;
}

.section-group-intro {
    display: grid;
    gap: 14px;
}

.section-group-intro p {
    margin: 0;
}

.section-group-media,
.section-group-sections {
    display: grid;
    gap: 20px;
}

.changelog-mount {
    margin-top: 30px;
}

.changelog-root-body {
    display: grid;
    gap: 18px;
}

.changelog-group {
    padding: 0;
    border: 0;
    background: transparent;
}

.changelog-group .section-group-header {
    min-height: 0;
    padding: 0;
}

.changelog-group .section-group-summary {
    font-size: 1rem;
}

.changelog-group .section-group-version {
    margin-right: 8px;
}

.changelog-group .section-group-preview {
    padding: 6px 0 0 0;
}

.changelog-group.is-open .section-group-preview {
    padding-bottom: 0;
}

.changelog-group .section-group-body {
    gap: 14px;
    padding-top: 10px;
}

.changelog-version {
    padding: 0;
    border: 0;
    background: transparent;
}

.changelog-version > .doc-accordion-summary {
    padding: 0 28px 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    border: 0;
    background: transparent;
}

.changelog-version > .doc-accordion-summary::after {
    right: 2px;
}

.changelog-version-body {
    padding: 8px 0 0;
}

.changelog-version-list,
.changelog-version-children {
    display: grid;
    gap: 10px;
}

.changelog-version-label {
    margin: 0 0 10px;
    color: rgba(255, 249, 227, 0.76);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.changelog-depth-2,
.changelog-depth-3,
.changelog-depth-4 {
    margin-left: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.changelog-group .section-body p,
.changelog-group .section-body li {
    color: var(--text-muted);
}

.section-body p {
    margin: 0 0 14px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-quote {
    margin: 0 0 14px;
    padding: 2px 0 2px 14px;
    border-left: 4px solid rgba(255, 249, 227, 0.58);
    background: transparent;
}

.section-quote-text {
    margin: 0;
    color: var(--header-accent);
    line-height: 1.8;
}

.section-body ul {
    margin: 0;
    padding-left: 20px;
}

.section-body ol {
    margin: 0;
    padding-left: 24px;
}

.section-body li {
    margin-bottom: 10px;
}

.footer-links {
    text-align: left;
}

.footer-section-title {
    margin: 0 0 6px;
    color: var(--header-accent);
    font-size: 0.93em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-message {
    margin: 0 0 8px;
    color: var(--text);
    line-height: 1.55;
}

.footer-actions {
    display: inline-flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.copy-text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    color: var(--header-accent);
    font: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.copy-text-button:hover,
.copy-text-button:focus-visible {
    color: var(--text);
    background: transparent;
    border-color: rgba(255, 249, 227, 0.82);
    box-shadow: inset 0 0 0 2px rgba(255, 249, 227, 0.24);
}

.copy-text-button-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-inline-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: currentColor;
    mask: url("assets/icons/mailbox.svg") center / contain no-repeat;
    -webkit-mask: url("assets/icons/mailbox.svg") center / contain no-repeat;
}

.copy-status {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.asset-copy-button {
    flex: 0 0 auto;
}

.footer-copy-button {
    flex-basis: 100%;
    justify-content: flex-start;
    min-width: 0;
    margin-top: 2px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--header-accent);
    font-size: 0.92rem;
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.footer-publisher .footer-link {
    width: fit-content;
}

.footer-email-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.footer-email {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.92rem;
    word-break: break-all;
    flex: 1 1 auto;
    min-width: 0;
}

.footer-copy-button {
    flex: 0 0 auto;
}

.footer-links,
.access-wrap,
.ai-wrap {
    padding-left: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1040px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 14px;
        left: 14px;
        right: 14px;
        z-index: 20;
        height: auto;
        max-height: calc(100vh - 28px);
        padding: 18px;
        transform: translateY(-125%);
        transition: transform 180ms ease;
        border: 1px solid var(--line);
        background: rgba(20, 20, 20, 0.98);
    }

    .sidebar.is-open {
        transform: translateY(0);
    }

    .sidebar-head {
        position: static;
        background: transparent;
    }

    .menu-toggle {
        display: inline-flex;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 25;
        width: fit-content;
    }

    .content {
        padding: 24px 22px 52px;
    }

    .site-header-sidebar .site-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .sidebar-footer > * {
        max-width: none;
    }
}

@media (max-width: 900px) {
    :root {
        --content-max-width: 100%;
    }

    .page-header h2 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        line-height: 1.04;
    }

    .section-group-version {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 720px) {
    .content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-actions {
        gap: 18px;
        justify-content: flex-start;
    }

    .page-header {
        margin-bottom: 28px;
    }

    .page-summary,
    .page-overview p,
    .section-body p,
    .section-body li,
    .media-card-detail,
    .asset-location-path {
        line-height: 1.7;
    }

    .doc-accordion-summary {
        padding: 13px 40px 13px 14px;
        font-size: 0.98rem;
    }

    .doc-accordion-body {
        padding: 0 14px 14px;
    }

    .media-image-frame {
        min-height: 180px;
        padding: 12px;
    }

    .media-card-body,
    .asset-location-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-group-header {
        gap: 10px;
        padding: 12px 14px 8px;
    }

    .section-group-preview {
        padding: 6px 14px 12px;
    }

    .section-group-body {
        gap: 18px;
    }

    .section-group-controls {
        width: 100%;
        order: 3;
    }

    .section-group-control-button {
        flex: 1 1 0;
        justify-content: center;
    }

    .section-group-toggle {
        margin-left: 0;
    }

    .access-actions {
        flex-wrap: wrap;
    }

    .access-actions > .access-action-button:first-child,
    .access-actions > .access-action-button:last-child {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .menu-toggle {
        top: 10px;
        left: 10px;
    }

    .sidebar {
        top: 10px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 20px);
        padding: 16px 14px 18px;
    }

    .home-link {
        min-height: 34px;
    }

    .search-wrap input {
        min-height: 36px;
    }

    .page-header h2 {
        font-size: clamp(1.55rem, 10vw, 2.35rem);
    }

    .page-actions,
    .footer-actions {
        gap: 12px;
    }

    .page-action-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .asset-card-head,
    .copy-text-button-label {
        align-items: flex-start;
    }

    .copy-text-button {
        width: 100%;
        justify-content: space-between;
    }

    .copy-text-button-label {
        min-width: 0;
    }

    .asset-location-path,
    .copy-text-button-label span:last-child {
        overflow-wrap: anywhere;
    }

    .ref-link,
    .page-link {
        min-height: 42px;
    }
}

@media (min-width: 1600px) {
    :root {
        --content-max-width: 1120px;
    }

    .app-shell {
        max-width: 1720px;
    }

    .content {
        padding-right: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .sidebar,
    .group-toggle::before,
    .doc-accordion-summary::after {
        transition: none;
    }
}

/* ===== COMPREHENSIVE MOBILE SUPPORT ===== */

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    body {
        font-size: 14px;
    }

    .menu-toggle,
    button,
    .page-action-link,
    .access-toggle,
    .copy-text-button,
    .ref-link,
    .page-link {
        min-height: 44px;
        touch-action: manipulation;
    }

    .page-header h2 {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }

    .site-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .content {
        padding: 14px 14px 44px;
    }

    .page-summary {
        font-size: 1rem;
    }

    .sidebar {
        padding: 12px 10px 14px;
    }

    .sidebar-head {
        gap: 10px;
        padding-bottom: 12px;
    }

    .search-wrap input {
        min-height: 40px;
        font-size: 16px;
    }

    .access-toggle,
    .page-action-link {
        width: 100%;
        justify-content: center;
    }

    .page-header-sticky {
        padding: 12px 0 10px;
    }
}

@media (max-width: 640px) {
    button,
    .page-action-link,
    .access-toggle,
    .copy-text-button,
    .ref-link,
    .page-link,
    .menu-toggle {
        min-height: 44px;
        touch-action: manipulation;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .section-list {
        gap: 24px;
    }

    .media-gallery {
        gap: 18px;
    }

    .page-header h2 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        z-index: 20;
        height: auto;
        max-height: calc(100vh - 24px);
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(20, 20, 20, 0.98);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .menu-toggle {
        display: inline-flex;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 25;
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .content {
        padding: 20px 18px 48px;
    }

    .page-header h2 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
}

@media (max-width: 1024px) {
    button,
    .page-action-link,
    .access-toggle {
        min-height: 44px;
        touch-action: manipulation;
    }

    .page-header h2 {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .section-list {
        gap: 24px;
    }
}

@media (screen and (viewport-fit: cover)) {
    body {
        padding-top: var(--safe-area-inset-top);
        padding-left: var(--safe-area-inset-left);
        padding-right: var(--safe-area-inset-right);
        padding-bottom: var(--safe-area-inset-bottom);
    }

    .sidebar {
        margin-left: var(--safe-area-inset-left);
        margin-right: var(--safe-area-inset-right);
        margin-top: var(--safe-area-inset-top);
    }

    .menu-toggle {
        top: calc(12px + var(--safe-area-inset-top));
        left: calc(12px + var(--safe-area-inset-left));
    }

    .content {
        padding-left: calc(18px + var(--safe-area-inset-left));
        padding-right: calc(18px + var(--safe-area-inset-right));
        padding-bottom: calc(48px + var(--safe-area-inset-bottom));
    }
}

@media (hover: none) and (pointer: coarse) {
    button,
    a,
    [role="button"],
    .menu-toggle,
    .page-action-link,
    .access-toggle,
    .copy-text-button,
    .ref-link,
    .page-link,
    .group-link,
    .group-toggle,
    .home-link {
        min-height: 44px;
        min-width: 44px;
        padding: max(8px, calc(44px - 1em)) max(8px, calc(44px - 1em));
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    input,
    textarea,
    select {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }
}

@media (prefers-reduced-data: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ===== MOBILE QA PASS ===== */

:root {
    --mobile-nav-offset: 0px;
}

.menu-toggle {
    gap: 12px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-toggle-label {
    line-height: 1;
    white-space: nowrap;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.menu-toggle-icon {
    position: relative;
    width: 18px;
    flex: 0 0 18px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
}

.menu-toggle-icon::before {
    top: -5px;
}

.menu-toggle-icon::after {
    top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.sidebar-backdrop {
    display: none;
}

.content,
.page-header,
.page-header-sticky,
.page-header h2,
.page-summary,
.page-overview,
.page-actions,
.page-assets,
.page-lead-sections,
.section-list,
.media-gallery,
.doc-accordion-summary,
.doc-accordion-body,
.media-card-body,
.asset-location-card,
.section-group-summary,
.section-group-version,
.section-group-controls,
.footer-email-copy,
.footer-email,
.copy-text-button-label {
    min-width: 0;
}

.page-summary,
.page-overview p,
.section-body p,
.section-body li,
.media-card-title,
.media-card-text,
.media-card-detail,
.asset-location-path,
.section-group-summary,
.footer-message,
.footer-email,
.copy-text-button-label span:last-child,
.code-content {
    overflow-wrap: anywhere;
}

.code-block {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1040px) {
    :root {
        --mobile-nav-offset: calc(72px + var(--safe-area-inset-top));
    }

    .app-shell {
        z-index: auto;
    }

    html:has(body.is-sidebar-open),
    html:has(body.is-code-viewer-open) {
        overflow: hidden;
    }

    body.is-sidebar-open,
    body.is-code-viewer-open {
        position: fixed;
        inset: 0;
        width: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    .menu-toggle {
        display: flex;
        position: sticky;
        top: 0;
        left: auto;
        z-index: 35;
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: rgba(20, 20, 20, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 24;
        background: rgba(8, 8, 10, 0.66);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    body.is-sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        top: calc(var(--mobile-nav-offset) + 10px);
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 30;
        height: auto;
        max-height: none;
        padding: 18px;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        background: rgba(20, 20, 20, 0.98);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
        transform: translateY(-16px) scale(0.985);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
    }

    .sidebar.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-head {
        position: static;
        background: transparent;
    }

    .sidebar-utility,
    .sidebar-footer > * {
        max-width: none;
    }

    .content {
        padding: 24px 24px 56px;
    }

    .page-header-sticky {
        top: calc(var(--mobile-nav-offset) + 12px);
    }

    body.is-home-page .page-header-sticky,
    body.is-home-page.is-header-condensed .page-header-sticky {
        top: calc(var(--mobile-nav-offset) + 12px);
    }
}

@media (max-width: 900px) {
    .page-header h2 {
        font-size: clamp(1.7rem, 6.6vw, 2.7rem);
    }

    body.is-home-page .page-header h2 {
        font-size: clamp(2.3rem, 9vw, 3.8rem);
    }

    .page-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-action-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-email-copy {
        flex-wrap: wrap;
    }

    .footer-copy-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    :root {
        --mobile-nav-offset: calc(68px + var(--safe-area-inset-top));
    }

    .content {
        padding: 20px 16px 44px;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .page-header-sticky {
        gap: 10px;
        padding: 16px 0 12px;
        margin-bottom: 12px;
    }

    .page-header h2 {
        margin: 6px 0 10px;
        font-size: clamp(1.6rem, 8.4vw, 2.45rem);
        line-height: 1.05;
        text-wrap: balance;
    }

    .page-summary {
        max-width: none;
        font-size: 0.98rem;
    }

    body.is-home-page .page-header {
        margin-bottom: 28px;
    }

    body.is-home-page .page-header-sticky {
        padding: 22px 18px 18px;
        border-radius: 22px;
    }

    body.is-home-page .page-header h2 {
        max-width: none;
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    body.is-home-page.is-header-condensed .page-header h2 {
        font-size: clamp(0.98rem, 4.2vw, 1.14rem);
    }

    body.is-home-page .page-summary {
        font-size: 1rem;
    }

    .page-overview {
        margin-top: 18px;
        gap: 10px;
    }

    .page-overview p {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .page-pitch {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .page-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-assets {
        gap: 16px;
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .media-gallery {
        gap: 16px;
    }

    .media-image-frame {
        min-height: 150px;
        max-height: 360px;
        padding: 12px;
    }

    .media-image {
        max-height: 320px;
    }

    .doc-accordion-summary {
        padding: 13px 42px 13px 14px;
        font-size: 0.97rem;
        line-height: 1.45;
    }

    .doc-accordion-body {
        padding: 0 14px 14px;
    }

    .section-list {
        gap: 20px;
    }

    .section-group-header {
        align-items: flex-start;
        gap: 10px;
        padding: 14px 14px 8px;
    }

    .section-group-summary {
        width: 100%;
        font-size: 1rem;
    }

    .section-group-version {
        width: 100%;
        margin: -4px 0 0;
    }

    .section-group-preview {
        padding: 6px 14px 12px;
    }

    .section-group-body {
        gap: 18px;
    }

    .section-group-controls {
        width: 100%;
        order: 3;
    }

    .section-group-control-button {
        flex: 1 1 140px;
        min-height: 38px;
        justify-content: center;
    }

    .section-group-toggle {
        width: 38px;
        min-height: 38px;
        margin-left: 0;
    }

    .changelog-depth-2,
    .changelog-depth-3,
    .changelog-depth-4 {
        margin-left: 10px;
        padding-left: 10px;
    }

    .access-actions {
        flex-wrap: wrap;
    }

    .code-block {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .code-content {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .page-comment-hotspot {
        display: none;
    }

    .code-block-inline {
        display: none;
    }

    .mobile-code-card {
        display: grid;
    }

    .mobile-code-viewer:not([hidden]) {
        display: grid;
    }
}

@media (max-width: 560px) {
    :root {
        --mobile-nav-offset: calc(64px + var(--safe-area-inset-top));
    }

    body {
        font-size: 15px;
    }

    .menu-toggle {
        padding: 12px 14px;
    }

    .sidebar {
        top: calc(var(--mobile-nav-offset) + 8px);
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px;
        border-radius: 16px;
    }

    .site-header-sidebar .site-title {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }

    .search-wrap input {
        min-height: 44px;
        font-size: 16px;
    }

    .content {
        padding: 18px 14px 40px;
    }

    .page-header h2 {
        font-size: clamp(1.42rem, 9vw, 2.05rem);
    }

    body.is-home-page .page-header-sticky {
        padding: 20px 14px 16px;
        border-radius: 18px;
    }

    body.is-home-page .page-header h2 {
        font-size: clamp(1.8rem, 12vw, 2.8rem);
    }

    .page-action-link,
    .footer-copy-button,
    .footer-link,
    .copy-text-button {
        width: 100%;
    }

    .copy-text-button {
        justify-content: space-between;
    }

    .footer-actions {
        width: 100%;
        gap: 10px;
    }

    .footer-email-copy {
        align-items: stretch;
        gap: 10px;
    }

    .footer-copy-button {
        justify-content: center;
    }

    .asset-location-card,
    .media-card-body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .media-image-frame {
        min-height: 132px;
        padding: 10px;
    }

    .media-image {
        max-height: 260px;
    }

    .mobile-code-card {
        padding: 12px;
        border-radius: 12px;
    }

    .mobile-code-preview {
        padding: 10px 12px;
    }

    .mobile-code-card-title,
    .mobile-code-viewer-title {
        font-size: 0.96rem;
    }

    .mobile-code-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-code-viewer {
        padding: 10px;
    }

    .mobile-code-viewer-header {
        padding: 14px 14px 12px;
    }

    .mobile-code-viewer-body {
        padding: 12px;
    }

    .mobile-code-viewer-block {
        padding: 12px;
        max-height: min(72vh, 520px);
    }
}
