/*
 * The website's one stylesheet: every page on weavpayments.com (the home
 * page, the feature pages, legal and support) shares it through
 * resources/static/website/layout.html.
 */
/* Weav brand fonts (as on the dashboard and the official site). Digits and the peso sign come from Weav Numerals. */
@font-face {
    font-family: 'Weav Numerals';
    src: url('/fonts/weav-numerals-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    size-adjust: 96%;
    unicode-range: U+0030-0039, U+002C, U+002E, U+2026;
}
@font-face {
    font-family: 'Weav Peso';
    src: url('/fonts/weav-numerals-peso.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    size-adjust: 96%;
    unicode-range: U+20B1;
}
@font-face {
    font-family: 'Maxima Nouva';
    src: url('/fonts/maxima-nouva-400.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Maxima Nouva';
    src: url('/fonts/maxima-nouva-600.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Maxima Nouva';
    src: url('/fonts/maxima-nouva-700.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Maxima Nouva';
    src: url('/fonts/maxima-nouva-800.woff') format('woff');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'Mofugu';
    src: url('/fonts/mofugu-400.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

/*
 * Layout and visual language: the official site (www-dev.pp.weavpayments.com).
 * Light, large Mofugu headings, Pig Iron bands with the W watermark, sage
 * image tiles. Product images are real screenshots of the Weav dashboard
 * (e2e/website-screenshots.spec.ts); photos and accents are the official
 * site's (public/images/website/official). Buttons use the deep Renegade so
 * white text passes WCAG AA.
 */
:root {
    --ink: #484848;
    --text: #626262;
    --line: #e3e5e2;
    --soft: #f4f6f3;
    --white: #ffffff;
    --renegade: #8d978c;
    --sage: #6a7568;
    --sage-ink: #5f6a5d;
    --seafoam: #b7c3b4;
    --mint: #f1fff0;
    --band: #626262;
    --band-2: #484848;
    --band-text: #e3e5e2;
    --display: 'Weav Peso', 'Mofugu', 'Maxima Nouva', sans-serif;
    --body:
        'Weav Numerals', 'Maxima Nouva', ui-sans-serif, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --radius: 24px;
    color-scheme: light;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-synthesis-weight: none;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font: 400 17px/1.65 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
}
h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 400;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}
.display {
    font-size: clamp(44px, 6.7vw, 96px);
    line-height: 1;
    letter-spacing: -0.01em;
}
.lead {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
    margin: 0;
}
.wrap {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}
.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
}
:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
}

/* Buttons: Mofugu 20px, 44px tall, 12px radius; Pig Iron on hover (official). */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    border: 0;
    font: 400 20px/1 var(--display);
    text-decoration: none;
    white-space: nowrap;
}
.band {
    --btn-hover: #5f6a5d;
    --btn-active: rgba(95, 106, 93, 0.9);
}
.btn.ghost {
    color: var(--sage-ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
    font: 700 16px/1 var(--body);
}

/* Header: frosted white bar, links in the middle (official). */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(72, 72, 72, 0.06);
}
.nav-in {
    height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.logo {
    color: var(--renegade);
    display: inline-flex;
}
.nav-links {
    display: flex;
}
.nav-links a {
    padding: 16px 22px;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    text-decoration: none;
}
.nav-links a:hover {
    color: var(--sage-ink);
}
.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}
.nav-actions .login {
    padding: 12px 20px;
    font-weight: 700;
    font-size: 16px;
    color: var(--sage-ink);
    text-decoration: none;
}

/* Hero: big centered title over a row of tiles (official). */
.hero {
    position: relative;
    padding: 148px 0 72px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -120px;
    width: 760px;
    height: 640px;
    background: url('/images/website/official/accent-w.png') center/contain
        no-repeat;
    filter: blur(40px);
    opacity: 0.45;
    pointer-events: none;
}
.hero h1 {
    position: relative;
}
.hero .lead {
    margin: 22px auto 0;
    max-width: 640px;
    position: relative;
}
.hero-cta {
    margin-top: 28px;
    position: relative;
}
.tiles {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    margin-top: 56px;
    position: relative;
}
.tile {
    flex: none;
    width: 224px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #a9b3a7;
    position: relative;
}
.tile > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tile.photo {
    height: 268px;
}
.tile.tall {
    height: 300px;
    margin-top: 36px;
}
.tile.low {
    margin-top: 72px;
}
/* A real product screen, inset on a sage tile. */
.screen {
    background: linear-gradient(160deg, #b7c3b4, #8d978c);
    padding: 18px 0 0 18px;
}
.screen img {
    width: auto;
    height: auto;
    max-width: none;
    width: 420px;
    border-radius: 12px 0 0 0;
    box-shadow: 0 10px 30px rgba(40, 45, 38, 0.18);
}
.screen.phone {
    padding: 18px 18px 0;
}
.screen.phone img {
    width: 100%;
    border-radius: 16px 16px 0 0;
}

/* Pig Iron bands with the W watermark (official). */
.band {
    background: var(--band);
    color: var(--band-text);
    position: relative;
    overflow: hidden;
}
.band.ink {
    background: var(--band-2);
}
.band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/website/official/accent-w-1.png') center/1300px
        auto no-repeat;
    opacity: 0.14;
    pointer-events: none;
}
.band h2,
.band h3,
.band h4 {
    color: var(--white);
}
.band .wrap {
    position: relative;
}
.section {
    padding: clamp(72px, 9vw, 128px) 0;
}
.center {
    text-align: center;
}
.center .lead {
    margin: 22px auto 0;
    max-width: 900px;
}

/* Every Business Matters: three audience cards. */
.cards3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
}
.acard {
    background: var(--sage);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.acard .art {
    height: 230px;
    background: linear-gradient(160deg, #b7c3b4, #8d978c);
    overflow: hidden;
    padding: 20px 20px 0;
}
.acard .art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px 12px 0 0;
}
.acard .art.qr img {
    /* The QR code, centered in the crop (checkout-phone.png). */
    object-position: center 32%;
}
.acard .body {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.acard h3 {
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.1;
}
.acard p {
    margin: 0;
    color: #eef1ed;
    font-size: 15.5px;
}

/* Features: a huge heading beside a portrait tile, alternating (official). */
.kicker {
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
    margin: 0 0 8px;
}
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
    padding: clamp(40px, 6vw, 72px) 0;
}
.feature.flip .ftile {
    order: -1;
}
.feature .copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}
.ftile {
    width: 100%;
    max-width: 369px;
    aspect-ratio: 369 / 450;
    border-radius: var(--radius);
    overflow: hidden;
    justify-self: center;
}
.ftile.screen img {
    width: 640px;
}
.ftile.phone img {
    width: 100%;
}

/* Channels band: copy beside a grid of channel tiles. */
.channels {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}
.channels .copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}
/* Wide tiles: each 2:1 logo carries the channel's name. */
.ch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.ch {
    aspect-ratio: 2;
    border-radius: 20px;
    background: var(--white);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}
.ch:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
@media (prefers-reduced-motion: reduce) {
    .ch,
    .ch:hover {
        transition: none;
        transform: none;
    }
}
.ch img {
    width: 100%;
    height: 100%;
    padding: 14px 18px;
    object-fit: contain;
}

/* "Bank apps" on the channel grid: a few app logos in a row, over the label. */
.ch.apps {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
}
.ch-apps {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ch .ch-apps img,
.ch-apps span {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 9px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    object-fit: contain;
}
.ch-apps span {
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}
.ch-apps-label {
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* The bank and e-wallet apps that pay through QR Ph (Payments page). */
.app-grid {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.app-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--soft);
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
}
.app-grid img {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: var(--white);
    object-fit: contain;
}

/* Security (official): shield between W accents, partner logos in color, like the channel grid. */
.secure {
    position: relative;
}
.secure .w-left,
.secure .w-right {
    position: absolute;
    top: 40px;
    width: 123px;
    opacity: 0.9;
}
.secure .w-left {
    left: 0;
}
.secure .w-right {
    right: 0;
}
.shield {
    width: 96px;
    margin: 0 auto 22px;
}
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px 52px;
    margin: 48px auto 0;
    max-width: 1040px;
}
.logos img {
    height: 34px;
    width: auto;
}
.grid4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
    text-align: left;
}
.scard {
    background: var(--soft);
    border-radius: 20px;
    padding: 22px;
}
.scard svg {
    color: var(--sage);
}
.scard h4 {
    font-size: 19px;
    margin: 12px 0 6px;
}
.scard p {
    margin: 0;
    font-size: 15px;
}
.ops {
    margin: 36px auto 0;
    max-width: 760px;
    font-size: 14.5px;
}

/* Support, developers, get started, FAQ. */
/* The size of its photo (landing-l8.png, 319 × 359), so it's never enlarged or cropped. */
.photo-tile {
    width: 100%;
    max-width: 319px;
    aspect-ratio: 319 / 359;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--renegade);
    justify-self: center;
}
.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mail {
    font-weight: 700;
    color: var(--sage-ink);
}
.dev {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-top: 56px;
    text-align: left;
}
.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.ticks li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    color: inherit;
}
.ticks li::before {
    content: '';
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border-radius: 999px;
    background: var(--seafoam)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23484848' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
        center/14px no-repeat;
}
pre {
    margin: 0;
    background: #262826;
    color: #e6ede4;
    border-radius: 20px;
    padding: 20px 22px;
    font: 13px/1.6 var(--mono);
    overflow-x: auto;
}
pre .c {
    color: #8f998c;
}
pre .k {
    color: #b7dda9;
    font-weight: 500;
}
pre .s {
    color: #e6d4ee;
}
.code-head {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.code-head i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #4e514d;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}
.step {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 26px;
    counter-increment: step;
}
.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sage);
    color: var(--white);
    font: 400 20px/1 var(--display);
    margin-bottom: 16px;
}
.step h4 {
    font-size: 22px;
    margin-bottom: 6px;
}
.step p {
    margin: 0;
    font-size: 15.5px;
}
.steps {
    counter-reset: step;
}
.faq-head {
    max-width: 905px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.faq-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1.5px #7f897e;
    color: var(--text);
}
.faq-search input {
    flex: 1;
    border: 0;
    outline: 0;
    font: inherit;
    color: var(--ink);
    background: transparent;
}
.faq {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}
.qa {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
}
.qa[hidden] {
    display: none;
}
.qa h3 {
    margin: 0 0 8px;
    font: 700 17px/1.4 var(--body);
    color: var(--ink);
}
.qa p {
    margin: 0;
}
@media (max-width: 760px) {
    .faq {
        grid-template-columns: minmax(0, 1fr);
    }
}
.faq-empty {
    text-align: center;
    padding: 48px 0 0;
}
.faq-empty h3 {
    font: 800 24px/1.3 var(--body);
    margin-bottom: 8px;
}
.faq-empty p {
    margin: 0 0 20px;
}

/* Footer: dark, with the closing line (official). */
footer.band {
    padding: clamp(64px, 8vw, 96px) 0 40px;
}
footer.band::before {
    background: url('/images/website/official/accent-footer-w.png') right 10%
        center/auto 110% no-repeat;
    opacity: 0.12;
}
footer h2 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.15;
    max-width: 620px;
}
.fcta {
    margin-top: 24px;
}
.fbottom .logo {
    color: var(--mint);
}
.fcols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px;
}
.fcols h4 {
    font: 700 16px/1.4 var(--body);
    color: var(--white);
    margin-bottom: 14px;
}
.fcols ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.fcols a {
    color: var(--band-text);
    text-decoration: none;
    font-size: 15px;
}
.fcols a:hover {
    color: var(--white);
}
.fbottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 64px;
    font-size: 13.5px;
    color: var(--band-text);
}
.fbottom .logo {
    color: var(--white);
    margin-bottom: 14px;
}
.fbottom p {
    margin: 0;
}
.fbottom a {
    color: var(--band-text);
}

@media (max-width: 1100px) {
    .tile {
        width: 190px;
    }
    .tile.photo {
        height: 236px;
    }
    .tile.tall {
        height: 262px;
    }
    .tiles .hide-md {
        display: none;
    }
}
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .nav-in {
        grid-template-columns: 1fr auto;
    }
    .cards3,
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
    .feature,
    .channels,
    .dev {
        grid-template-columns: minmax(0, 1fr);
    }
    .feature.flip .ftile {
        order: 0;
    }
    .grid4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fcols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .secure .w-left,
    .secure .w-right {
        display: none;
    }
    .tiles {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px 8px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none;
    }
    .tiles .hide-md {
        display: block;
    }
}
@media (max-width: 560px) {
    .nav-actions .login {
        display: none;
    }
    .hero {
        padding-top: 120px;
    }
    .tile {
        width: 168px;
    }
    .tile.photo {
        height: 210px;
    }
    .tile.tall {
        height: 230px;
        margin-top: 24px;
    }
    .tile.low {
        margin-top: 44px;
    }
    .grid4,
    .fcols {
        grid-template-columns: minmax(0, 1fr);
    }
    .ch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Inner pages (features, legal, support): a shorter, left-aligned hero with
   the home page's blurred W, then sections in the home page's components. */
.page-hero {
    position: relative;
    padding: 148px 0 clamp(48px, 6vw, 72px);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -120px;
    width: 760px;
    height: 640px;
    background: url('/images/website/official/accent-w.png') center/contain
        no-repeat;
    filter: blur(40px);
    opacity: 0.45;
    pointer-events: none;
}
.page-hero .wrap {
    position: relative;
}
.page-hero.split .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}
.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--sage-ink);
    text-decoration: none;
}
a.eyebrow:hover {
    color: var(--ink);
}
.page-title {
    font-size: clamp(44px, 6vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    max-width: 15ch;
}
.page-hero .lead {
    margin-top: 22px;
    max-width: 720px;
}
.page-hero .updated {
    margin: 18px 0 0;
    font-size: 14.5px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* A real product screen, large enough to read. */
.showcase {
    border-radius: var(--radius);
    background: linear-gradient(160deg, #b7c3b4, #8d978c);
    padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) 0;
    overflow: hidden;
}
.showcase img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    object-position: top left;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 14px 40px rgba(40, 45, 38, 0.2);
}
.page-hero .ftile {
    max-width: 400px;
}

/* Section headings and grids on inner pages. */
.section-head {
    max-width: 820px;
}
.section-head h2 {
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.05;
}
.section-head .lead {
    margin-top: 16px;
}
.center .section-head {
    margin: 0 auto;
}
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.section-head + .grid4 {
    margin-top: 40px;
}
.scard a {
    color: var(--sage-ink);
    font-weight: 700;
}
.scard .more {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
}
.section.tight {
    padding-top: 0;
}

/* Channels as rows: the logo, the name and how customers pay. */
.ch-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
}
.ch-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background: var(--soft);
    border-radius: 20px;
    padding: 16px 20px 16px 16px;
}
.ch-row img {
    width: 112px;
    height: 56px;
    border-radius: 14px;
    background: var(--white);
    padding: 12px 14px;
    object-fit: contain;
}
.ch-row h3 {
    font: 700 17px/1.35 var(--body);
    color: var(--ink);
}
.ch-row p {
    margin: 2px 0 0;
    font-size: 15px;
}

/* Legal pages: "On this page" beside one reading column. */
.doc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 780px);
    gap: clamp(32px, 6vw, 96px);
    padding-bottom: clamp(64px, 8vw, 104px);
}
.toc {
    position: sticky;
    top: 104px;
    align-self: start;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
}
.toc p {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}
.toc a {
    padding: 6px 0 6px 14px;
    border-left: 2px solid var(--line);
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
    transition:
        color 0.15s,
        border-color 0.15s;
}
.toc a:hover {
    color: var(--ink);
}
.toc a[aria-current] {
    color: var(--sage-ink);
    border-color: var(--sage);
    font-weight: 700;
}
.doc h2 {
    font-size: clamp(24px, 2.4vw, 30px);
    margin: 44px 0 12px;
    scroll-margin-top: 96px;
}
.doc > h2:first-child {
    margin-top: 0;
}
.doc h3 {
    font-size: 21px;
    margin: 26px 0 8px;
}
.doc p,
.doc li {
    color: var(--text);
}
.doc p {
    margin: 0;
}
.doc p + p {
    margin-top: 14px;
}
.doc ul,
.doc ol {
    margin: 12px 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.doc dl {
    margin: 12px 0;
}
.doc dt {
    font-weight: 700;
    color: var(--ink);
    margin-top: 12px;
}
.doc dd {
    margin: 2px 0 0;
}
.doc a {
    color: var(--sage-ink);
    font-weight: 700;
}
.doc code,
.scard code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--white);
    border-radius: 6px;
    padding: 1px 6px;
}
.doc code {
    background: var(--soft);
}

@media (max-width: 900px) {
    .page-hero.split .wrap,
    .doc-layout,
    .ch-rows {
        grid-template-columns: minmax(0, 1fr);
    }
    .grid3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .toc {
        display: none;
    }
    .page-hero {
        padding-top: 120px;
    }
}

/* Cards on a Pig Iron band. */
.band .scard {
    background: rgba(255, 255, 255, 0.07);
}
.band .scard svg {
    color: var(--seafoam);
}
.band .scard a {
    color: var(--white);
}
.band .scard code {
    background: rgba(255, 255, 255, 0.12);
}
.ops.start {
    margin-left: 0;
}
