@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* ===================================================================
   MeDoraH — Global & Archive Page Styles
   Register: archive ledger. Instrument Serif for display, IBM Plex
   Sans for text, IBM Plex Mono for field labels, one indigo accent.
   Tokens mirror the MeDoraH landing page (--medorah-*) so the whole
   /medorah/ site reads as one system.
   Deployed via Omeka-S admin: Sites → MeDoraH → CSS editor.
   =================================================================== */
:root {
    --font-primary: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-secondary: 'Instrument Serif', Georgia, Cambria, serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --color-bg: #FDFBFA;
    --color-bg-card: #FFFFFF;
    --color-bg-inset: #F4F1EC;
    --color-text-primary: #1A1918;
    --color-text-secondary: #44413E;
    --color-text-muted: #6B6865;
    --color-text-faint: #A3A09E;
    --color-accent: #514FEF;
    --color-accent-soft: rgba(81, 79, 239, 0.10);
    --color-rule: rgba(20, 20, 19, 0.08);
    --color-rule-mid: rgba(20, 20, 19, 0.14);
    --color-rule-strong: rgba(20, 20, 19, 0.18);
    /* Legacy alias kept for the profile-card block below */
    --color-border: rgba(20, 20, 19, 0.10);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    color: var(--color-text-primary);
}

.page-title {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

body .block-html:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

section {
    margin-bottom: 5rem;
}

img.rounded-profile {
    width: 96px;
    height: 96px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin-bottom: 1rem;
}

.zoom-in-profile {
    object-position: center 20%;
}

.profile-card {
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 360px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}


/* ===================================================================
   MeDoraH — Item / Interview Record Page  (body.item.resource.show)
   One interview, laid out as a catalogue record: mono field labels,
   serif title, hairline rules. The same anatomy the IDOHL landing
   page previews in its Data Portal section.
   =================================================================== */

body.item.resource.show {
    background: var(--color-bg);
}

/* ---------- Main content container ---------- */
body.item.resource.show #content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5.5rem;
}

/* ---------- Record title ---------- */
body.item.resource.show #content>h1 {
    font-family: var(--font-secondary);
    background: transparent;
    color: var(--color-text-primary);
    padding: 0 0 1.75rem 0;
    margin: 0 0 2.25rem 0;
    border: none !important;
    border-left: none !important;
    border-inline-start: none !important;
    box-shadow: none !important;
    font-weight: 400;
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-align: left;
    position: relative;
    border-bottom: 1px solid var(--color-rule) !important;
}

/* Mono eyebrow above the title. This deliberately claims the ::before
   slot the previous stylesheet nulled out; every box property is reset
   so no lively-theme decoration can leak through. */
body.item.resource.show #content>h1::before {
    content: 'MeDoraH archive · Record' !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    margin: 0 0 1.4rem 0 !important;
    padding: 0 !important;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Short accent rule under the title */
body.item.resource.show #content>h1::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 64px !important;
    height: 2px !important;
    background: var(--color-accent) !important;
}

body.item.resource.show #content>h1 .title {
    color: var(--color-text-primary);
    border: none !important;
    border-left: none !important;
    border-inline-start: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

body.item.resource.show #content>h1 .title::before,
body.item.resource.show #content>h1 .title::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    width: 0 !important;
}

/* ---------- The record card ---------- */
body.item.resource.show .metadata {
    background: var(--color-bg-card);
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid var(--color-rule-mid);
    margin-top: 2rem;
    overflow: hidden;
    padding: 2rem 2.75rem 2.25rem;
}

/* ---------- Record head: portrait beside the recording ----------
   metadata-link-injector.js wraps the theme's .media-embeds in
   .record-head and prepends .record-portrait when the item has a
   thumbnail. Either half can be missing: an item may have a portrait
   and no audio, or audio and no portrait. */
body.item.resource.show .record-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 0.25rem 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-rule-mid);
}

body.item.resource.show .record-portrait {
    flex: 0 0 auto;
    width: 190px;
    border: 1px solid var(--color-rule-mid);
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg-inset);
    line-height: 0;
}

body.item.resource.show .record-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 22%;
}

/* The recording takes the rest of the row and drops below on narrow
   viewports; 18rem keeps the audio control usable before it wraps. */
body.item.resource.show .record-head .media-embeds {
    flex: 1 1 18rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* Fallback: an item with no portrait (the injector then adds no
   wrapper either) keeps the original spacing on the bare .media-embeds */
body.item.resource.show .metadata > .media-embeds {
    margin: 0.25rem 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-rule-mid);
}

body.item.resource.show .media-render {
    position: relative;
    background: var(--color-bg-inset);
    border: 1px solid var(--color-rule);
    border-radius: 6px;
    margin: 0;
    padding: 0.9rem 1.1rem 1rem;
    overflow: visible;
    box-shadow: none;
}

body.item.resource.show .media-render::before {
    content: 'Recording';
    display: block;
    position: static;
    margin: 0 0 0.65rem 0;
    background: transparent;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    border-radius: 0;
    box-shadow: none;
}

body.item.resource.show audio,
body.item.resource.show .media-render audio {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    border: none;
    outline: none;
}

/* ---------- Ledger rows ----------
   Covers the main dl and, by the same .property anatomy, the trailing
   dl.item-sets / dl.media-list, plus the injected export row. */
body.item.resource.show .metadata dl {
    margin: 0;
}

body.item.resource.show .main-region .metadata .property,
body.item.resource.show .regions-container > .metadata .property {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 0.35rem 2.5rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-rule);
    border-left: none;
    background: transparent;
}

body.item.resource.show .metadata dl:last-of-type .property:last-child {
    border-bottom: none;
}

body.item.resource.show .metadata .property:hover {
    background: transparent;
}

/* ---------- Field labels (dt) ---------- */
body.item.resource.show .metadata .property dt,
body.item.resource.show .metadata .property h4 {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* ---------- Documentation link icon ---------- */
body.item.resource.show .metadata-doc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
    background: transparent;
    color: var(--color-text-faint);
    text-decoration: none;
    border: none;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

body.item.resource.show .metadata-doc-link:hover {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

body.item.resource.show .metadata-doc-link svg {
    width: 13px;
    height: 13px;
}

/* ---------- Field values (dd) ---------- */
body.item.resource.show .metadata .property dd,
body.item.resource.show .metadata .property .values {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    font-weight: 400;
    max-width: 68ch;
}

body.item.resource.show .metadata .property dd .value-content {
    display: inline;
    word-break: break-word;
}

/* ---------- Links inside values ---------- */
body.item.resource.show .metadata .property dd a,
body.item.resource.show .metadata .property dd a.resource-link,
body.item.resource.show .metadata .property dd a.uri-value-link,
body.item.resource.show .metadata .property .values a,
body.item.resource.show .media-render a {
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-rule-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    display: inline;
}

body.item.resource.show .metadata .property dd a:hover,
body.item.resource.show .metadata .property .values a:hover,
body.item.resource.show .media-render a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ---------- Resource thumbnails inside values ---------- */
body.item.resource.show .metadata .property dd img,
body.item.resource.show .metadata .property .values img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 0.6rem;
    border: 1px solid var(--color-rule);
}

/* ---------- Injected export row (metadata-link-injector.js) ---------- */
body.item.resource.show .metadata .property.record-export {
    border-top: 1px solid var(--color-rule-mid);
    border-bottom: none;
    margin-top: -1px;
    padding-top: 1.4rem;
    padding-bottom: 0.4rem;
    align-items: center;
}

body.item.resource.show .property.record-export dd {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: none;
}

body.item.resource.show .property.record-export dd a {
    display: inline-block;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--color-rule-strong);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-primary);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.item.resource.show .property.record-export dd a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

/* ---------- Left sidebar (person records only) ----------
   The show template gives Person items an extra
   .sidebar-region--left holding just the resource class. Stack its
   label over its value: a 230px ledger column inside a 328px box
   leaves nothing for the value. */
body.item.resource.show .sidebar-region--left .metadata {
    padding: 1.1rem 1.35rem 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

body.item.resource.show .sidebar-region--left .property {
    display: block;
    padding: 0;
    border-bottom: none;
}

body.item.resource.show .sidebar-region--left dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    margin: 0 0 0.35rem 0;
}

body.item.resource.show .sidebar-region--left dd {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--color-text-primary);
}

/* ---------- Linked resources (person records) ---------- */
body.item.resource.show .linked-resources-wrapper {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--color-rule-mid);
}

body.item.resource.show .resources-linked__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.item.resource.show .resources-linked__heading {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    margin: 0;
}

body.item.resource.show .resources-linked__expand-collapse-btn {
    background: transparent;
    border: 1px solid var(--color-rule-strong);
    border-radius: 4px;
    padding: 0.32rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

body.item.resource.show .resources-linked__expand-collapse-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Linked-resources body, fetched into #linked-resources-container
   after load: a type filter, then one accordion per property, each
   listing the records that point at this one. */
body.item.resource.show #linked-filter {
    margin-bottom: 1.1rem;
}

body.item.resource.show #linked-filter label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

body.item.resource.show #linked-filter select {
    border: 1px solid var(--color-rule-strong);
    border-radius: 4px;
    padding: 0.4rem 0.7rem;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    letter-spacing: 0;
    text-transform: none;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
}

body.item.resource.show #linked-filter select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

body.item.resource.show .linked-resource-accordion {
    border-top: 1px solid var(--color-rule);
}

body.item.resource.show .linked-resource-heading {
    margin: 0;
}

body.item.resource.show .accordion__trigger {
    width: 100%;
    display: block;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.85rem 0;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: color 0.2s ease;
}

body.item.resource.show .accordion__trigger:hover {
    color: var(--color-accent);
}

/* The theme drops a 12px blue square in as ::before; inside a flex row
   it becomes a third item and shoves the label to the right. */
body.item.resource.show .accordion__title::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    width: 0 !important;
}

body.item.resource.show .accordion__title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

/* Chevron sits at the far right whatever the label's length */
body.item.resource.show .accordion__title .accordion__icon {
    margin-left: auto;
}

body.item.resource.show .accordion__icon {
    flex: none;
    color: var(--color-text-faint);
    transition: transform 0.25s ease;
}

/* The theme asks Font Awesome for a chevron the loaded font file does
   not carry, so it renders as a tofu box (visible on the live site
   too). Substitute a text character. */
body.item.resource.show .accordion__icon::before {
    content: '\25BE' !important;
    font-family: var(--font-mono) !important;
    font-size: 0.8rem;
    line-height: 1;
}

body.item.resource.show .accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
}

/* One linked record: same anatomy as an index row, one size down */
body.item.resource.show .linked-resource {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0 1rem;
    align-items: center;
    padding: 0.6rem 0 0.6rem 0.25rem;
    border-top: 1px solid var(--color-rule);
    /* the theme's own grey dashed rule, replaced by the hairline above */
    border-bottom: none;
}

body.item.resource.show .linked-resource:first-child {
    border-top: none;
}

body.item.resource.show .linked-resource .resource__thumbnail {
    grid-column: 1;
    grid-row: 1;   /* thumbnail follows content in this partial's markup */
    width: 48px;
    height: 48px;
    margin: 0;
    border: 1px solid var(--color-rule-mid);
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg-inset);
}

body.item.resource.show .linked-resource .resource__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: saturate(0.85);
}

body.item.resource.show .linked-resource .resource__content {
    grid-column: 2;
    grid-row: 1;
}

body.item.resource.show .linked-resource .resource__content a {
    font-family: var(--font-secondary);
    font-size: 1.0625rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease;
}

body.item.resource.show .linked-resource .resource__content a:hover {
    color: var(--color-accent);
    border-bottom: none;
}

/* ---------- Region layout: single column, sidebar retired ---------- */
body.item.resource.show .regions-container {
    display: block;
}

body.item.resource.show .main-region {
    width: 100%;
    min-width: 0;
}

body.item.resource.show .regions-container {
    padding-top: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    body.item.resource.show #content {
        padding: 2rem 1.25rem 4rem;
    }

    body.item.resource.show #content>h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.4rem);
        padding-bottom: 1.25rem;
    }

    body.item.resource.show .metadata {
        padding: 1.4rem 1.25rem 1.5rem;
    }

    body.item.resource.show .metadata .property {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.8rem 0;
    }

    body.item.resource.show .metadata .property dd,
    body.item.resource.show .metadata .property .values {
        font-size: 1rem;
    }

    body.item.resource.show .record-head,
    body.item.resource.show .metadata > .media-embeds {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        gap: 1.1rem;
    }

    body.item.resource.show .record-portrait {
        width: 140px;
    }
}

/* ---------- Entrance ---------- */
body.item.resource.show #content>h1 {
    animation: fadeSlideUp 0.6s ease-out both;
}

body.item.resource.show .metadata {
    animation: fadeSlideUp 0.6s ease-out 0.1s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Print ---------- */
@media print {
    body.item.resource.show {
        background: #ffffff;
    }

    body.item.resource.show #content {
        padding: 0;
    }

    body.item.resource.show .metadata {
        box-shadow: none;
        border: 1px solid #ddd;
        background: transparent;
        page-break-inside: avoid;
    }

    body.item.resource.show .property.record-export {
        display: none;
    }

    body.item.resource.show .record-portrait {
        width: 140px;
    }
}


/* ===================================================================
   MeDoraH — Interviews Listing Page
   (body.page.site-page-Oral-History-Interviews)
   Register: archive index. Full-width finding-aid rows with a mono
   row numeral, a small archival portrait, and a serif title.
   NOTE: the real container on this template is #content.container;
   there is no #main-content on lively page templates.
   =================================================================== */

body.page.site-page-Oral-History-Interviews {
    background: var(--color-bg);
}

/* ---------- Main content container ---------- */
body.page.site-page-Oral-History-Interviews #content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5.5rem;
}

/* ---------- Page title ---------- */
body.page.site-page-Oral-History-Interviews .block-pageTitle {
    display: block;
    width: 100%;
    margin-bottom: 3rem;
    /* The theme insets the title text ~18px; zero every side but keep
       the bottom gap above the hairline */
    padding: 0 0 1.75rem 0 !important;
    border-bottom: 1px solid var(--color-rule);
    position: relative;
    animation: fadeSlideUp 0.6s ease-out both;
}

/* Kill the lively theme's title decorations (left bar, shrink-wrap) */
body.page.site-page-Oral-History-Interviews .block-pageTitle::before,
body.page.site-page-Oral-History-Interviews .block-pageTitle h2.title::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
}

body.page.site-page-Oral-History-Interviews .block-pageTitle::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--color-accent);
}

body.page.site-page-Oral-History-Interviews .block-pageTitle h2.title {
    display: block;
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
    margin: 0;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Mono sub-label under the title */
body.page.site-page-Oral-History-Interviews .block-pageTitle h2.title::after {
    content: 'MeDoraH · Digital oral history collection';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    margin-top: 1.1rem;
}

body.page.site-page-Oral-History-Interviews .block-browsePreview {
    animation: fadeSlideUp 0.6s ease-out 0.15s both;
}

/* ---------- Grid / List toggle (theme control) ---------- */
body.page.site-page-Oral-History-Interviews .browse-controls,
body.item.resource.browse .browse-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

body.page.site-page-Oral-History-Interviews .layout-toggle button,
body.item.resource.browse .layout-toggle button {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    color: var(--color-text-faint);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    transition: color 0.2s ease;
}

body.page.site-page-Oral-History-Interviews .layout-toggle button:hover,
body.item.resource.browse .layout-toggle button:hover {
    color: var(--color-accent);
}

/* The active view's button is disabled by the theme */
body.page.site-page-Oral-History-Interviews .layout-toggle button[disabled],
body.item.resource.browse .layout-toggle button[disabled] {
    color: var(--color-text-primary);
    cursor: default;
}

/* ===================================================================
   LIST VIEW — the archive index. A finding-aid row per record:
   mono numeral, small portrait, serif title. Shared by the listing
   page and Browse All.
   The lively theme swaps .resource-grid <-> .resource-list on the
   container (see themes/lively/asset/js/browse.js), so these two
   sections are what the Grid / List toggle actually switches between.
   =================================================================== */

/* Container: one column, Masonry neutralised (the theme sets inline
   position/top/left/width on children while .resource-grid is on) */
body.page.site-page-Oral-History-Interviews .resources.resource-list,
body.item.resource.browse .resources.resource-list {
    display: block !important;
    height: auto !important;
    position: relative !important;
    text-align: left;
    border-top: 1px solid var(--color-rule-strong);
    counter-reset: medorah-row;
}

/* ---------- One index row ---------- */
body.page.site-page-Oral-History-Interviews .resource-list .item.resource,
body.item.resource.browse .resource-list .item.resource {
    counter-increment: medorah-row;
    display: grid !important;
    grid-template-columns: 3.25rem 72px minmax(0, 1fr);
    gap: 0 1.75rem;
    align-items: center;
    padding: 1.05rem 0.5rem;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-rule) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transition: background 0.25s ease;
    /* Masonry inline-style neutralisation */
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:hover,
body.item.resource.browse .resource-list .item.resource:hover {
    background: var(--color-bg-inset) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Row numeral */
body.page.site-page-Oral-History-Interviews .resource-list .item.resource::before,
body.item.resource.browse .resource-list .item.resource::before {
    content: counter(medorah-row, decimal-leading-zero) !important;
    display: block;
    grid-column: 1;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text-faint);
    transition: color 0.25s ease;
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:hover::before,
body.item.resource.browse .resource-list .item.resource:hover::before {
    color: var(--color-accent);
}

/* ---------- Archival portrait ---------- */
body.page.site-page-Oral-History-Interviews .resource-list .resource__thumbnail,
body.item.resource.browse .resource-list .resource__thumbnail {
    grid-column: 2;
    grid-row: 1;   /* List view swaps DOM order; pin both cells to row 1 */
    flex: none;
    width: 72px;
    height: 72px;
    margin: 0 !important;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-rule-mid);
    box-shadow: none;
    background: var(--color-bg-inset);
}

body.page.site-page-Oral-History-Interviews .resource-list .resource__thumbnail a,
body.item.resource.browse .resource-list .resource__thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

body.page.site-page-Oral-History-Interviews .resource-list .resource__thumbnail img,
body.item.resource.browse .resource-list .resource__thumbnail img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: filter 0.35s ease;
    filter: saturate(0.85);
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:hover .resource__thumbnail img,
body.item.resource.browse .resource-list .item.resource:hover .resource__thumbnail img {
    transform: none;
    filter: saturate(1);
}

body.page.site-page-Oral-History-Interviews .resource-list .resource__thumbnail::after,
body.item.resource.browse .resource-list .resource__thumbnail::after {
    display: none;
}

/* ---------- Title ---------- */
body.page.site-page-Oral-History-Interviews .resource-list .resource__content,
body.item.resource.browse .resource-list .resource__content {
    grid-column: 3;
    grid-row: 1;
    display: block;
    padding: 0;
    min-height: 0;
}

body.page.site-page-Oral-History-Interviews .resource-list .resource__content a,
body.item.resource.browse .resource-list .resource__content a {
    font-family: var(--font-secondary);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.25s ease;
    letter-spacing: -0.005em;
    display: inline;
    position: relative;
}

body.page.site-page-Oral-History-Interviews .resource-list .resource__content a::after,
body.item.resource.browse .resource-list .resource__content a::after {
    content: '→';
    display: inline-block;
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-accent);
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:hover .resource__content a,
body.item.resource.browse .resource-list .item.resource:hover .resource__content a {
    color: var(--color-accent);
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:hover .resource__content a::after,
body.item.resource.browse .resource-list .item.resource:hover .resource__content a::after {
    opacity: 1;
    transform: translateX(2px);
}

/* ---------- Row entrances: first ten stagger, the rest just appear ---------- */
body.page.site-page-Oral-History-Interviews .resource-list .item.resource,
body.item.resource.browse .resource-list .item.resource {
    animation: fadeSlideUp 0.45s ease-out both;
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(n) ,
body.item.resource.browse .resource-list .item.resource:nth-child(n) {
    animation-delay: 0.5s;
}

body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(1),
body.item.resource.browse .resource-list .item.resource:nth-child(1) { animation-delay: 0.05s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(2),
body.item.resource.browse .resource-list .item.resource:nth-child(2) { animation-delay: 0.10s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(3),
body.item.resource.browse .resource-list .item.resource:nth-child(3) { animation-delay: 0.15s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(4),
body.item.resource.browse .resource-list .item.resource:nth-child(4) { animation-delay: 0.20s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(5),
body.item.resource.browse .resource-list .item.resource:nth-child(5) { animation-delay: 0.25s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(6),
body.item.resource.browse .resource-list .item.resource:nth-child(6) { animation-delay: 0.30s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(7),
body.item.resource.browse .resource-list .item.resource:nth-child(7) { animation-delay: 0.35s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(8),
body.item.resource.browse .resource-list .item.resource:nth-child(8) { animation-delay: 0.40s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(9),
body.item.resource.browse .resource-list .item.resource:nth-child(9) { animation-delay: 0.45s; }
body.page.site-page-Oral-History-Interviews .resource-list .item.resource:nth-child(10),
body.item.resource.browse .resource-list .item.resource:nth-child(10) { animation-delay: 0.50s; }

/* ===================================================================
   GRID VIEW — portrait-forward cards. The default the theme renders,
   and the half of the toggle that leads with the image.
   =================================================================== */

/* Masonry is initialised on .resource-grid and writes inline
   position/top/left/width onto every child; CSS Grid plus the
   neutralisation below wins and gives even columns instead. */
body.page.site-page-Oral-History-Interviews .resources.resource-grid,
body.item.resource.browse .resources.resource-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.75rem;
    height: auto !important;
    position: relative !important;
    text-align: left;
    counter-reset: medorah-card;
    opacity: 1 !important;
}

/* The theme injects zero-height sizer nodes for Masonry's column maths;
   as grid children they would each claim a cell. */
body.page.site-page-Oral-History-Interviews .resources.resource-grid > .grid-sizer,
body.page.site-page-Oral-History-Interviews .resources.resource-grid > .gutter-sizer,
body.item.resource.browse .resources.resource-grid > .grid-sizer,
body.item.resource.browse .resources.resource-grid > .gutter-sizer {
    display: none !important;
}

/* ---------- One card ---------- */
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource,
body.item.resource.browse .resource-grid .item.resource {
    counter-increment: medorah-card;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: var(--color-bg-card) !important;
    border: 1px solid var(--color-rule-mid) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: border-color 0.25s ease, background 0.25s ease;
    /* Masonry inline-style neutralisation */
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
}

body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:hover,
body.item.resource.browse .resource-grid .item.resource:hover {
    border-color: var(--color-accent) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ---------- Card portrait ---------- */
body.page.site-page-Oral-History-Interviews .resource-grid .resource__thumbnail,
body.item.resource.browse .resource-grid .resource__thumbnail {
    flex: none;
    order: 1;   /* List view puts content first in the DOM; force image on top */
    width: 100%;
    margin: 0 !important;
    border: none;
    border-bottom: 1px solid var(--color-rule);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-inset);
    aspect-ratio: 4 / 3;
    box-shadow: none;
}

body.page.site-page-Oral-History-Interviews .resource-grid .resource__thumbnail a,
body.item.resource.browse .resource-grid .resource__thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

body.page.site-page-Oral-History-Interviews .resource-grid .resource__thumbnail img,
body.item.resource.browse .resource-grid .resource__thumbnail img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    filter: saturate(0.85);
    transition: filter 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:hover .resource__thumbnail img,
body.item.resource.browse .resource-grid .item.resource:hover .resource__thumbnail img {
    filter: saturate(1);
    transform: scale(1.03);
}

body.page.site-page-Oral-History-Interviews .resource-grid .resource__thumbnail::after,
body.item.resource.browse .resource-grid .resource__thumbnail::after {
    display: none;
}

/* ---------- Card text ---------- */
body.page.site-page-Oral-History-Interviews .resource-grid .resource__content,
body.item.resource.browse .resource-grid .resource__content {
    order: 2;
    flex: 1;
    display: block;
    padding: 1.15rem 1.35rem 1.4rem;
    min-height: 0;
}

/* Mono card numeral, above the title */
body.page.site-page-Oral-History-Interviews .resource-grid .resource__content::before,
body.item.resource.browse .resource-grid .resource__content::before {
    content: counter(medorah-card, decimal-leading-zero) !important;
    display: block;
    margin-bottom: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--color-text-faint);
    transition: color 0.25s ease;
}

body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:hover .resource__content::before,
body.item.resource.browse .resource-grid .item.resource:hover .resource__content::before {
    color: var(--color-accent);
}

body.page.site-page-Oral-History-Interviews .resource-grid .resource__content a,
body.item.resource.browse .resource-grid .resource__content a {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.25s ease;
    letter-spacing: -0.005em;
    display: block;
}

body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:hover .resource__content a,
body.item.resource.browse .resource-grid .item.resource:hover .resource__content a {
    color: var(--color-accent);
}

/* ---------- Card entrances ---------- */
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource,
body.item.resource.browse .resource-grid .item.resource {
    animation: fadeSlideUp 0.45s ease-out both;
}

body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:nth-child(1),
body.item.resource.browse .resource-grid .item.resource:nth-child(1) { animation-delay: 0.05s; }
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:nth-child(2),
body.item.resource.browse .resource-grid .item.resource:nth-child(2) { animation-delay: 0.10s; }
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:nth-child(3),
body.item.resource.browse .resource-grid .item.resource:nth-child(3) { animation-delay: 0.15s; }
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:nth-child(4),
body.item.resource.browse .resource-grid .item.resource:nth-child(4) { animation-delay: 0.20s; }
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:nth-child(5),
body.item.resource.browse .resource-grid .item.resource:nth-child(5) { animation-delay: 0.25s; }
body.page.site-page-Oral-History-Interviews .resource-grid .item.resource:nth-child(6),
body.item.resource.browse .resource-grid .item.resource:nth-child(6) { animation-delay: 0.30s; }

/* ---------- Grid responsive ---------- */
@media (max-width: 1000px) {
    body.page.site-page-Oral-History-Interviews .resources.resource-grid,
    body.item.resource.browse .resources.resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1.25rem;
    }
}

@media (max-width: 560px) {
    body.page.site-page-Oral-History-Interviews .resources.resource-grid,
    body.item.resource.browse .resources.resource-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    /* One card per row is far wider than a 4:3 crop of a square
       portrait can fill without cutting the face off */
    body.page.site-page-Oral-History-Interviews .resource-grid .resource__thumbnail,
    body.item.resource.browse .resource-grid .resource__thumbnail {
        aspect-ratio: 3 / 2;
    }

    body.page.site-page-Oral-History-Interviews .resource-grid .resource__content,
    body.item.resource.browse .resource-grid .resource__content {
        padding: 1rem 1.15rem 1.2rem;
    }

    body.page.site-page-Oral-History-Interviews .resource-grid .resource__content a,
    body.item.resource.browse .resource-grid .resource__content a {
        font-size: 1.1875rem;
    }
}

/* ---------- "Browse all" ---------- */
body.page.site-page-Oral-History-Interviews .browse-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    padding: 0.95rem 1.9rem;
    background: var(--color-text-primary);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    transition: background 0.25s ease, transform 0.25s ease;
    box-shadow: none;
    float: none;
}

body.page.site-page-Oral-History-Interviews .browse-all::after {
    content: '→';
    margin-left: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
}

body.page.site-page-Oral-History-Interviews .browse-all:hover {
    background: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: none;
}

body.page.site-page-Oral-History-Interviews .browse-all:hover::after {
    transform: translateX(4px);
}

body.page.site-page-Oral-History-Interviews .preview-block {
    text-align: center;
}

/* ---------- Responsive: listing + browse rows ---------- */
@media (max-width: 768px) {
    body.page.site-page-Oral-History-Interviews #content {
        padding: 2rem 1.25rem 4rem;
    }

    body.page.site-page-Oral-History-Interviews .block-pageTitle {
        margin-bottom: 2rem;
        padding-bottom: 1.25rem;
    }

    /* List view only. Left unscoped these captured the grid cards too
       and pinned their portraits to 52px, ignoring the card aspect. */
    body.page.site-page-Oral-History-Interviews .resource-list .item.resource,
    body.item.resource.browse .resource-list .item.resource {
        grid-template-columns: 2.1rem 52px minmax(0, 1fr);
        gap: 0 1rem;
        padding: 0.85rem 0.25rem;
    }

    body.page.site-page-Oral-History-Interviews .resource-list .item.resource::before,
    body.item.resource.browse .resource-list .item.resource::before {
        font-size: 0.6875rem;
    }

    body.page.site-page-Oral-History-Interviews .resource-list .resource__thumbnail,
    body.item.resource.browse .resource-list .resource__thumbnail {
        width: 52px;
        height: 52px;
    }

    body.page.site-page-Oral-History-Interviews .resource-list .resource__content a,
    body.item.resource.browse .resource-list .resource__content a {
        font-size: 1.125rem;
    }

    body.page.site-page-Oral-History-Interviews .browse-all {
        margin-top: 2.25rem;
        width: 100%;
    }
}


/* ===================================================================
   MeDoraH — Browse All Items Page  (body.item.resource.browse)
   Same index rows; adds page furniture (title, sort, pagination).
   =================================================================== */

body.item.resource.browse {
    background: var(--color-bg);
}

body.item.resource.browse #content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5.5rem;
}

/* ---------- Page title ---------- */
body.item.resource.browse #content > h1,
body.item.resource.browse #content > h2 {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
    margin: 0 0 2rem 0;
    padding: 0 0 1.75rem 0;
    border-bottom: 1px solid var(--color-rule);
    position: relative;
    animation: fadeSlideUp 0.6s ease-out both;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
}

body.item.resource.browse #content > h1::before,
body.item.resource.browse #content > h2::before {
    content: 'MeDoraH archive · All records' !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    margin: 0 0 1.4rem 0 !important;
    padding: 0 !important;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

body.item.resource.browse #content > h1::after,
body.item.resource.browse #content > h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--color-accent);
}

/* Kill the theme's blue bar on the inner title span */
body.item.resource.browse #content > h1 .title,
body.item.resource.browse #content > h2 .title {
    font-weight: 400;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.item.resource.browse #content > h1 .title::before,
body.item.resource.browse #content > h2 .title::before,
body.item.resource.browse #content > h1 .title::after,
body.item.resource.browse #content > h2 .title::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    width: 0 !important;
}

/* ---------- Filter info bar ---------- */
body.item.resource.browse .filter-value {
    display: none !important;
}

/* ---------- Sort controls ---------- */
body.item.resource.browse .sorting form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

body.item.resource.browse .sorting select {
    border: 1px solid var(--color-rule-strong);
    border-radius: 4px;
    padding: 0.45rem 0.8rem;
    font-size: 0.8125rem;
    font-family: var(--font-primary);
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    transition: border-color 0.2s ease;
    appearance: auto;
}

body.item.resource.browse .sorting select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

body.item.resource.browse .sorting button {
    background: var(--color-text-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.45rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}

body.item.resource.browse .sorting button:hover {
    background: var(--color-accent);
}

/* ---------- Pagination ---------- */
body.item.resource.browse .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--color-rule);
    border-bottom: 1px solid var(--color-rule);
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

body.item.resource.browse .pagination input[type="text"] {
    border: 1px solid var(--color-rule-strong);
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
    width: 54px;
    text-align: center;
    font-family: var(--font-mono);
    background: var(--color-bg-card);
    transition: border-color 0.2s ease;
}

body.item.resource.browse .pagination input[type="text"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

body.item.resource.browse .pagination button,
body.item.resource.browse .pagination .button {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-rule-strong);
    border-radius: 4px;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
}

body.item.resource.browse .pagination button:hover,
body.item.resource.browse .pagination .button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

/* "Go" is an input[type=submit], not a button */
body.item.resource.browse .pagination input[type="submit"],
body.item.resource.browse .pagination .gotopage-btn {
    background: var(--color-text-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.42rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}

body.item.resource.browse .pagination input[type="submit"]:hover,
body.item.resource.browse .pagination .gotopage-btn:hover {
    background: var(--color-accent);
}

/* Prev / next icon boxes */
body.item.resource.browse .pagination .o-icon-prev.button,
body.item.resource.browse .pagination .o-icon-next.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--color-text-primary);
    text-decoration: none;
}

body.item.resource.browse .pagination .button.disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.item.resource.browse #content {
        padding: 2rem 1.25rem 4rem;
    }
}


/* ===================================================================
   Motion preferences + print (index pages)
   =================================================================== */

@media (prefers-reduced-motion: reduce) {

    body.item.resource.show #content>h1,
    body.item.resource.show .metadata,
    body.page.site-page-Oral-History-Interviews .block-pageTitle,
    body.page.site-page-Oral-History-Interviews .block-browsePreview,
    body.page.site-page-Oral-History-Interviews .resources .item.resource,
    body.item.resource.browse #content > h1,
    body.item.resource.browse .resources .item.resource {
        animation: none !important;
    }
}

@media print {

    body.page.site-page-Oral-History-Interviews .resources .item.resource,
    body.item.resource.browse .resources .item.resource {
        break-inside: avoid;
        box-shadow: none !important;
        border-bottom: 1px solid #ddd !important;
    }

    body.page.site-page-Oral-History-Interviews .browse-all,
    body.item.resource.browse .pagination,
    body.item.resource.browse .sorting {
        display: none !important;
    }
}