.header-actions{display:flex;align-items:center;gap:8px}
/* Shared geometry and restrained emphasis for the header controls. */
.author-credit{margin-left:auto;text-align:right;white-space:nowrap}
.theme-toggle{width:38px;height:38px;flex-shrink:0;border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;font-size:24px;line-height:1;display:grid;place-items:center}
.theme-toggle:hover{background:#e3ebe5}
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;background:#101715;color:#e6eee9;--green:#a8dcbf;--muted:#a5b5ad;--line:#34443c;--lime:#d8ee98}
[data-theme="dark"] header,[data-theme="dark"] .card{background:#19231e}
[data-theme="dark"] .answer{background:#202e26;color:#e6eee9}
[data-theme="dark"] .answer:hover,[data-theme="dark"] .theme-toggle:hover{background:#314b3b;border-color:#83b598}
[data-theme="dark"] .answer.selected,[data-theme="dark"] .primary,[data-theme="dark"] .topic.active .n{background:#a8dcbf;color:#11251a}
[data-theme="dark"] .primary:hover{background:#c1ecd2}
[data-theme="dark"] .logo{background:#32513e;color:#d8ee98}
[data-theme="dark"] .topic{color:#a5b5ad}
[data-theme="dark"] .topic.active,[data-theme="dark"] .language-toggle{background:#293d30;color:#c5ebd2}
[data-theme="dark"] .topic.done .n{background:#294033;color:#b9e6c9;border-color:#53765f}
[data-theme="dark"] .language-toggle button.active{background:#45634e;color:#fff}
[data-theme="dark"] .argument p,[data-theme="dark"] .hint{color:#b1c0b7}
[data-theme="dark"] .tag{color:#b9d8ad;border-color:#496344}
[data-theme="dark"] .sign{background:#304b35;color:#c6e9aa}
[data-theme="dark"] .con .sign{background:#4a372b;color:#f2c29a}
[data-theme="dark"] .method{background:#1d2b22;color:#b8c9bf}
[data-theme="dark"] .method summary,[data-theme="dark"] .method a{color:#b9e6c9}
[data-theme="dark"] .pill{background:#30462f;color:#cae7b8}
[data-theme="dark"] .progress,[data-theme="dark"] .bar{background:#304037}
[data-theme="dark"] .node text{fill:#b2c5b8}
[data-theme="dark"] .node circle{fill:#19231e;stroke:#72927d}
[data-theme="dark"] .node.active text,[data-theme="dark"] .node:focus-visible text{fill:#e0f5b8}
[data-theme="dark"] .node.active circle,[data-theme="dark"] .node:focus-visible circle{fill:#c6e995;stroke:#c6e995}
[data-theme="dark"] .edge:not(.lit){stroke:#769282}
[data-theme="dark"] .party-hit.active .party-node circle{stroke:#e0f5b8}
[data-theme="dark"] .party-node text{fill:#e0eae4}
[data-theme="dark"] .party-hit[data-party="0"] circle{fill:#aeb8b2}
[data-theme="dark"] .edge.lit[data-p="0"]{stroke:#aeb8b2!important}
.party-hit:focus-visible{outline:2px solid var(--green);outline-offset:4px}
#edition-select{appearance:none;min-width:156px;border:1px solid var(--line);border-radius:999px;padding:10px 13px 10px 14px;background:#f4f7f4;color:var(--green);font:700 12px 'DM Sans',sans-serif;letter-spacing:.35px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;transition:background-color .18s,border-color .18s,box-shadow .18s}
#edition-select .edition-chevron{font-size:17px;line-height:.7;color:var(--muted);transform:translateY(-1px)}
#edition-select:hover{background-color:#e8f0e9;border-color:#9eb3a4}
#edition-select:focus-visible{outline:3px solid #768e30;outline-offset:3px}
.edition-picker{position:relative;z-index:10}
.edition-menu{position:absolute;right:0;top:calc(100% + 9px);min-width:215px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 36px #24382b20;animation:menu-in .16s ease;transform-origin:top right}
.edition-menu[hidden]{display:none}
.edition-menu button{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;border-radius:10px;padding:11px 12px;background:transparent;color:#52625a;text-align:left;font:600 13px 'DM Sans',sans-serif;cursor:pointer}
.edition-menu button:hover,.edition-menu button:focus-visible{background:#edf3ed;color:var(--green);outline:none}
.edition-menu button[aria-current="true"]{background:#e3ebe5;color:var(--green);font-weight:750}
.edition-menu button[aria-current="true"]::after{content:'✓';font-weight:800;color:#6c8a49}
[data-theme="dark"] .edition-menu{background:#1d2b22;border-color:#405647;box-shadow:0 16px 36px #00000045}
[data-theme="dark"] .edition-menu button{color:#c1d0c6}
[data-theme="dark"] .edition-menu button:hover,[data-theme="dark"] .edition-menu button:focus-visible{background:#30483a;color:#e6eee9}
[data-theme="dark"] .edition-menu button[aria-current="true"]{background:#35503e;color:#e6eee9}
[data-theme="dark"] .edition-menu button[aria-current="true"]::after{color:#c7e89f}
[data-theme="dark"] #edition-select{background:#293d30;color:#e6eee9;border-color:#496653}
[data-theme="dark"] #edition-select:hover{background:#34503d;border-color:#83b598}
@keyframes menu-in{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
#theme-toggle{font-size:0}
#theme-toggle::before{content:'';display:block;width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.5 12.9A7.1 7.1 0 1 1 7.1 3.5a5.8 5.8 0 0 0 9.4 9.4Z' fill='%2318483b'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:center}
[data-theme="dark"] #theme-toggle::before{content:'☀';width:auto;height:auto;background:none;font-size:20px;line-height:1;font-family:'Segoe UI Symbol','DM Sans',sans-serif}
@media(max-width:650px){header{height:auto;min-height:80px;flex-wrap:wrap;gap:12px;padding-top:14px;padding-bottom:14px}.header-actions{margin-left:auto}.country{display:none}}
.language-toggle{display:flex;background:#edf2ee;border-radius:9px;padding:3px;gap:2px}
.language-toggle button{border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:700;padding:6px 8px;border-radius:6px}
.language-toggle button.active{background:#fff;color:var(--green);box-shadow:0 1px 4px #183d2a18}
.party-node.active circle{stroke:#173f30;stroke-width:3}
.party-node.active text{font-weight:800}
@media(max-width:540px){.header-actions{gap:2px}.language-toggle button{padding:5px 6px}.text-button{padding:10px 6px}}
