/* One header contract for the six main section landing pages. */
body.safe-subpage.safe-section-landing .safe-section-hero {
    display: flex;
    align-items: flex-start;
    min-height: 360px;
    padding: 0;
}
body.safe-subpage.safe-section-landing .safe-section-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 108px clamp(20px, 5vw, 76px) 32px;
}
body.safe-subpage.safe-section-landing .safe-section-hero-panel {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.safe-subpage.safe-section-landing .safe-section-kicker {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}
body.safe-subpage.safe-section-landing .safe-section-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}
body.safe-subpage.safe-section-landing .safe-section-lead {
    max-width: 1100px;
    min-height: 54.4px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}
body.safe-subpage.safe-section-landing .safe-minimal-hero-tags {
    gap: 8px;
    margin-top: 16px;
}
body.safe-subpage.safe-section-landing .safe-minimal-hero-tags span {
    min-height: 28px;
    padding: 5px 9px;
}
body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: 640px;
    margin: 16px 0 0;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0;
    background: rgba(255, 254, 250, .92);
}
body.safe-subpage.safe-section-landing :is(.safe-library-search-field, .safe-academe-site-search-field) {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    padding-left: 8px;
}
body.safe-subpage.safe-section-landing :is(.safe-library-search-icon, .safe-academe-site-search-icon) {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    font-size: 14px;
    background: transparent;
}
body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search) input {
    min-width: 0;
    height: 40px;
    font-size: 16px;
}
body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search) button {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 0;
    letter-spacing: 0;
    white-space: nowrap;
}
body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search):focus-within {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
/* Topic shortcuts belong with the article filters, below the shared banner. */
body.safe-subpage.safe-section-landing .safe-section-topics-bar {
    border-bottom: 1px solid var(--safe-page-line);
    background: var(--safe-page-bg);
}
body.safe-subpage.safe-section-landing .safe-section-topics {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px clamp(20px, 5vw, 76px);
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    mask-image: none;
}
body.safe-subpage.safe-section-landing .safe-section-topics a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--safe-page-line);
    background: transparent;
    color: var(--safe-page-blue);
}
body.safe-subpage.safe-section-landing .safe-section-topics a:is(:hover, :focus-visible, .is-active) {
    border-color: var(--safe-page-accent);
    background: #e8edf1;
    color: var(--safe-page-blue);
}
@media (min-width: 992px) and (max-width: 1199px) {
    body.safe-subpage.safe-section-landing .safe-section-hero { min-height: 380px; }
    body.safe-subpage.safe-section-landing .safe-section-lead { min-height: 81.6px; }
}
@media (max-width: 991px) {
    body.safe-subpage.safe-section-landing .safe-section-hero { min-height: 0; }
    body.safe-subpage.safe-section-landing .safe-section-hero-inner { padding: 32px 24px; }
    body.safe-subpage.safe-section-landing .safe-section-lead { min-height: 0; }
    body.safe-subpage.safe-section-landing .safe-section-topics { padding: 12px 24px; }
}
@media (max-width: 700px) {
    body.safe-subpage.safe-section-landing .safe-section-hero-inner { padding: 28px 20px; }
    body.safe-subpage.safe-section-landing .safe-section-title { font-size: 29px; }
    body.safe-subpage.safe-section-landing .safe-section-topics { padding: 10px 20px; }
    body.safe-subpage.safe-section-landing .safe-section-topics a { min-height: 44px; }
    body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search) input,
    body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search) button { min-height: 44px; }
    body.safe-subpage.safe-section-landing :is(.safe-library-search, .safe-academe-site-search) button { padding: 0 10px; }
}
/* Keep the label on one line so every mobile title starts at the same height. */
@media (max-width: 991px) {
    body.safe-subpage.safe-section-landing .safe-section-kicker {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
