/* Help and release history share the official ABYD controls and theme preference. */
:root {
  color-scheme:light;
  --ground:#eceef1; --paper:#fff; --ink:#151a22; --sub:#475461; --line:#75818c;
  --accent:#006576; --wash:#e1f6fa; --focus:#006576;
  font:100%/1.55 Inter,system-ui,sans-serif;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --ground:#151a22; --paper:#202833; --ink:#f5f7fa; --sub:#c0cbd5; --line:#8291a0;
  --accent:#62e1f3; --wash:#253d49; --focus:#62e1f3;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --ground:#151a22; --paper:#202833; --ink:#f5f7fa; --sub:#c0cbd5; --line:#8291a0;
    --accent:#62e1f3; --wash:#253d49; --focus:#62e1f3;
  }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--ground); color:var(--ink); }
.page { max-width:62rem; margin:auto; padding:0 max(1rem,env(safe-area-inset-right)) max(3rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); }
header { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.8rem 0; border-bottom:1px solid var(--line); }
.home { display:inline-flex; align-items:center; gap:.5rem; font-weight:750; color:var(--ink); text-decoration:none; }
a { color:var(--accent); text-decoration-thickness:1px; text-underline-offset:.18em; }
a:focus-visible, [tabindex="-1"]:focus-visible { outline:3px solid var(--focus); outline-offset:3px; border-radius:3px; }
header a, nav a, .action { display:inline-flex; align-items:center; min-height:44px; }
main { margin-top:clamp(1.4rem,4vw,3rem); }
h1,h2,h3 { line-height:1.18; margin:0; }
h1 { font-size:clamp(2.1rem,6vw,3.5rem); letter-spacing:-.04em; }
h2 { font-size:clamp(1.25rem,3vw,1.6rem); }
h3 { font-size:1.12rem; }
p { margin:.55rem 0 .75rem; max-width:62ch; }
.intro { color:var(--sub); }
.roles,.topics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.roles { margin:1.2rem 0 1.8rem; }
.role,article,.contact { background:var(--paper); padding:clamp(1rem,2.5vw,1.5rem); border:1px solid var(--line); min-width:0; }
nav { display:flex; flex-wrap:wrap; column-gap:.9rem; }
.role nav a { font-weight:600; }
.topics { margin:.9rem 0 1.3rem; }
ol { padding-inline-start:1.35rem; margin:.6rem 0 0; }
li { padding-inline-start:.15rem; margin:.35rem 0; }
li::marker { color:var(--sub); font-weight:650; }
section,article { scroll-margin-top:1rem; }
section:target,article:target { outline:2px solid var(--accent); outline-offset:2px; background:var(--wash); }
.contact { margin-top:1rem; }
.skip { position:absolute; top:0; left:1rem; transform:translateY(-120%); padding:.5rem; background:var(--paper); }
.skip:focus { transform:none; }
#report { margin-top:1rem; }
#report label { display:grid; gap:.25rem; font-weight:650; margin:.8rem 0; }
#report-status { overflow-wrap:anywhere; }
@media(max-width:42rem) { .roles,.topics {grid-template-columns:1fr;} .roles {gap:.65rem;} }

header { flex-wrap:wrap; }
nav { gap:.35rem .75rem; }
nav a { min-width:44px; }
.role,article,.contact,.release { border-radius:16px; }
.abyd-door-button {
  display:inline-flex; justify-content:center; align-items:center;
  padding:.55rem .85rem; line-height:1.35; font-family:inherit; font-size:1rem; font-weight:650;
  background:var(--paper); color:var(--ink); border:1px solid var(--line);
  text-decoration:none; cursor:pointer; max-width:100%; overflow-wrap:anywhere;
}
.abyd-door-button[hidden], [hidden] { display:none!important; }
.abyd-info .abyd-door-button:disabled {
  color:var(--sub); background:var(--ground); border-color:var(--line); box-shadow:none; cursor:wait;
}
#report select {
  color:var(--ink); background:var(--paper); border:1px solid var(--line);
  border-radius:12px; font:inherit; padding:.5rem; min-height:48px; width:100%; max-width:32rem;
}
#report select:disabled { color:var(--sub); opacity:1; }
#report :is(select,button):focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.release-page { max-width:48rem; }
.release { margin-top:1rem; padding:clamp(1rem,3vw,1.5rem); background:var(--paper); border:1px solid var(--line); }
.release time { color:var(--sub); }
.release ul { margin:.7rem 0 0; padding-inline-start:1.4rem; }
.release li+li { margin-top:.6rem; }
@media(max-width:36rem) { header nav { width:100%; } }
