/* Content-only adaptation of demo-resume: portrait/profile, action rail, About, timeline. */
#main.detail-page>.detail-botanical-section {
    padding: 25px 0 0;
    background: linear-gradient(115deg, rgba(236, 241, 247, .76), rgba(249, 250, 250, .54) 76%)
}

/* Breadcrumb chapter band: full viewport color, content aligned by the page zone grid. */
#main.detail-page>.detail-breadcrumb-band {
    position: relative;
    z-index: 2;
    width: 100vw;
    min-height: 46px;
    margin-inline: calc(50% - 50vw);
    margin-bottom: 10px;
    background: var(--normal-bookmark-sage);
}

#main.detail-page .detail-breadcrumb-layout {
    min-height: 46px;
    display: grid;
    grid-template-columns: var(--nav-zone-width) minmax(0, 1fr) var(--stamp-zone-width);
    column-gap: var(--zone-gap);
    align-items: center;
}

#main.detail-page .detail-breadcrumb {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f5f0e4;
    font-size: 16px;
    line-height: 1.2;
    position: relative;
    inset-inline-start: calc(-1 * var(--archival-frame-outline-width));
}

#main.detail-page .detail-breadcrumb a,
#main.detail-page .detail-breadcrumb strong {
    color: inherit;
}

#main.detail-page .detail-breadcrumb a:first-child {
    color: rgba(245, 240, 228, .82);
}

#main.detail-page .detail-breadcrumb strong {
    font-weight: 600;
}

#main.detail-page .detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(22px, 2.8vw, 52px);
    align-items: start;
    padding: 80px 0 70px
}

@media (min-width:768px) {
    #main.detail-page .detail-hero {
        width: calc(100% - 56px);
        margin-inline: auto;
    }
}

#main.detail-page .specimen-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(25%, 30%, 35%);
    column-gap: clamp(12px, 1.5vw, 24px);
    align-items: center;
}

#main.detail-page .specimen-conservation {
    grid-column: auto
}

#main.detail-page .qbg-mobile-number {
    display: none
}

#main.detail-page .scientific-heading {
    width: 100%
}

#main.detail-page .specimen-identity .specimen-information-grid {
    min-width: 0
}

#main.detail-page .detail-content-column {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr);
    align-items: start;
}

#main.detail-page .detail-page-content,
#main.detail-page .detail-nav-space {
    min-width: 0;
}

/* Narrower content wrapper for the botanical detail section only. */
#main.detail-page .detail-botanical-wrap {
    width: calc(100% - 40px);
    margin-inline: auto;
}

@media (max-width:760px) {
    #main.detail-page .detail-botanical-wrap {
        width: calc(100% - 32px);
    }
}

@media (min-width:761px) and (max-width:1200px) {
    #main.detail-page .detail-botanical-wrap {
        width: 100%;
    }
}

@media (max-width:900px) {
    #main.detail-page .detail-content-column {
        grid-template-columns: 85px minmax(0, 1fr);
    }

    #main.detail-page .detail-nav-space {
        display: block
    }
}

#main.detail-page .detail-gallery {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin-top: -60px;
    padding: 0;
    background: transparent;
    box-shadow: none
}


#main.detail-page .sheet-frame {
    height: clamp(420px, calc(50dvh + 100px), 710px);
    padding: 0;
    border: 10px solid #fff;
    border-radius: 0;
    background: #f8f8f5;
    box-shadow: 0 12px 90px -10px rgba(80, 83, 86, .35)
}

#main.detail-page .sheet-frame img {
    object-fit: contain
}

@media (max-width:1100px) {
    #main.detail-page .detail-gallery {
        width: 100%;
        max-width: 520px;
        align-self: start;
        justify-self: start;
    }
}

@media (max-width:700px) {
    #main.detail-page .detail-gallery {
        max-width: 100%;
    }
}

#main.detail-page .gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
    will-change: transform
}

#main.detail-page .gallery-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    background: #f8f8f5
}

#main.detail-page .gallery-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center
}

#main.detail-page .gallery-slide.view-leaf img {
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.55);
    transform-origin: 50% 26%
}

#main.detail-page .gallery-slide.view-root img {
    object-fit: cover;
    object-position: center 80%;
    transform: scale(1.55);
    transform-origin: 50% 77%
}

#main.detail-page .gallery-slide.view-label img {
    object-fit: cover;
    object-position: 80% 100%;
    transform: scale(1.7);
    transform-origin: 82% 90%
}

@media(prefers-reduced-motion:reduce) {
    #main.detail-page .gallery-track {
        transition: none
    }
}

#main.detail-page .thumbs {
    gap: 9px;
    padding: 12px 0 0
}

#main.detail-page .thumb {
    height: 74px;
    border-radius: 2px
}

#main.detail-page .sheet-frame .gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    bottom: auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 68px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .86);
    color: #273b2d;
    box-shadow: 0 2px 12px #0002;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s
}

#main.detail-page .sheet-frame .gallery-prev {
    left: 10px;
    right: auto
}

#main.detail-page .sheet-frame .gallery-next {
    right: 10px;
    left: auto
}

#main.detail-page .sheet-frame:hover .gallery-arrow:not(:disabled),
#main.detail-page .sheet-frame:focus-within .gallery-arrow:not(:disabled) {
    opacity: 1
}

#main.detail-page .sheet-frame .gallery-arrow:hover {
    background: #fff
}

#main.detail-page .sheet-frame .gallery-arrow:disabled {
    cursor: default;
    opacity: 0
}

#main.detail-page .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

#main.detail-page .thumb {
    border: 2px solid #e1e4df;
    cursor: pointer;
    transition: border-color .2s
}

#main.detail-page .thumb:hover,
#main.detail-page .thumb.active {
    border-color: #314f36
}

#main.detail-page .thumb:focus-visible,
#main.detail-page .gallery-arrow:focus-visible {
    outline: 2px solid #315c36;
    outline-offset: 2px
}

@media(hover:none) {
    #main.detail-page .sheet-frame .gallery-arrow:not(:disabled) {
        opacity: 1
    }
}

#main.detail-page .detail-summary {
    display: block;
    min-height: 0;
    padding: 0;
    font-family: Anuphan, 'Anuphan', sans-serif
}

@media (min-width:768px) {
    #main.detail-page .specimen-scientific-name {
        margin-top: -50px;
    }
}

#main.detail-page .detail-summary .eyebrow {
    font-size: 13px;
    letter-spacing: .2em;
    margin: 0 0 16px;
    color: #7c8592
}

#main.detail-page .detail-summary h2 {
    font: 600 clamp(23px, calc(3.5vw - 13px), 35px)/1.05 Anuphan, 'Anuphan', sans-serif;
    letter-spacing: 0.01em;
    color: #c9a33b;
    font-weight:500;
    margin: 0 0 16px;
    overflow-wrap: anywhere
}

#main.detail-page .detail-summary h2 em {
    font-style: normal
}

#main.detail-page .authority {
    font-size: 21px;
    line-height: 1.4;
    color: #31383e;
    margin: 0 0 27px
}

#main.detail-page .specimen-scientific-name .eyebrow {
    display: grid;
    gap: 3px
}

#main.detail-page .specimen-scientific-name .eyebrow span {
    color: #7c8592;
    font: 400 11px/1.35 'Anuphan', sans-serif;
    letter-spacing: 0
}

#main.detail-page .specimen-information-grid {
    display: grid;
    gap: 18px
}

#main.detail-page .specimen-information-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: start
}

#main.detail-page .specimen-information-label {
    display: grid;
    gap: 3px;
    align-content: center
}

#main.detail-page .specimen-information-label strong {
    color: #303942;
    font: 600 13px/1.3 Anuphan, 'Anuphan', sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase
}

#main.detail-page .specimen-information-label span {
    color: #7c8592;
    font: 400 12px/1.35 'Anuphan', sans-serif
}

#main.detail-page .specimen-information-value {
    margin: 0;
    padding: 0;
    color: #c9a33b;
    font: 500 16px/1.0 Anuphan, 'Anuphan', sans-serif;
    align-self: start
}

/* Keep each value directly after its own label, as in the reference layout. */
#main.detail-page .specimen-information-row .specimen-information-value {
    flex: 0 1 auto;
}

#main.detail-page .specimen-information-row .specimen-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    gap: 10px
}

#main.detail-page .specimen-conservation {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d7ddd8;
    color: #303942
}

#main.detail-page .specimen-conservation h3 {
    margin: 0;
    color: #ca632c;
    font-size: 22px;
    line-height: 1.2
}

#main.detail-page .specimen-conservation>p {
    margin: 2px 0 20px;
    font-size: 14px;
    line-height: 1.2
}

#main.detail-page .specimen-conservation-line {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: baseline;
    margin-top: 10px
}

#main.detail-page .specimen-conservation-line > span {
    flex: 0 1 auto;
}

#main.detail-page .specimen-conservation-line strong {
    display: grid;
    gap: 3px;
    color: #607d8b;
    font: 600 13px/1.3 Anuphan, 'Anuphan', sans-serif;
    letter-spacing: .04em
}

#main.detail-page .specimen-conservation-line strong span {
    color: #7c8592;
    font: 400 12px/1.35 'Anuphan', sans-serif;
    letter-spacing: 0
}

#main.detail-page .specimen-conservation-line span {
    font-size: 18px
}

#main.detail-page .conservation-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f7e7e4;
    color: #B94A3C;
    font-size: 14px;
    line-height: 1.2
}

#main.detail-page .conservation-status-text {
    color: #B94A3C
}

@media(max-width:600px) {
    #main.detail-page .specimen-information-row {
        grid-template-columns: 124px minmax(0, 1fr);
        gap: 14px
    }

    #main.detail-page .specimen-information-value {
        font-size: 16px
    }
}

#main.detail-page .specimen-badges {
    margin-top: 23px;
    gap: 10px
}

#main.detail-page .specimen-badges span {
    font-size: 11px;
    padding: 7px 15px
}

#main.detail-page .resume-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 7px 19px;
    border-radius: 30px;
    background: #fdd55c;
    color: #272a2d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase
}

#main.detail-page .resume-view-more:hover {
    background: #f7c93b
}

#main.detail-page .qbg-herbarium-stamp {
    width: min(83%, 230px);
    justify-self: start;
    align-self: center;
    padding-top: 0;
    padding-bottom: 0;
    color: #293c32;
    text-align: center;
    font-family: Anuphan, 'Anuphan', sans-serif
}

#main.detail-page .qbg-herbarium-stamp__triangle {
    position: relative;
    width: 100%;
    aspect-ratio: 1.16;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 2%, 98% 92%, 2% 92%);
    background: #ab8750;
    padding: 2px
}

#main.detail-page .qbg-herbarium-stamp__triangle::before {
    content: '';
    position: absolute;
    inset: 4px;
    clip-path: polygon(50% 2%, 98% 92%, 2% 92%);
    background: rgba(255, 253, 247, .94)
}

#main.detail-page .qbg-herbarium-stamp__side,
#main.detail-page .qbg-herbarium-stamp__label,
#main.detail-page .qbg-herbarium-stamp__emblem {
    position: absolute;
    z-index: 1
}

#main.detail-page .qbg-herbarium-stamp__side {
    font: 600 clamp(6px, 1.15vw, 7px)/1 Anuphan, sans-serif;
    color: #314238;
    white-space: nowrap
}

#main.detail-page .qbg-herbarium-stamp__side--left {
    top: 71%;
    left: 17%;
    letter-spacing: 0.05em;
    transform: rotate(-58deg);
    transform-origin: left center;
}

#main.detail-page .qbg-herbarium-stamp__side--right {
    top: 75%;
    right: 16%;
    letter-spacing: -.05em;
    transform: rotate(58deg);
    transform-origin: right center;

}

#main.detail-page .qbg-herbarium-stamp__label {
    top: 79%;
    font: 600 clamp(6px, .92vw, 8px)/1 Anuphan, sans-serif;
    letter-spacing: .19em;
    color: #876a3f
}

#main.detail-page .qbg-herbarium-stamp__emblem {
    top: 32%;
    width: 23%;
    height: auto;
    filter: saturate(.88)
}

#main.detail-page .qbg-herbarium-stamp__number {
    margin: -10px 0 0;
    font: 600 clamp(8px, 1.35vw, 11px)/2.95 Anuphan, 'Anuphan', sans-serif;
    letter-spacing: .025em;
    color: #cf5015;
    white-space: nowrap
}

#main.detail-page .detail-action-band {
    position: relative;
    z-index: 1;
    width: calc(100% + 50px);
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e2e5e9
}

#main.detail-page .specimen-actions {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border: 0
}

#main.detail-page .specimen-actions>a,
#main.detail-page .specimen-actions>button {
    min-height: 82px;
    padding: 22px 12px;
    gap: 12px;
    font: 500 14px/1.4 Anuphan, 'Anuphan', sans-serif;
    white-space: normal;
    text-align: left
}

#main.detail-page .specimen-actions>*+*::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    border-left: 1px solid #e2e5e9;
    border-top: 0
}

#main.detail-page .specimen-actions i {
    font-size: 24px;
    color: #caa338
}

#main.detail-page>.detail-information-section {
    padding: 70px 0 82px;
    background: rgba(255, 255, 255, .94)
}

#main.detail-page .overview-detail-card {
    float: right;
    width: min(50%, 670px);
    margin: 0 0 35px 55px;
    padding: 35px;
    background: #fff;
    box-shadow: 0 30px 120px #dde5ee;
    border: 0
}

#main.detail-page .overview-detail-card h3 {
    font: 600 23px/1.25 Anuphan, 'Anuphan', sans-serif;
    letter-spacing: -.02em;
    text-transform: none;
    margin: 0 0 25px;
    color: #2b3138
}

#main.detail-page .overview-detail-card dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 110px minmax(0, 1fr);
    gap: 16px 14px;
    margin: 0
}

#main.detail-page .overview-detail-card dt {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #31383f
}

#main.detail-page .overview-detail-card dd {
    font-size: 14px;
    line-height: 1.45;
    color: #727c93
}

#main.detail-page .detail-story {
    max-width: none;
    font-family: Anuphan, 'Anuphan', sans-serif
}

#main.detail-page .detail-story h2 {
    font: 700 29px/1.25 Anuphan, 'Anuphan', sans-serif;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: #242b32
}

#main.detail-page .detail-story p:not(.eyebrow) {
    max-width: none;
    font-size: 16px;
    line-height: 1.85;
    color: #6f7888;
    margin: 0 0 20px
}

#main.detail-page .resume-more-button {
    margin-top: 7px;
    padding: 8px 22px;
    border: 0;
    border-radius: 30px;
    background: #fdd55c;
    color: #292c30;
    font: 600 12px Anuphan, 'Anuphan', sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase
}

#main.detail-page .resume-more-button:hover {
    background: #f7c93b
}

#main.detail-page>.detail-taxonomy-section {
    padding: 70px 0 100px;
    background: rgba(236, 241, 247, .82);
    border-top: 0
}

#main.detail-page .taxonomy-panel {
    max-width: none;
    font-family: Anuphan, 'Anuphan', sans-serif
}

#main.detail-page .taxonomy-panel .eyebrow {
    color: #687584
}

#main.detail-page .taxonomy-panel h2 {
    font: 700 29px/1.25 Anuphan, 'Anuphan', sans-serif;
    text-transform: uppercase;
    margin: 0 0 25px;
    color: #242b32
}

#main.detail-page .taxonomy-timeline {
    margin: 0 0 0 32px;
    padding: 0 0 0 38px;
    border-left: 3px solid #303a43
}

#main.detail-page .taxonomy-timeline>div {
    grid-template-columns: minmax(165px, 27%) minmax(0, 1fr);
    margin: 0 0 17px;
    box-shadow: 0 12px 45px rgba(171, 191, 216, .35)
}

#main.detail-page .taxonomy-timeline>div::before {
    left: -48px;
    width: 13px;
    height: 13px;
    border: 3px solid #303a43;
    background: #fdd55c;
    box-shadow: 0 0 0 3px #ecf1f7
}

#main.detail-page .taxonomy-timeline dt {
    display: flex;
    align-items: center;
    padding: 26px 30px;
    background: #fdd55c;
    color: #242b32;
    font-size: 14px
}

#main.detail-page .taxonomy-timeline dd {
    display: flex;
    align-items: center;
    padding: 26px 32px;
    background: #fff;
    color: #343f4b;
    font-size: 19px
}

.specimen-side-nav {
    width: 58px;
    background: #fdd55c;
    box-shadow: 0 10px 35px rgba(43, 47, 31, .2)
}

.specimen-side-nav a {
    width: 58px;
    height: 58px;
    background: #fdd55c;
    color: #26333a;
    font-size: 22px;
    border-color: #fff9
}

@media (min-width:421px) and (max-width:760px) {
    .specimen-side-nav,
    .specimen-side-nav a {
        width: 46px;
    }

    .specimen-side-nav a {
        height: 46px;
        font-size: 18px;
    }
}

@media (max-width:420px) {
    .specimen-side-nav {
        width: max-content;
    }

    .specimen-side-nav a {
        width: 45px;
        height: 45px;
    }
}

.specimen-side-nav a:is(:hover, :focus-visible),
.specimen-side-nav a.is-active {
    background: #fff;
    color: #26333a
}

.specimen-side-nav a>span {
    height: 58px;
    font-family: Anuphan, 'Anuphan', sans-serif
}

@media(max-width:1300px) {
    #main.detail-page .detail-hero {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        padding: 65px 0
    }

    #main.detail-page .qbg-herbarium-stamp {
        grid-column: auto;
        justify-self: end;
        width: min(100%, 210px);
        padding-top: 0;
        padding-bottom: 10px
    }

    #main.detail-page .specimen-identity {
        grid-template-columns: minmax(0, 1fr) clamp(145px, 18vw, 210px);
        gap: clamp(10px, 1.5vw, 16px);
    }

    #main.detail-page .specimen-identity .qbg-identity,
    #main.detail-page .specimen-identity .qbg-herbarium-stamp {
        width: 100%;
        min-width: 0;
        justify-self: end;
    }

    #main.detail-page .detail-summary h2 {
        font-size: clamp(22px, 3vw, 27px);
    }

    #main.detail-page .authority {
        font-size: 18px;
    }

    #main.detail-page .specimen-information-row {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 12px;
    }

    #main.detail-page .specimen-conservation h3 {
        font-size: 19px;
    }

    #main.detail-page .specimen-actions {
        width: 100%
    }

    #main.detail-page .overview-detail-card dl {
        grid-template-columns: 110px minmax(0, 1fr)
    }
}

@media(max-width:767px) {
    #main.detail-page .detail-hero {
        grid-template-columns: 1fr;
        padding: 10px 0 55px
    }

    #main.detail-page .detail-gallery {
        margin-top: 0;
        margin-inline: auto;
        width: 100%;
        max-width: 520px;
        align-self: start;
        justify-self: start
    }

    #main.detail-page .sheet-frame {
        height: clamp(550px, calc(55dvh + 150px), 670px)
    }

    #main.detail-page .detail-summary {
        width: calc(100% - 48px);
        margin-inline: auto;
        padding-top: 15px
    }

    #main.detail-page .specimen-identity {
        grid-template-columns: 1fr;
        gap: 0
    }

    #main.detail-page .qbg-herbarium-stamp {
        display: none
    }

    #main.detail-page .qbg-mobile-number {
        display: block;
        margin: 0 0 18px;
        color: #303942;
        font-size: 14px
    }

    #main.detail-page .qbg-herbarium-stamp {
        grid-column: auto;
        justify-self: start;
        width: min(100%, 240px);
        padding-top: 0
    }

    #main.detail-page .detail-action-band {
        width: 100%
    }

    #main.detail-page .overview-detail-card {
        float: none;
        width: 100%;
        margin: 0 0 38px
    }

    #main.detail-page .specimen-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:600px) {
    #main.detail-page .detail-summary {
        width: calc(100% - 32px);
    }

    #main.detail-page .specimen-actions {
        grid-template-columns: 1fr
    }

    #main.detail-page .specimen-actions>a,
    #main.detail-page .specimen-actions>button {
        min-height: 55px;
        justify-content: flex-start
    }

    #main.detail-page .specimen-actions>*+*::before {
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        border-left: 0;
        border-top: 1px solid #e2e5e9
    }

    #main.detail-page .overview-detail-card {
        padding: 26px
    }

    #main.detail-page .taxonomy-timeline {
        margin-left: 10px;
        padding-left: 25px
    }

    #main.detail-page .taxonomy-timeline>div {
        grid-template-columns: 105px minmax(0, 1fr)
    }

    #main.detail-page .taxonomy-timeline>div::before {
        left: -35px
    }

    #main.detail-page .taxonomy-timeline dt,
    #main.detail-page .taxonomy-timeline dd {
        padding: 18px 13px;
        font-size: 13px
    }

    .specimen-side-nav a>span {
        display: none
    }
}

/* Keep the specimen sheet and its frame in balance on narrow screens. */
@media(max-width:650px) {
    #main.detail-page .sheet-frame {
        height: auto;
        aspect-ratio: 7 / 9;
    }
}

/* Align the specimen copy with the responsive image frame. */
@media(max-width:720px) {
    #main.detail-page .detail-summary {
        width: min(100%, 520px);
        margin-inline: auto;
    }
}

/* Give the overview copy and record card room before they start wrapping heavily. */
@media (min-width:901px) and (max-width:1200px) {
    #main.detail-page .detail-information-section .detail-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
        width: calc(100% - 56px);
        max-width: none;
        margin-inline: auto;
    }

    #main.detail-page .detail-information-section .detail-story,
    #main.detail-page .detail-information-section .overview-detail-card {
        width: min(100%, 760px);
        max-width: none;
        margin: 0;
    }

    #main.detail-page .detail-information-section .detail-story {
        order: 1;
    }

    #main.detail-page .detail-information-section .overview-detail-card {
        order: 2;
        float: none;
    }
}

@media (max-width:767px) {
    #main.detail-page .detail-breadcrumb-layout {
        grid-template-columns: 85px minmax(0, 1fr);
        column-gap: 0;
    }
}

@media (max-width:760px) {
    #main.detail-page .detail-breadcrumb {
        width: calc(100% - 32px);
        margin-inline: auto;
    }
}
/* Scale page copy with the available width on small phones. */
@media (max-width:500px) {
    #main.detail-page .detail-breadcrumb {
        font-size: clamp(13px, 3.2vw, 16px);
    }

    #main.detail-page .detail-summary .eyebrow,
    #main.detail-page .specimen-information-label strong,
    #main.detail-page .specimen-conservation-line strong,
    #main.detail-page .overview-detail-card dt,
    #main.detail-page .taxonomy-timeline dt {
        font-size: clamp(11px, 2.6vw, 13px);
    }

    #main.detail-page .specimen-scientific-name .eyebrow span,
    #main.detail-page .specimen-information-label span,
    #main.detail-page .specimen-conservation-line strong span {
        font-size: clamp(10px, 2.4vw, 12px);
    }

    #main.detail-page .detail-summary h2 {
        font-size: clamp(18px, 4.4vw, 22px);
    }

    #main.detail-page .specimen-conservation-line>span {
        font-size: clamp(15px, 3.6vw, 18px);
    }

    #main.detail-page .detail-summary .specimen-scientific-name p.authority:not(.eyebrow),
    #main.detail-page .detail-summary .specimen-conservation>p:not(.eyebrow) {
        font-size: clamp(15px, 3.6vw, 18px) !important;
    }

    #main.detail-page .detail-summary .specimen-scientific-name p.qbg-mobile-number:not(.eyebrow) {
        font-size: clamp(12px, 2.8vw, 14px) !important;
    }

    #main.detail-page .specimen-information-value {
        font-size: clamp(13px, 3.2vw, 16px);
    }

    #main.detail-page .specimen-conservation h3 {
        font-size: clamp(16px, 3.8vw, 19px);
    }

    #main.detail-page .overview-detail-card h3 {
        font-size: clamp(19px, 4.6vw, 23px);
    }

    #main.detail-page .overview-detail-card dd {
        font-size: clamp(12px, 2.8vw, 14px);
    }

    #main.detail-page .detail-story h2,
    #main.detail-page .taxonomy-panel h2 {
        font-size: clamp(22px, 5.8vw, 29px);
    }

    #main.detail-page .detail-information-section .detail-story p:not(.eyebrow) {
        font-size: clamp(15px, 3.6vw, 18px) !important;
    }

    #main.detail-page .taxonomy-timeline dd {
        font-size: clamp(12px, 2.6vw, 13px);
    }
}

/* Use a slimmer side rail and reclaim the unused gutter on small phones. */
@media (min-width:421px) and (max-width:500px) {
    #main.detail-page .detail-content-column {
        grid-template-columns: clamp(65px, calc(25vw - 40px), 85px) minmax(0, 1fr);
    }

    .specimen-side-nav,
    .specimen-side-nav a {
        width: clamp(44px, calc(2.5vw + 33.5px), 46px);
    }

    .specimen-side-nav a {
        height: clamp(44px, calc(2.5vw + 33.5px), 46px);
        font-size: clamp(16px, calc(2.5vw + 5.5px), 18px);
    }
}

@media (max-width:420px) {
    #main.detail-page .detail-content-column {
        grid-template-columns: minmax(0, 1fr);
    }

    #main.detail-page .detail-nav-space {
        display: none;
    }

    .specimen-side-nav {
        padding: 3px 0;
    }
}
