:root {
    --wide: #0b1220;
    --shell: #dfe5f0;
    --size: #fff;
    --paper: #ffb300;
    --foot: #111;
    --tile: #d99700;
    --bold: #070b16;
    --soft: #fff;
    --alt: color-mix(in srgb, var(--shell) 6%, var(--wide));
    --zone: color-mix(in srgb, var(--shell) 3%, var(--wide));
    --deep: color-mix(in srgb, var(--shell) 18%, var(--wide));
    --lift: var(--shell);
    --space: 1160px;
    --head: 78ch;
    --band: 14px;
    --fill: 8px;
    --edge: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
    --flow: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --flat: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --body: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
    --depth: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
}

*::after, *::before, * {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--wide);
    color: var(--shell);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: var(--flow);
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.crest {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bold);
    color: var(--soft);
}

.tray-view, .crest-light, .segment-foot, .weave-plain, .cluster-meta {
    width: min(100% - 2rem, var(--space));
    margin-inline: auto;
}

.crest-light {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 60px;
    padding-block: 0.5rem;
}

.set {
    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;
}

.set img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.plane {
    display: flex;
    gap: 0.15rem;
    margin-inline-end: auto;
    min-width: 0;
}

.plane a {
    padding: 0.4rem 0.7rem;
    border-radius: var(--fill);
    text-decoration: none;
    color: inherit;
    opacity: 0.82;
    white-space: nowrap;
    font-size: 0.92rem;
}

.plane a:hover {
    background: color-mix(in srgb, var(--soft) 14%, transparent);
    opacity: 1;
}

.plane:empty {
    display: none;
}

.plane:empty + .crest-info {
    margin-inline-start: auto;
}

.crest-info {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.slot {
    display: none;
    position: relative;
    flex-shrink: 0;
}

.slot-outer {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--soft) 40%, transparent);
    border-radius: var(--fill);
}

.slot-outer::-webkit-details-marker {
    display: none;
}

.slot-outer span, .slot-outer span::before, .slot-outer span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.slot-outer span {
    position: relative;
}

.slot-outer span::before {
    position: absolute;
    top: -6px;
}

.slot-outer span::after {
    position: absolute;
    top: 6px;
}

.slot-first {
    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(--bold);
    border: 1px solid color-mix(in srgb, var(--soft) 20%, transparent);
    border-radius: var(--band);
    box-shadow: var(--edge);
}

.slot-first a {
    padding: 0.6rem 0.7rem;
    border-radius: var(--fill);
    text-decoration: none;
    color: var(--soft);
}

.slot-first a:hover {
    background: color-mix(in srgb, var(--soft) 12%, transparent);
}

.slot-first .unit {
    margin-top: 0.4rem;
    color: var(--soft);
    border-color: color-mix(in srgb, var(--soft) 40%, transparent);
}

.crest .unit--stub {
    color: inherit;
    border-color: color-mix(in srgb, var(--soft) 45%, transparent);
}

.crest .unit--stub:hover {
    background: color-mix(in srgb, var(--soft) 14%, transparent);
}

.tray {
    background: color-mix(in srgb, var(--soft) 8%, var(--bold));
    border-top: 1px solid color-mix(in srgb, var(--soft) 12%, transparent);
    font-size: 0.9rem;
}

.tray-view {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tray-view::-webkit-scrollbar {
    display: none;
}

.tray a {
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    color: var(--soft);
    opacity: 0.8;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tray a:hover {
    opacity: 1;
    border-bottom-color: var(--paper);
}

.unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--cool, transparent);
    border-radius: var(--fill);
    padding: 0.6rem 1.1rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background: var(--paper);
    color: var(--foot);
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.unit:hover {
    background: var(--tile);
}

.unit:active {
    transform: translateY(1px);
}

.unit--stub {
    background: transparent;
    color: var(--size);
    border-color: var(--deep);
}

.unit--stub:hover {
    background: var(--alt);
}

.unit--wide {
    padding: 0.9rem 1.8rem;
    font-size: var(--flat);
}

:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 2px;
}

.widget h2, .area h3, .area h2, .cluster-info, .braid, .widget h3 {
    color: var(--size);
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.braid {
    font-size: var(--depth);
    margin: 0 0 1rem;
}

.cluster-info {
    font-size: var(--body);
    margin: 0 0 1.25rem;
}

.widget h3, .area h3 {
    font-size: var(--flat);
    margin: 1.75rem 0 0.5rem;
}

.area p, .widget p {
    margin: 0 0 1rem;
}

.widget > :last-child, .area > :last-child {
    margin-bottom: 0;
}

.widget a, .area a {
    color: color-mix(in srgb, var(--paper) 72%, var(--size));
    text-underline-offset: 3px;
}

.ribbon {
    display: block;
}

.cluster {
    padding-block: clamp(2rem, 1.4rem + 2vw, 3.5rem);
    scroll-margin-top: 72px;
}

.ribbon > .cluster:not(.segment):nth-of-type(odd) {
    background: var(--alt);
}

.area {
    max-width: var(--head);
}

.cluster--list .area ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.cluster--list .area ul > li {
    position: relative;
    padding-inline-start: 1.9rem;
    padding-block: 0.15rem;
}

.cluster--list .area 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(--paper);
    border-bottom: 2px solid var(--paper);
    transform: rotate(-45deg);
}

.cluster--list .area ol {
    counter-reset: step;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.cluster--list .area ol > li {
    counter-increment: step;
    position: relative;
    padding-inline-start: 2.6rem;
}

.cluster--list .area 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(--paper);
    color: var(--foot);
    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(--deep);
    border-inline-start: 3px solid var(--lift);
    border-radius: 0 var(--fill) var(--fill) 0;
    background: var(--alt);
    font-size: 0.95rem;
}

.note p {
    margin: 0 0 0.6rem;
}

.note > :last-child {
    margin-bottom: 0;
}

.note strong {
    color: var(--size);
}

.note--disclosure {
    color: var(--lift);
    font-size: 0.88rem;
    background: transparent;
    border-inline-start-color: var(--deep);
}

.note--warning {
    border-inline-start-color: var(--paper);
    background: color-mix(in srgb, var(--paper) 10%, var(--wide));
}

.note--takeaway {
    font-variant-numeric: tabular-nums;
    border-inline-start-color: var(--size);
}

.note--rg {
    border: 1px solid color-mix(in srgb, var(--size) 30%, var(--deep));
    border-radius: var(--band);
    background: var(--zone);
}

.note--rg a {
    font-weight: 600;
}

.note--independent {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--lift);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--deep);
    border-radius: 0;
    padding: 1rem 0 0;
}

.widget blockquote, .area blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid var(--paper);
    border-radius: 0 var(--fill) var(--fill) 0;
    background: var(--wide);
    color: var(--shell);
    font-size: 0.95rem;
}

.widget blockquote p, .area blockquote p {
    margin: 0 0 0.6rem;
}

.widget blockquote > :last-child, .area blockquote > :last-child {
    margin-bottom: 0;
}

.widget blockquote strong, .area blockquote strong {
    color: var(--size);
}

.area hr {
    border: 0;
    border-top: 1px solid var(--deep);
    margin: 2rem 0;
}

.area table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    background: var(--zone);
    border: 1px solid var(--deep);
    border-radius: var(--band);
    overflow: hidden;
}

.cluster--table .area {
    max-width: none;
    overflow-x: auto;
}

.area th, .area td {
    border-bottom: 1px solid var(--deep);
    padding: 0.7rem 0.9rem;
    text-align: start;
    vertical-align: top;
}

.area caption {
    caption-side: top;
    text-align: start;
    padding: 0 0 0.6rem;
    font-weight: 700;
    color: var(--size);
}

.area thead th {
    background: color-mix(in srgb, var(--paper) 16%, var(--alt));
    color: var(--shell);
    font-weight: 700;
    white-space: nowrap;
}

.area tbody tr:last-child td {
    border-bottom: 0;
}

.area tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--shell) 3%, transparent);
}

.module {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: 2rem;
    align-items: start;
}

.module-top {
    border: 1px solid var(--deep);
    border-radius: var(--band);
    box-shadow: var(--edge);
    width: 100%;
}

.segment {
    position: relative;
    padding-block: clamp(2rem, 1.2rem + 3vw, 4rem);
    background: var(--bold);
    isolation: isolate;
}

.segment::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--base, none);
    background-size: cover;
    background-position: center;
}

.belt-cell {
    margin-top: 1.25rem;
    text-align: center;
}

.belt-cell a {
    color: var(--paper);
    font-weight: 600;
}

.node {
    text-align: center;
}

.node-view {
    font-size: clamp(3.5rem, 12vw, 6rem);
    line-height: 1;
    font-weight: 800;
    color: var(--paper);
    margin-bottom: 0.5rem;
}

.node-side {
    max-width: 46ch;
    margin-inline: auto;
    color: var(--lift);
}

.node-on {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

@media (max-width: 700px) {
    .segment::before {
        background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--warm, var(--base, none));
    }

}
.segment-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    grid-template-areas: "title offer" "text offer";
    align-content: start;
    gap: 0 2rem;
}

.segment .braid {
    grid-area: title;
    color: #fff;
}

.segment-less {
    grid-area: text;
    color: #f2f4f8;
    max-width: 62ch;
}

.segment .widget {
    margin-bottom: 1.5rem;
}

.segment-plain {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.pocket {
    grid-area: offer;
    background: var(--wide);
    border: 1px solid color-mix(in srgb, var(--paper) 40%, var(--deep));
    border-radius: var(--band);
    box-shadow: var(--edge);
    overflow: hidden;
    align-self: start;
}

.pocket .unit {
    width: 100%;
}

.pocket-wide {
    display: grid;
    place-items: center;
    min-height: 74px;
    padding: 0.9rem 1.25rem;
    background: color-mix(in srgb, var(--paper) 12%, var(--wide));
    color: var(--size);
    border-bottom: 3px solid var(--paper);
}

.pocket-wide img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.pocket-soft {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem;
    text-align: center;
}

.pocket-cell {
    font-weight: 800;
    font-size: var(--flat);
    color: inherit;
    text-align: center;
}

.pocket-flat {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--lift);
    margin: 0;
}

.pocket-bold {
    font-size: var(--body);
    font-weight: 800;
    line-height: 1.15;
    color: var(--size);
    margin: 0;
    text-wrap: balance;
}

.pocket-line {
    font-size: 0.8rem;
    color: var(--lift);
    margin: 0;
}

.pane {
    padding-block: 1.5rem;
}

.part {
    border: 1px solid var(--deep);
    border-radius: var(--band);
    background: var(--zone);
    padding: 0.5rem 1.1rem;
}

.part-lead {
    cursor: pointer;
    font-weight: 700;
    color: var(--size);
    padding-block: 0.6rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.part-lead::-webkit-details-marker {
    display: none;
}

.part-lead::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-inline-end: 2px solid var(--paper);
    border-bottom: 2px solid var(--paper);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.part[open] .part-lead::before {
    transform: rotate(-135deg);
}

.part-flat {
    columns: 2;
    gap: 2rem;
    margin: 0 0 0.75rem;
    padding-inline-start: 1.2rem;
    font-size: 0.95rem;
}

.part-flat li {
    break-inside: avoid;
    margin-bottom: 0.3rem;
}

.part-flat a {
    color: var(--lift);
    text-underline-offset: 3px;
}

.part-flat a:hover {
    color: var(--size);
}

.zone {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pill {
    display: flex;
    flex-direction: column;
    background: var(--zone);
    border: 1px solid var(--deep);
    border-radius: var(--band);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.pill:hover {
    border-color: var(--paper);
    transform: translateY(-2px);
}

.pill-narrow {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--alt);
}

.pill-narrow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pill-line {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem;
    margin-top: auto;
}

.pill-lead {
    font-weight: 600;
    color: var(--size);
    line-height: 1.3;
    margin: 0;
}

.pill .unit {
    width: 100%;
    padding-block: 0.5rem;
    font-size: 0.95rem;
}

.frame2-copy {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loop {
    background: var(--wide);
    border: 1px solid var(--deep);
    border-radius: var(--band);
    padding: 1.1rem 1.2rem;
}

.loop-view {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.loop-stub {
    font-weight: 700;
    color: var(--size);
}

.loop-on {
    color: var(--paper);
    font-weight: 700;
    white-space: nowrap;
}

.loop-lead {
    margin: 0;
    color: var(--lift);
}

.roof-dark {
    display: grid;
    gap: 0.5rem;
    max-width: var(--head);
}

.roof-sub {
    border: 1px solid var(--deep);
    border-radius: var(--fill);
    background: var(--zone);
    padding: 0 1.1rem;
}

.roof-last {
    cursor: pointer;
    font-weight: 600;
    color: var(--size);
    padding-block: 0.9rem;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.roof-last::-webkit-details-marker {
    display: none;
}

.roof-last::before {
    content: "+";
    color: var(--paper);
    font-weight: 700;
    line-height: 1.4;
    flex-shrink: 0;
}

.roof-sub[open] .roof-last::before {
    content: "−";
}

.roof-narrow {
    color: var(--lift);
    padding-bottom: 1rem;
}

.roof-narrow > :first-child {
    margin-top: 0;
}

.roof-narrow > :last-child {
    margin-bottom: 0;
}

.chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem;
    border-radius: var(--band);
    background: color-mix(in srgb, var(--paper) 12%, var(--alt));
    border: 1px solid color-mix(in srgb, var(--paper) 35%, var(--deep));
}

.chip-outer {
    margin: 0;
    font-size: var(--flat);
    font-weight: 800;
    color: var(--size);
    text-wrap: balance;
}

.chip-large {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--lift);
}

.weave {
    border-top: 1px solid var(--deep);
    background: var(--wide);
    color: var(--shell);
    padding-block: 2rem 6rem;
}

.weave-plain {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--deep);
}

.weave-thumb {
    margin-inline-end: auto;
    font-weight: 700;
    color: var(--size);
}

.weave-thumb img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.weave-large {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.weave-large:empty {
    display: none;
}

.weave-large a {
    text-decoration: none;
}

.weave-large a:hover {
    text-decoration: underline;
}

.weave-view {
    width: min(100% - 2rem, var(--space));
    margin-inline: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    display: grid;
    gap: 0.5rem;
}

.weave-view p {
    margin: 0;
}

.weave-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer2 {
    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;
}

.ring {
    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: var(--bold);
    color: var(--soft);
    border-top: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
}

.ring-shut {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.ring-icon {
    font-weight: 800;
    color: var(--soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ring-bottom {
    font-size: 0.75rem;
    opacity: 0.7;
}

.ring .unit {
    margin-inline-start: auto;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .segment-foot {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "offer" "text";
        gap: 1.25rem;
    }

    .module {
        grid-template-columns: 1fr;
    }

    .module-top {
        max-width: 260px;
        margin-inline: auto;
    }

}
@media (max-width: 700px) {
    .part-flat {
        columns: 1;
    }

    .zone {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 0.75rem;
    }

}
@media (max-width: 640px) {
    .crest {
        position: static;
    }

    .crest-light {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
        padding-block: 0.6rem;
    }

    .crest-light {
        flex-wrap: nowrap;
    }

    .tray, .crest-info .unit--stub, .plane {
        display: none;
    }

    .plane + .crest-info {
        margin-inline-start: auto;
    }

    .slot {
        display: block;
        order: 3;
    }

    .crest-info {
        margin-inline-start: auto;
    }

    .crest-info .unit {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .cluster {
        padding-block: 1.75rem;
    }

    .chip, .pocket-soft {
        padding: 1.15rem;
    }

    .segment-less .unit--wide, .chip .unit--wide {
        width: 100%;
    }

    .ring-bottom {
        display: none;
    }

}
@media (prefers-reduced-motion: reduce) {
    *::before, * {
        transition: none !important;
    }

}
