:root{color-scheme:light;--ink:#2d2c21;--olive:#414833;--paper:#f9f2e2;--line:#c7b999;--faint:#eee4cc}
*{box-sizing:border-box}
body{margin:0;background:#e4d8be;color:var(--ink);font:1.06rem/1.55 Georgia,serif}
header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:2rem max(4vw,1rem);background:#333a2a;color:#fff8df;border-bottom:5px solid #a08b5c}
header h1{font-weight:normal;font-size:clamp(2rem,5vw,3.7rem);line-height:1.05;margin:.35rem 0}.imprint{font: .72rem system-ui;letter-spacing:.13em;text-transform:uppercase}header p{margin:0}
.desk{max-width:1450px;margin:auto;display:grid;grid-template-columns:10rem minmax(0,1fr) 13rem;gap:1.2rem;padding:1.5rem}
nav,aside{align-self:start}nav{display:grid;gap:.35rem}main,aside,dialog{background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 18px #44381b19}main{padding:clamp(1rem,4vw,3rem);min-height:65vh}aside{padding:1rem;font-size:.94rem}
h2,h3{font-weight:normal;line-height:1.18;margin:.25em 0 .65em}h2{font-size:2rem}p{margin:0 0 .85em}.prose{white-space:pre-wrap;max-width:72ch}.quiet,small{color:#5f5a45}
button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #a49a7e;background:#f7efdd;padding:.38rem .7rem;border-radius:.22rem}button:hover,button:focus-visible{outline:2px solid #687451;outline-offset:2px}nav button{text-align:left}button[aria-current=true],.primary{background:var(--olive);color:#fff9e7}.controls,.buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}
input,textarea,select{max-width:100%;padding:.45rem;background:#fffaf0;border:1px solid #8e8060}textarea{width:100%;min-height:12rem}a{color:#3e502d}#status{margin:0 1.5rem 1rem;min-height:1.5em}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.65rem}.tile{display:grid;gap:.2rem;padding:.9rem;text-align:left;background:#fbf5e7}.tile small{display:block}
.record{padding:1rem 0}.newspaper{column-width:18rem;column-gap:1.5rem;white-space:pre-wrap}.masthead{text-align:center;border-block:3px double #665d46;margin:0 0 .9rem;font-size:1.65rem}
.images{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.5rem}.frame{display:block;aspect-ratio:1.5;background-repeat:no-repeat;background-size:200% 100%;border:5px solid #fef8e7;box-shadow:0 1px 5px #30271650}.roxy{background-image:url(/roxy.webp)}.village{background-image:url(/village.png)}.restaurant{background-image:url(/restaurant.png);background-size:100% 100%;aspect-ratio:1907/825}.first{background-position:left center}.second{background-position:right center}.tweed{background:repeating-linear-gradient(40deg,#c3b698 0 1px,#ded1b8 1px 2px,#d4c5aa 2px 3px);clip-path:polygon(14% 16%,73% 10%,86% 39%,74% 78%,36% 90%,13% 63%)}.label{display:block;background:#efe4c7;font:.8rem/1.45 'Courier New',monospace;padding:.45rem}
dialog{max-width:min(94vw,60rem);width:100%;padding:1rem}dialog::backdrop{background:#201d17c9}#print{overflow:auto;max-height:75vh;margin-top:.6rem}#print.zoom .frame{width:280%}
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.compare article{background:#eee4cd;padding:1rem;overflow-wrap:anywhere}.purple{color:#632d6f;font-style:italic}.places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;background:#e6e9ce;padding:1rem;border-left:1rem solid #7d9992}.family{border-left:2px solid #99885e;padding-left:1.1rem}.preview{max-width:38rem;margin:auto}.preview article{padding:1.5rem 0;border-bottom:1px solid var(--line)}
@media(max-width:900px){.desk{grid-template-columns:1fr}nav{display:flex;flex-wrap:wrap}aside{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}aside p{margin:0}}
@media(max-width:520px){.compare,.places{grid-template-columns:1fr}.desk{padding:.65rem}header{padding:1rem}.frame{border-width:3px}}
@media print{header,nav,aside,#status,.controls,.buttons{display:none}.desk{display:block;padding:0}main{border:0;box-shadow:none}.preview article{break-before:page}}
.timeline{list-style:none;margin:1.5rem 0;padding:0 0 0 1rem;border-left:2px solid var(--line)}
.timeline li{padding:0 0 1.1rem .6rem}
.timeline-date{display:block;color:#5f5a45;font-size:.92rem;margin-bottom:.25rem}
.timeline li p{font-size:.96rem;margin:.3rem 0 0}
.planning-board{margin:1rem 0}
.board-canvas{width:100%;height:auto;display:block;border:1px solid #b4a781;background:#f5eedb;touch-action:none;cursor:grab}
.board-canvas:active{cursor:grabbing}
.board-canvas text{fill:#2d2c21;font:17px system-ui,sans-serif;user-select:none}
.board-canvas [data-action]{cursor:pointer}
.board-canvas [data-action]:focus rect{stroke:#214e60;stroke-width:4}
.board-tools{gap:.28rem}
.board-tools button{padding:.3rem .48rem;font-size:.86rem}
.tree-ground,.map-land{fill:#f0e9d0}
.family-card rect,.mind-node rect{fill:#fff7e2;stroke:#847959;stroke-width:1.6}
.family-card.linked rect{fill:#e4e9d2}
.family-line{fill:none;stroke:#625d45;stroke-width:2.2}
.map-land{fill:#ebe6bd}
.map-water-edge,.map-water,.map-road-edge,.map-road,.map-footpath,.map-lock{fill:none}
.map-water-edge{stroke:#638d91;stroke-width:42}
.map-water{stroke:#95bdc0;stroke-width:34}
.map-road-edge{stroke:#c2b58b;stroke-width:25}
.map-road{stroke:#f9f0d7;stroke-width:20}
.map-footpath{stroke:#7e8361;stroke-width:3;stroke-dasharray:6 6}
.map-lock{stroke:#4b5b53;stroke-width:3}
.map-pin rect{fill:#4e5b3d;stroke:#f9f1d5}
.map-pin circle{fill:#e8cb80}
.map-pin text{paint-order:stroke;stroke:#f2ecd1;stroke-width:4;stroke-linejoin:round;fill:#292c22}
.board-canvas .map-caption{font-size:14px;letter-spacing:.18em;fill:#60654d}
.grid-dot{fill:#ab9977}
.mind-node.chosen rect{fill:#e5e8cb;stroke:#586649;stroke-width:3}
.clock-tick{stroke:#b6a88c;stroke-width:1}
.clock-band{fill:#56684d}
.band-dinner{fill:#a38161}
.clock-point{fill:#fff7df;stroke:#303e2a;stroke-width:2}
.person-profile{display:grid;grid-template-columns:minmax(95px,180px) 1fr;gap:1.15rem;margin:1.2rem 0;align-items:start}
.person-profile dl{display:grid;grid-template-columns:minmax(5.5rem,auto) 1fr;gap:.15rem .65rem}
.person-profile dt{font-weight:bold}
.person-profile dd{margin:0}
.profile-tile{justify-items:start}
.portrait{display:block;width:100%;aspect-ratio:1;background:#d8cfb0 url(/portraits.png) no-repeat;background-size:500% 200%;border:4px solid #fff7e7;box-shadow:0 1px 5px #30271650}
.profile-tile .portrait{max-width:10rem}
.portrait-0{background-position:0 0}.portrait-1{background-position:25% 0}.portrait-2{background-position:50% 0}.portrait-3{background-position:75% 0}.portrait-4{background-position:100% 0}
.portrait-5{background-position:0 100%}.portrait-6{background-position:25% 100%}.portrait-7{background-position:50% 100%}.portrait-8{background-position:75% 100%}.portrait-9{background-position:100% 100%}
@media(max-width:520px){.person-profile{grid-template-columns:1fr}.person-profile .portrait{width:8rem}.board-canvas{min-height:13rem}}
.handwriting{font-family:"Segoe Print","Bradley Hand","Comic Sans MS",Georgia,serif;font-style:italic;letter-spacing:.025em}
.long-cross{position:relative}
.long-cross::after{content:"";position:absolute;left:-.03em;top:.49em;width:.57em;border-top:1px solid currentColor;transform:rotate(-11deg)}
.record.newsprint{background:#dedcd1;color:#292923;border:1px solid #b6b3a5;padding:clamp(1rem,3vw,1.65rem);margin:.85rem 0;box-shadow:0 2px 5px #332c1f23}
.newsprint small{color:#59584e}
.newsprint .masthead{border-color:#57564c}
.newsprint .images button{background:#e7e5dc;border-color:#aaa89b}
.newsprint .frame{border-color:#eeeae0}
.newsprint .label{background:#d6d4c9;color:#37372e}
.bea-hand{font-family:"Segoe Print","Bradley Hand","Comic Sans MS",Georgia,serif;font-style:italic;color:#3b3b32;line-height:1.7}
.diary-paper{margin:1rem 0;padding:1rem 1.4rem;background:#f6ecd4;border:1px solid #c8b68e}
.record.stationery{padding:1.25rem 1.5rem;margin:.8rem 0;border:1px solid #ae9c73}
.stationery .prose{line-height:1.75}
.gilt-card{background:#f5ecd3;outline:3px double #997943;outline-offset:-7px}
.gilt-card .prose{font-family:"Bradley Hand","Segoe Print",Georgia,serif;font-style:italic;color:#493c31}
.sweet-pea-card{background:#f2e5eb;border-left:5px double #9c748d!important}
.sweet-pea-card .prose{font-family:"Comic Sans MS","Segoe Print",sans-serif;color:#294966}
.tennis-card{background:#fcf7e8;border-top:4px double #8b9274!important}
.supper-note{background:#e5eddc}
.supper-note .prose{font-family:"Courier New",monospace;color:#354333}
.record.letter-paper,.record.folded-paper,.record.telephone-pad,.record.agency-paper,.record.lock-envelope{padding:1.5rem;margin:1rem 0;border:1px solid #bdad89}
.record.letter-paper{background:#fffaf0}
.record.folded-paper{background:#faf3de}
.record.agency-paper{background:#f0efe6;border-top:5px double #546158}
.record.agency-paper h3{font-family:Georgia,serif;color:#354639}
.record.telephone-pad{background:#f7efd6;border-top:7px solid #b0a17e}
.telephone-pad .prose{line-height:2rem;background:repeating-linear-gradient(transparent 0 31px,#aeb8ad 31px 32px);font-family:"Segoe Print","Bradley Hand",Georgia,serif;font-style:italic}
.record.lock-envelope{background:#ede1c8}
.lock-objects{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.6rem;margin:1rem 0}
.lock-objects details{background:#f9f1df;border:1px solid #bcac89;padding:.65rem}
.lock-objects summary{cursor:pointer}
.object-icon{display:block;margin:.25rem auto .65rem;width:24px;height:24px;background:#a69b79;border:2px dotted #655c4a;border-radius:50%}
.object-1{background:#f3eddb;border-style:solid}.object-2{background:#a48569;border-radius:2px;transform:rotate(-9deg)}.object-3{background:repeating-linear-gradient(40deg,#c3b698 0 1px,#ded1b8 1px 2px,#d4c5aa 2px 3px);border-radius:3px}
.diary-photo{max-width:345px}
.family-detail{padding:1rem;border:1px solid #bbad88;background:#f5ead2}
.family-detail .portrait,.family-portrait,.family-silhouette{display:block;width:120px;aspect-ratio:1;background-color:#d8cfb0}
.family-portrait{background-image:url(/family-portraits.jpg);background-size:400% 300%}
.family-silhouette{background:radial-gradient(circle at 50% 33%,#90846e 0 13%,transparent 14%),radial-gradient(ellipse at 50% 92%,#90846e 0 32%,#d8cfb0 33%)}
.family-portrait-0{background-position:0.0000% 0%}
.family-portrait-1{background-position:33.3333% 0%}
.family-portrait-2{background-position:66.6667% 0%}
.family-portrait-3{background-position:100.0000% 0%}
.family-portrait-4{background-position:0.0000% 50%}
.family-portrait-5{background-position:33.3333% 50%}
.family-portrait-6{background-position:66.6667% 50%}
.family-portrait-7{background-position:100.0000% 50%}
.family-portrait-8{background-position:0.0000% 100%}
.family-portrait-9{background-position:33.3333% 100%}
.family-portrait-10{background-position:66.6667% 100%}
.family-portrait-11{background-position:100.0000% 100%}

.chapter-list{list-style:none;padding:0;display:grid;gap:.35rem}.chapter-list li{padding:.18rem 0}.chapter-list li:has(button){padding:0}

.archive-cuttings{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.archive-cuttings .tile{padding:.5rem .7rem;min-height:0}
.agency-letterhead{border-bottom:3px double #546158;margin:.5rem 0 1rem;padding:.2rem 0 .55rem;font:bold 1.1rem Georgia,serif;color:#354639}
.agency-letterhead small{font: .78rem Georgia,serif;text-transform:uppercase;letter-spacing:.08em;margin-left:.5rem}
.lock-envelope>.prose{width:fit-content;padding:.7rem 1.1rem;background:#faf1dc;border:1px solid #c8b38a;font-style:italic}
.envelope-flap{margin:1rem 0;border-top:1px solid #b9a17a;padding-top:.65rem}
.envelope-flap>summary{cursor:pointer}
.timeline-editor{max-width:39rem;display:grid;gap:1rem;padding:1rem;margin:1rem 0;border:1px solid #c8b38a;background:#faf3e2}
.timeline-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.85rem}
.timeline-editor>label,.timeline-fields label{display:grid;gap:.3rem}
.timeline-editor textarea{min-height:5rem;width:100%;resize:vertical}
.timeline-editor>.controls{margin:0}


/* Physical evidence stationery */
.record.newsprint {
    background:linear-gradient(101deg,#e5dec9,#f4eddc 65%,#ebe2ce);
    border:0;
    clip-path:polygon(0 .45%,43% 0,100% .6%,99.8% 99.6%,61% 100%,.2% 99.7%);
    font-family:Georgia,serif;
}
.newsprint.news-wide {max-width:47rem}
.newsprint.news-brief {max-width:30rem;padding:1rem 1.25rem}
.newsprint .masthead {
    display:flex;justify-content:space-between;gap:.3rem 1rem;flex-wrap:wrap;
    border:0;border-bottom:1px solid #766a53;
    font:bold .78rem Georgia,serif;text-align:left;letter-spacing:.05em;padding-bottom:.36rem;margin-bottom:.6rem;
}
.newsprint .masthead small {font-weight:normal;letter-spacing:normal}
.newsprint h3 {margin:.4rem 0;line-height:1.08;font-size:1.75rem}
.newsprint.news-brief h3 {font-size:1.15rem}
.newsprint .newspaper {column-width:13rem;column-rule:1px solid #a29a855d;line-height:1.4}
.newsprint.news-brief .newspaper {columns:1}
.newsprint .label {font: .82rem/1.35 Georgia,serif}
.record.archive-envelope {background:#eae0c9;padding:1.15rem 1.4rem;border:1px solid #b5a485;max-width:38rem}
.archive-envelope .tile {width:min(100%,25rem);background:#f2e9d6;border-radius:0;font-family:Georgia,serif}
.record.invoice-paper,.record.receipt-slip {
    max-width:32rem;padding:1.35rem;background:linear-gradient(179deg,#faf2dd 47%,#e9ddc2 48%,#faf2dd 49%);
    border:1px solid #c9b894;font-family:"Courier New",monospace;
}
.record.receipt-slip {max-width:26rem;background:#f7edcf}
.record.invoice-paper h3 {font:inherit;font-size:.85rem}
.invoice-address {white-space:pre-line}
.invoice-address::first-line {font-weight:bold;font-size:1.1rem}
.invoice-charge {border-block:1px solid #a79a7d;margin:.8rem 0;padding:.5rem 0}
.invoice-signed {font:italic 1.1rem Georgia,serif;color:#314658}
.record.telephone-pad,.record.folded-paper {max-width:33rem}
.phone-lines {
    display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:.6rem;
    background:repeating-linear-gradient(transparent 0 calc(1.85rem - 1px),#a3b4b3 calc(1.85rem - 1px) 1.85rem);
    color:#354452;font:italic 1.08rem/1.85rem "Segoe Print","Bradley Hand",Georgia,serif;
}
.phone-lines dt {padding-inline:.25rem;transform:rotate(-1deg)}
.phone-lines dd {margin:0;padding-left:.42rem;border-left:1px solid #c4a29a}
.phone-lines dd:nth-of-type(2) {letter-spacing:-.025em;padding-left:.65rem}
.phone-lines dd:nth-of-type(3) {letter-spacing:.012em}
.record.folded-paper {background:linear-gradient(178deg,#faf1d9 45%,#e6d7b7 46%,#faf1d9 47%)}
.sloped-stem {display:inline-block;transform:skew(-9deg);margin-right:.01em}
.agency-letterhead address {font:normal .79rem Georgia,serif;margin-top:.35rem}
.record.folded-letter,.record.personal-slip,.record.barbados-letter {padding:1.2rem 1.4rem;border:1px solid #c7b693}
.record.folded-letter {max-width:36rem;background:#fcf7e8}
.folded-letter .prose {font-family:"Courier New",monospace}
.record.personal-slip {max-width:29rem;background:#f3ecd9;font-style:italic}
.record.barbados-letter {max-width:42rem;background:#fcf5e6}
.barbados-letter .prose {font-style:italic}
.postal-envelope {position:relative;max-width:24rem;min-height:9rem;padding:3.75rem 1.4rem .85rem;margin:.65rem 0 1.2rem;background:#efe3c8;border:3px double #b9a885}
.postal-address {font-style:italic}
.postal-stamp,.postal-mark {position:absolute;top:.65rem;text-align:center;font-size:.66rem;line-height:1.23}
.postal-stamp {right:.5rem;color:#fffbe9;background:#687756;border:2px dotted #eee3c9;padding:.25rem}
.postal-mark {right:3.65rem;border:1px solid #746952;border-radius:50%;padding:.36rem;transform:rotate(-8deg)}

.police-interview {
    max-width:46rem;margin:1.4rem 0;padding:clamp(1rem,4vw,2rem);
    background:#35392e;color:#f5ecd7;border:1px solid #62644f;
}
.police-interview h3 {margin-top:0;font-size:1.45rem}
.police-interview img {display:block;width:100%;height:auto;border:1px solid #87816b}
.police-interview .prose {max-width:36rem}
.manuscript-finish {max-width:46rem;margin:1.25rem 0;padding:1rem 1.25rem;background:#fcf4df;border-left:3px solid #a48b51}

.frame.henrik-gazette {
    aspect-ratio:4/5;background-image:url(/henrik-gazette.webp);
    background-size:100% 100%;filter:grayscale(1);
}
.frame.bellwick-lock {background-image:url(/bellwick-lock.webp);background-size:100% 100%;filter:grayscale(1)}
.newsprint .images:has(.bellwick-lock) {display:flex;align-items:flex-start;flex-wrap:wrap}
.newsprint .images:has(.bellwick-lock) > button:first-child {flex:0 1 10rem}
.newsprint .images:has(.bellwick-lock) > button:last-child {flex:1 1 16rem;max-width:27rem}

.frame.village-fete {background-image:url(/village-fete.webp);background-size:100% 100%}
.portrait.portrait-1 {background-image:url(/henrik-gazette.webp);background-size:cover;background-position:center 37%}
.appointment-page {max-width:30rem;margin:1rem 0;padding:1.1rem 1.35rem;background:#f5eddb;border:1px solid #bdad89;border-left:6px solid #9c8d71}
.appointment-page .prose {
    font:italic 1.05rem/1.75rem "Segoe Print","Bradley Hand",Georgia,serif;color:#384759;
    background:repeating-linear-gradient(transparent 0 calc(1.75rem - 1px),#b2b8b3 calc(1.75rem - 1px) 1.75rem);
}

.record.solicitor-paper {
    max-width:39rem;background:#fbf8f0;border:1px solid #c5bda9;
    padding:clamp(1rem,4vw,2rem);margin:1rem 0;
}
.solicitor-letterhead {
    font:600 1rem Georgia,serif;letter-spacing:.07em;color:#323b35;
    margin:0 0 1.35rem;padding-bottom:.65rem;border-bottom:2px solid #7b857e;
}
.solicitor-subject {font-weight:bold}

.frame.tennis-2025 {background-image:url(/tennis-2025.webp);background-size:100% 100%}
.newsprint .images:has(.tennis-2025) {max-width:27rem}

.record.donation-note {
    max-width:35rem;padding:clamp(1.1rem,4vw,2rem);margin:1rem 0;
    background:#f8efd8;border:1px solid #c9b997;
}
.donation-note .housekeeper-hand {
    font:italic 1.05rem/1.55 "Segoe Print","Bradley Hand","Comic Sans MS",sans-serif;
    color:#384458;
}
.donation-note .henrik-hand {
    margin:1.4rem 0 1rem clamp(.45rem,4vw,2rem);
    font:italic 1.16rem/1.45 "URW Chancery L","Palatino Linotype",Georgia,serif;
    color:#332f2a;
}

.record.typed-enclosure {
    position:relative;max-width:27rem;padding:1.25rem 1.5rem;margin:1rem 0;
    background:#f0e6cf;border:1px solid #c5bba3;
}
.typed-enclosure .prose {font: .95rem/1.55 "Courier New",monospace}
.typed-enclosure::before,.typed-enclosure::after {
    content:"";position:absolute;pointer-events:none;background:#725083;opacity:.55;
}
.typed-enclosure::before {right:1.1rem;top:.75rem;width:5px;height:4px;border-radius:47% 57% 45% 65%;transform:rotate(24deg)}
.typed-enclosure::after {right:2.05rem;bottom:.55rem;width:2px;height:2px;border-radius:50%;box-shadow:4px -2px 0 #725083}

.record.council-letter,.record.road-reply,.record.farm-letter {
    max-width:38rem;padding:clamp(1rem,4vw,1.8rem);margin:1rem 0;
    border:1px solid #c7baa1;background:#faf5e9;
}
.council-letter .prose {font-family:Arial,sans-serif}
.council-letterhead {padding-bottom:.6rem;border-bottom:2px solid #7d8c7c;color:#3c5445;font-weight:bold}
.record.road-reply {background:#fbf0d9}
.record.farm-letter {background:#f2ebdc}
.farm-letter .prose {font-family:"Segoe Print","Bradley Hand",Georgia,serif;font-style:italic}
.map-property,.map-farm {fill:#d8ddb8;stroke:#8a9478;stroke-width:1.25}
.map-farm {fill:#dde0bf}
.map-floodplain {fill:#b9ceca;stroke:#708f89;stroke-width:1.1;stroke-dasharray:3 4}
.map-proposal {fill:none;stroke:#71523d;stroke-width:3.3;stroke-linecap:round;stroke-dasharray:9 6}
.board-canvas .planning-label {font-size:14px;fill:#423b30;paint-order:stroke;stroke:#f1edcf;stroke-width:3;stroke-linejoin:round}

.record.retained-carbon {max-width:35rem;padding:1.4rem;margin:1rem 0;background:#f0e9d9;border:1px solid #bcb29b}
.retained-carbon .prose {font: .96rem/1.6 "Courier New",monospace;color:#4f4a48}

.diary-picker {display:grid;gap:.35rem;max-width:32rem}
.diary-picker select {width:100%;min-width:0}

#mobile-menu {display:none}
@media(max-width:900px){
    #mobile-menu {display:block;width:100%;text-align:left}
    #mobile-section {font-weight:normal}
    #mobile-menu[aria-expanded="false"] + #tabs {display:none}
    #mobile-menu[aria-expanded="true"] + #tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:.45rem}
    #mobile-menu,#tabs button {min-height:44px}
}

.header-actions {display:flex;align-items:flex-end;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}
.twq-nav {position:relative;color:var(--ink)}
.twq-nav summary {list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:4px;background:var(--paper);padding:.4rem .65rem;white-space:nowrap}
.twq-nav summary::-webkit-details-marker {display:none}
.twq-nav summary:focus-visible,.twq-nav a:focus-visible {outline:2px solid #987530;outline-offset:2px}
.twq-nav nav {position:absolute;right:0;top:calc(100% + .35rem);z-index:5;width:min(15rem,calc(100vw - 2rem));padding:.45rem;background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 18px #44381b35}
.twq-nav a {color:var(--ink);padding:.42rem .55rem}
.twq-nav a:hover {background:var(--faint)}
@media(max-width:520px){.header-actions{flex-direction:column;align-items:flex-end}.twq-nav summary{min-height:44px}}
