:root {
    --stroke: #0b1220;
    --head: #dfe5f0;
    --fill: #ffffff;
    --plain: #ffb300;
    --bold: #111111;
    --card: #d99700;
    --flow: #070b16;
    --deep: #ffffff;
    --round: color-mix(in srgb, var(--head) 6%, var(--stroke));
    --base: color-mix(in srgb, var(--head) 3%, var(--stroke));
    --zone: color-mix(in srgb, var(--head) 18%, var(--stroke));
    --thin: color-mix(in srgb, var(--head) 68%, var(--stroke));
    --band: 1160px;
    --dim: 78ch;
    --warm: 14px;
    --flat: 8px;
    --shell: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
    --line: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --frame: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --ink: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
    --tile: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
}
*::after, *::before, * {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--stroke);
    color: var(--head);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: var(--line);
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
}
.ribbon {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--flow);
    color: var(--deep);
}
.quarter-cell, .ribbon-soft, .chain-first, .well-copy, .caption-last {
    width: min(100% - 2rem, var(--band));
    margin-inline: auto;
}
.ribbon-soft {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 60px;
    padding-block: 0.5rem;
}
.region {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.region img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.header2 {
    display: flex;
    gap: 0.15rem;
    margin-inline-end: auto;
    min-width: 0;
}
.header2 a {
    padding: 0.4rem 0.7rem;
    border-radius: var(--flat);
    text-decoration: none;
    color: inherit;
    opacity: 0.82;
    white-space: nowrap;
    font-size: 0.92rem;
}
.header2 a:hover {
    background: color-mix(in srgb, var(--deep) 14%, transparent);
    opacity: 1;
}
.header2:empty {
    display: none;
}
.header2:empty + .ribbon-sub {
    margin-inline-start: auto;
}
.ribbon-sub {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.stack {
    display: none;
    position: relative;
    flex-shrink: 0;
}
.stack-image {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--deep) 40%, transparent);
    border-radius: var(--flat);
}
.stack-image::-webkit-details-marker {
    display: none;
}
.stack-image span::after, .stack-image span, .stack-image span::before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.stack-image span {
    position: relative;
}
.stack-image span::before {
    position: absolute;
    top: -6px;
}
.stack-image span::after {
    position: absolute;
    top: 6px;
}
.stack-light {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.5rem);
    z-index: 25;
    min-width: 14rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--flow);
    border: 1px solid color-mix(in srgb, var(--deep) 20%, transparent);
    border-radius: var(--warm);
    box-shadow: var(--shell);
}
.stack-light a {
    padding: 0.6rem 0.7rem;
    border-radius: var(--flat);
    text-decoration: none;
    color: var(--deep);
}
.stack-light a:hover {
    background: color-mix(in srgb, var(--deep) 12%, transparent);
}
.stack-light .marker {
    margin-top: 0.4rem;
    color: var(--deep);
    border-color: color-mix(in srgb, var(--deep) 40%, transparent);
}
.ribbon .marker-figure {
    color: inherit;
    border-color: color-mix(in srgb, var(--deep) 45%, transparent);
}
.ribbon .marker-figure:hover {
    background: color-mix(in srgb, var(--deep) 14%, transparent);
}
.quarter {
    background: color-mix(in srgb, var(--deep) 8%, var(--flow));
    border-top: 1px solid color-mix(in srgb, var(--deep) 12%, transparent);
    font-size: 0.9rem;
}
.quarter-cell {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.quarter-cell::-webkit-scrollbar {
    display: none;
}
.quarter a {
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    color: var(--deep);
    opacity: 0.8;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.quarter a:hover {
    opacity: 1;
    border-bottom-color: var(--plain);
}
.marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--main, transparent);
    border-radius: var(--flat);
    padding: 0.6rem 1.1rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background: var(--plain);
    color: var(--bold);
    transition: background-color 0.15s ease, transform 0.05s ease;
}
.marker:hover {
    background: var(--card);
}
.marker:active {
    transform: translateY(1px);
}
.marker-figure {
    background: transparent;
    color: var(--fill);
    border-color: var(--zone);
}
.marker-figure:hover {
    background: var(--round);
}
.marker-alt {
    padding: 0.9rem 1.8rem;
    font-size: var(--frame);
}
:focus-visible {
    outline: 2px solid var(--plain);
    outline-offset: 2px;
}
.layer h3, .record h2, .record h3, .window, .layer h2, .well-on {
    color: var(--fill);
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.window {
    font-size: var(--tile);
    margin: 0 0 1rem;
}
.well-on {
    font-size: var(--ink);
    margin: 0 0 1.25rem;
}
.record h3, .layer h3 {
    font-size: var(--frame);
    margin: 1.75rem 0 0.5rem;
}
.record p, .layer p {
    margin: 0 0 1rem;
}
.layer > :last-child, .record > :last-child {
    margin-bottom: 0;
}
.layer a, .record a {
    color: color-mix(in srgb, var(--plain) 72%, var(--fill));
    text-underline-offset: 3px;
}
.pill {
    display: block;
}
.well {
    padding-block: clamp(2rem, 1.4rem + 2vw, 3.5rem);
    scroll-margin-top: 72px;
}
.pill > .well:not(.caption):nth-of-type(odd) {
    background: var(--round);
}
.record {
    max-width: var(--dim);
}
.well-list .record ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
}
.well-list .record ul > li {
    position: relative;
    padding-inline-start: 1.9rem;
    padding-block: 0.15rem;
}
.well-list .record ul > li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 0.75rem;
    height: 0.4rem;
    border-inline-start: 2px solid var(--plain);
    border-bottom: 2px solid var(--plain);
    transform: rotate(-45deg);
}
.well-list .record ol {
    counter-reset: step;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.well-list .record ol > li {
    counter-increment: step;
    position: relative;
    padding-inline-start: 2.6rem;
}
.well-list .record ol > li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--plain);
    color: var(--bold);
    font-weight: 700;
    font-size: 0.9rem;
    display: grid;
    place-items: center;
}
.note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--zone);
    border-inline-start: 3px solid var(--thin);
    border-radius: 0 var(--flat) var(--flat) 0;
    background: var(--round);
    font-size: 0.95rem;
}
.note p {
    margin: 0 0 0.6rem;
}
.note > :last-child {
    margin-bottom: 0;
}
.note strong {
    color: var(--fill);
}
.note--disclosure {
    color: var(--thin);
    font-size: 0.88rem;
    background: transparent;
    border-inline-start-color: var(--zone);
}
.note--warning {
    border-inline-start-color: var(--plain);
    background: color-mix(in srgb, var(--plain) 10%, var(--stroke));
}
.note--takeaway {
    font-variant-numeric: tabular-nums;
    border-inline-start-color: var(--fill);
}
.note--rg {
    border: 1px solid color-mix(in srgb, var(--fill) 30%, var(--zone));
    border-radius: var(--warm);
    background: var(--base);
}
.note--rg a {
    font-weight: 600;
}
.note--independent {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--thin);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--zone);
    border-radius: 0;
    padding: 1rem 0 0;
}
.record blockquote, .layer blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid var(--plain);
    border-radius: 0 var(--flat) var(--flat) 0;
    background: var(--round);
    color: var(--thin);
    font-size: 0.95rem;
}
.layer blockquote p, .record blockquote p {
    margin: 0 0 0.6rem;
}
.layer blockquote > :last-child, .record blockquote > :last-child {
    margin-bottom: 0;
}
.layer blockquote strong, .record blockquote strong {
    color: var(--fill);
}
.record hr {
    border: 0;
    border-top: 1px solid var(--zone);
    margin: 2rem 0;
}
.record table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    background: var(--base);
    border: 1px solid var(--zone);
    border-radius: var(--warm);
    overflow: hidden;
}
.well-table .record {
    max-width: none;
    overflow-x: auto;
}
.record td, .record th {
    border-bottom: 1px solid var(--zone);
    padding: 0.7rem 0.9rem;
    text-align: start;
    vertical-align: top;
}
.record caption {
    caption-side: top;
    text-align: start;
    padding: 0 0 0.6rem;
    font-weight: 700;
    color: var(--fill);
}
.record thead th {
    background: color-mix(in srgb, var(--plain) 16%, var(--round));
    color: var(--fill);
    font-weight: 700;
    white-space: nowrap;
}
.record tbody tr:last-child td {
    border-bottom: 0;
}
.record tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--head) 3%, transparent);
}
.track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: 2rem;
    align-items: start;
}
.track-narrow {
    border: 1px solid var(--zone);
    border-radius: var(--warm);
    box-shadow: var(--shell);
    width: 100%;
}
.caption {
    position: relative;
    padding-block: clamp(2rem, 1.2rem + 3vw, 4rem);
    background: var(--flow);
    isolation: isolate;
}
.caption::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--size, none);
    background-size: cover;
    background-position: center;
}
.post-top {
    margin-top: 1.25rem;
    text-align: center;
}
.post-top a {
    color: var(--plain);
    font-weight: 600;
}
.zone {
    text-align: center;
}
.zone-view {
    font-size: clamp(3.5rem, 12vw, 6rem);
    line-height: 1;
    font-weight: 800;
    color: var(--plain);
    margin-bottom: 0.5rem;
}
.zone-dark {
    max-width: 46ch;
    margin-inline: auto;
    color: var(--thin);
}
.zone-icon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
@media (max-width: 700px) {
    .caption::before {
        background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--lift, var(--size, none));
    }
}
.caption-last {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    grid-template-areas: "title offer" "text offer";
    align-content: start;
    gap: 0 2rem;
}
.caption .window {
    grid-area: title;
    color: #ffffff;
}
.caption-cell {
    grid-area: text;
    color: #f2f4f8;
    max-width: 62ch;
}
.caption .layer {
    margin-bottom: 1.5rem;
}
.caption-meta {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    opacity: 0.75;
}
.tag {
    grid-area: offer;
    background: var(--stroke);
    border: 1px solid color-mix(in srgb, var(--plain) 40%, var(--zone));
    border-radius: var(--warm);
    box-shadow: var(--shell);
    overflow: hidden;
    align-self: start;
}
.tag .marker {
    width: 100%;
}
.tag-large {
    display: grid;
    place-items: center;
    min-height: 74px;
    padding: 0.9rem 1.25rem;
    background: color-mix(in srgb, var(--plain) 22%, var(--stroke));
    color: var(--fill);
    border-bottom: 3px solid var(--plain);
}
.tag-large img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.tag-foot {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem;
    text-align: center;
}
.tag-bottom {
    font-weight: 800;
    font-size: var(--frame);
    color: inherit;
    text-align: center;
}
.tag-outer {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--thin);
    margin: 0;
}
.tag-icon {
    font-size: var(--ink);
    font-weight: 800;
    line-height: 1.15;
    color: var(--fill);
    margin: 0;
    text-wrap: balance;
}
.tag-thumb {
    font-size: 0.8rem;
    color: var(--thin);
    margin: 0;
}
.summary {
    padding-block: 1.5rem;
}
.step {
    border: 1px solid var(--zone);
    border-radius: var(--warm);
    background: var(--base);
    padding: 0.5rem 1.1rem;
}
.step-large {
    cursor: pointer;
    font-weight: 700;
    color: var(--fill);
    padding-block: 0.6rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.step-large::-webkit-details-marker {
    display: none;
}
.step-large::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-inline-end: 2px solid var(--plain);
    border-bottom: 2px solid var(--plain);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.step[open] .step-large::before {
    transform: rotate(-135deg);
}
.step-flat {
    columns: 2;
    gap: 2rem;
    margin: 0 0 0.75rem;
    padding-inline-start: 1.2rem;
    font-size: 0.95rem;
}
.step-flat li {
    break-inside: avoid;
    margin-bottom: 0.3rem;
}
.step-flat a {
    color: var(--thin);
    text-underline-offset: 3px;
}
.step-flat a:hover {
    color: var(--fill);
}
.segment {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.frame {
    display: flex;
    flex-direction: column;
    background: var(--base);
    border: 1px solid var(--zone);
    border-radius: var(--warm);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.frame:hover {
    border-color: var(--plain);
    transform: translateY(-2px);
}
.frame-info {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--round);
}
.frame-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.frame-shut {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem;
    margin-top: auto;
}
.frame-top {
    font-weight: 600;
    color: var(--fill);
    line-height: 1.3;
    margin: 0;
}
.frame .marker {
    width: 100%;
    padding-block: 0.5rem;
    font-size: 0.95rem;
}
.leaf-copy {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.case {
    background: var(--stroke);
    border: 1px solid var(--zone);
    border-radius: var(--warm);
    padding: 1.1rem 1.2rem;
}
.case-plain {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.case-alt {
    font-weight: 700;
    color: var(--fill);
}
.case-bottom {
    color: var(--plain);
    font-weight: 700;
    white-space: nowrap;
}
.case-on {
    margin: 0;
    color: var(--thin);
}
.lattice-less {
    display: grid;
    gap: 0.5rem;
    max-width: var(--dim);
}
.lattice-last {
    border: 1px solid var(--zone);
    border-radius: var(--flat);
    background: var(--base);
    padding: 0 1.1rem;
}
.lattice-light {
    cursor: pointer;
    font-weight: 600;
    color: var(--fill);
    padding-block: 0.9rem;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.lattice-light::-webkit-details-marker {
    display: none;
}
.lattice-light::before {
    content: "+";
    color: var(--plain);
    font-weight: 700;
    line-height: 1.4;
    flex-shrink: 0;
}
.lattice-last[open] .lattice-light::before {
    content: "−";
}
.lattice-plain {
    color: var(--thin);
    padding-bottom: 1rem;
}
.lattice-plain > :first-child {
    margin-top: 0;
}
.lattice-plain > :last-child {
    margin-bottom: 0;
}
.ledge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem;
    border-radius: var(--warm);
    background: color-mix(in srgb, var(--plain) 12%, var(--round));
    border: 1px solid color-mix(in srgb, var(--plain) 35%, var(--zone));
}
.ledge-icon {
    margin: 0;
    font-size: var(--frame);
    font-weight: 800;
    color: var(--fill);
    text-wrap: balance;
}
.ledge-small {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--thin);
}
.chain {
    border-top: 1px solid var(--zone);
    background: var(--round);
    color: var(--thin);
    padding-block: 2rem 6rem;
}
.chain-first {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--zone);
}
.chain-meta {
    margin-inline-end: auto;
    font-weight: 700;
    color: var(--fill);
}
.chain-meta img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.chain-shut {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}
.chain-shut:empty {
    display: none;
}
.chain-shut a {
    text-decoration: none;
}
.chain-shut a:hover {
    text-decoration: underline;
}
.chain-lead {
    width: min(100% - 2rem, var(--band));
    margin-inline: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    display: grid;
    gap: 0.5rem;
}
.chain-lead p {
    margin: 0;
}
.chain-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.root {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.78rem;
}
.row {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--plain) 14%, var(--flow));
    color: var(--deep);
    border-top: 1px solid color-mix(in srgb, var(--plain) 45%, transparent);
}
.row-open {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.row-figure {
    font-weight: 800;
    color: var(--deep);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.row-info {
    font-size: 0.75rem;
    opacity: 0.7;
}
.row .marker {
    margin-inline-start: auto;
    flex-shrink: 0;
}
@media (max-width: 960px) {
    .caption-last {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "offer" "text";
        gap: 1.25rem;
    }
    .track {
        grid-template-columns: 1fr;
    }
    .track-narrow {
        max-width: 260px;
        margin-inline: auto;
    }
}
@media (max-width: 700px) {
    .step-flat {
        columns: 1;
    }
    .segment {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 0.75rem;
    }
}
@media (max-width: 640px) {
    .ribbon {
        position: static;
    }
    .ribbon-soft {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
        padding-block: 0.6rem;
    }
    .ribbon-soft {
        flex-wrap: nowrap;
    }
    .ribbon-sub .marker-figure, .header2, .quarter {
        display: none;
    }
    .header2 + .ribbon-sub {
        margin-inline-start: auto;
    }
    .stack {
        display: block;
        order: 3;
    }
    .ribbon-sub {
        margin-inline-start: auto;
    }
    .ribbon-sub .marker {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    .well {
        padding-block: 1.75rem;
    }
    .tag-foot, .ledge {
        padding: 1.15rem;
    }
    .caption-cell .marker-alt, .ledge .marker-alt {
        width: 100%;
    }
    .row-info {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before {
        transition: none !important;
    }
}
