.dha-catalog,
.dha-record-view,
.dha-citation {
    --dha-text: #e3e9e2;
    --dha-muted: #aebcaf;
    --dha-green: var(--dha-nav-green, #009b3a);
    --dha-yellow: var(--dha-nav-hover, #fed100);
    --dha-field: #142219;
    --dha-border: #66816b;
}

.dha-catalog {
    color: var(--dha-text);
    color-scheme: dark;
    line-height: 1.6;
}

.dha-catalog-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .9rem;
    margin-bottom: 2rem;
}

.dha-catalog-form p { flex: 1 1 14rem; margin: 0; }
.dha-catalog-form label { display: block; margin-bottom: .35em; color: var(--dha-text); font-weight: 600; }
.dha-catalog-form input[type="search"],
.dha-catalog-form select {
    width: 100%;
    min-height: 42px;
    color: var(--dha-text);
    background-color: var(--dha-field);
    border-color: var(--dha-border);
    font: inherit;
}
.dha-catalog-form input[type="search"]::placeholder { color: var(--dha-muted); opacity: 1; }
.dha-catalog-form select option { color: var(--dha-text); background: var(--dha-field); }
.dha-catalog-form .theme-button {
    min-height: 42px;
    padding: 0 1.2em;
    border: 1px solid var(--dha-green);
    border-radius: 3px;
    background: var(--dha-green);
    color: #000;
}
.dha-catalog-form .theme-button:hover { background: var(--dha-yellow); color: #000; }
.dha-catalog h2 { color: var(--dha-yellow); }
.dha-catalog p, .dha-catalog nav { color: var(--dha-text); }
.dha-catalog a { color: var(--dha-green); }
.dha-catalog a:hover { color: var(--dha-yellow); }
.dha-catalog a:focus-visible,
.dha-catalog-form :focus-visible { outline: 2px solid var(--dha-yellow); outline-offset: 3px; }
.dha-catalog .dha-catalog-results { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.dha-catalog .dha-catalog-entry { border-bottom: 1px solid #364c3b; padding: 1em 0; margin: 0; }
.dha-catalog-entry h3 { margin: 0 0 .35rem; font-size: 1.2em; }
.dha-catalog-entry h3 a { text-decoration: underline; text-underline-offset: .15em; }
.dha-catalog-entry p { margin: 0; }
.dha-artist-directory .dha-catalog-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 1.25em;
}
.dha-catalog-photo { display: block; margin-bottom: .7rem; }
.dha-catalog-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.dha-record-photo { max-width: min(100%, 420px); margin: 0 0 1.25rem; }
.dha-record-photo img { display: block; max-width: 100%; height: auto; }
.dha-record-photo figcaption { font-size: .9em; }
.dha-source-excerpt { background: var(--dha-field); border-color: var(--dha-green); color: var(--dha-text); }
.dha-source-excerpt cite { color: var(--dha-muted); }

.dha-record-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dha-yellow);
    font-size: 13px;
    font-weight: 600;
}
.dha-record-type .dashicons { width: 1em; height: 1em; font-size: 1.15em; }
.dha-catalog-entry .dha-record-type { margin-bottom: .35rem; }
.dha-catalog .dha-catalog-cite { display: inline-block; margin-top: .35rem; font-size: 14px; text-decoration: underline; }
.dha-record-view {
    max-width: 860px;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    color: var(--dha-text);
    font-size: 16px;
    line-height: 1.7;
}
.dha-record-view h1 {
    color: #f4f7f3;
    font-size: clamp(26px, 4.5vw, 44px);
    line-height: 1.16;
    margin: .4em 0;
    overflow-wrap: anywhere;
}
.dha-record-view h2 { color: var(--dha-yellow); font-size: 20px; }
.dha-record-view a { color: var(--dha-green); text-decoration: underline; text-underline-offset: .15em; }
.dha-record-view a:hover { color: var(--dha-yellow); }
.dha-record-heading { border-bottom: 1px solid #364c3b; padding-bottom: 1.15rem; margin-bottom: 1.5rem; }
.dha-record-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 12px 20px;
    background: var(--dha-field);
    border: 1px solid #364c3b;
    margin: 0 0 1.5rem;
    padding: 16px;
}
.dha-record-fields dt { color: var(--dha-muted); font-size: 13px; font-weight: 600; }
.dha-record-fields dd { margin: 0; overflow-wrap: anywhere; }
.dha-record-abstract { margin-bottom: 1.5rem; }
.dha-citation { color: var(--dha-text); background: var(--dha-field); border: 1px solid var(--dha-border); margin: 2rem 0; padding: 16px; }
.dha-citation h2 { margin: 0 0 .55rem; color: var(--dha-yellow); font-size: 20px; }
.dha-citation textarea {
    width: 100%;
    min-height: 78px;
    color: var(--dha-text);
    background: #0e1811;
    border-color: var(--dha-border);
    padding: 10px;
    font: inherit;
    resize: vertical;
}
.dha-copy-citation, .dha-download-citation {
    background: var(--dha-green);
    color: #000;
    border: 1px solid var(--dha-green);
    padding: 7px 12px;
    min-height: 36px;
    margin-top: .55rem;
}
.dha-copy-citation:hover, .dha-download-citation:hover { background: var(--dha-yellow); color: #000; }
.dha-copy-citation[hidden], .dha-download-citation[hidden] { display: none; }
.dha-copy-status { display: inline-block; margin-inline-start: .8rem; }
.dha-record-view :focus-visible, .dha-citation :focus-visible { outline: 2px solid var(--dha-yellow); outline-offset: 3px; }

.dha-record-view :is(video, iframe) { max-width: 100%; }
.single-post .entry-content :is(video, iframe, img) { max-width: 100%; }
.single-post .entry-content img { height: auto; }
.dha-catalog-entry, .dha-citation { overflow-wrap: anywhere; }

@media (max-width: 540px) {
    .dha-catalog-form { gap: 12px; }
    .dha-catalog-form p { flex-basis: 100%; }
    .dha-catalog-form input[type="search"], .dha-catalog-form select { font-size: 16px; }
    .dha-catalog-form input[type="search"], .dha-catalog-form select,
    .dha-catalog-form .theme-button, .dha-copy-citation, .dha-download-citation { min-height: 44px; }
    .dha-catalog .dha-catalog-cite { padding: 8px 0; }
    .dha-record-fields { padding: 12px; }
}
