/* —— Accessibility (Simpl Man) —— top sticky, not bottom-right —— */
.sm-a11y-topbar{
  position:sticky;top:0;z-index:2147483001;
  display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;
  background:#0b1a3a;padding:10px 14px;
  border-bottom:4px solid #f2c14e;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.sm-a11y-btn,.sm-a11y-home{
  font-size:clamp(1.15rem,3.5vw,1.65rem)!important;font-weight:800!important;font-family:Arial,sans-serif!important;
  padding:16px 22px!important;min-height:64px!important;min-width:min(260px,90vw);
  background:#f2c14e!important;color:#0b1a3a!important;
  border:4px solid #fff!important;border-radius:14px!important;
  box-shadow:0 4px 10px rgba(0,0,0,.35);cursor:pointer;line-height:1.15;
}
.sm-a11y-btn:focus-visible,.sm-a11y-home:focus-visible,
.sm-a11y-btn:hover,.sm-a11y-home:hover{outline:4px solid #1a5fd0;outline-offset:3px}
.sm-a11y-btn.is-on,.sm-a11y-home.is-on{background:#1f7a3a!important;color:#fff!important;border-color:#fff!important}
.sm-a11y-panel{
  position:fixed;z-index:2147483000;right:12px;top:84px;left:auto;
  width:min(380px,calc(100vw - 24px));max-height:min(70vh,560px);overflow:auto;
  background:#fff;color:#0b1a3a;border:4px solid #0b1a3a;border-radius:16px;
  padding:16px 18px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-family:Arial,sans-serif;font-size:1.1rem;
}
.sm-a11y-panel .sm-a11y-opt{display:flex;align-items:center;gap:12px;margin:10px 0;font-weight:700;font-size:1.15rem}
.sm-a11y-panel input[type=checkbox]{width:1.4rem;height:1.4rem}
.sm-a11y-panel select{font-size:1.1rem;padding:10px;width:100%;border:2px solid #0b1a3a;border-radius:8px;margin:4px 0 12px}
.sm-a11y-stop-all{width:100%;font-size:1.15rem;font-weight:700;padding:12px;background:#8a1c1c;color:#fff;border:0;border-radius:10px;cursor:pointer}
.sm-a11y-hint{font-size:.95rem;margin:12px 0 0;line-height:1.4;color:#333}
.sm-a11y-warn{background:#8a1c1c;color:#fff;font-weight:700;padding:10px;border-radius:8px}
.sm-a11y-toolbar{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin:0 0 14px;padding:12px;background:#26394d;border-radius:12px;border:3px solid #0b1a3a;
}
.sm-a11y-toolbar button{
  font-size:1.05rem;font-weight:700;padding:12px 16px;min-height:48px;
  background:#f2c14e;color:#0b1a3a;border:2px solid #0b1a3a;border-radius:10px;cursor:pointer;
}
.sm-a11y-toolbar button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.sm-a11y-toolbar .sm-a11y-stop{background:#8a1c1c;color:#fff}
.sm-a11y-home-row{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;align-items:center;margin:24px 0}
html.sm-a11y-large body{font-size:28px}
html.sm-a11y-large .sm-a11y-btn,html.sm-a11y-large .sm-a11y-home{font-size:1.75rem!important;padding:22px 26px!important}
html.sm-a11y-contrast body{background:#000;color:#fff}
html.sm-a11y-contrast header{background:#000;color:#fff;border-bottom:4px solid #f2c14e}
html.sm-a11y-contrast .tile,html.sm-a11y-contrast .mission,html.sm-a11y-contrast main.doc{background:#111;color:#fff;border-color:#f2c14e}
html.sm-a11y-contrast a{color:#f2c14e}
html.sm-a11y-contrast .sm-a11y-panel{background:#000;color:#fff;border-color:#f2c14e}
html.sm-a11y-contrast .account{background:#000}
html.sm-a11y-contrast .sm-a11y-topbar{background:#000;border-bottom-color:#f2c14e}
.sm-a11y-panel[hidden]{display:none!important}
.sm-a11y-close{
  width:100%;font-size:1.25rem;font-weight:800;padding:14px 16px;min-height:56px;margin:0 0 14px;
  background:#0b1a3a;color:#fff;border:3px solid #0b1a3a;border-radius:10px;cursor:pointer;
}
.sm-a11y-turn-off{
  width:100%;font-size:1.15rem;font-weight:700;padding:12px;margin:10px 0 0;
  background:#0b1a3a;color:#fff;border:0;border-radius:10px;cursor:pointer;
}
html.sm-a11y-contrast .sm-a11y-close,
html.sm-a11y-contrast .sm-a11y-turn-off{
  background:#111;color:#fff;border:3px solid #f2c14e;
}

/* Safari/WebKit: display:flex on summary can hide opened details content */
details[open] > .rp-body { display:block; }
details[open] > .sm-a11y-toolbar { display:flex; }
details[open] > .sm-a11y-toolbar[hidden] { display:none; }

html.sm-a11y-contrast main.guide,
html.sm-a11y-contrast .guide,
html.sm-a11y-contrast .rp-box,
html.sm-a11y-contrast .rp-body {
  background:#111;
  color:#fff;
}
html.sm-a11y-contrast .rp-box { border-color:#f2c14e; }
html.sm-a11y-contrast .rp-box > summary {
  background:#f2c14e;
  color:#0b1a3a;
}
html.sm-a11y-contrast .sources { color:#ddd; }
html.sm-a11y-contrast .back { color:#f2c14e; }
html.sm-a11y-contrast .rp-tools button {
  background:#111;
  color:#fff;
  border-color:#f2c14e;
}

/* Highlight the section currently being read in a continuous pass */
.sm-a11y-reading{
  box-shadow:0 0 0 6px #f2c14e, 0 8px 24px rgba(0,0,0,.25);
  outline:4px solid #1a5fd0;
  outline-offset:4px;
}
html.sm-a11y-contrast .sm-a11y-reading{
  outline-color:#f2c14e;
  box-shadow:0 0 0 6px #f2c14e;
}
