:root {
    --ink: #101014;
    --paper: #F3EFE7;
    --amber: var(--ghost-accent-color, #E8A93B);
    --scrim: rgba(8, 8, 10, 0.86);
    --display: var(--gh-font-heading, "Fraunces", Georgia, serif);
    --utility: var(--gh-font-body, "Archivo", -apple-system, sans-serif);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: var(--utility);
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: auto; /* our JS drives the animated transitions directly */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}
html::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- frame: constrains layout to a phone-width column on desktop ---------- */
.frame {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 661px) {
    body { background: #ffffff; }
    .frame { max-width: 580px; }
}

/* ---------- top bar ---------- */
.site-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (max-width: 660px) {
    .site-bar { padding-right: 24px; }
}
.site-bar--hidden {
    transform: translateY(-100%) translateZ(0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (min-width: 661px) {
    .site-bar { left: 50%; right: auto; width: 100%; max-width: 580px; transform: translateX(-50%); padding-right: 28px; }
    .site-bar--hidden { transform: translateX(-50%) translateY(-100%) !important; }
}
.site-bar__mark {
    color: var(--paper);
    text-decoration: none;
    font-family: "Inter", var(--utility);
    font-weight: 700;
    font-size: 18px;
    pointer-events: auto;
    position: relative;
    top: -3px;
}
.people-nav-open .site-bar__mark {
    color: var(--ink);
    text-shadow: none;
}
.post-plain-header .site-bar__mark {
    color: var(--ink);
    text-shadow: none;
}
.page-features .site-bar__mark {
    color: var(--ink);
    text-shadow: none;
}
.page-features .gh-burger::before,
.page-features .gh-burger::after {
    background-color: var(--ink);
}
.site-bar__tag {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.9;
}

/* ---------- feed: custom transform-driven paging (one full-screen post per swipe, we control it) ---------- */
.feed {
    position: fixed;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}
.pull-refresh-indicator {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(243,239,231,0.35);
    border-top-color: var(--paper);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}
.feed.is-pulling-refresh .pull-refresh-indicator {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(180deg);
}
.feed-track {
    position: relative;
    width: 100%;
    will-change: transform;
}

.feed-item {
    position: relative;
    width: 100%;
}
@media (min-width: 661px) {
    .feed { left: 50%; right: auto; width: 100%; max-width: 580px; transform: translateX(-50%); }
}

.feed-item__link {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.feed-item__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1a1e;
}
.feed-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feed-item__media--fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 32px;
    color: rgba(243,239,231,0.25);
}
.feed-item__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.05) 0%, rgba(8,8,10,0.15) 45%, var(--scrim) 100%);
}

.feed-item__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 20px 34px;
    z-index: 2;
}
.feed-item__eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 10px;
}
.feed-item__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.08;
    margin: 0 0 10px;
    text-wrap: balance;
    color: var(--paper);
}
.feed-item__excerpt {
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(243,239,231,0.82);
    margin: 0 0 14px;
    max-width: 46ch;
}
.feed-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    color: rgba(243,239,231,0.6);
}
.feed-item__meta-text {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.feed-item__lock {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--amber);
}
.feed-item__lock--badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(8, 8, 10, 0.55);
    border-radius: 50%;
    padding: 8px;
}
.feed-item__meta-text span:not(:last-child)::after {
    content: "·";
    margin-left: 14px;
    opacity: 0.6;
}

/* ---------- signature: reel rail ---------- */
.reel-rail {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
@media (min-width: 661px) {
    .reel-rail { right: calc(50vw - 278px); }
}
.reel-rail__fill {
    width: 3px;
    height: 90px;
    background: rgba(243,239,231,0.2);
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}
.reel-rail__fill::after {
    content: "";
    position: absolute;
    left: 0; top: 0; width: 100%;
    height: 0%;
    background: var(--amber);
    transition: height 0.25s ease;
}
.reel-rail__count {
    font-family: var(--utility);
    font-variant-numeric: tabular-nums;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: rgba(243,239,231,0.75);
    writing-mode: vertical-rl;
}

/* ---------- single post ---------- */
.post { background: #ffffff; min-height: 100dvh; }
.post__hero {
    position: relative;
    height: 72dvh;
    min-height: 420px;
    overflow: hidden;
    background: var(--ink);
}
.post__hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.1) 0%, rgba(8,8,10,0.2) 50%, var(--ink) 100%);
}
.post__hero-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0 20px 32px;
}
.post__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(28px, 6vw, 48px);
    line-height: 1.08;
    margin: 0 0 12px;
    color: var(--paper);
}
.post__header-plain {
    max-width: 68ch;
    margin: 0 auto;
    padding: 70px 20px 0;
}
.post__header-plain-tag {
    display: inline-block;
    font-family: "Inter", var(--utility);
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--text-secondary, #8a8a86);
    margin-bottom: 10px;
}
.post__header-plain-title {
    font-family: "Inter", var(--utility);
    font-weight: 700;
    font-size: clamp(26px, 5.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 25px;
}
.post__header-plain-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-family: "Inter", var(--utility);
    font-size: 13px;
    color: rgba(16,16,20,0.6);
    margin-bottom: 8px;
}
.post__header-plain-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 14px;
    opacity: 0.6;
}
.site-footer {
    max-width: 68ch;
    margin: 0 auto;
    padding: 40px 20px 60px;
    text-align: center;
    border-top: 0.5px solid rgba(16,16,20,0.1);
}
.site-footer__socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}
.site-footer__socials a {
    color: var(--ink);
    display: flex;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.site-footer__socials a:hover { opacity: 1; color: var(--amber); }
.site-footer__nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.site-footer__nav li { list-style: none; }
.site-footer__nav a {
    font-family: "Inter", var(--utility);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copyright {
    font-family: "Inter", var(--utility);
    font-size: 13px;
    color: rgba(16,16,20,0.55);
    margin: 0;
}
.site-footer__copyright a {
    color: rgba(16,16,20,0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer__copyright a:hover { color: var(--amber); }
.post__content {
    max-width: 68ch;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(16,16,20,0.88);
}
/* Scoped to the Style Guide page only (Ghost auto-adds a page-{slug} body
class) — brings the intro paragraph closer to the title without touching
.post__content spacing used everywhere else. */
.page-style-guide .post__content {
    padding-top: 10px;
}
.page-documentation .post__content {
    padding-top: 6px;
}
.page-about-this-site .post__content {
    padding-top: 0px;
}
@media (max-width: 767px) {
    .post__content {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1.05rem;
    }

    .post__content p,
    .post__content ul,
    .post__content ol,
    .post__content li,
    .post__content blockquote {
        line-height: 2;
        margin-bottom: 1.6em;
    }

    .post__content h1,
    .post__content h2,
    .post__content h3,
    .post__content h4 {
        line-height: 1.4;
        margin-top: 0em;
        margin-bottom: 0.8em;
    }

    .post__content hr {
        margin: 2em 0;
    }
}
.post__content img { max-width: 100%; height: auto; border-radius: 4px; cursor: pointer; }
.post__content figure { margin: 1.5em 0; }
.post__content a { color: var(--amber); }
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000000;
    background: rgba(8,8,10,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-overlay__img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 4px;
    cursor: default;
}
.lightbox-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-overlay__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay__nav--prev { left: 20px; }
.lightbox-overlay__nav--next { right: 20px; }
@media (max-width: 660px) {
    .lightbox-overlay__nav { width: 40px; height: 40px; font-size: 22px; }
    .lightbox-overlay__nav--prev { left: 8px; }
    .lightbox-overlay__nav--next { right: 8px; }
}
.post__content .kg-width-wide {
    width: 100%;
    max-width: calc(68ch + 200px);
    margin-left: 50%;
    transform: translateX(-50%);
}
.post__content .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
@media (min-width: 661px) {
    /* Above 661px .frame is locked to 580px (phone-width column), so
    "wide"/"full" images must break out relative to that 580px frame,
    not the real browser viewport — otherwise they misalign and leave
    dead white space on wide screens. Wide is kept narrower than Full
    so the two remain visually distinct on desktop, same as on mobile. */
    .post__content .kg-width-wide {
        width: 520px;
        max-width: 520px;
    }
    .post__content .kg-width-full {
        width: 580px;
        max-width: 580px;
    }
}
.post__content .kg-width-full img { border-radius: 0; }
.post__content .kg-embed-card {
    margin: 1.5em 0;
}
.post__content .kg-embed-card iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 4px;
}
.post__back {
    display: block;
    text-align: center;
    padding: 0 0 60px;
    color: rgba(16,16,20,0.55);
    text-decoration: none;
    font-size: 13px;
}

/* ---------- site-bar__nav: desktop dropdown navigation (adapted from People theme) ---------- */
.site-bar__nav {
    display: none;
}
@media (min-width: 661px) {
    .site-bar__nav {
        display: block;
        pointer-events: auto;
    }
}
.site-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.site-nav-item { position: relative; list-style: none; }
.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    color: var(--paper);
    text-decoration: none;
    font-family: "Inter", var(--utility);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.15s;
}
.site-nav-link:hover { color: var(--amber); }
.post-plain-header .site-nav-link { color: var(--ink); }
.site-nav-arrow { flex-shrink: 0; transition: transform 0.2s ease; }
.site-nav-has-dropdown { position: relative; padding-bottom: 8px; margin-bottom: -8px; }
.site-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 3999997;
}
.site-nav-dropdown-menu--right { left: auto; right: 0; transform: none; }
.site-nav-has-dropdown.is-open > .site-nav-dropdown-menu { display: block; }
.site-nav-has-dropdown.is-open > .site-nav-link { color: var(--amber); }
.site-nav-has-dropdown.is-open > .site-nav-link .site-nav-arrow { transform: rotate(180deg); }
.site-nav-dropdown-item { list-style: none; }
.site-nav-dropdown-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    font-family: "Inter", var(--utility);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}
.site-nav-dropdown-link:hover { background: rgba(16,16,20,0.06); }
.site-nav-has-more > .site-nav-link { padding: 6px 8px; opacity: 0.75; }
.site-nav-has-more > .site-nav-link:hover { opacity: 1; }
.site-nav-more-dots { display: block; flex-shrink: 0; }

/* ---------- burger + mobile menu (adapted from People theme) ---------- */
.site-bar__right {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}
.gh-burger {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    display: block;
    width: 26px;
    height: 26px;
    padding: 0;
    position: relative;
}
.gh-burger::before,
.gh-burger::after {
    content: "";
    position: absolute;
    left: 1px;
    width: 24px;
    height: 2px;
    background-color: var(--paper);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease, background-color 0.25s ease;
}
.gh-burger::before { top: 5px; }
.gh-burger::after { top: 16px; }
.people-nav-open .gh-burger::before { top: 12px; transform: rotate(45deg); background-color: var(--ink); }
.people-nav-open .gh-burger::after { top: 12px; transform: rotate(-45deg); background-color: var(--ink); }
.post-plain-header .gh-burger::before,
.post-plain-header .gh-burger::after {
    background-color: var(--ink);
}

.people-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3999998;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.people-mobile-overlay.is-visible { display: block; opacity: 1; }

.people-mobile-menu {
    position: fixed;
    top: 54px; left: 0; right: 0;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    margin-top: 0;
    height: auto;
    max-height: calc(80dvh - 54px);
    overflow-y: auto;
    background: #ffffff;
    z-index: 3999999;
    display: flex;
    flex-direction: column;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.28s, margin-top 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.people-mobile-menu.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}
.people-mobile-menu.is-closing {
    transform: translateY(-110%);
    visibility: hidden;
}
.people-mobile-menu__nav { padding: 12px 0 12px; }
.people-mobile-menu__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px 24px;
}
.people-mobile-menu__footer .gh-head-button,
.people-mobile-menu__footer .gh-head-link {
    font-family: "Inter", var(--utility);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.people-mobile-menu__footer .gh-head-button {
    padding: 8px 16px;
    background: var(--amber);
    color: var(--ink);
    border-radius: 999px;
}
.people-mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.people-mobile-nav-link {
    display: block;
    padding: 14px 24px;
    font-family: "Inter", var(--utility);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    transition: opacity 0.15s;
}
.people-mobile-nav-link:hover { opacity: 0.75; color: var(--amber); }

.people-mobile-has-sub { position: relative; }
.people-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Inter", var(--utility);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-align: left;
}
.people-mobile-nav-toggle__label,
.people-mobile-nav-toggle__link {
    font-family: "Inter", var(--utility);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}
.people-mobile-chevron {
    color: var(--ink);
    opacity: 0.4;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}
.people-mobile-nav-item.is-open > .people-mobile-nav-toggle .people-mobile-chevron {
    transform: rotate(90deg);
}
.people-mobile-submenu { list-style: none; margin: 0; padding: 0; }
.people-mobile-submenu-item { }
.people-mobile-submenu-link {
    display: block;
    padding: 8px 24px 8px 40px;
    font-family: "Inter", var(--utility);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.15s, color 0.15s;
}
.people-mobile-submenu-link:hover { opacity: 1; color: var(--amber); }

.people-nav-open .site-bar {
    z-index: 4000000;
    background-color: #ffffff;
}
html.people-menu-open {
    overflow: hidden;
}
.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;
}

/* ---------- floating "Scan on mobile" QR widget (desktop only) ---------- */
.floating-qr {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
}
@media (min-width: 661px) {
    .floating-qr { display: flex; }
}
.floating-qr__label {
    font-family: "Inter", var(--utility);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}
.floating-qr__code { width: 96px; height: 96px; line-height: 0; }
.floating-qr__code svg { width: 100%; height: 100%; display: block; }

/* ---------- feed-nav: desktop-only up/down post navigation ---------- */
.feed-nav {
    display: none;
}
@media (min-width: 661px) {
    .feed-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 25;
    }
}
.feed-nav__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(243,239,231,0.92);
    color: var(--ink);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
}
.feed-nav__btn:hover { transform: scale(1.06); }
.feed-nav__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---------- Documentation page: floating table-of-contents ---------- */
.docs-toc__button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 950;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.docs-toc__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 949;
    background: #ffffff;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    border-radius: 16px 16px 0 0;
    padding: 16px 8px 80px;
    max-height: 60vh;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: rgba(16,16,20,0.35) transparent;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.docs-toc__panel::-webkit-scrollbar { width: 6px; }
.docs-toc__panel::-webkit-scrollbar-track { background: transparent; }
.docs-toc__panel::-webkit-scrollbar-thumb {
    background: rgba(16,16,20,0.35);
    border-radius: 3px;
}
.docs-toc__panel.is-open {
    transform: translateY(0);
}
@media (max-width: 660px) {
    .docs-toc__button { bottom: 32px; }
}
@media (min-width: 661px) {
    .docs-toc__button { left: 20px; }
    .docs-toc__panel {
        left: 50%;
        right: auto;
        width: 100%;
        max-width: 580px;
        transform: translate(-50%, 100%);
    }
    .docs-toc__panel.is-open {
        transform: translate(-50%, 0);
    }
}
.docs-toc__label {
    font-family: "Inter", var(--utility);
    font-size: 11px;
    color: var(--ink);
    opacity: 0.5;
    margin: 0 0 8px;
    padding: 0 12px;
}
.docs-toc__list {
    display: block;
}
.docs-toc__link {
    display: block;
    padding: 10px 12px;
    font-family: "Inter", var(--utility);
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 8px;
}
.docs-toc__link.is-active {
    background: transparent;
    color: var(--amber);
    font-weight: 600;
}

/* ---------- Features landing page ---------- */
.features-page {
    background: #ffffff;
    min-height: 100dvh;
}
.features-page__hero {
    max-width: 68ch;
    margin: 0 auto;
    padding: 120px 20px 60px;
    text-align: center;
}
.features-page__hero .feed-item__eyebrow {
    color: var(--amber);
    display: inline-block;
    margin-bottom: 14px;
}
.features-page__title {
    font-family: "Inter", var(--utility);
    font-weight: 700;
    font-size: clamp(32px, 6vw, 48px);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 16px;
}
.features-page__lede {
    font-family: "Inter", var(--utility);
    font-size: 17px;
    line-height: 1.6;
    color: rgba(16,16,20,0.65);
    margin: 0;
}
.features-page__list {
    max-width: 68ch;
    margin: 0 auto;
    padding: 0 20px 100px;
}
.feature-block {
    padding: 40px 0;
    border-top: 0.5px solid rgba(16,16,20,0.1);
    scroll-margin-top: 80px;
}
.feature-block__index {
    display: block;
    font-family: "Inter", var(--utility);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 10px;
}
.feature-block__title {
    font-family: "Inter", var(--utility);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 12px;
}
.feature-block__text {
    font-family: "Inter", var(--utility);
    font-size: 16px;
    line-height: 1.7;
    color: rgba(16,16,20,0.75);
    margin: 0;
}
/* ---------- Tags / Authors list pages ---------- */
.list-page__list {
    max-width: 68ch;
    margin: 0 auto;
    padding: 0 20px 100px;
}
.list-page__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 0.5px solid rgba(16,16,20,0.1);
    text-decoration: none;
    color: var(--ink);
    transition: opacity 0.15s;
}
.list-page__row:hover { opacity: 0.6; }
.list-page__row-name {
    font-family: "Inter", var(--utility);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    flex: 1;
}
.list-page__row-count {
    font-family: "Inter", var(--utility);
    font-size: 14px;
    color: rgba(16,16,20,0.45);
    flex-shrink: 0;
}
.list-page__row--author {
    gap: 16px;
}
.list-page__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(16,16,20,0.06);
}
.list-page__avatar--fallback {
    background: linear-gradient(135deg, var(--amber), rgba(232,169,59,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", var(--utility);
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    text-transform: uppercase;
}
.list-page__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.list-page__row-sub {
    font-family: "Inter", var(--utility);
    font-size: 13px;
    color: rgba(16,16,20,0.5);
}