﻿/* Catalogue and reading layouts share the Foundation's colours and type scale. */
.record-masthead,body>header:has(>.wrap.bar){background:linear-gradient(115deg,#10372c,#1d4b3b);color:#f9f3df;border-bottom:1px solid #ab986e}
.record-masthead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1rem;padding:.85rem max(4vw,1rem)}
.record-masthead a{color:inherit;text-decoration:none}
.record-masthead a:first-child,body>header>.wrap.bar>a.brand{display:inline-flex;align-items:center;gap:.55rem;font:normal clamp(1.1rem,2.2vw,1.55rem)/1.15 Georgia,serif}
.record-masthead a:first-child::before,body>header>.wrap.bar>a.brand::before{content:"";width:1.5rem;height:1.85rem;flex:none;background:url('/assets/foundation-compact-mark.svg') center/contain no-repeat}
main.reader-page.wrap article.record-sheet{background:#fffdf5;border:1px solid #c7cbbb;border-top:4px solid #a58b4c;box-shadow:0 8px 24px #173d2e0c;border-radius:.6rem;padding:clamp(1rem,3.5vw,3rem)}
.record-sheet #record-title{font:normal clamp(2rem,4.3vw,3.75rem)/1.09 Georgia,serif;letter-spacing:-.035em;max-width:32ch;color:#193d30;overflow-wrap:break-word}
.record-sheet section.file-status{background:#f2f3e9;border:1px solid #ccd1bf;border-left:4px solid #53745a;border-radius:.45rem;padding:clamp(.9rem,2vw,1.55rem);min-width:0}
.record-sheet section.file-status h2{font:normal clamp(1.28rem,2.4vw,1.8rem)/1.22 Georgia,serif;color:#18392e}
.record-sheet section.file-status p{max-width:68ch;line-height:1.6}
.record-sheet .file-status>a[href^="/library-files/"]{display:inline-block;background:#1c4937;color:#fff9e7;border-radius:.38rem;padding:.55rem .95rem;text-decoration:none;font-weight:650}
.record-sheet .file-status>a[href^="/library-files/"]:hover{background:#103626;text-decoration:underline}
.record-sheet dl dd{min-width:0;overflow-wrap:anywhere}
main.reader-page.wrap>h1{max-width:30ch;text-wrap:balance;line-height:1.08}
main.reader-page.wrap>.reader-block p{max-width:72ch;line-height:1.62}
.catalogue-tools{border-top:1px solid #b8c3af;padding-block:1rem;margin:2rem auto;color:#1c4634;line-height:2}
.catalogue-tools a,.record-sheet details a{text-underline-offset:.18em}
body :is(.record-masthead,.record-sheet,.reader-block,.catalogue-tools,.bar) :is(a,button,summary):focus-visible{outline:3px solid #a97c30;outline-offset:3px}
@media(max-width:610px){.record-sheet section.file-status dl{display:block}.record-sheet section.file-status dt{font-weight:700;margin-top:.6rem}.record-sheet section.file-status dd{margin:.1rem 0 .7rem}.record-masthead a:last-child{font-size:.9rem}.record-sheet .reading-steps>*{min-width:0}}
@media print{main.reader-page.wrap article.record-sheet{box-shadow:none;border:0}.record-sheet section.file-status{break-inside:auto}.catalogue-tools{display:none}}
