.reader-brand {
    color: inherit;
    text-decoration: none;
}
.toc-item-title a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}
.book-page {
    scroll-margin-top: 5.5rem;
}
a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
@media screen and (max-width: 850px), screen and (max-width: 1200px) and (pointer: coarse) {
    body {
        background: #fff;
    }
    .reader-toolbar {
        gap: .5rem;
        padding: .65rem .85rem;
    }
    .reader-toolbar-title span {
        display: none;
    }
    .book-canvas {
        display: block;
        padding: 0;
    }
    .book-page {
        width: 100%;
        height: auto;
        overflow: visible;
        margin: 0;
        padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
        border-bottom: 1px solid #cbd5e1;
        border-radius: 0;
        box-shadow: none;
        overflow-wrap: anywhere;
    }
    .book-page p,
    .book-page li {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        text-align: start !important;
    }
    .book-page .two-col-text {
        column-count: 1;
        text-align: start;
    }
    .book-page img {
        max-width: 100%;
        height: auto !important;
    }
    .book-page table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
    .book-page .page-running-foot {
        position: static;
        margin-top: 1.2rem;
    }
}
@media screen and (max-width: 600px) {
    .book-page [style*="grid-template-columns"],
    .toc-two-col-grid,
    .specimen-abstract-grid,
    .specimen-affils {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .8rem !important;
    }
    .page-running-head,
    .page-running-foot,
    .specimen-masthead,
    .specimen-rubric-row {
        flex-wrap: wrap;
        gap: .45rem;
    }
    .abstract-col-right {
        padding-left: 0;
        border-left: 0;
    }
}

@media print {
    .page-running-foot {
        bottom: .25in;
    }
    .specimen-abstract-grid {
        text-align: start;
    }
    #page-15 p,
    #page-17 p {
        line-height: 1.36 !important;
    }
}

#page-1 .specimen-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    text-wrap: balance;
}
#page-1 .specimen-subtitle {
    font-size: 11pt;
}
@media print {
    #page-1 .specimen-title {
        font-size: 25pt;
    }
}

.proceedings-lead-photo {
    margin: .8rem 0 0;
}
.proceedings-lead-photo img {
    aspect-ratio: 4.5 / 1;
    display: block;
    object-fit: cover;
    object-position: center 48%;
    width: 100%;
}
.proceedings-lead-photo figcaption {
    color: #475569;
    font: 500 .69rem/1.4 Inter, sans-serif;
    margin-top: .25rem;
}
@media screen and (max-width: 600px) {
    .proceedings-lead-photo img {
        aspect-ratio: 2 / 1;
    }
}

@media screen {
    .reader-toolbar {
        padding-top: calc(.55rem + env(safe-area-inset-top));
        padding-left: max(.7rem, env(safe-area-inset-left));
        padding-right: max(.7rem, env(safe-area-inset-right));
    }
    .reader-btn { min-height: 44px; }
    .reader-toolbar-actions { gap: .35rem; flex-wrap: wrap; }
}
@media screen and (max-width: 420px) {
    .reader-btn { font-size: .72rem; padding-inline: .45rem; }
    .reader-btn svg { display: none; }
}
@media screen and (max-width: 850px), screen and (max-width: 1200px) and (pointer: coarse) {
    .book-page { max-width: 54rem; margin-inline: auto; }
    .book-canvas { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
}

@media screen and (max-width: 850px), screen and (max-width: 1200px) and (pointer: coarse) {
    .book-page > *, .book-page [style*="grid-template-columns"] > * { min-width: 0; }
    .book-page img { max-inline-size: 100% !important; }
    .book-page img[src$="crl_diagram_professional.png"] {
        width: min(100%, 34rem) !important;
        max-height: none !important;
    }
    .book-page h1, .book-page h2, .book-page h3 { overflow-wrap: anywhere; }
}
@media screen and (max-width: 420px) {
    .toc-dotted-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .35rem;
    }
    .toc-item-dots { display: none; }
}
