/* Build, Run and Produce (templates/line.html): a dark header with the
   line's drawing in an arch, then the sections as a plain two-column sheet:
   the heading on the left, the text and its dot list on the right. */

/* The arch stands on the header's bottom edge, like the brand guide's arch
   panels; the text keeps the header's usual bottom padding. */
.page-header.line-header {
    padding-bottom: 0;
}

.line-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 64px;
    align-items: end;
}

.line-header-text {
    padding-bottom: 96px;
}

.line-header-art .art {
    margin-bottom: -1px;
}

.line-header .terms {
    margin-top: 32px;
}

.line-header-art {
    max-width: 360px;
    justify-self: end;
    width: 100%;
}

/* ─── The chain band (every line page): the page's one charcoal band, after
   the first section. Steam bonds, charcoal nodes ringed in steam, yellow ends:
   the bonds and dots of the Pluto mark. ─── */
.chain-section {
    padding: 88px 0 96px;
}

.chain-intro {
    font-size: 1.1rem;
    max-width: 46em;
    margin-bottom: 56px;
}

.dark .chain-intro {
    color: var(--on-dark-soft);
}

.system-diagram svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.system-wide {
    display: block;
}

.system-tall {
    display: none;
}

.system-diagram .bond {
    fill: none;
    stroke: var(--steam);
    stroke-width: 6;
    stroke-linecap: round;
}

.system-diagram .node {
    fill: var(--charcoal);
    stroke: var(--steam);
    stroke-width: 6;
}

.system-diagram .node-end {
    fill: var(--yellow);
    stroke: var(--yellow);
}

.system-diagram .node-label {
    font-family: var(--font-label);
    font-size: 14px;
    letter-spacing: 0.12em;
    fill: var(--on-dark);
}

.system-tall .node-label {
    font-size: 15px;
}

/* A proof link under the header's pills, and a link at the end of a section. */
.line-proof {
    margin-top: 28px;
}

.dark .line-proof .text-link {
    color: var(--yellow);
}

.line-section-link {
    margin-top: 22px;
}

/* ─── The sections ─── */
.line-body-lead {
    padding: 32px 0 56px;
}

.line-body-rest {
    padding: 40px 0 104px;
}

.line-section {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    padding: 64px 0;
}

.line-section + .line-section {
    border-top: 1.5px dotted var(--rule-light);
}

.line-section h2 {
    font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem);
    max-width: 16ch;
    margin-bottom: 0;
}

.line-section-text p {
    font-size: 1.06rem;
}

.line-section-text .dots {
    margin-top: 26px;
}

.line-section-text .dots li {
    color: var(--ink);
}

.tool-pills {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    list-style: none;
}

.tool-pills li {
    border: 1.5px solid var(--charcoal);
    border-radius: 999px;
    padding: 8px 16px 7px;
    font-family: var(--font-label);
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.line-next {
    padding-top: 24px;
}

@media (max-width: 860px) {
    .line-header-grid,
    .line-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .line-header-grid {
        gap: 0;
    }

    .line-header-text {
        padding-bottom: 48px;
    }

    .line-header-art {
        justify-self: start;
        max-width: 260px;
    }

    .line-section {
        gap: 20px;
        padding: 48px 0;
    }

    .line-section h2 {
        max-width: 22ch;
    }

    .system-wide {
        display: none;
    }

    .system-tall {
        display: block;
        max-width: 400px;
    }
}
