.mo-sd {
    --bg: #fff;
    --paper: #fff;
    --ink: #111;
    --muted: #666;
    --line: #d8d8d8;
    --soft: #f4f4f4;
    --accent: #111;
    --accent-soft: #f2f2f2;
    --dark: #111;
    --shadow: 0 14px 38px rgba(0,0,0,.08);
    --sans: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    --serif: Georgia,"Times New Roman",serif;
}

    .mo-sd * {
        box-sizing: border-box
    }

.mo-sd {
    scroll-behavior: smooth
}

.mo-sd {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.45
}

    .mo-sd button, .mo-sd input, .mo-sd select {
        font: inherit;
        color: inherit
    }

    .mo-sd button {
        cursor: pointer
    }

    .mo-sd a {
        color: inherit
    }

    .mo-sd .hidden {
        display: none !important
    }

    .mo-sd .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0,0,0,.10)
    }

    .mo-sd .header-inner {
        max-width: 1440px;
        margin: auto;
        height: 78px;
        padding: 0 30px;
        display: flex;
        align-items: center;
        gap: 24px
    }

    .mo-sd .brand {
        border: 0;
        background: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px
    }

    .mo-sd .brand-mark {
        width: 40px;
        height: 40px;
        border: 1.4px solid var(--ink);
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-family: var(--sans)
    }

    .mo-sd .brand-copy {
        font-size: 12px;
        font-weight: 850;
        letter-spacing: .11em;
        text-transform: uppercase;
        text-align: left;
        line-height: 1.15
    }

        .mo-sd .brand-copy span {
            display: block;
            color: var(--muted);
            font-weight: 500;
            letter-spacing: .02em;
            text-transform: none;
            margin-top: 4px
        }

    .mo-sd .nav {
        margin-left: auto;
        display: flex;
        gap: 5px;
        align-items: center
    }

        .mo-sd .nav button {
            border: 0;
            background: transparent;
            border-radius: 999px;
            padding: 10px 14px;
            font-weight: 700
        }

            .mo-sd .nav button.active {
                background: var(--dark);
                color: #fff
            }

    .mo-sd .test-btn {
        border: 1px solid var(--line) !important;
        background: var(--paper) !important;
        font-size: 12px
    }

    .mo-sd .mo-sd-main {
        max-width: 1440px;
        margin: auto;
        padding: 54px 30px 100px
    }

    .mo-sd .page-hero {
        max-width: 1220px
    }

    .mo-sd .eyebrow {
        font-size: 12px;
        font-weight: 850;
        letter-spacing: .16em;
        text-transform: uppercase;
        margin-bottom: 13px
    }

    .mo-sd h1, .mo-sd h2, .mo-sd h3 {
        font-family: var(--sans);
        font-weight: 500;
        line-height: 1.04;
        margin: 0
    }

    .mo-sd h1 {
        font-size: clamp(50px,7vw,94px)
    }

    .mo-sd h2 {
        font-size: clamp(36px,4.2vw,58px)
    }

    .mo-sd h3 {
        font-size: 26px
    }

    .mo-sd .lead {
        font-size: 20px;
        color: var(--muted);
        margin: 17px 0 0;
        max-width: 900px
    }

    .mo-sd .search-row {
        display: grid;
        grid-template-columns: minmax(0,1fr) 132px;
        gap: 14px;
        margin-top: 38px;
        max-width: 1150px
    }

        .mo-sd .search-row input {
            height: 74px;
            border: 1px solid var(--line);
            background: var(--paper);
            border-radius: 20px;
            padding: 0 24px;
            font-size: 21px;
            outline: none
        }

            .mo-sd .search-row input:focus {
                border-color: #777;
                box-shadow: 0 0 0 3px rgba(0,0,0,.08)
            }

        .mo-sd .search-row button {
            border: 0;
            border-radius: 20px;
            background: var(--dark);
            color: #fff;
            font-weight: 850;
            font-family: var(--sans);
            font-size: 18px
        }

    .mo-sd .under-search {
        max-width: 1150px;
        padding: 16px 0 24px;
        display: flex;
        align-items: center;
        gap: 12px 20px;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line)
    }

    .mo-sd .suggestion-label {
        font-size: 13px;
        color: var(--muted);
        font-weight: 750
    }

    .mo-sd .suggestion-chips {
        display: flex;
        gap: 8px;
        flex-wrap: wrap
    }

    .mo-sd .suggestion-chip, .mo-sd .quick-chip, .mo-sd .area-chip, .mo-sd .active-filter, .mo-sd .image-axis {
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 999px;
        padding: 9px 13px
    }

    .mo-sd .suggestion-chip {
        font-size: 13px;
        background: transparent;
        position: relative;
        overflow: clip;
        padding-left: 45px;
    }

        .mo-sd .suggestion-chip:before {
            content: '';
            display: inline-block;
            background: #f3f3f3 var(--subject-image) center / cover no-repeat;
            width: 38px;
            height: 100%;
            margin: 0;
            padding: 0;
            position: absolute;
            top: 0;
            left: 0;
            background-color: #f3f3f3;
        }

        .mo-sd .suggestion-chip:hover {
            background: var(--paper)
        }

    .mo-sd .switch-link {
        margin-left: auto;
        border: 0;
        background: none;
        padding: 7px 0;
        color: #555;
        text-decoration: none
    }

        .mo-sd .switch-link:hover {
            text-decoration: underline;
            text-underline-offset: 4px
        }
    /*.mo-sd .section{padding-top:50px}*/
    .mo-sd .section-title-row {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 26px;
        margin-bottom: 22px
    }

    .mo-sd .section-copy {
        color: var(--muted);
        max-width: 700px;
        margin: 9px 0 0
    }

    .mo-sd .results-controls {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 18px
    }

    .mo-sd .scope-select {
        height: 46px;
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 13px;
        padding: 0 40px 0 14px;
        font-weight: 760;
        min-width: 238px
    }

    .mo-sd .count {
        font-family: var(--sans);
        font-size: 29px;
        margin-right: auto
    }

        .mo-sd .count small {
            display: block;
            font-family: var(--sans);
            font-size: 12px;
            color: var(--muted);
            font-weight: 600;
            margin-top: 2px
        }

    .mo-sd .secondary-btn {
        height: 46px;
        border: 1px solid var(--line);
        background: transparent;
        border-radius: 13px;
        padding: 0 15px;
        font-weight: 750
    }

        .mo-sd .secondary-btn:hover {
            background: var(--paper)
        }

    .mo-sd .sort-select {
        height: 46px;
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 13px;
        padding: 0 38px 0 13px
    }

    .mo-sd .filter-panel {
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        padding: 20px;
        margin: 2px 0 22px
    }

    .mo-sd .filter-grid {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 20px
    }

    .mo-sd .filter-group strong {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .09em
    }

    .mo-sd .filter-options {
        display: flex;
        gap: 7px;
        flex-wrap: wrap;
        margin-top: 10px
    }

    .mo-sd .filter-option {
        border: 1px solid var(--line);
        background: var(--paper);
        border-radius: 999px;
        padding: 7px 10px;
        font-size: 13px
    }

        .mo-sd .filter-option.active {
            background: var(--dark);
            border-color: var(--dark);
            color: #fff
        }

    .mo-sd .active-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 0 0 20px
    }

    .mo-sd .active-filter {
        font-size: 13px;
        background: var(--accent-soft);
        border-color: #d8d8d8
    }

    .mo-sd .clear-all {
        border: 0;
        background: none;
        color: var(--muted);
        text-decoration: underline;
        text-underline-offset: 3px
    }

    .mo-sd .collection-explore {
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 22px 0;
        margin: 0 0 24px
    }

    .mo-sd .collection-explore-header {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        align-items: baseline;
        margin-bottom: 14px
    }

        .mo-sd .collection-explore-header strong {
            font-family: var(--sans);
            font-size: 23px;
            font-weight: 500
        }

        .mo-sd .collection-explore-header span {
            font-size: 13px;
            color: var(--muted)
        }

    .mo-sd .area-row {
        display: flex;
        gap: 9px;
        flex-wrap: wrap
    }

    .mo-sd .area-chip {
        background: transparent;
        font-weight: 720
    }

        .mo-sd .area-chip:hover {
            background: var(--paper)
        }

        .mo-sd .area-chip.active {
            background: var(--dark);
            color: #fff;
            border-color: var(--dark)
        }

    .mo-sd .child-block {
        padding: 16px 0 0;
        margin-top: 15px;
        border-top: 1px dashed #ccc
    }

    .mo-sd .child-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .1em;
        font-weight: 800;
        color: var(--muted);
        margin-bottom: 9px
    }

    .mo-sd .child-hint {
        font-size: 12px;
        color: var(--muted);
        margin-top: 9px
    }

    .mo-sd .object-grid {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 26px 18px
    }

    .mo-sd .object-card {
        border: 0;
        background: none;
        padding: 0;
        text-align: left
    }

    .mo-sd .object-thumb {
        aspect-ratio: 1.14/1;
        background: #f3f3f3 var(--subject-image) center / cover no-repeat;
        border: 1px solid var(--line);
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        --subject-image: url()
    }

        .mo-sd .object-thumb img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .mo-sd .object-thumb svg {
            display: block;
            width: 100%;
            height: 100%
        }

    .mo-sd .object-card h3 {
        font-family: var(--sans);
        font-size: 21px;
        margin: 12px 0 5px
    }

    .mo-sd .object-meta {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.5
    }

    .mo-sd .object-card:hover h3 {
        text-decoration: underline;
        text-underline-offset: 4px
    }

    .mo-sd .empty-help {
        padding: 26px;
        border: 1px dashed #bbb;
        border-radius: 18px;
        background: rgba(255,255,255,.25);
        margin-bottom: 20px
    }

        .mo-sd .empty-help strong {
            font-family: var(--sans);
            font-size: 23px;
            font-weight: 500
        }

        .mo-sd .empty-help p {
            color: var(--muted);
            margin: 8px 0 14px
        }

    .mo-sd .inline-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap
    }
    /* Image archive deliberately uses a different visual grammar */
    .mo-sd .image-page .page-hero {
        max-width: 1160px
    }

    .mo-sd .image-page .search-row {
        max-width: 1080px
    }

    .mo-sd .image-page .under-search {
        max-width: 1080px;
        border-bottom: 0;
        padding-bottom: 10px
    }

    .mo-sd .image-tools {
        display: flex;
        gap: 9px;
        flex-wrap: wrap;
        margin-top: 10px
    }

    .mo-sd .image-axis {
        background: transparent;
        font-weight: 780;
        padding: 10px 15px
    }

        .mo-sd .image-axis:hover, .mo-sd .image-axis.active {
            background: var(--dark);
            color: #fff;
            border-color: var(--dark)
        }

    .mo-sd .axis-panel {
        margin-top: 12px;
        max-width: 1050px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,.96);
        border-radius: 18px;
        padding: 16px
    }

        .mo-sd .axis-panel .filter-options {
            margin: 0
        }

    .mo-sd .image-context {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 13px
    }

    .mo-sd .context-chip {
        font-size: 12px;
        padding: 7px 10px;
        border-radius: 999px;
        background: var(--accent-soft);
        border: 1px solid #d8d8d8
    }

    .mo-sd .image-results-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 20px;
        margin: 28px 0 18px
    }

    .mo-sd .image-count {
        font-family: var(--sans);
        font-size: 31px
    }

        .mo-sd .image-count span {
            font-family: var(--sans);
            font-size: 13px;
            color: var(--muted);
            margin-left: 6px
        }

    .mo-sd .image-grid {
        display: grid;
        grid-template-columns: repeat(12,1fr);
        grid-auto-flow: dense;
        gap: 8px
    }

    .mo-sd .image-tile {
        border: 0;
        padding: 0;
        background: #ddd;
        overflow: hidden;
        position: relative;
        border-radius: 5px;
        min-height: 155px
    }

        .mo-sd .image-tile img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover
        }

        .mo-sd .image-tile svg {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover
        }

        .mo-sd .image-tile.w2 {
            grid-column: span 2
        }

        .mo-sd .image-tile.w3 {
            grid-column: span 3
        }

        .mo-sd .image-tile.w4 {
            grid-column: span 4
        }

        .mo-sd .image-tile.w5 {
            grid-column: span 5
        }

        .mo-sd .image-tile.h2 {
            grid-row: span 2;
            min-height: 318px
        }

        .mo-sd .image-tile:hover {
            outline: 3px solid var(--paper);
            outline-offset: -3px
        }

    .mo-sd .image-caption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 24px 10px 9px;
        color: #fff;
        background: linear-gradient(transparent,rgba(0,0,0,.76));
        font-size: 12px;
        opacity: 0;
        transition: .15s
    }

    .mo-sd .image-tile:hover .image-caption {
        opacity: 1
    }

    .mo-sd .more-wrap {
        text-align: center;
        padding: 28px 0 10px
    }

    .mo-sd .more-btn {
        border: 1px solid var(--ink);
        background: transparent;
        border-radius: 999px;
        padding: 12px 22px;
        font-weight: 800
    }

        .mo-sd .more-btn:hover {
            background: var(--dark);
            color: #fff
        }

    .mo-sd .see-also {
        margin-top: 54px;
        padding-top: 36px;
        border-top: 1px solid var(--line)
    }

    .mo-sd .topic-row {
        display: grid;
        grid-template-columns: 180px minmax(0,1fr);
        gap: 20px;
        align-items: start;
        padding: 17px 0;
        border-bottom: 1px solid var(--line)
    }

        .mo-sd .topic-row h3 {
            font-size: 25px
        }

    .mo-sd .mini-strip {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 8px
    }

    .mo-sd .mini-photo {
        aspect-ratio: 1.35/1;
        border-radius: 5px;
        overflow: hidden;
        border: 0;
        padding: 0
    }

        .mo-sd .mini-photo svg {
            width: 100%;
            height: 100%;
            display: block
        }

        .mo-sd .mini-photo:hover {
            outline: 2px solid var(--ink);
            outline-offset: 2px
        }

    .mo-sd .modal {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(0,0,0,.58);
        display: grid;
        place-items: center;
        padding: 22px
    }

    .mo-sd .modal-card {
        width: min(1080px,100%);
        max-height: 92vh;
        overflow: auto;
        background: var(--paper);
        border-radius: 20px;
        box-shadow: 0 30px 100px rgba(0,0,0,.25);
        display: grid;
        grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr)
    }

    .mo-sd .modal-image {
        min-height: 560px;
        background: #e5e5e5
    }

        .mo-sd .modal-image svg {
            width: 100%;
            height: 100%;
            display: block
        }

    .mo-sd .modal-info {
        padding: 28px
    }

    .mo-sd .modal-close {
        float: right;
        border: 1px solid var(--line);
        background: transparent;
        border-radius: 999px;
        padding: 7px 10px
    }

    .mo-sd .modal-info h3 {
        font-size: 34px;
        margin-top: 55px
    }

    .mo-sd .modal-meta {
        margin: 18px 0;
        padding: 15px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        font-size: 14px;
        color: var(--muted)
    }

    .mo-sd .modal-actions {
        display: flex;
        flex-direction: column;
        gap: 8px
    }

        .mo-sd .modal-actions button {
            border: 1px solid var(--line);
            background: transparent;
            border-radius: 12px;
            padding: 11px;
            text-align: left
        }

            .mo-sd .modal-actions button:hover {
                background: var(--soft)
            }

    .mo-sd .scenario {
        width: 100%;
        border: 0;
        background: transparent;
        text-align: left;
        padding: 11px;
        border-radius: 10px
    }

        .mo-sd .scenario:hover {
            background: var(--soft)
        }

        .mo-sd .scenario small {
            display: block;
            color: var(--muted);
            margin-top: 2px
        }

    .mo-sd .notice {
        max-width: 1080px;
        background: #f5f5f5;
        border: 1px solid #ccc;
        border-radius: 13px;
        padding: 11px 13px;
        font-size: 13px;
        margin-top: 12px
    }

    .mo-sd .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0
    }

@media (max-width:980px) {
    .mo-sd .object-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .mo-sd .filter-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .mo-sd .image-grid {
        grid-template-columns: repeat(8,1fr)
    }

    .mo-sd .image-tile.w5 {
        grid-column: span 4
    }

    .mo-sd .image-tile.w4 {
        grid-column: span 4
    }

    .mo-sd .image-tile.w3 {
        grid-column: span 3
    }

    .mo-sd .image-tile.w2 {
        grid-column: span 2
    }

    .mo-sd .topic-row {
        grid-template-columns: 140px minmax(0,1fr)
    }

    .mo-sd .modal-card {
        grid-template-columns: 1fr
    }

    .mo-sd .modal-image {
        min-height: 420px
    }
}

@media (max-width:720px) {
    .mo-sd .header-inner {
        height: 66px;
        padding: 0 18px
    }

    .mo-sd .brand-copy span {
        display: none
    }

    .mo-sd .brand-mark {
        width: 36px;
        height: 36px
    }

    .mo-sd .nav button:not(.active):not(.test-btn) {
        display: none
    }

    .mo-sd .nav button {
        padding: 8px 10px
    }

    .mo-sd .test-btn {
        font-size: 0
    }

        .mo-sd .test-btn:after {
            content: "⋯";
            font-size: 18px
        }

    .mo-sd .mo-sd-main {
        padding: 34px 18px 72px
    }

    .mo-sd h1 {
        font-size: clamp(46px,14vw,70px)
    }

    .mo-sd .lead {
        font-size: 17px
    }

    .mo-sd .search-row {
        grid-template-columns: 1fr;
        margin-top: 27px
    }

        .mo-sd .search-row input {
            height: 62px;
            border-radius: 16px;
            font-size: 18px
        }

        .mo-sd .search-row button {
            height: 56px;
            border-radius: 16px
        }

    .mo-sd .under-search {
        align-items: flex-start
    }

    .mo-sd .switch-link {
        width: 100%;
        margin-left: 0
    }
    /*.mo-sd .section{padding-top:38px}*/
    .mo-sd .section-title-row {
        align-items: start
    }

    .mo-sd .results-controls {
        align-items: stretch
    }

    .mo-sd .scope-select {
        width: 100%;
        min-width: 0
    }

    .mo-sd .count {
        width: 100%;
        font-size: 27px;
        order: 2
    }

    .mo-sd .secondary-btn, .mo-sd .sort-select {
        height: 43px
    }

    .mo-sd .collection-explore {
        margin-top: 3px
    }

    .mo-sd .collection-explore-header {
        display: block
    }

        .mo-sd .collection-explore-header span {
            display: block;
            margin-top: 4px
        }

    .mo-sd .area-chip {
        padding: 9px 12px
    }

    .mo-sd .filter-grid {
        grid-template-columns: 1fr
    }

    .mo-sd .object-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 22px 12px
    }

    .mo-sd .object-card h3 {
        font-size: 18px
    }

    .mo-sd .image-grid {
        grid-template-columns: repeat(4,1fr);
        gap: 5px
    }

    .mo-sd .image-tile.w5, .mo-sd .image-tile.w4 {
        grid-column: span 2
    }

    .mo-sd .image-tile.w3 {
        grid-column: span 2
    }

    .mo-sd .image-tile.w2 {
        grid-column: span 2
    }

    .mo-sd .image-tile.h2 {
        min-height: 260px
    }

    .mo-sd .image-caption {
        display: none
    }

    .mo-sd .image-results-head {
        margin-top: 22px
    }

    .mo-sd .topic-row {
        grid-template-columns: 1fr;
        gap: 9px
    }

    .mo-sd .mini-strip {
        grid-template-columns: repeat(4,1fr)
    }

    .mo-sd .modal {
        padding: 0
    }

    .mo-sd .modal-card {
        height: 100vh;
        max-height: none;
        border-radius: 0
    }

    .mo-sd .modal-image {
        min-height: 45vh
    }

    .mo-sd .modal-info {
        padding: 20px
    }

        .mo-sd .modal-info h3 {
            font-size: 30px
        }

    .mo-sd .suggestion-chips {
        overflow: visible
    }

    .mo-sd .test-panel {
        right: 12px;
        top: 74px;
        width: calc(100vw - 24px)
    }
}

@media (max-width:470px) {
    .mo-sd .object-grid {
        grid-template-columns: 1fr
    }

    .mo-sd .object-thumb {
        aspect-ratio: 1.45/1
    }

    .mo-sd .mini-strip {
        grid-template-columns: repeat(4,1fr);
        gap: 4px
    }

    .mo-sd .topic-row h3 {
        font-size: 22px
    }

    .mo-sd .image-axis {
        padding: 9px 12px
    }

    .mo-sd .image-tile {
        min-height: 125px
    }

        .mo-sd .image-tile.h2 {
            min-height: 255px
        }
}
/* v0.5 functional additions: query assistance, facet counts, state summary, discovery relations */
.mo-sd .search-box-wrap {
    position: relative;
    min-width: 0
}

    .mo-sd .search-box-wrap > input {
        width: 100%
    }

.mo-sd .query-assist {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    z-index: 70;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.mo-sd .assist-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px
}

    .mo-sd .assist-item:last-child {
        border-bottom: 0
    }

    .mo-sd .assist-item:hover, .mo-sd .assist-item:focus {
        background: var(--soft)
    }

.mo-sd .assist-type {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap
}

.mo-sd .search-expansion {
    max-width: 1150px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted)
}

    .mo-sd .search-expansion strong {
        color: var(--ink)
    }

.mo-sd .logic-note {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 14px
}

.mo-sd .chip-count {
    opacity: .65;
    font-weight: 650;
    margin-left: 5px;
    font-variant-numeric: tabular-nums
}

.mo-sd .filter-option:disabled, .mo-sd .area-chip:disabled {
    opacity: .4;
    cursor: not-allowed
}

.mo-sd .filter-group-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline
}

    .mo-sd .filter-group-head small {
        font-size: 10px;
        color: var(--muted)
    }

.mo-sd .current-summary {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 20px
}

.mo-sd .current-summary-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 800
}

.mo-sd .summary-chip {
    border: 1px solid #d8d8d8;
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px
}

    .mo-sd .summary-chip.static {
        background: transparent;
        border-color: var(--line)
    }

.mo-sd .axis-panel .filter-group {
    margin-bottom: 15px
}

    .mo-sd .axis-panel .filter-group:last-child {
        margin-bottom: 0
    }

.mo-sd .axis-panel .filter-group-head {
    margin-bottom: 8px
}

.mo-sd .image-axis .axis-count {
    display: inline-block;
    margin-left: 5px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-size: 10px
}

.mo-sd .image-axis.active .axis-count {
    background: rgba(255,255,255,.22);
    color: #fff
}

.mo-sd .image-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 16px
}

    .mo-sd .image-controls .sort-select {
        margin-left: auto
    }

.mo-sd .result-note {
    font-size: 12px;
    color: var(--muted);
    margin: -8px 0 16px
}

.mo-sd .relation-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 5px
}

.mo-sd .relation-button {
    border: 0;
    background: none;
    padding: 0;
    text-align: left
}

    .mo-sd .relation-button h3:hover {
        text-decoration: underline;
        text-underline-offset: 4px
    }

.mo-sd .relation-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px
}

.mo-sd .meta-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px
}

.mo-sd .meta-button {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px
}

    .mo-sd .meta-button:hover {
        background: var(--soft)
    }

.mo-sd .semantic-note {
    max-width: 1050px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-left: 3px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    background: rgba(255,255,255,.96)
}

    .mo-sd .semantic-note strong {
        color: var(--ink)
    }

.mo-sd .facet-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 9px
}

.mo-sd .facet-search {
    height: 36px;
    min-width: 220px;
    max-width: 360px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    padding: 0 10px;
    font-size: 12px
}

.mo-sd .facet-more {
    border: 0;
    background: none;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 12px;
    padding: 5px 0
}

.mo-sd .facet-status {
    font-size: 11px;
    color: var(--muted)
}

.mo-sd .modal-meta-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--line)
}

    .mo-sd .modal-meta-row:last-child {
        border-bottom: 0
    }

    .mo-sd .modal-meta-row strong {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 5px;
        color: var(--muted)
    }

.mo-sd .modal-actions-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 800;
    margin: 18px 0 8px
}

.mo-sd .empty-help .impact {
    font-size: 12px;
    color: var(--muted);
    margin-left: 5px
}

.mo-sd .active-filter-group {
    display: inline-flex;
    gap: 4px;
    align-items: center
}

.mo-sd .state-help {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 14px
}

.mo-sd .prototype-badge {
    font-size: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 7px;
    color: var(--muted);
    margin-left: 4px
}

@media (max-width:720px) {
    .mo-sd .image-controls .sort-select {
        margin-left: 0
    }

    .mo-sd .query-assist {
        top: calc(100% + 5px)
    }
}

/* Integration wrapper: only used by the two paste-in HTML parts. */
.mo-sd {
    position: relative;
    isolation: isolate;
    width: 100%;
}

    .mo-sd .mo-sd-main {
        max-width: 1440px;
        margin: auto;
        padding: 54px 30px 100px;
    }

    .mo-sd .mo-prototype-tools {
        max-width: 1440px;
        margin: 0 auto;
        padding: 12px 30px 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        font-family: var(--sans);
    }

    .mo-sd .mo-prototype-label {
        font-size: 11px;
        color: var(--muted);
    }

    .mo-sd .mo-prototype-tools .test-btn {
        border: 1px solid var(--line) !important;
        background: var(--paper) !important;
        font-size: 12px;
        border-radius: 999px;
        padding: 7px 11px;
        font-weight: 700;
    }

@media(max-width:720px) {
    .mo-sd .mo-sd-main {
        padding: 34px 18px 72px
    }

    .mo-sd .mo-prototype-tools {
        padding: 10px 18px 0
    }
}

/* Progressive enhancement layer.
   The baseline HTML is visible and useful before JavaScript executes. */
.mo-sd .pe-js-only {
    display: none !important
}

.mo-sd.is-enhanced .mo-prototype-tools.pe-js-only {
    display: flex !important
}

.mo-sd .object-card, .mo-sd .image-tile, .mo-sd .suggestion-chip, .mo-sd .switch-link {
    text-decoration: none
}

    /* v0.8 neutral presentation: keep attention on interaction and information architecture. */
    .mo-sd .object-thumb svg, .mo-sd .image-tile svg, .mo-sd .mini-photo svg, .mo-sd .modal-image svg {
        filter: grayscale(1);
    }

/* v1.0 image detail / stage enhancement */
html.mo-image-overlay-open {
    overflow: hidden
}

.mo-sd .image-detail-shell {
    font-family: var(--sans);
    color: var(--ink)
}

    .mo-sd .image-detail-shell.is-overlay {
        position: fixed;
        inset: 0;
        z-index: 120;
        background: rgba(12,12,12,.58);
        overflow: auto;
        padding: clamp(14px,3vw,42px);
        overscroll-behavior: contain
    }

    .mo-sd .image-detail-shell.is-page {
        max-width: 1440px;
        margin: 0 auto;
        padding: 24px 30px 100px
    }

.mo-sd .image-detail-frame {
    width: min(1280px,100%);
    margin: 0 auto;
    background: var(--paper);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 110px rgba(0,0,0,.28)
}

.mo-sd .is-page .image-detail-frame {
    box-shadow: none;
    border-radius: 0
}

.mo-sd .image-stage {
    position: relative;
    min-height: min(72vh,820px);
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    background: #111;
    color: #fff;
    overflow: hidden
}

.mo-sd .stage-toolbar, .mo-sd .stage-footer {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(17,17,17,.92)
}

.mo-sd .stage-nav, .mo-sd .stage-actions, .mo-sd .slideshow-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap
}

.mo-sd .stage-control {
    border: 1px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 999px;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 750
}

    .mo-sd .stage-control:hover, .mo-sd .stage-control:focus-visible, .mo-sd .stage-control.active {
        background: #fff;
        color: #111;
        outline: none
    }

.mo-sd .stage-random {
    min-width: 106px
}

.mo-sd .stage-picture {
    position: relative;
    z-index: 1;
    border: 0;
    padding: 0;
    margin: 0;
    background: #111;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 0;
    cursor: zoom-in;
    overflow: hidden
}

    .mo-sd .stage-picture svg {
        display: block;
        width: 100%;
        height: 100%;
        max-height: calc(100vh - 150px);
        object-fit: contain;
        filter: grayscale(1)
    }

.mo-sd .stage-selected-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px
}

    .mo-sd .stage-selected-meta strong {
        font-family: var(--sans);
        font-size: 16px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .mo-sd .stage-selected-meta span {
        font-size: 11px;
        color: #bbb;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

.mo-sd .stage-interval {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #bbb
}

    .mo-sd .stage-interval select {
        height: 32px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.26);
        background: #222;
        color: #fff;
        padding: 0 26px 0 9px
    }

.mo-sd .annotation-layer {
    position: absolute;
    z-index: 3;
    inset: 48px 0 58px;
    pointer-events: none
}

.mo-sd .annotation {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%,-50%);
    border: 0;
    background: none;
    color: #fff;
    padding: 0;
    pointer-events: auto;
    font: inherit
}

    .mo-sd .annotation.subject .annotation-dot {
        display: block;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 4px solid rgba(0,0,0,.5);
        box-shadow: 0 0 0 1px rgba(255,255,255,.8)
    }

    .mo-sd .annotation.person {
        width: var(--w);
        height: var(--h)
    }

.mo-sd .annotation-person-ring {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45),0 2px 10px rgba(0,0,0,.3)
}

.mo-sd .annotation-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 7px);
    transform: translateX(-50%);
    display: block;
    max-width: 180px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s
}

.mo-sd .annotation:hover .annotation-label, .mo-sd .annotation:focus-visible .annotation-label {
    opacity: 1
}

.mo-sd .annotation:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 10px
}

.mo-sd .image-detail-info {
    padding: clamp(24px,4vw,52px)
}

.mo-sd .image-detail-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 24px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line)
}

    .mo-sd .image-detail-heading h1 {
        font-size: clamp(36px,5vw,68px)
    }

    .mo-sd .image-detail-heading .lead {
        max-width: 820px;
        font-size: 18px
    }

.mo-sd .detail-close, .mo-sd .detail-back {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap
}

    .mo-sd .detail-close:hover, .mo-sd .detail-back:hover {
        background: var(--soft)
    }

.mo-sd .detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0 30px;
    margin-top: 30px
}

    .mo-sd .detail-meta-grid > div {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        min-width: 0
    }

        .mo-sd .detail-meta-grid > div.wide {
            grid-column: 1/-1
        }

    .mo-sd .detail-meta-grid strong {
        display: block;
        margin-bottom: 8px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .09em;
        color: var(--muted)
    }

.mo-sd .detail-follow {
    max-width: 720px;
    margin-top: 34px
}

    .mo-sd .detail-follow .modal-actions {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

.mo-sd .image-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #090909
}

    .mo-sd .image-stage:fullscreen .stage-picture svg {
        max-height: calc(100vh - 132px)
    }

    .mo-sd .image-stage:fullscreen .annotation-layer {
        inset: 48px 0 58px
    }

    .mo-sd .image-stage:fullscreen .annotation-label {
        opacity: .9
    }

::view-transition-group(mo-image-hero) {
    animation-duration: 360ms;
    animation-timing-function: cubic-bezier(.22,1,.36,1)
}

@media(prefers-reduced-motion:reduce) {
    ::view-transition-group(mo-image-hero) {
        animation-duration: .01ms
    }

    .mo-sd .annotation-label {
        transition: none
    }
}

@media(max-width:900px) {
    .mo-sd .image-detail-shell.is-overlay {
        padding: 12px
    }

    .mo-sd .image-stage {
        min-height: 62vh
    }

    .mo-sd .detail-meta-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:720px) {
    .mo-sd .image-detail-shell.is-overlay {
        padding: 0
    }

    .mo-sd .image-detail-shell.is-page {
        padding: 0 0 72px
    }

    .mo-sd .image-detail-frame {
        border-radius: 0;
        min-height: 100dvh
    }

    .mo-sd .image-stage {
        min-height: 58dvh
    }

    .mo-sd .stage-toolbar, .mo-sd .stage-footer {
        padding: 9px;
        gap: 8px
    }

    .mo-sd .stage-actions .stage-control:first-child {
        display: none
    }

    .mo-sd .stage-random span {
        display: none
    }

    .mo-sd .stage-random {
        min-width: 38px
    }

    .mo-sd .stage-selected-meta {
        max-width: 45vw
    }

    .mo-sd .stage-interval {
        display: none
    }

    .mo-sd .image-detail-info {
        padding: 24px 18px 42px
    }

    .mo-sd .image-detail-heading {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .mo-sd .detail-close, .mo-sd .detail-back {
        justify-self: start;
        order: -1
    }

    .mo-sd .detail-meta-grid {
        grid-template-columns: 1fr
    }

        .mo-sd .detail-meta-grid > div.wide {
            grid-column: auto
        }

    .mo-sd .detail-follow .modal-actions {
        grid-template-columns: 1fr
    }
}
/* Keep annotation coordinates tied to the rendered image rectangle, not the stage viewport. */
.mo-sd .stage-media {
    position: relative;
    align-self: center;
    justify-self: center;
    width: min(100%,calc((100vh - 154px) * 1.4884));
    aspect-ratio: 640/430;
    max-height: calc(100vh - 154px)
}

.mo-sd .stage-picture {
    position: absolute;
    inset: 0;
    height: 100%
}

    .mo-sd .stage-picture svg {
        max-height: none
    }

.mo-sd .annotation-layer {
    inset: 0
}

.mo-sd .image-stage:fullscreen .stage-media {
    width: min(100vw,calc((100vh - 132px) * 1.4884));
    max-height: calc(100vh - 132px)
}

.mo-sd .image-stage:fullscreen .stage-picture svg {
    max-height: none
}

.mo-sd .image-stage:fullscreen .annotation-layer {
    inset: 0
}

.mo-sd .stage-control:disabled {
    opacity: .45;
    cursor: not-allowed
}

/* v1.1 image detail refinement: restore side panel and connect metadata to annotations */
.mo-sd .image-detail-frame {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(320px,.72fr);
    align-items: stretch;
}

    .mo-sd .image-detail-frame.info-hidden {
        grid-template-columns: minmax(0,1fr)
    }

        .mo-sd .image-detail-frame.info-hidden .image-detail-info {
            display: none
        }

.mo-sd .image-detail-info {
    padding: 28px;
    overflow: auto;
    max-height: 92vh;
    border-left: 1px solid var(--line);
}

.mo-sd .image-detail-heading {
    display: block;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

    .mo-sd .image-detail-heading .detail-close,
    .mo-sd .image-detail-heading .detail-back {
        float: right;
        margin: 0 0 16px 16px;
    }

    .mo-sd .image-detail-heading h3 {
        clear: none;
        font-family: var(--sans);
        font-size: 34px;
        line-height: 1.08;
        margin: 18px 0 10px;
    }

    .mo-sd .image-detail-heading .section-copy {
        margin: 0;
        color: var(--muted)
    }

.mo-sd .detail-meta-grid {
    grid-template-columns: 1fr;
    margin-top: 18px
}

    .mo-sd .detail-meta-grid > div.wide {
        grid-column: auto
    }

.mo-sd .stage-info-toggle {
    font-size: 19px;
    line-height: 1;
    padding-inline: 10px
}

.mo-sd .annotation {
    transition: opacity .14s ease,filter .14s ease,transform .14s ease
}

.mo-sd .annotation-layer.has-highlight .annotation:not(.is-highlighted) {
    opacity: .18;
    filter: grayscale(1)
}

.mo-sd .annotation.is-highlighted {
    z-index: 5
}

.mo-sd .annotation.subject.is-highlighted {
    transform: translate(-50%,-50%) scale(1.45)
}

.mo-sd .annotation.person.is-highlighted {
    transform: translate(-50%,-50%) scale(1.08)
}

.mo-sd .annotation.is-highlighted .annotation-label {
    opacity: 1
}

.mo-sd .annotation-link[data-highlight-annotation] {
    position: relative
}

    .mo-sd .annotation-link[data-highlight-annotation]::before {
        content: '◎';
        margin-right: 5px;
        font-size: .9em
    }

    .mo-sd .annotation-link[data-highlight-annotation]:hover,
    .mo-sd .annotation-link[data-highlight-annotation]:focus-visible {
        background: var(--soft);
        outline: none
    }

@media(max-width:980px) {
    .mo-sd .image-detail-frame {
        grid-template-columns: 1fr
    }

    .mo-sd .image-detail-info {
        max-height: none;
        border-left: 0;
        border-top: 1px solid var(--line)
    }

    .mo-sd .image-detail-frame.info-hidden .image-detail-info {
        display: none
    }
}

@media(max-width:720px) {
    .mo-sd .image-detail-heading .detail-close,
    .mo-sd .image-detail-heading .detail-back {
        float: none;
        display: inline-block;
        margin: 0 0 18px
    }

    .mo-sd .image-detail-heading h3 {
        font-size: 30px
    }
}

.mo-sd .image-stage:fullscreen [data-toggle-info] {
    display: none
}

/* v1.2 stage UI: restore the quieter first-stage hierarchy while keeping the v1.1 side panel. */
.mo-sd .image-stage {
    grid-template-rows: auto minmax(0,1fr) auto;
}

.mo-sd .stage-header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px 12px;
    background: #111;
}

.mo-sd .stage-title-wrap {
    min-width: 0
}

.mo-sd .stage-kicker {
    margin-bottom: 4px;
    color: #9f9f9f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mo-sd .stage-title {
    margin: 0;
    color: #fff;
    font-family: var(--sans);
    font-size: clamp(20px,2vw,28px);
    font-weight: 500;
    line-height: 1.12;
}

.mo-sd .stage-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 1px solid #4b4e52;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
}

    .mo-sd .stage-icon:hover,
    .mo-sd .stage-icon:focus-visible,
    .mo-sd .stage-icon.active,
    .mo-sd .stage-icon[aria-pressed="true"] {
        background: #41454b;
        color: #fff;
        outline: none;
    }

    .mo-sd .stage-icon:focus-visible {
        box-shadow: 0 0 0 3px #fff5
    }

    .mo-sd .stage-icon:disabled {
        opacity: .4;
        cursor: not-allowed
    }

.mo-sd .stage-close {
    font-size: 24px;
    font-weight: 400
}

.mo-sd .stage-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px 10px;
    background: #111;
}

.mo-sd .stage-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
}

.mo-sd .stage-control-group {
    display: flex;
    align-items: center;
    gap: 6px
}

.mo-sd .stage-control-separator {
    width: 1px;
    height: 28px;
    margin: 0 4px;
    background: #4b4e52
}

.mo-sd .stage-selected-meta {
    display: block;
    width: 100%;
    text-align: center;
    color: #aaa;
    font-size: 11px;
    line-height: 1.35;
}

.mo-sd .stage-interval select {
    width: 56px;
    height: 40px;
    padding: 0 5px;
    border: 1px solid #4b4e52;
    border-radius: 7px;
    background: #252629;
    color: #fff;
    font-size: 11px;
    text-align: center;
}
/* v1.0/v1.1 text-oriented control styles are superseded inside the stage. */
.mo-sd .image-stage .stage-toolbar {
    display: none
}

.mo-sd .image-stage .stage-control {
    display: none
}

.mo-sd .image-detail-heading {
    padding-top: 0
}

    .mo-sd .image-detail-heading .eyebrow {
        margin-bottom: 12px
    }

    .mo-sd .image-detail-heading h3 {
        display: none
    }

    .mo-sd .image-detail-heading .detail-close,
    .mo-sd .image-detail-heading .detail-back {
        display: none
    }
/* Recalculate the image rectangle for the taller permanent title header. */
.mo-sd .stage-media {
    width: min(100%,calc((100vh - 188px) * 1.4884));
    max-height: calc(100vh - 188px);
}

.mo-sd .image-stage:fullscreen .stage-media {
    width: min(100vw,calc((100vh - 188px) * 1.4884));
    max-height: calc(100vh - 188px);
}

.mo-sd .image-stage:fullscreen [data-toggle-info] {
    display: none
}

@media(max-width:720px) {
    .mo-sd .stage-header {
        padding: 12px 10px 9px
    }

    .mo-sd .stage-kicker {
        display: none
    }

    .mo-sd .stage-title {
        font-size: 20px
    }

    .mo-sd .stage-icon {
        width: 38px;
        height: 38px;
        min-width: 38px
    }

    .mo-sd .stage-controls {
        gap: 4px
    }

    .mo-sd .stage-control-group {
        gap: 4px
    }

    .mo-sd .stage-control-separator {
        margin: 0 2px
    }

    .mo-sd .stage-interval {
        display: none
    }

    .mo-sd .stage-media {
        width: min(100%,calc((100dvh - 164px) * 1.4884));
        max-height: calc(100dvh - 164px)
    }
}

/* v1.3 fullscreen information + fullscreen-only slideshow */
.mo-sd .stage-slideshow-only {
    display: none
}

.mo-sd .stage-fullscreen-info {
    display: none
}

.mo-sd .image-stage:fullscreen .stage-slideshow-only {
    display: inline-flex
}

.mo-sd .image-stage:fullscreen .stage-fullscreen-info {
    display: block;
    position: absolute;
    z-index: 8;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px,38vw);
    overflow: auto;
    padding: 28px 26px 40px;
    background: rgba(250,250,250,.98);
    color: var(--ink);
    border-left: 1px solid rgba(255,255,255,.14);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .2s ease,visibility 0s linear .2s;
}

    .mo-sd .image-stage:fullscreen .stage-fullscreen-info.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform .2s ease;
    }

.mo-sd .image-stage:fullscreen.fullscreen-info-open .stage-header,
.mo-sd .image-stage:fullscreen.fullscreen-info-open .stage-footer {
    padding-right: calc(min(390px,38vw) + 14px);
}

.mo-sd .image-stage:fullscreen.fullscreen-info-open .stage-media {
    transform: translateX(calc(min(390px,38vw) / -2));
    max-width: calc(100vw - min(390px,38vw));
}

.mo-sd .image-stage:fullscreen [data-toggle-info] {
    display: inline-grid
}

.mo-sd .stage-fullscreen-info .image-detail-heading {
    margin-bottom: 22px
}

.mo-sd .stage-fullscreen-info .detail-meta-grid {
    grid-template-columns: 1fr
}

.mo-sd .stage-fullscreen-info .detail-follow {
    margin-top: 26px
}

@media(max-width:800px) {
    .mo-sd .image-stage:fullscreen .stage-fullscreen-info {
        width: min(86vw,390px)
    }

    .mo-sd .image-stage:fullscreen.fullscreen-info-open .stage-header,
    .mo-sd .image-stage:fullscreen.fullscreen-info-open .stage-footer {
        padding-right: 14px
    }

    .mo-sd .image-stage:fullscreen.fullscreen-info-open .stage-media {
        transform: none;
        max-width: 100vw
    }
}

@media(prefers-reduced-motion:reduce) {
    .mo-sd .image-stage:fullscreen .stage-fullscreen-info {
        transition: none
    }
}

/* v1.4 stage control placement: centered navigation, contextual controls at the edges. */
.mo-sd .stage-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.mo-sd .stage-footer {
    padding: 9px 12px 11px;
}

.mo-sd .stage-controls {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 40px;
}

.mo-sd .stage-control-zone {
    display: flex;
    align-items: center;
    min-width: 0
}

.mo-sd .stage-control-left {
    justify-content: flex-start
}

.mo-sd .stage-control-center {
    justify-content: center;
    grid-column: 2
}

.mo-sd .stage-control-right {
    justify-content: flex-end;
    grid-column: 3
}

.mo-sd .stage-selected-meta {
    display: none !important
}

.mo-sd .stage-fullscreen {
    flex: 0 0 auto
}
/* Slideshow remains a fullscreen-only feature. */
.mo-sd .stage-control-left.stage-slideshow-only {
    display: none
}

.mo-sd .image-stage:fullscreen .stage-control-left.stage-slideshow-only {
    display: flex
}
/* The info toggle stays in the lower-right control group in fullscreen. */
.mo-sd .image-stage:fullscreen [data-toggle-info] {
    display: inline-grid
}

@media(max-width:720px) {
    .mo-sd .stage-controls {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px
    }

    .mo-sd .stage-control-right {
        gap: 3px
    }

    .mo-sd .stage-header-actions {
        gap: 5px
    }
}

/* v1.6 unified image annotations + related-image popovers */
.mo-sd .annotation {
    position: absolute;
    inset: 0;
    transform: none;
    pointer-events: none;
    opacity: 1;
    filter: none;
    transition: opacity .14s ease,filter .14s ease;
}

.mo-sd .annotation-marker {
    position: absolute;
    z-index: 3;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%,-50%);
    border: 0;
    background: none;
    color: #fff;
    padding: 0;
    pointer-events: auto;
    font: inherit;
    cursor: pointer;
}

    .mo-sd .annotation-marker .annotation-dot {
        display: block;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 4px solid rgba(0,0,0,.5);
        box-shadow: 0 0 0 1px rgba(255,255,255,.8);
    }

.mo-sd .annotation-person .annotation-marker .annotation-dot,
.mo-sd .annotation-group .annotation-marker .annotation-dot {
    background: transparent;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,.45);
}

.mo-sd .annotation-marker .annotation-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 7px);
    transform: translateX(-50%);
    display: block;
    max-width: 180px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s;
}

.mo-sd .annotation-marker:hover .annotation-label,
.mo-sd .annotation-marker:focus-visible .annotation-label,
.mo-sd .annotation.is-previewing .annotation-label,
.mo-sd .annotation.is-highlighted .annotation-label {
    opacity: 1
}

.mo-sd .annotation-marker:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 50%
}

.mo-sd .annotation-outline {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    opacity: 0;
    transition: opacity .14s ease;
}

    .mo-sd .annotation-outline path {
        fill: rgba(255,255,255,.08);
        stroke: #fff;
        stroke-width: .75;
        vector-effect: non-scaling-stroke;
        stroke-linejoin: round;
        stroke-linecap: round;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
    }

.mo-sd .annotation.is-previewing .annotation-outline,
.mo-sd .annotation.is-pinned .annotation-outline,
.mo-sd .annotation.is-highlighted .annotation-outline {
    opacity: 1
}

.mo-sd .annotation-layer.has-highlight .annotation:not(.is-highlighted) {
    opacity: .18;
    filter: grayscale(1)
}

.mo-sd .annotation.is-highlighted {
    z-index: 5
}

.mo-sd .annotation-popover {
    position: absolute;
    z-index: 12;
    left: var(--x);
    top: var(--y);
    width: min(330px,calc(100vw - 36px));
    max-width: 330px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(20,20,20,.96);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,.32);
    transform: translate(18px,-50%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease,visibility 0s linear .14s;
}

.mo-sd .annotation.popover-left .annotation-popover {
    transform: translate(calc(-100% - 18px),-50%)
}

.mo-sd .annotation.popover-above .annotation-popover {
    transform: translate(-50%,calc(-100% - 18px))
}

.mo-sd .annotation.popover-left.popover-above .annotation-popover {
    transform: translate(-100%,calc(-100% - 18px))
}

.mo-sd .annotation.is-previewing .annotation-popover,
.mo-sd .annotation.is-pinned .annotation-popover,
.mo-sd .annotation:focus-within .annotation-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .14s ease;
}

.mo-sd .annotation-popover > strong {
    display: inline;
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 500
}

.mo-sd .annotation-popover-type {
    margin-left: 7px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #aaa
}

.mo-sd .annotation-related-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    margin: 12px 0
}

.mo-sd .annotation-related-image {
    display: block;
    min-width: 0;
    color: #fff;
    text-decoration: none
}

    .mo-sd .annotation-related-image svg {
        display: block;
        width: 100%;
        aspect-ratio: 1.25/1;
        height: auto;
        border-radius: 7px;
        background: #ddd;
        filter: grayscale(1)
    }

    .mo-sd .annotation-related-image span {
        display: block;
        margin-top: 5px;
        font-size: 10px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .mo-sd .annotation-related-image:hover span, .mo-sd .annotation-related-image:focus-visible span {
        text-decoration: underline;
        text-underline-offset: 2px
    }

.mo-sd .annotation-browse-link {
    display: block;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 760;
    color: #fff;
    text-decoration: none
}

    .mo-sd .annotation-browse-link:hover, .mo-sd .annotation-browse-link:focus-visible {
        text-decoration: underline;
        text-underline-offset: 3px
    }

.mo-sd .annotation-popover-empty {
    margin: 10px 0 5px;
    color: #bbb;
    font-size: 12px
}

@media(max-width:720px) {
    .mo-sd .annotation-popover {
        width: min(270px,calc(100vw - 28px));
        padding: 12px
    }

    .mo-sd .annotation-related-grid {
        gap: 5px
    }
}

@media(prefers-reduced-motion:reduce) {
    .mo-sd .annotation-outline, .mo-sd .annotation-popover, .mo-sd .annotation-marker .annotation-label {
        transition: none
    }
}

/* Server-rendered search results: works without JavaScript. */
.mo-sd .mo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 2rem 0 3rem;
}

    .mo-sd .mo-pagination a,
    .mo-sd .mo-pagination__ellipsis {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.7rem;
        min-height: 2.7rem;
        padding: .5rem .85rem;
        border: 1px solid #d5d5d5;
        border-radius: .75rem;
        color: #141414;
        background: #fff;
        text-decoration: none;
    }

        .mo-sd .mo-pagination a:hover,
        .mo-sd .mo-pagination a:focus-visible {
            border-color: #111;
        }

        .mo-sd .mo-pagination a.is-current {
            color: #fff;
            background: #111;
            border-color: #111;
        }

.mo-sd .mo-pagination__ellipsis {
    border: 0;
    min-width: 1rem;
}

.mo-sd .mo-search-empty {
    padding: 2rem 0;
}

.mo-sd .mo-no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    color: #666;
    background: #eee;
    font-size: .875rem;
}

.mo-sd .object-thumb img,
.mo-sd .image-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mo-sd button:disabled,
.mo-sd select:disabled {
    opacity: .65;
    cursor: not-allowed;
}
