/* Local refinements: retain the site's type, palette and numbered architecture. */
.research-reference { margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line); }
.reference-label { display: block; font-size: 8px; line-height: 1.6; letter-spacing: 1.5px; text-transform: uppercase; color: var(--bronze-dark); }
.reference-title { margin: 7px 0 9px; font-size: 12px; line-height: 1.65; color: var(--ink); }
.reference-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; }
.reference-actions a, .reference-actions button { font: inherit; font-size: 11px; line-height: 1.5; color: var(--bronze-dark); background: none; border: 0; border-bottom: 1px solid transparent; padding: 7px 0; cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.reference-actions a:hover, .reference-actions button:hover { color: var(--ink); border-bottom-color: currentColor; }
.reference-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reference-status.reference-error { position: static; width: auto; height: auto; clip-path: none; font-size: 11px; color: var(--muted); margin-top: 6px; }
.research-panel .research-reference { border-color: #ffffff30; }
.research-panel .reference-label, .research-panel .reference-actions a, .research-panel .reference-actions button { color: #d2bc97; }
.research-panel .reference-title { color: #c1ccd0; }
.research-panel .reference-actions a:hover, .research-panel .reference-actions button:hover { color: #fff; }
.research-panel-copy .research-reference + .link { margin-top: 19px; }
.explorer-figure > .figure-zoom { padding: 0; border: 0; }
.explorer-figure > .figure-zoom:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.explorer-book { position: relative; padding-bottom: 58px; }
.explorer-book .book-context-trigger { position: absolute; bottom: 16px; left: 24px; width: calc(100% - 48px); background: transparent; border: 0; padding: 6px; text-align: center; font-size: 10px; color: #d2bc97; }
.explorer-book .book-context-trigger:hover { color: #fff; }
.figure-dialog[open] { animation: research-dialog-in .18s ease-out; }
.figure-dialog[open]::backdrop { animation: research-backdrop-in .18s ease-out; }
.figure-dialog > img { max-height: 60dvh; }
.figure-dialog .dialog-top h2 { min-width: 0; overflow-wrap: anywhere; }
.figure-dialog .dialog-close { flex-shrink: 0; }
.figure-dialog .dialog-caption { line-height: 1.8; }
.figure-context { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 16px; }
.figure-topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.figure-topic-tags > span { color: var(--bronze-dark); background: #eeeae1; padding: 5px 9px; font-size: 10px; line-height: 1.5; }
.figure-source-label { color: var(--bronze-dark); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.figure-source-list { list-style: none; padding: 0; margin: 0; }
.figure-source-list li + li { margin-top: 7px; }
.figure-source-list a { font-size: 12px; line-height: 1.8; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.feature-enquiries .enquiry-pathway { border-bottom: 1px solid var(--line); }
.feature-enquiries .enquiry-pathway:first-of-type { border-top: 1px solid var(--line); margin-top: 20px; }
.enquiry-pathway > summary { list-style: none; display: grid; grid-template-columns: 22px 1fr 17px; gap: 13px; align-items: start; padding: 20px 0; cursor: pointer; }
.enquiry-pathway > summary::-webkit-details-marker { display: none; }
.enquiry-number { color: var(--bronze-dark); font-size: 9px; line-height: 2.2; letter-spacing: 1px; }
.enquiry-title { font-family: Georgia, serif; font-size: 20px; line-height: 1.35; }
.enquiry-mark { display: block; text-align: center; color: var(--bronze-dark); font-size: 19px; line-height: 1.3; transition: transform .2s ease; }
.enquiry-pathway[open] .enquiry-mark { transform: rotate(45deg); }
.enquiry-pathway > summary:hover .enquiry-title { color: var(--bronze-dark); }
.enquiry-pathway-content { padding: 0 0 21px 35px; }
.feature-enquiries .enquiry-pathway-content p { font-size: 13px; margin: 0 0 11px; }
.feature-enquiries .enquiry-pathway-content a { display: inline-flex; width: auto; max-width: 100%; min-height: 35px; font-size: 12px; gap: 14px; }
.enquiry-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.research-reference [hidden], .figure-context[hidden] { display: none !important; }
.reference-actions :focus-visible, .enquiry-pathway > summary:focus-visible, .figure-source-list a:focus-visible, .book-context-trigger:focus-visible { outline: 2px solid var(--bronze); outline-offset: 5px; }
@keyframes research-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes research-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media(max-width:700px) { .reference-title { font-size: 11px; } .enquiry-title { font-size: 19px; } .enquiry-pathway > summary { gap: 10px; } .enquiry-pathway-content { padding-left: 32px; } }
@media(prefers-reduced-motion:reduce) { .figure-dialog[open], .figure-dialog[open]::backdrop { animation: none; } .enquiry-mark, .reference-actions a, .reference-actions button { transition: none; } }
@media print { .reference-actions button, .book-context-trigger { display: none !important; } }
