/* Shared components retain the original parchment and ink identity. */
[hidden]{display:none!important}
body{min-width:0}
.theme-hero h1,.directory-hero h1,.info-hero h1{overflow-wrap:anywhere}
.theme-breadcrumb{flex-wrap:wrap;gap:6px 10px}
button,input,select,summary,a{touch-action:manipulation}
:focus-visible{outline:3px solid #d0a251;outline-offset:4px}
.site-header{height:auto;min-height:82px;gap:24px;padding-block:14px}
.site-header nav{flex-wrap:wrap;justify-content:flex-end}
.site-header>nav a{display:inline-block}
.nav-trigger{display:inline-flex;gap:16px;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;border:1px solid #817052;background:transparent;color:#ebdbb8;cursor:pointer;font-size:14px;letter-spacing:.06em;margin-left:auto}
.nav-trigger:hover{border-color:#d4b37a;background:#2b241a}
.nav-trigger svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.5;fill:none}
.navigation-drawer{position:fixed;inset:0 0 0 auto;margin:0 0 0 auto;width:min(510px,100%);max-width:100%;height:100dvh;max-height:100dvh;background:#201b15;color:#e8dec7;border:0;border-left:1px solid #67563b;padding:0;box-shadow:-20px 0 80px #0006;overflow-y:auto;overscroll-behavior:contain}
.navigation-drawer[open]{animation:drawer-enter .26s ease-out}
.navigation-drawer::backdrop{background:rgba(8,7,5,.68);backdrop-filter:blur(4px)}
.drawer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:30px 30px 22px;position:sticky;top:0;background:#201b15;z-index:2;border-bottom:1px solid #51432f}
.drawer-heading .eyebrow{margin:0 0 10px;font-size:10px}
.drawer-heading h2{font-size:30px;line-height:1.15;font-weight:400;margin:0}
.drawer-close{min-width:44px;min-height:44px;border:1px solid #766345;background:transparent;color:#ead7ad;font-size:27px;cursor:pointer}
.drawer-content{padding:26px 30px 36px}
.drawer-search label{display:block;font-size:13px;color:#c8b99d;margin-bottom:10px}
.drawer-search div{display:flex;border:1px solid #817052}
.drawer-search input{width:100%;min-width:0;background:#181511;color:#f3ead5;padding:13px;border:0;font-size:15px}
.drawer-search button{background:#8d251f;color:#fff5df;border:0;padding:12px 15px;cursor:pointer}
.drawer-main-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 30px}
.drawer-main-links{align-items:stretch}
.drawer-main-links a{display:flex;align-items:center}
.drawer-main-links a{padding:15px 12px;border:1px solid #665338;color:#ead7ad;font-size:15px;line-height:1.5}
.drawer-section{margin:28px 0;border-top:1px solid #51432f;padding-top:22px}
.drawer-section h3{font-size:11px;color:#d4b37a;letter-spacing:.14em;text-transform:uppercase;margin:0 0 16px}
.drawer-section nav{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:0 22px}
.drawer-section a{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;line-height:1.6;color:#d2c4aa;padding:12px 0;border-bottom:1px solid #3f3527}
.drawer-section a small{color:#aa9470;font-size:11px}
.drawer-section a:hover,.navigation-drawer a[aria-current=page]{color:#f3d396}
.drawer-section a[aria-current=page]::after{content:'•';color:#d4b37a}
.drawer-section a[aria-current=page]::after{content:none}
.drawer-section a[aria-current=page]{box-shadow:inset 2px 0 #bd9857;padding-left:10px}
.worked-examples{padding-left:24px}
.worked-examples li{padding:16px 0;border-bottom:1px solid #40382e}
.worked-examples h3{font-weight:400;font-size:22px;line-height:1.5;color:#e3cb9c;overflow-wrap:anywhere}
.drawer-section .drawer-featured{grid-template-columns:1fr}
.drawer-featured a{display:block}
.drawer-featured strong{display:block;font-weight:400;color:#eddbb3}
.drawer-featured span{display:block;color:#af9e81;font-size:12px;margin-top:4px;line-height:1.7}
.drawer-note{color:#aa997d;font-size:12px;line-height:1.8;margin-top:25px}
@keyframes drawer-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:650px){.site-header{flex-direction:row!important;align-items:center!important}.nav-trigger{padding:10px 13px;gap:10px}.drawer-content{padding:22px}.drawer-heading{padding:24px 22px 20px}.drawer-section nav{gap:0 16px}.drawer-section a{font-size:13px}.drawer-heading h2{font-size:27px}}
.theme-controls input{width:100%;min-height:44px;border:1px solid #8d7e62;background:#f8efda;color:#28231b;padding:10px 12px}
.theme-controls select{background:#f8efda;color:#28231b;font-size:14px;line-height:1.4;white-space:normal}
.theme-controls fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}
.theme-controls legend{font-size:18px;color:#6f241d;margin-bottom:22px}
.theme-controls details{border-top:1px solid #b5a88d;padding:18px 0}
summary{cursor:pointer;line-height:1.6}
.theme-controls summary{margin-bottom:18px;font-weight:bold;color:#6f241d}
.theme-controls .control-intro{font-size:14px;line-height:1.8;color:#51493d;margin-bottom:24px}
.theme-field>label{font-size:12px;letter-spacing:.06em;color:#534a3c}
.theme-controls button:not(.theme-submit),.privacy-buttons button{background:#ede1c6;color:#63231d;border:1px solid #988669;padding:10px 14px;cursor:pointer;min-height:44px}
#tool-status{font-size:14px;line-height:1.7;color:#5b3427;overflow-wrap:anywhere}
.theme-generator{grid-template-columns:minmax(270px,.8fr) minmax(0,1.4fr);align-items:start}
.theme-controls{border-right:0}
.theme-result{height:100%;padding:34px;overflow:visible}
.theme-result>h2{font-size:30px;font-weight:400;color:var(--gold)}
.candidate{padding:24px 0 30px;border-bottom:1px solid #594c39}
.candidate h3{font-size:clamp(25px,3vw,38px);font-weight:400;line-height:1.25;margin:12px 0;overflow-wrap:anywhere;color:#f3ead5}
.candidate p,.shortlist-panel p,.shortlist-panel li{color:#c1b59f;font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.candidate .designation{font-style:italic;color:#d0ad70}
.candidate .pronunciation{font-size:13px}
.candidate details{margin:16px 0}
.candidate summary{color:#d7c69e;font-size:15px}
.scene-brief{white-space:pre-line}
.candidate-actions,.export-actions,.privacy-buttons{display:flex;flex-wrap:wrap;gap:10px}
.candidate-actions button,.export-actions button,#shortlist button{min-height:44px;padding:10px 14px;background:transparent;border:1px solid #8d7c5d;color:#ead7ad;cursor:pointer}
button:disabled{opacity:.55;cursor:default}
.settings-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;color:#c1b59f}
.settings-summary div{padding:6px 0;border-bottom:1px solid #40382e;overflow-wrap:anywhere}
.settings-summary dt{color:#d1ac6d;text-transform:capitalize}
.settings-summary dd{margin:3px 0}
.table-scroll{max-width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;color:#cabc9f}
caption{text-align:left;line-height:1.6;margin:10px 0;color:#c1b59f}
th,td{padding:12px 8px;border-bottom:1px solid #594c39;vertical-align:top;overflow-wrap:anywhere}
th{color:#ebd9af}td:first-child{min-width:140px}
.shortlist-panel{margin-top:36px;border-top:1px solid #594c39;padding-top:20px}
#shortlist{padding:0;list-style:none}
#shortlist li{border-bottom:1px solid #40382e;padding:16px 0;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
#shortlist small{width:100%;font-size:12px}
.article-intro{grid-column:1/-1;padding-bottom:18px;border-bottom:1px solid #594c39}
.article-intro>h2{font-size:clamp(28px,4vw,45px);font-weight:400;max-width:900px}
.article-intro p{color:#c1b59f;line-height:1.7}
.article-intro nav{flex-wrap:wrap;gap:12px 24px;line-height:1.8;color:var(--gold)}
.theme-panel p,.theme-panel li{font-size:16px;line-height:1.95;color:#c1b59f}
.theme-panel h2{font-size:26px;line-height:1.4}
.theme-panel a{text-decoration:underline;text-underline-offset:4px;color:#d5b67a}
.story-opening{font-size:22px!important;line-height:1.8!important;color:#e8dec7!important}
.motif-notes{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0 0}
.motif-notes dt{color:#d4b37a;font-size:18px;margin-bottom:8px}
.motif-notes dd{margin:0;font-size:15px;line-height:1.85;color:#c1b59f}
.theme-directory-card{display:flex;flex-direction:column}
.theme-directory-card h2{font-size:23px}
.theme-directory-card h2 a{font-size:inherit;line-height:1.3;color:#f3ead5}
.theme-directory-card p{font-size:15px;color:#c1b59f;line-height:1.85}
.theme-directory-card .card-hook{font-size:14px;color:#ab9c84}
.theme-directory-card>a{margin-top:auto;padding-top:18px;font-size:14px}
.theme-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.directory-search{margin-top:12px}
.category-chips button{font-size:13px;min-height:44px}
.directory-summary{font-size:15px;color:#b9ab91}
.home-category-grid p{font-size:16px;line-height:1.9;color:#bdaf96}
.home-category-grid strong{font-size:13px;line-height:1.7;color:#d5b67a;font-weight:400}
.featured-workshops,.home-method{max-width:var(--content-max);margin:auto;padding:60px var(--page-gutter)}
.featured-workshops>h2,.home-method h2{font-size:clamp(30px,4vw,48px);font-weight:400}
.featured-workshops .theme-directory-grid{padding:20px 0 0;grid-template-columns:repeat(2,minmax(0,1fr))}
.home-method{max-width:900px;padding-bottom:100px}
.home-method p{font-size:18px;line-height:1.95;color:#bdaf96}
.prose p,.prose li{font-size:16px;line-height:1.95}
.prose h2{font-size:27px;line-height:1.4}
.info-toc a{font-size:13px;line-height:1.6}
.info-toc{display:block}
.info-page .site-header{color:var(--paper)}
.info-hero p{font-size:16px!important}
.privacy-buttons p{flex-basis:100%}footer nav{flex-wrap:wrap}
@media(max-width:1000px){.theme-generator{grid-template-columns:1fr}.theme-controls{border-bottom:1px solid #b5a88d}.theme-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-result{padding:30px}}
@media(max-width:650px){.site-header{position:relative;align-items:flex-start;flex-direction:column;padding-block:18px}.site-header nav{justify-content:flex-start;gap:14px;font-size:13px}.brand-logo{width:210px}.theme-directory-grid,.featured-workshops .theme-directory-grid,.motif-notes{grid-template-columns:1fr}.theme-result{padding:24px 18px}.theme-panel{padding:24px 20px}.theme-hero{gap:0}.home-category-grid{grid-template-columns:1fr}.theme-breadcrumb{font-size:12px;line-height:1.8}.theme-hero h1{font-size:43px}.theme-hero .lead{font-size:16px}.hero{padding-top:60px}.hero-lead{font-size:18px}.related-grid,.settings-summary{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:760px){.info-toc{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:360px){.site-header{gap:12px}.site-header .brand-logo{width:140px}.nav-trigger{padding:10px;font-size:13px;gap:8px}}
