.card-body h3 a { transition: color .18s; }
.card-body h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .14em; }
.detail-hero {
    background: radial-gradient(ellipse at 86% 20%, #dce8ff 0%, transparent 49%), linear-gradient(160deg, #fff 20%, #f0f5ff);
    padding: clamp(19px, 3vw, 45px) 0 0;
}
.detail-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: #486080; font-size: .81rem; }
.detail-breadcrumb a { font-weight: 650; }
.detail-breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.detail-breadcrumb svg { width: 13px; height: 13px; }
.detail-hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(17px, 4.1vw, 61px); align-items: center; margin-block: clamp(23px, 4.1vw, 56px); }
.detail-intro:only-child { grid-column: 1 / -1; }
.detail-intro { min-width: 0; }
.detail-type {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 6px 8px;
    background: #e5edff;
    color: #1944ad;
    border: 1px solid #d5e2fc;
    border-radius: 7px;
    font-size: .74rem;
    font-weight: 730;
}
.detail-type span { border-left: 1px solid #9fb3de; padding-left: 8px; }
.detail-type svg { width: 15px; height: 15px; }
.detail-intro h1 { margin-top: 13px; font-size: clamp(2.3rem, 4.15vw, 4.46rem); line-height: 1.02; letter-spacing: -.065em; text-wrap: initial; }
.detail-intro > p:not(.detail-type) { color: var(--muted); margin-top: 15px; max-width: 48ch; font-size: clamp(.99rem, 1.45vw, 1.15rem); }
.detail-intro .detail-price strong { color: var(--ink); font-size: 1.22em; }
.detail-actions { margin-top: 18px; }
.detail-gallery { min-width: 0; border: 1px solid #adc3ed; border-radius: 18px; background: white; padding: 10px; box-shadow: 0 16px 46px #203f8531; }
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px 7px; }
.gallery-bar > span { color: #2b4268; font-size: .82rem; font-weight: 700; }
.gallery-bar svg { width: 17px; height: 17px; color: var(--blue); margin-right: 4px; }
.gallery-switch { display: inline-flex; flex-wrap: wrap; padding: 2px; gap: 2px; border-radius: 7px; background: #eff4ff; }
.gallery-switch button { min-height: 37px; padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #3d5279; font-size: .74rem; font-weight: 680; }
.gallery-switch button[aria-pressed='true'] { background: white; border-color: #cad8f5; color: #173fbb; }
.gallery-frame + .gallery-frame { margin-top: 8px; }
.gallery-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.82; background: #eef4ff; border: 1px solid #dee7f5; border-radius: 10px; overflow: hidden; }
.gallery-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-image > span { position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #c7d7f5; border-radius: 8px; background: #fff; color: var(--blue); }
.gallery-image > span svg { width: 16px; height: 16px; }
.gallery-image:hover > span { background: #e6efff; }
.gallery-frame figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1px 5px; padding: 6px 2px 0; color: #4c5b76; font-size: .72rem; }
.gallery-frame figcaption span:first-child { color: var(--ink); font-weight: 680; }
.detail-index { display: flex; flex-wrap: wrap; align-items: center; gap: 0 15px; border-top: 1px solid #d4e0f2; }
.detail-index a { display: inline-flex; align-items: center; min-height: 49px; padding: 0 2px; color: #294571; font-size: .85rem; font-weight: 670; }
.detail-index a:hover { color: var(--blue); text-decoration: underline; }
.detail-features .section-head { margin-bottom: 19px; }
.detail-features .section-head p:not(.eyebrow) { max-width: 85ch; }
.detail-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.detail-feature { min-width: 0; border: 1px solid #d9e4f4; border-radius: 13px; padding: clamp(15px, 2.18vw, 26px); background: linear-gradient(155deg, #f7faff, #fff 65%); }
.detail-feature-icon { display: grid; width: 37px; height: 37px; place-items: center; color: var(--blue); background: #e6efff; border-radius: 8px; margin-bottom: 10px; }
.detail-feature-icon svg { width: 20px; height: 20px; }
.detail-feature h3 { font-size: 1.19rem; letter-spacing: -.03em; }
.detail-feature p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.detail-lab-section { background: #eef4ff; border-block: 1px solid #d8e5ff; }
.detail-lab-grid { display: grid; grid-template-columns: .62fr 1.38fr; align-items: start; gap: clamp(15px, 3vw, 40px); }
.detail-lab-guide h2, .detail-photo-grid h2 { font-size: clamp(1.8rem, 3.25vw, 3.1rem); margin-top: 6px; }
.detail-lab-guide p:not(.eyebrow), .detail-photo-grid p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.detail-note { font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.detail-note svg { color: var(--blue); width: 16px; height: 16px; }
.detail-photo-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: clamp(15px, 4vw, 45px); }
.detail-photo-grid figure { background: #e4edfc; border-radius: 16px; overflow: hidden; }
.detail-photo-grid img { width: 100%; height: auto; aspect-ratio: 2.02; object-fit: cover; }
.detail-cta { margin-bottom: 0; }
.detail-dock { display: none; }
.catalog-missing p { margin: 10px 0 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
    .detail-intro, .detail-gallery { animation: enter .38s ease-out both; }
    .detail-gallery { animation-delay: .045s; }
}
@media (max-width: 820px) {
    .detail-hero-grid, .detail-lab-grid, .detail-photo-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-hero-grid { margin-block: 19px 13px; }
    .detail-intro h1 { font-size: clamp(2.12rem, 7.1vw, 3.35rem); }
    .detail-intro > p:not(.detail-type) { margin-top: 9px; }
    .detail-actions { margin-top: 13px; }
    .detail-features, .detail-lab-section, .detail-photo-section { padding-block: 32px; }
    .detail-dock {
        position: fixed;
        display: grid;
        z-index: 18;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        inset: auto 0 0;
        padding: 6px var(--outer) max(6px, env(safe-area-inset-bottom));
        background: #fffffffa;
        border-top: 1px solid #cddcf5;
        box-shadow: 0 -5px 20px #264a851a;
    }
    .detail-dock .button { min-height: 43px; font-size: .8rem; padding-inline: 5px; }
    .page-detail .site-footer { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}
@media (max-width: 545px) {
    .detail-feature-grid { grid-template-columns: 1fr; gap: 7px; }
    .detail-feature { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; }
    .detail-feature-icon { grid-row: span 2; margin: 0; }
    .detail-feature p { margin-top: 0; }
    .detail-actions .button { font-size: .81rem; padding-inline: 11px; }
    .gallery-switch button { min-height: 34px; }
}
