/* Shared contextual help and secondary settings. Native details preserves
   keyboard toggling and the browser's accessible expanded state without JS. */
:root{--disclosure-ink:var(--ink,#242735);--disclosure-muted:var(--muted,#636779);--disclosure-line:var(--line,#dddfe7);--disclosure-wash:var(--wash,#eeeaf6);--disclosure-accent:var(--accent,#6650a4)}
html[data-theme=dark]{--disclosure-ink:var(--ink,#eeeef5);--disclosure-muted:var(--muted,#aaaebb);--disclosure-line:var(--line,#383a47);--disclosure-wash:var(--wash,#2d263c);--disclosure-accent:var(--accent,#bca8ed)}
.help-disclosure.help-disclosure{margin:20px 0 0;padding:0;border:0;min-width:0}
:is(.help-disclosure,.control-disclosure)>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;box-sizing:border-box;border-radius:5px;list-style:none;cursor:pointer;overflow-wrap:anywhere;text-align:left;line-height:1.55}
:is(.help-disclosure,.control-disclosure)>summary::-webkit-details-marker{display:none}
.help-disclosure.help-disclosure>summary{font-size:13px;font-weight:400;color:var(--disclosure-muted);margin:0}
.help-disclosure>summary:not(:has(svg))::before{content:"";width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 9v5m0-8v.1'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.help-disclosure.help-disclosure>summary>svg{width:18px;height:18px;flex:0 0 18px;margin:0;fill:none;stroke:currentColor;stroke-width:1.5}
:is(.help-disclosure,.control-disclosure)>summary::after{content:"";width:16px;height:16px;flex:0 0 16px;margin-left:auto;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 4 6 6-6 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
:is(.help-disclosure,.control-disclosure)[open]>summary::after{transform:rotate(90deg)}
:is(.help-disclosure,.control-disclosure)>summary:hover{background:var(--disclosure-wash);color:var(--disclosure-ink)}
:is(.help-disclosure,.control-disclosure)>summary:focus-visible{outline:2px solid var(--disclosure-accent);outline-offset:2px;background:var(--disclosure-wash)}
.help-disclosure.help-disclosure[open]>summary{background:var(--disclosure-wash);color:var(--disclosure-ink);margin-bottom:16px}
.help-disclosure> :not(summary){margin-inline:12px;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.help-disclosure> :last-child{margin-bottom:12px}
.control-disclosure.control-disclosure{margin:20px 0 0;padding:12px 0 0;border-top:1px solid var(--disclosure-line);min-width:0}
.control-disclosure.control-disclosure>summary{font-size:13px;font-weight:500;color:var(--disclosure-ink);margin:0}
.control-disclosure.control-disclosure[open]>summary{margin-bottom:16px}
.control-disclosure> :not(summary){margin-inline:12px}
/* Primary accordion sections remain prominent, with the same generous target. */
details.panel>summary{min-height:44px;align-content:center;cursor:pointer;padding:8px 0}
details.panel[open]>summary{margin-bottom:16px}
@media(forced-colors:active){:is(.help-disclosure,.control-disclosure)>summary{border:1px solid ButtonText}.help-disclosure>summary::before,:is(.help-disclosure,.control-disclosure)>summary::after{background:ButtonText}}
