/* PAMS handoff: For Mufeng – Pages/Screens and Style Guide, September 2026.
 * Loaded after the base theme and modules; all rules are scoped to PAMS.
 */
.pams-theme {
    --pams-accent: #892d4a;
    --pams-accent-hover: #6b4473;
    --pams-accent-tint: #eae1e3;
    --pams-accent-tint-2: #f5f2f1;
    --pams-accent-border: #d5b9c2;
    --pams-ink: #20191a;
    --pams-ink-2: #40383a;
    --pams-ink-3: #6b4473;
    --pams-paper: #f5f2f1;
    --pams-border: #dbc6cd;
    --pams-font-sans: 'DM Sans', Arial, sans-serif;
    --pams-font-serif: var(--pams-font-sans);
    --pams-shadow-card: none;
    --primary: #892d4a;
    --primary-dark: #6b4473;
    --accent: #892d4a;
    --secondary: #20191a;
    --sidebar-width: 295px;
    --page-gutter: clamp(32px, 5.21vw, 100px);
    background: var(--pams-paper);
    font-family: var(--pams-font-sans);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    padding: 0 0 0 var(--sidebar-width) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.pams-theme *, .pams-theme *::before, .pams-theme *::after { box-sizing: border-box; }
.pams-theme :is(button, input, select, textarea) { font-family: var(--pams-font-sans); font-size: inherit; }
.pams-theme :is(h1, h2, h3, h4) { font-family: var(--pams-font-sans); color: var(--pams-accent); line-height: 1.25; letter-spacing: -.02em; }
.pams-theme h1 { font-size: clamp(30px, 2.5vw, 48px); font-weight: 700; }
.pams-theme h2 { font-size: clamp(23px, 1.83vw, 35px); font-weight: 500; }
.pams-theme h3 { font-size: 22px; font-weight: 500; }
.pams-theme :focus-visible { outline: 3px solid #6b4473; outline-offset: 4px; }
.pams-theme #skipnav:focus { top: 12px; z-index: 20000; }
body.pams-theme #main-content { flex: 1; background: var(--pams-paper) !important; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 48px var(--page-gutter) 64px; }
.pams-theme #main-content:focus { outline: none; }
body.pams-theme #main-content > .container,
body.pams-theme #main-content > .blocks.container { width: 100%; max-width: none; padding: 0; margin: 0; }
.pams-theme #main-content .container .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.pams-theme.site-page-home #main-content { padding: 0; }
.pams-theme .site-page-pagination { padding: 20px var(--page-gutter); }
.pams-theme #main-content p { max-width: none; }
.pams-theme a { text-underline-offset: 3px; }
.pams-theme #user-bar { position: fixed; inset: 0 0 auto 0; z-index: 12000; }
.pams-theme.user-bar { --pams-userbar-height: 40px; padding-top: var(--pams-userbar-height) !important; }
.pams-theme .pams-sidebar {
    position: fixed; inset: var(--pams-userbar-height, 0px) auto 0 0;
    width: var(--sidebar-width); height: calc(100dvh - var(--pams-userbar-height, 0px));
    display: flex; flex-direction: column; padding: clamp(12px, 2.4dvh, 28px) 26px;
    background: #892d4a; color: #f5f2f1; z-index: 1100; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #b77e91 #892d4a;
    overscroll-behavior-y: contain;
}
.pams-sidebar > * { flex-shrink: 0; }
.pams-theme .pams-sidebar :is(a, button) { color: #f5f2f1; transition: color .15s, background-color .15s; }
.pams-theme .pams-sidebar :focus-visible { outline-color: #bed4e7; }
.pams-sidebar__mark { display: block; width: clamp(80px, 20dvh, 190px); max-width: 100%; margin: 0 auto clamp(12px, 2dvh, 24px); }
.pams-sidebar__mark img { display: block; width: 100%; height: auto; }
.pams-sidebar__search { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-top: 1px solid #ffffff30; padding-top: clamp(12px, 2dvh, 20px); margin-bottom: 12px; }
.pams-theme .pams-sidebar__search input { grid-column: 1 / -1; grid-row: 1; background: #f5f2f1; border: 0; border-radius: 999px; color: #892d4a; width: 100%; height: 46px; min-width: 0; margin: 0; padding: 10px 44px 10px 15px; font-size: 15px; box-shadow: none; }
.pams-sidebar__search input::placeholder { color: #892d4a; opacity: 1; }
.pams-theme .pams-sidebar__search button { grid-column: 2; grid-row: 1; align-self: center; display: grid; place-items: center; margin: 0; padding: 0; background: none; border: 0; color: #892d4a; width: 44px; height: 46px; position: static; line-height: 1; cursor: pointer; }
.pams-sidebar__search svg { display: block; margin: 0; height: 20px; width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pams-navigation ul { list-style: none; padding: 0; margin: 0; }
.pams-navigation li { padding: 0; margin: 0; }
.pams-navigation li::before { display: none !important; }
.pams-navigation__item + .pams-navigation__item { border-top: 1px solid #ffffff30; }
.pams-navigation__row { display: flex; align-items: center; min-height: clamp(40px, 6dvh, 54px); }
.pams-navigation__row > a { flex: 1; font-size: clamp(18px, 2.5dvh, 22px); font-weight: 400; line-height: 1.3; text-decoration: none; padding: 8px 0; }
.pams-navigation__row > a:hover, .pams-navigation a[aria-current] { font-weight: 700; }
.pams-theme .pams-submenu-toggle { width: 32px; height: 38px; background: none; border: 0; padding: 5px; border-radius: 4px; cursor: pointer; }
.pams-submenu-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .15s; }
.pams-submenu-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.pams-navigation .pams-submenu { display: none; padding: 0 0 13px; }
.pams-navigation__item.is-expanded > .pams-submenu { display: block; }
.pams-submenu a { display: block; padding: 7px 4px; text-decoration: none; font-size: 14px; line-height: 1.4; }
.pams-submenu a:hover { background: #6b4473; border-radius: 3px; }
.pams-sidebar__wordmark { display: block; border-top: 1px solid #ffffff45; padding-top: clamp(12px, 2dvh, 24px); margin-top: auto; }
.pams-sidebar > .pams-navigation { flex: 0 1 auto; min-height: 0; overflow-y: auto; margin-bottom: clamp(12px, 2dvh, 24px); scrollbar-width: thin; scrollbar-color: #b77e91 #892d4a; overscroll-behavior-y: contain; }
.pams-sidebar__wordmark img { display: block; width: clamp(130px, 22dvh, 220px); max-width: 100%; height: auto; margin: 0 auto; }
.pams-mobile-bar, .pams-menu-backdrop { display: none; }
.pams-theme .pams-button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; width: fit-content; padding: 11px 21px; min-height: 42px; border: 1px solid #892d4a; border-radius: 999px; background: #892d4a; color: #fff; font-size: 14px; line-height: 1.35; font-weight: 500; text-decoration: none; white-space: normal; }
.pams-theme .pams-button:hover { background: #6b4473; border-color: #6b4473; color: #fff; }
.pams-theme .pams-button--outline { background: transparent; border-color: #c595a5; color: #892d4a; }
.pams-theme .pams-button--light { background: #f5f2f1; border-color: #f5f2f1; color: #892d4a; }
.pams-home { padding: 46px var(--page-gutter) 72px; }
.pams-home__intro { padding-bottom: 44px; }
.pams-home__intro h1 { margin: 0 0 19px; }
.pams-home__intro p { margin: 0 0 28px; line-height: 1.65; }
.pams-theme .pams-home__map .mapping-block { margin: 0; }
.pams-theme .pams-home__map .mapping-map { height: clamp(360px, 39.67vw, 762px) !important; max-width: 100%; width: 100%; border-radius: 8px; border: 0; }
.pams-theme .mapping-map.leaflet-container { max-width: 100%; }
.pams-map-legend-block { display: none; }
.pams-theme .pams-map-legend {
    position: absolute; left: 10px; bottom: 10px; z-index: 800;
    width: 380px; max-width: calc(100% - 20px); max-height: calc(100% - 160px);
    overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: 20px; border: 1px solid #e6e0e0; border-radius: 12px;
    background: #fff; color: #1f2937; box-shadow: 0 2px 8px #20191a14;
    font-family: var(--pams-font-sans); cursor: default;
}
.pams-theme .pams-map-legend[hidden] { display: none; }
.pams-theme .mapping-sidebar-enabled:has(> .mapping-sidebar-panel.is-open) > .pams-map-legend {
    left: calc(var(--pams-map-panel-width) + 10px); width: var(--pams-map-panel-width);
    max-width: calc(100% - var(--pams-map-panel-width) - 20px);
    max-height: min(265px, calc(50% - 48px));
}
.pams-theme .mapping-sidebar-enabled.mapping-sidebar-compact:has(> .mapping-sidebar-panel.is-open) > .pams-map-legend {
    left: 0; bottom: calc(var(--pams-map-panel-height) + 26px);
    width: var(--pams-map-panel-width); max-width: 100%;
    max-height: min(265px, calc(26% - 64px));
}
.pams-map-legend > div { position: relative; padding-left: 56px; }
.pams-map-legend > div::before {
    content: ''; position: absolute; left: 16px; top: 0; width: 28px; height: 28px;
    border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 20px;
    box-shadow: 0 2px 4px #00978726;
}
.pams-map-legend > .pams-map-legend__collection { min-height: 59px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #e6e0e0; }
.pams-map-legend > .pams-map-legend__collection::before { left: 0; width: 44px; height: 44px; background-color: #6b4473; background-image: url('../img/pams/icon-collection.svg'); background-size: 22px; box-shadow: 0 3px 6px #352e3340; }
.pams-map-legend > .pams-map-legend__record::before { background-color: #a28351; background-image: url('../img/pams/icon-record.svg'); }
.pams-map-legend > .pams-map-legend__oral::before { background-color: #bed4e7; background-image: url('../img/pams/icon-oral.svg'); }
.pams-map-legend > .pams-map-legend__image::before { background-color: #ec83c6; background-image: url('../img/pams/icon-image.svg'); }
.pams-map-legend > div + div:not(.pams-map-legend__record) { margin-top: 12px; }
.pams-theme .pams-map-legend :is(h3, h4) { margin: 0; color: #1f2937; font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0; }
.pams-theme .pams-map-legend .pams-map-legend__collection h3 { color: #6b4473; }
.pams-theme .pams-map-legend h4 { font-size: 14px; }
.pams-theme .pams-map-legend p { margin: 0; color: #6b7280; font-size: 13px; line-height: 16px; }
.pams-theme .pams-map-legend > div:not(.pams-map-legend__collection) p { font-size: 12px; }
.pams-state-jump { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0; }
.pams-state-jump > span { color: #892d4a; text-transform: uppercase; font-weight: 600; font-size: 15px; }
.pams-state-jump > div { display: flex; gap: 12px; flex-wrap: wrap; }
.pams-theme .pams-state-jump a { border-radius: 999px; background: #892d4a; color: #fff; text-decoration: none; min-width: 52px; min-height: 36px; display: grid; place-items: center; font-size: 12px; padding: 7px 12px; }
.pams-theme .pams-state-jump a:hover { background: #6b4473; }
.pams-featured, .pams-timeline, .pams-home__news { border-top: 1px solid var(--pams-border); margin-top: 14px; padding-top: 44px; }
.pams-featured { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 30px 5%; padding-bottom: 44px; }
.pams-featured__image { background: #eae1e3; border-radius: 5px; aspect-ratio: 1.3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pams-theme #main-content .pams-featured__image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pams-featured__copy { align-self: center; }
.pams-featured__copy h2 { font-size: clamp(24px, 1.85vw, 35px); color: #20191a; font-weight: 400; margin: 20px 0 26px; }
.pams-featured__label { display: inline-block; margin: 0; border: 1px solid #bdb1b5; border-radius: 999px; color: #65575d; padding: 4px 14px; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; }
.pams-featured__description { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.pams-featured__description p { margin: 0 0 16px; }
.pams-featured__all { grid-column: 2; justify-self: end; }
.pams-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.pams-section-heading h2 { margin: 0; }
.pams-timeline { margin-top: 0; padding-bottom: 40px; }
.pams-timeline .pams-section-heading { align-items: flex-start; margin-bottom: 14px; }
.pams-theme .pams-timeline [hidden] { display: none !important; }
.pams-theme .pams-timeline__intro { color: #66595e; max-width: 690px; margin: 0 0 30px; font-size: 16px; }
.pams-timeline__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 6%; align-items: center; }
.pams-timeline__controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pams-timeline__controls label { font-size: 12px; color: #66595e; display: block; margin: 0 0 3px; }
.pams-timeline__year { display: block; color: #6b4473; font-size: 52px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pams-theme input.pams-timeline__slider { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 32px; padding: 0; margin: 20px 0 0; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; background: transparent; accent-color: #892d4a; }
.pams-timeline__slider::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, #892d4a 0 var(--year-progress), #6b91ad var(--year-progress) 100%); }
.pams-timeline__slider::-moz-range-track { height: 5px; border-radius: 5px; background: #6b91ad; }
.pams-timeline__slider::-moz-range-progress { height: 5px; background: #892d4a; }
.pams-timeline__slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 24px; width: 24px; margin-top: -9.5px; border: 3px solid #f5f2f1; border-radius: 50%; background: #892d4a; box-shadow: 0 0 0 1px #892d4a; }
.pams-timeline__slider::-moz-range-thumb { height: 19px; width: 19px; border: 3px solid #f5f2f1; border-radius: 50%; background: #892d4a; box-shadow: 0 0 0 1px #892d4a; }
.pams-timeline__endpoints { display: flex; justify-content: space-between; color: #66595e; font-size: 12px; font-variant-numeric: tabular-nums; margin-bottom: 24px; }
.pams-theme .pams-timeline__total { font-size: 21px; color: #892d4a; margin: 0 0 16px; }
.pams-timeline__total strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.pams-theme .pams-timeline__bar-row { width: 100%; display: grid; grid-template-columns: 72px 5ch minmax(0, 1fr); gap: 16px; align-items: center; min-height: 39px; margin: 0; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: #892d4a; font-size: 22px; font-weight: 500; line-height: 1.35; text-align: left; cursor: default; }
.pams-theme .pams-timeline__missing-note { margin: 12px 0 0; color: #66595e; font-size: 13px; }
.pams-timeline__bar-row [data-bar-count] { text-align: left; font-variant-numeric: tabular-nums; }
.pams-timeline__bar-track { display: block; height: 20px; background: transparent; overflow: hidden; }
.pams-timeline__bar-track > span { display: block; height: 100%; width: 0; background: #6b91ad; transition: width 180ms ease; }
.pams-timeline__geography { min-width: 0; }
.pams-timeline__region { cursor: pointer; outline: none; }
.pams-timeline__region-fill { color: var(--region-color, #f5f0f3); transition: color 180ms ease; }
.pams-timeline__region.is-highlighted .pams-timeline__region-fill path, .pams-timeline__region[aria-pressed="true"] .pams-timeline__region-fill path { stroke: #4f1b33; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.pams-theme .pams-timeline__region:focus-visible { outline: none; }
.pams-timeline__region:focus-visible .pams-timeline__region-fill path { stroke: #20191a; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.pams-timeline__state-label text { text-anchor: middle; font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; fill: #6b2740; paint-order: stroke; stroke: #f5f2f1; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.pams-timeline__region:focus-visible .pams-timeline__state-label text { text-decoration: underline; }
.pams-timeline__leader { stroke: #6b4473; stroke-width: 1.5; }
.pams-timeline__announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pams-theme .pams-timeline button:focus-visible, .pams-theme .pams-timeline input:focus-visible { outline: 2px solid #6b4473; outline-offset: 4px; }
.pams-status { flex-shrink: 0; border: 1px solid #d5b9c2; border-radius: 999px; padding: 4px 10px; font-size: 11px; color: #6b4473; }
.pams-timeline__map { width: 100%; height: auto; }
.pams-home__news { padding-top: 38px; }
.pams-home__news .pams-section-heading h2 { text-transform: uppercase; font-size: 22px; font-weight: 600; letter-spacing: 0; }
.pams-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 44px); }
.pams-news-card { padding: 18px 18px 28px; background: #eae1e3; border-radius: 7px; min-width: 0; }
.pams-theme .pams-news-card__link { color: #892d4a; text-decoration: none; display: block; }
.pams-news-card:has(a):hover { box-shadow: 0 0 0 1px #892d4a; }
.pams-news-card__image, .pams-news-card__placeholder { width: 100%; aspect-ratio: 1.3; height: auto; object-fit: cover; border-radius: 4px; display: block; }
.pams-news-card__placeholder { background-color: #f5f2f1; background-image: linear-gradient(45deg, #e3dedf 25%, transparent 25%), linear-gradient(-45deg, #e3dedf 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e3dedf 75%), linear-gradient(-45deg, transparent 75%, #e3dedf 75%); background-size: 32px 32px; background-position: 0 0, 0 16px, 16px -16px, -16px 0; }
.pams-news-card__meta { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; padding-top: 18px; }
.pams-news-card__meta p { font-size: 10px; letter-spacing: .11em; color: #892d4a; text-transform: uppercase; line-height: 1.5; margin: 0; }
.pams-news-card__meta > span { border-radius: 999px; padding: 7px 14px; background: #bed4e7; color: #40383a; text-transform: uppercase; font-size: 10px; flex-shrink: 0; }
.pams-news-card h3 { font-size: clamp(18px, 1.45vw, 26px); line-height: 1.3; margin: 20px 0 0; font-weight: 400; }
.pams-partners { margin-top: 42px; padding: 36px 0 24px; border-top: 1px solid var(--pams-accent); }
.pams-theme .pams-partners h2 { margin: 0 0 36px; font-size: 22px; line-height: 1.3; font-weight: 500; text-transform: uppercase; }
.pams-partners__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 36px clamp(40px, 6vw, 88px); min-height: 132px; }
.pams-partners__logos > p { width: 292px; max-width: 100%; margin: 0; }
.pams-partners__logos > p:nth-child(2) { width: 220px; }
.pams-theme #main-content .pams-partners__logos img { display: block; width: 100%; height: auto; max-height: 132px; object-fit: contain; object-position: left center; margin: 0; border-radius: 0; }
.pams-contribute-banner { background: #892d4a; color: #f5f2f1; padding: 44px var(--page-gutter); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.pams-contribute-banner h2 { color: #f5f2f1; font-style: italic; font-size: 28px; margin: 0 0 8px; font-weight: 400; }
.pams-contribute-banner p { font-size: 14px; margin: 0; }
.pams-contribute-banner > a { flex-shrink: 0; }
.pams-footer { background: #20191a; color: #f5f2f1; padding: 58px var(--page-gutter) 24px; }
.pams-footer__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.25fr; gap: 24px; padding-bottom: 55px; }
.pams-footer nav h2 { margin: 0 0 14px; color: #c3b6bb; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.pams-theme .pams-footer a { color: #f5f2f1; text-decoration: none; }
.pams-footer nav a { display: block; font-size: 13px; padding: 4px 0; }
.pams-footer a:hover { text-decoration: underline; }
.pams-footer__logo { width: 100%; max-width: 240px; align-self: start; }
.pams-footer__logo img { width: 100%; height: auto; display: block; }
.pams-footer__bottom { border-top: 1px solid #ffffff26; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; color: #c3b6bb; font-size: 11px; }
.pams-page-heading { margin-bottom: 32px; }
.pams-page-heading > p, .pams-eyebrow { border-bottom: 1px solid var(--pams-border); padding: 0 0 12px; margin: 0 0 25px; text-transform: uppercase; letter-spacing: .13em; color: #892d4a; font-size: 11px; }
.pams-page-heading h1 { margin: 0; }
.pams-theme .blocks-inner { max-width: 100%; }
.pams-theme .blocks .block-html { margin: 0 0 26px; }
.pams-theme .pams-search-page__header > p { border-bottom: 1px solid var(--pams-border); margin: 0 0 23px; padding-bottom: 12px; font-size: 11px; color: #892d4a; }
.pams-theme .pams-search-page__header h1 { margin: 0 0 28px; font-size: 34px; font-style: normal; }
.pams-theme .pams-search-page__header { margin-bottom: 24px; }
.pams-theme .pams-search-form { background: transparent; border: 0; padding: 0; }
.pams-theme .pams-search-form__keyword input { border-radius: 999px; }
.pams-theme .pams-search-form__keyword button { background: #892d4a; }
.pams-theme .pams-search-form__keyword button { border-radius: 999px; margin-left: 12px; }
.pams-theme .pams-search-form__keyword input { padding-left: 20px; }
.pams-theme .pams-search-form__keyword input::placeholder,
.pams-theme .choices__placeholder { color: #65575d; opacity: 1; }
.pams-theme .pams-search-form__types { margin: 25px 0 18px; }
.pams-theme .pams-search-form__types button, .pams-theme .pams-search-form__reset { font-size: 12px; }
.pams-theme .pams-search-filter label { color: #892d4a; }
.pams-theme .pams-search-filter .choices { background: #fff; border: 1px solid var(--pams-border); border-radius: var(--pams-radius-card); overflow: hidden; }
.pams-theme .pams-search-filter .choices:is(.is-focused, .is-open) { border-color: var(--pams-accent); box-shadow: 0 0 0 3px #892d4a1f; }
.pams-theme .pams-search-filter .choices.is-open { overflow: visible; z-index: 50; border-color: #bdbdbd; border-radius: 2px 2px 0 0; box-shadow: 0 0 0 1px #dedede; }
.pams-theme .pams-search-filter .choices__inner { border: 0; border-radius: 0; box-shadow: none; }
.pams-theme .pams-search-filter .choices.is-open .choices__inner { background: #fafafa; box-shadow: none; }
.pams-theme .pams-search-filter .choices__list--multiple { min-width: 0; max-width: 100%; }
.pams-theme .pams-search-filter .choices__list--multiple .choices__item { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.pams-theme .pams-search-filter .choices__button { flex-shrink: 0; }
.pams-theme .pams-search-filter .choices__input--cloned { min-width: 0 !important; outline: none; }
.pams-theme .pams-search-filter .choices__input--cloned::placeholder { color: #65575d; opacity: 1; }
.pams-theme .pams-search-filter .choices__list--dropdown {
    display: none; position: absolute; top: 100%; bottom: auto; left: -1px; width: calc(100% + 2px); margin: 0;
    background: #fff; border: 1px solid #bdbdbd; border-radius: 0 0 2px 2px; box-shadow: none;
}
.pams-theme .pams-search-filter .choices__list--dropdown.is-active { display: block; }
.pams-theme .pams-search-filter .choices__list--dropdown > .choices__list {
    max-height: min(320px, 45dvh); overflow-x: hidden; overflow-y: auto;
    overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #bdbdbd #f5f5f5;
}
.pams-theme .pams-search-filter .choices__list--dropdown .choices__item { padding: 12px 10px; font-size: 15px; line-height: 1.4; color: #20191a; overflow-wrap: anywhere; }
.pams-theme .pams-search-filter .choices__list--dropdown .choices__item--selectable.is-highlighted { background: #f1f1f1; }
.pams-theme .pams-search-results__bar { border: 0; padding: 20px 0; margin: 0; font-size: 12px; letter-spacing: 0; }
.pams-theme .pams-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 15px; margin: 0 !important; }
.pams-archive-card { display: flex; background: #fff; border: 1px solid #ece6e8; border-radius: 6px; min-width: 0; }
.pams-theme .pams-archive-card__link { display: flex; flex: 1; min-width: 0; align-items: center; gap: 16px; padding: 17px; color: #892d4a; text-decoration: none; }
.pams-archive-card:hover { border-color: #892d4a; }
.pams-archive-card__body { min-width: 0; }
.pams-archive-card__meta { font-size: 9px; color: #6b4473; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 5px; }
.pams-archive-card h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.35; font-weight: 400; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pams-archive-card__description { margin: 0; color: #40383a; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pams-resource-icon { display: inline-grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #a28351; box-shadow: 0 3px 8px #20191a12; }
.pams-resource-icon--oral { background: #bed4e7; }
.pams-resource-icon--image { background: #ec83c6; }
.pams-resource-icon--collection { background: #6b4473; }
.pams-theme #main-content .pams-resource-icon img { display: block; width: 22px; height: 22px; object-fit: contain; border-radius: 0; }
.pams-theme .map-place-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pams-theme .map-place-featured { margin: 35px 0; border-top: 0 !important; padding-top: 30px; }
.pams-theme .map-place-featured__heading h2 { font-size: 27px; }
.pams-theme .map-place-compare { margin: 0; border-top: 0; border-bottom: 1px solid var(--pams-border); background: transparent; }
.pams-theme .map-place-compare__inner { padding: 24px 0; }
.pams-theme .map-place-compare__links { justify-content: flex-end; }
.pams-theme .map-place-compare__links > span { margin-right: auto; color: #892d4a; text-transform: uppercase; font-size: 13px; }
.pams-theme .map-place-compare__links a, .pams-theme .map-state-jump__links a { background: #892d4a; color: #fff; border-color: #892d4a; min-width: 44px; text-align: center; }
.pams-theme .map-place-page__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pams-theme .map-place-page__header h1 { margin: 0; font-size: 36px; }
.pams-theme .map-place-page__header > p { flex-basis: 100%; }
.pams-theme .map-place-page .mapping-map { border-radius: 7px; }
.pams-state-stories { margin-top: 40px; border-top: 1px solid var(--pams-border); padding-top: 30px; }
.pams-theme .pams-item-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 32px; }
.pams-theme .pams-item-heading h1 { flex: 1; font-size: 28px; font-weight: 400; margin: 0; }
.pams-theme .pams-item-heading > a { flex-shrink: 0; }
.pams-theme .item-show-page :is(.resource-values, .block) > dl,
.pams-theme .item-show-page > dl { border: 1px solid #b98698; border-radius: 6px; overflow: hidden; }
.pams-theme .item-show-page dl > .property { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 20px; padding: 15px 18px; margin: 0; background: #fff; border: 0; font-size: 14px; }
.pams-theme .item-show-page dl > .property:nth-child(even) { background: #eae1e3; }
.pams-theme .item-show-page dt { font-weight: 400; margin: 0; }
.pams-theme .item-show-page dd { grid-column: 2; margin: 0; overflow-wrap: anywhere; }
.pams-theme .item-show-page dd img { max-height: 100px; width: auto; }
.pams-theme .item-show-page dd p { margin: 0; }
.pams-theme .stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pams-theme .stories-card { background: #eae1e3; box-shadow: none; }
.pams-theme .stories-card__title { font-size: 22px; }
.pams-theme .stories-card__image { background: #eae1e3; }
.pams-theme .stories-filter__inner { padding-top: 0; }
.pams-theme .mapping-sidebar-close { color: #892d4a !important; border-color: #892d4a !important; font-size: 30px; font-weight: 400; line-height: 1; }
.pams-theme .mapping-sidebar-enabled { --pams-map-panel-width: clamp(310px, 30%, 359px); --pams-map-panel-height: 48%; }
.pams-theme .mapping-sidebar-enabled.mapping-sidebar-compact { --pams-map-panel-width: 100%; }
.pams-theme .mapping-sidebar-panel { width: var(--pams-map-panel-width); background: #fff; border-color: #d4c6cf; color: #352e33; }
.pams-theme .mapping-sidebar-compact .mapping-sidebar-panel { height: var(--pams-map-panel-height); }
.pams-theme .mapping-sidebar-institution-header { background: #f4f0f1; }
.pams-theme .mapping-sidebar-institution-header :is(h3, h4) { color: #892d4a; font-size: 17px; font-weight: 600; }
.pams-theme .mapping-sidebar-group-label { font-size: 12px; color: #6b4473; }
.pams-theme .mapping-sidebar-list-item,
.pams-theme .mapping-sidebar-list-item:is(:hover, :focus) { background: transparent; color: #352e33; margin: 0; border-radius: 0; }
.pams-theme .mapping-sidebar-list-item:focus-visible { outline: 2px solid #6b4473; outline-offset: -2px; }
.pams-theme .mapping-sidebar-institution-select,
.pams-theme .mapping-sidebar-institution-select:is(:hover, :focus) { background: transparent; color: inherit; border-radius: 0; }
.pams-theme .mapping-sidebar-institution-select:hover span:last-child { text-decoration: none; }
.pams-theme .mapping-sidebar-entry-type, .pams-theme .mapping-sidebar-institution-header p { color: #665d65; }
.pams-theme .mapping-sidebar-collection > summary { background: #eae3e8; }
.pams-theme .mapping-sidebar-collection-link { color: #6b4473; }
.pams-theme .mapping-sidebar-type-icon { background-position: center; background-repeat: no-repeat; background-size: 22px; font-size: 0; box-shadow: 0 2px 4px #20191a12; }
.pams-theme .mapping-sidebar-type-icon--collection { background-image: url('../img/pams/icon-collection.svg'); }
.pams-theme .mapping-sidebar-type-icon--record { background-image: url('../img/pams/icon-record.svg'); }
.pams-theme .mapping-sidebar-type-icon--oral { background-image: url('../img/pams/icon-oral.svg'); }
.pams-theme .mapping-sidebar-type-icon--image { background-image: url('../img/pams/icon-image.svg'); }
.pams-theme .mapping-sidebar-type-icon--institution { background-image: url('../img/pams/icon-institution.svg'); }
.pams-theme .mapping-sidebar-record-heading h4 { font-size: 14px; color: #352e33; }
.pams-theme .mapping-sidebar-parent-collection h4 { font-size: 14px; color: #6b4473; }
.pams-theme .mapping-sidebar-collection[open] { background: #eae3e8; border-color: #bfd4e5; }
.pams-theme .mapping-sidebar-members { margin: 0 10px 10px; }
.pams-theme .mapping-sidebar-members li { background: #fff; border: 0; border-radius: 9px; margin-bottom: 8px; overflow: hidden; }
.pams-theme .mapping-sidebar-collection-view .mapping-sidebar-members { margin: 0; }
.pams-theme .mapping-sidebar-collection-view .mapping-sidebar-list-item { padding: 12px; }
.pams-theme .mapping-sidebar-collection-view .mapping-sidebar-type-icon { width: 22px; height: 22px; flex-basis: 22px; background-size: 16px; }
.pams-theme .mapping-sidebar-collection-view .mapping-sidebar-entry-type { font-size: 11px; }
.pams-theme .mapping-hierarchy-node .mapping-sidebar-type-icon { background-size: calc(var(--mapping-pin-size, 32px) * .625); }
.pams-theme .mapping-hierarchy-collection .mapping-sidebar-type-icon { background-size: calc(var(--mapping-pin-size, 44px) * .545); }
/* Map markers use plain coloured dots; sidebar and legend symbols stay visible. */
.pams-theme :is(.mapping-hierarchy-node, .mapping-source-pin) .mapping-sidebar-type-icon { background-image: none; }
.pams-theme .mapping-hierarchy-node { display: flex; align-items: center; justify-content: center; }
.pams-theme .mapping-hierarchy-node .mapping-sidebar-type-icon { flex-shrink: 0; }
/* Scale the artwork around its centre while retaining the marker's click area. */
.pams-theme .mapping-hierarchy-item .mapping-sidebar-type-icon,
.pams-theme .mapping-source-pin .mapping-sidebar-type-icon:is(.mapping-sidebar-type-icon--record, .mapping-sidebar-type-icon--oral, .mapping-sidebar-type-icon--image) { transform: scale(.5); transform-origin: center; }
.pams-theme .mapping-hierarchy-collection .mapping-sidebar-type-icon,
.pams-theme .mapping-source-pin .mapping-sidebar-type-icon--collection { transform: scale(.625); transform-origin: center; }
.pams-theme .mapping-hierarchy-count { transform: scale(.85); transform-origin: center; }
.pams-theme .mapping-hierarchy-node.is-expanded .mapping-sidebar-type-icon { box-shadow: 0 0 0 7px #6b447340, 0 3px 6px #352e3340; }
.pams-theme .mapping-hierarchy-node.is-selected .mapping-sidebar-type-icon { box-shadow: 0 0 0 8px #bed4e780, 0 3px 6px #352e3340; }
.pams-theme .mapping-sidebar-full-record { text-decoration: none; }
.pams-theme .mapping-sidebar-record .mapping-popup-props { border: 0; padding: 0; margin: 8px 0 0; }
.pams-theme .mapping-sidebar-record .mapping-popup-props dt { margin-top: 20px; }
.pams-theme .mapping-sidebar-record-heading { margin: 0 0 16px; padding: 0; }
.pams-theme .mapping-sidebar-record-heading p { margin: 4px 0 0; }
.pams-theme .mapping-sidebar-record .mapping-sidebar-full-record { margin: 0; }
.pams-theme .mapping-sidebar-record .mapping-sidebar-content { padding-top: 8px; }
.pams-theme .mapping-sidebar-back,
.pams-theme .mapping-sidebar-back:is(:hover, :focus) { background: transparent; margin-bottom: 0; border-radius: 0; color: #6b4473; font-weight: 400; }
@media (min-width: 801px) { .pams-theme .mapping-sidebar-enabled { min-height: 650px; } }
.pams-theme .mapping-sidebar-enabled.mapping-sidebar-compact { min-height: var(--mapping-compact-height, 800px); }
/* Native Omeka HTML blocks supply page copy; templates supply the presentation. */
.pams-home { padding-bottom: 0; }
.pams-home .blocks-inner > .block { margin: 0; }
.pams-home__intro > p:last-child { margin-bottom: 0; }
.pams-state-jump__heading p { margin: 0; color: #892d4a; text-transform: uppercase; font-weight: 600; font-size: 15px; }
.pams-featured__label p { margin: 0; }
.pams-section-heading > p { margin: 0; }
.pams-timeline__editor-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 24px; margin-bottom: 30px; }
.pams-timeline__editor-intro h2 { margin: 0; }
.pams-timeline__editor-intro .pams-status { margin: 0; }
.pams-theme .pams-timeline__editor-intro > p:not(.pams-status) { grid-column: 1 / -1; color: #66595e; max-width: 690px; font-size: 16px; margin: 0; }
.pams-home .blocks-inner > .pams-banner-block { margin: 72px calc(-1 * var(--page-gutter)) 0; }
.pams-contribute-banner--editable { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 30px; }
.pams-contribute-banner--editable > h2, .pams-contribute-banner--editable > p { grid-column: 1; }
.pams-contribute-banner--editable > p:last-child { grid-column: 2; grid-row: 1 / span 2; }
.pams-news-grid > .block { margin: 0; min-width: 0; }
.pams-news-card--editable { height: 100%; }
.pams-news-card--editable > p:first-child { margin: 0; }
.pams-news-card--editable img { display: block; width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; border-radius: 4px; }
.pams-theme .pams-news-card--editable h3 a { color: inherit; text-decoration: none; }
.pams-footer__copy .block, .pams-footer__copy p { margin: 0; }
.pams-theme .pams-page-heading h1 ~ p { border: 0; padding: 0; margin: 18px 0 0; text-transform: none; letter-spacing: normal; font-size: 16px; color: #40383a; }
.pams-theme .contribute-page__header .pams-page-heading :is(h1, p) { color: #fff; }
@media (max-width: 1250px) {
    .pams-state-jump { align-items: flex-start; flex-direction: column; }
    .pams-footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pams-footer__logo { grid-column: 1 / -1; max-width: 200px; margin-top: 10px; }
    .pams-news-card__meta { flex-direction: column; }
    .pams-theme .pams-search-results, .pams-theme .map-place-featured__grid { grid-template-columns: 1fr; }
    .pams-timeline__layout { gap: 3%; }
    .pams-timeline__controls { flex-wrap: wrap; }
    .pams-contribute-banner { align-items: flex-start; flex-direction: column; }
    .pams-contribute-banner--editable { grid-template-columns: 1fr; gap: 16px; }
    .pams-contribute-banner--editable > p:last-child { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
    .pams-theme { --page-gutter: 28px; padding-left: 0 !important; padding-top: 82px !important; }
    .pams-theme.user-bar { padding-top: 122px !important; }
    .pams-mobile-bar { display: flex; align-items: center; justify-content: space-between; position: fixed; top: var(--pams-userbar-height, 0px); left: 0; right: 0; height: 82px; padding: 12px 24px; background: #892d4a; z-index: 1200; }
    .pams-mobile-bar img { display: block; width: 139px; height: auto; }
    .pams-theme .pams-menu-toggle { display: flex; align-items: center; gap: 10px; border: 1px solid #ffffff65; background: none; color: #fff; border-radius: 99px; padding: 9px 14px; }
    .pams-menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; }
    .pams-theme .pams-sidebar { inset: calc(82px + var(--pams-userbar-height, 0px)) auto 0 0; height: calc(100dvh - 82px - var(--pams-userbar-height, 0px)); transform: translateX(-100%); visibility: hidden; width: min(330px, 88vw); }
    .pams-menu-open .pams-sidebar { transform: translateX(0); visibility: visible; }
    .pams-sidebar__mark { display: none; }
    .pams-sidebar__search { border-top: 0; padding-top: 0; }
    .pams-menu-open { overflow: hidden; }
    .pams-theme .pams-menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 82px 0 0; background: #20191a80; border: 0; border-radius: 0; z-index: 1000; width: 100%; height: calc(100dvh - 82px); }
    body.pams-theme #main-content { padding-top: 30px; }
    .pams-theme.site-page-home #main-content { padding-top: 0; }
    .pams-home { padding-top: 30px; }
    .pams-theme .pams-home__map .mapping-map { height: 450px !important; }
    .pams-theme .pams-search-results, .pams-theme .map-place-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pams-theme .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .pams-theme { --page-gutter: 22px; font-size: 15px; }
    .pams-partners { margin-top: 32px; padding-top: 28px; padding-bottom: 0; }
    .pams-theme .pams-partners h2 { margin-bottom: 28px; }
    .pams-partners__logos { flex-direction: column; align-items: flex-start; gap: 32px; }
    .pams-home__intro { padding-bottom: 28px; }
    .pams-home__intro h1 { font-size: 33px; }
    .pams-theme .pams-home__map .mapping-map { height: 340px !important; }
    .pams-state-jump > div { gap: 8px; }
    .pams-theme .pams-state-jump a { min-width: 51px; min-height: 40px; }
    .pams-featured { grid-template-columns: 1fr; padding-top: 30px; gap: 25px; }
    .pams-featured__image { aspect-ratio: 1.45; }
    .pams-featured__copy h2 { font-size: 28px; margin: 18px 0; }
    .pams-featured__all { grid-column: 1; }
    .pams-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
    .pams-timeline__layout { grid-template-columns: 1fr; gap: 0; }
    .pams-timeline__data { display: contents; }
    .pams-timeline__year { font-size: 40px; }
    .pams-timeline__map { max-width: 380px; justify-self: center; }
    .pams-timeline__geography { grid-row: 4; text-align: center; margin: 8px 0 26px; }
    .pams-news-grid { grid-template-columns: 1fr; gap: 24px; }
    .pams-news-card__meta { flex-direction: row; }
    .pams-news-card h3 { font-size: 23px; }
    .pams-home { padding-bottom: 0; }
    .pams-home .blocks-inner > .pams-banner-block { margin-top: 40px; }
    .pams-timeline__editor-intro { grid-template-columns: 1fr; }
    .pams-timeline__editor-intro .pams-status { justify-self: start; }
    .pams-footer { padding-top: 38px; }
    .pams-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding-bottom: 35px; }
    .pams-footer nav a { padding: 7px 0; }
    .pams-footer__bottom { flex-direction: column; }
    .pams-theme .pams-search-results, .pams-theme .map-place-featured__grid, .pams-theme .stories-grid { grid-template-columns: 1fr; }
    .pams-theme .pams-search-form__keyword { flex-wrap: wrap; }
    .pams-theme .pams-search-form__keyword input { flex-basis: 100%; }
    .pams-theme .pams-search-filters { grid-template-columns: 1fr; }
    .pams-theme .pams-search-filter { grid-column: auto; }
    .pams-theme .pams-item-heading { flex-wrap: wrap; }
    .pams-theme .pams-item-heading h1 { font-size: 26px; }
    .pams-theme .pams-item-heading > a { margin-top: 6px; }
    .pams-theme .item-show-page dl > .property { grid-template-columns: 1fr; padding: 15px; }
    .pams-theme .item-show-page dt { font-weight: 600; margin-bottom: 5px; }
    .pams-theme .item-show-page dd { grid-column: 1; }
    .pams-theme .map-place-compare__links { justify-content: flex-start; }
    .pams-theme .map-place-compare__links > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pams-theme *, .pams-theme *::before, .pams-theme *::after { scroll-behavior: auto !important; transition: none !important; }
}

.pams-institution-picker { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.pams-institution-picker select { min-width: 0; max-width: 440px; width: 100%; padding: 10px; margin: 0; }
.pams-theme .pams-institution-picker .pams-button { flex-shrink: 0; min-height: 44px; margin: 0; }
@media (max-width: 600px) {
    .pams-institution-picker { flex-direction: column; align-items: stretch; width: 100%; }
    .pams-institution-picker select { max-width: 100%; }
}
