/* Shared BlockSign page layout. Film controls and scene styles stay in their own section. */
.blocksign-header,.blocksign-footer{font-family:var(--font-sans);color:var(--foreground);font-size:14px;line-height:1.5}
.blocksign-header{background:var(--card);border-bottom:1px solid var(--border)}
.shell-header-inner,.shell-footer-inner{max-width:1536px;margin:auto;padding:24px 32px}
.shell-header-inner{display:flex;align-items:center;gap:32px;min-height:96px}
.blocksign-logo{display:inline-flex!important;align-items:center;gap:12px;flex-shrink:0;text-decoration:none;color:var(--foreground);min-width:176px}
.blocksign-logo>img{width:36px!important;height:36px!important;flex-shrink:0;display:block}
.blocksign-wordmark{display:flex;flex-direction:column;gap:4px;text-align:left}
.blocksign-wordmark>strong{font-family:var(--font-sans);font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--foreground)}
.blocksign-wordmark>span{font-size:12px;font-weight:400;line-height:1.2;color:var(--muted-foreground);letter-spacing:0}
.shell-header-controls{display:flex;align-items:center;justify-content:space-between;gap:24px;flex:1;min-width:0}
.shell-primary-nav,.shell-tools{display:flex;align-items:center;gap:20px;min-width:0}
.shell-tools{gap:12px;margin-left:auto}
.shell-dropdown{position:relative}
.shell-dropdown>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;padding:12px 0;white-space:nowrap;font-weight:500;min-height:44px}
.shell-dropdown>summary::-webkit-details-marker{display:none}
.shell-chevron{display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 4px;flex-shrink:0}
.shell-dropdown[open]>summary .shell-chevron{transform:rotate(225deg);margin-top:5px}
.shell-dropdown-panel{position:absolute;top:calc(100% + 8px);left:-16px;z-index:100;min-width:228px;padding:8px;background:var(--popover);color:var(--foreground);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-pop)}
.shell-dropdown-panel>a,.shell-dropdown-panel>button,.shell-dropdown-panel>.shell-unavailable{display:flex;align-items:center;gap:12px;width:100%;padding:12px;text-align:left;text-decoration:none;min-height:44px;border-radius:var(--radius-sm);font:inherit;background:transparent;color:inherit;border:0}
.shell-dropdown-panel>a:hover,.shell-dropdown-panel>button:hover{background:var(--elevate-1)}
.shell-dropdown-panel>.shell-unavailable{display:block;color:var(--muted-foreground)}
.shell-unavailable small,.shell-dropdown-panel a small{display:block;font-size:11px;line-height:1.4;color:var(--muted-foreground);font-weight:400;margin-top:3px}
.shell-language{font-size:13px}
.shell-language img{width:20px;height:15px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px var(--border)}
.shell-language .shell-dropdown-panel{left:auto;right:0;min-width:184px}
.shell-language button[aria-current=true]{font-weight:600;background:var(--accent)}
.shell-language button[aria-current=true] .shell-language-check{margin-left:auto;width:6px;height:11px;border:solid var(--brand-blue);border-width:0 2px 2px 0;transform:rotate(45deg)}
.shell-theme,.shell-mobile-toggle{background:transparent;color:var(--foreground);border:1px solid var(--border);border-radius:var(--radius-pill);min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font:inherit;cursor:pointer}
.shell-theme{width:44px;padding:10px;flex-shrink:0}
.shell-theme svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.shell-theme:hover,.shell-mobile-toggle:hover{background:var(--elevate-1)}
.shell-sun{display:none}.dark .shell-sun{display:block}.dark .shell-moon{display:none}
.shell-mobile-toggle{display:none;padding:8px 16px;margin-left:auto}
.shell-menu-icon{width:16px;height:10px;border-top:1.5px solid currentColor;border-bottom:1.5px solid currentColor}
body>footer.blocksign-footer{display:block;padding:0;margin:0;max-width:none;border-top:1px solid var(--border);background:var(--card);color:var(--foreground)}
.shell-footer-inner{padding-top:48px;padding-bottom:24px}
.shell-footer-top{display:flex;align-items:flex-start;gap:48px;padding-bottom:48px}
.shell-footer-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:32px;flex:1;min-width:0}
.shell-footer-groups section{min-width:0}
.shell-footer-groups h2{margin:0 0 16px;font-family:var(--font-sans);font-weight:600;font-size:14px;color:var(--foreground);letter-spacing:0;line-height:1.5}
.shell-footer-groups ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.shell-footer-groups a{color:var(--muted-foreground);text-decoration:none;display:inline-block;font-size:13px;line-height:1.5}
.shell-footer-groups a:hover{color:var(--foreground);text-decoration:underline;text-underline-offset:4px}
.shell-footer-groups .shell-unavailable{font-size:13px;display:block;color:var(--muted-foreground)}
.shell-footer-bottom{border-top:1px solid var(--border);padding-top:24px;display:flex;align-items:center;flex-wrap:wrap;gap:24px;font-size:12px;color:var(--muted-foreground)}
.shell-iso{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:var(--radius-pill);padding:8px 12px;color:var(--foreground);text-decoration:none;white-space:nowrap}
.shell-iso svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.shell-legal{display:flex;gap:24px;flex-wrap:wrap}
.shell-legal a{text-decoration:none;color:var(--muted-foreground)}
.shell-copyright{margin-left:auto;white-space:nowrap}
[data-blocksign-shell] a:focus-visible,[data-blocksign-shell] button:focus-visible,[data-blocksign-shell] summary:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
/* Theme the surrounding reading surface while preserving all #workshop styles. */
.dark .intro-heading h1,.dark .reading-section h2,.dark .reading-content h3,.dark .sources-section h2{color:var(--foreground)}
.dark .reading-content strong{color:var(--foreground)}
.dark .reading-content p,.dark .intro-heading p,.dark .legal-note,.dark .sources-section>div>p{color:var(--muted-foreground)}
.dark .reading-section,.dark .sources-section{border-color:var(--border)}
.dark .source-card,.dark .source-item{background:var(--card);border-color:var(--border);color:var(--foreground)}
.dark .source-card a,.dark .source-item a{color:var(--foreground)}
.dark .source-card p,.dark .source-item p{color:var(--muted-foreground)}
@media(max-width:1279px){
 .shell-header-inner{flex-wrap:wrap;gap:16px;padding:20px 24px;min-height:84px}
 .shell-mobile-toggle{display:inline-flex}
 .shell-header-controls{display:none;flex-basis:100%;width:100%;flex-direction:column;align-items:stretch;gap:16px;border-top:1px solid var(--border);padding-top:16px}
 .blocksign-header[data-menu-open] .shell-header-controls{display:flex}
 .shell-primary-nav{flex-direction:column;align-items:stretch;gap:0}
 .shell-primary-nav>.shell-dropdown{border-bottom:1px solid var(--border)}
 .shell-dropdown>summary{justify-content:space-between;padding:12px 8px}
 .shell-primary-nav .shell-dropdown-panel{position:static;box-shadow:none;border:0;border-radius:0;padding:0 8px 12px;min-width:0}
 .shell-tools{margin:0;justify-content:flex-end;flex-wrap:wrap}
 .shell-language{margin-right:auto}
 .shell-language .shell-dropdown-panel{left:0;right:auto}
 .shell-footer-top{flex-direction:column;gap:32px}
 .shell-footer-groups{width:100%;gap:24px}
}
@media(max-width:700px){
 .shell-header-inner{padding:16px 20px;min-height:80px}
 .shell-footer-inner{padding:32px 20px 24px}
 .shell-footer-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
 .shell-footer-bottom{align-items:flex-start;flex-direction:column;gap:20px}
 .shell-legal{gap:16px}.shell-copyright{margin-left:0}
}
@media(prefers-reduced-motion:reduce){.shell-dropdown-panel{transition:none}}
.shell-language-toggle{display:flex;align-items:center;padding:3px;border:1px solid var(--border);border-radius:var(--radius-pill);gap:2px}
.shell-language-toggle button{font:500 13px var(--font-sans);color:var(--muted-foreground);background:transparent;border:0;border-radius:var(--radius-pill);padding:8px 10px;cursor:pointer;min-height:36px}
.shell-language-toggle button[aria-current=true]{background:var(--primary);color:var(--primary-foreground)}
body{margin:0}
.blocksign-header,.blocksign-header *,.blocksign-footer,.blocksign-footer *{box-sizing:border-box}
