/* Bande de titre des pages de lecture : champ nuit court, le texte seul, une lueur champagne venue du
   haut à droite (comme le halo des machines) et un filet sous la bande. */
.page-band {
    padding-block: var(--space-9) var(--space-8);
    border-bottom: 1px solid var(--rule);
    background:
        radial-gradient(56rem 28rem at 88% -20%, color-mix(in srgb, var(--color-champagne) 9%, transparent), transparent 70%),
        var(--bg-page);
}

.page-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    justify-items: start;
}

.page-band__inner > * {
    max-width: var(--measure);
}

.page-band__inner.container--reading > * {
    max-width: none;
}

.page-band h1 {
    font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
    text-wrap: balance;
}

.page-band .text-lead {
    max-width: var(--measure);
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: var(--space-2);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-link);
}

/* La page courante (titre d'article, souvent long) : coupée sur une ligne, le h1 la répète juste dessous. */
.breadcrumb [aria-current] {
    display: inline-block;
    max-width: 24ch;
    overflow: hidden;
    color: var(--text-primary);
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

/* Titre d'article, souvent long : un cran plus petit dans la colonne de lecture. */
.page-band__inner.container--reading h1 {
    font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
}
