/* MTSA Cyber Plan: one style sheet. System fonts only; colours: ink #1E2A32, sea green #2F7D6D, white
   (plus the pairs listed in tools/check_contrast.py). No web font, no inline style. */
:root { --ink: #1E2A32; --green: #2F7D6D; --paper: #FFFFFF; --soft: #F6F8F7; --line: #5E6E76; --muted: #45545C; --error: #8A1C1C; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-wrap: break-word; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 0.5rem; top: -3rem; background: var(--paper); color: var(--ink); padding: 0.5rem 0.75rem; border: 2px solid var(--green); z-index: 10; }
.skip:focus { top: 0.5rem; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); max-width: 72rem; margin: 0 auto; }
.wordmark img { display: block; width: 220px; max-width: 100%; height: auto; }
.menu ul, .foot-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; }
main { display: block; max-width: 48rem; margin: 0 auto; padding: 1rem 1rem 2rem; }
main:focus { outline: none; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1rem 0 0.75rem; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.25rem; }
.foot { border-top: 1px solid var(--line); background: var(--soft); padding: 1rem; font-size: 0.95rem; }
.foot > * { max-width: 48rem; margin-left: auto; margin-right: auto; }
.foot .notice p:first-child { font-weight: 700; }
button { font: inherit; color: var(--paper); background: var(--green); border: 2px solid var(--green); border-radius: 4px; padding: 0.5rem 1rem; cursor: pointer; }
button:hover { background: var(--ink); border-color: var(--ink); }
button[disabled] { background: var(--line); border-color: var(--line); cursor: default; }
/* checklist */
.print-area { background: var(--soft); border-left: 4px solid var(--green); padding: 0.75rem 1rem; margin: 1rem 0; }
.contents ol { padding-left: 1.25rem; }
.group { margin-top: 2rem; }
.g3 { font-weight: 700; }
.item { border-top: 1px solid var(--line); padding: 0.5rem 0 0.75rem; }
.item h3 { margin: 0.5rem 0 0.25rem; }
.item .num { color: var(--green); font-weight: 700; }
.item .rule { font-size: 0.875rem; color: var(--muted); }
.item .label { font-weight: 700; }
.pen { display: none; }
/* due dates */
table.stack { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0.5rem 0 1.5rem; }
table.stack th, table.stack td { border: 1px solid var(--line); padding: 0.4rem 0.5rem; text-align: left; vertical-align: top; }
table.stack th { background: var(--soft); }
@media (max-width: 40rem) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); margin-bottom: 0.75rem; }
  table.stack td { border: 0; border-top: 1px solid var(--soft); }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 700; }
}
/* checker */
fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 1rem 0; padding: 0.75rem 1rem; min-width: 0; }
legend { font-weight: 700; padding: 0 0.25rem; }
legend .qtext { font-weight: 400; display: block; }
/* H-11: a long question is never cut by the frame line: the legend stands inside the frame */
fieldset.question > legend { float: left; width: 100%; padding: 0; margin-bottom: 0.5rem; }
fieldset.question > legend + * { clear: both; }
.choice { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.4rem 0; }
.choice input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--green); }
.hint { color: var(--muted); margin: 0.25rem 0; }
.result-area { margin-top: 1rem; }
.result { border: 2px solid var(--green); border-radius: 4px; padding: 0.75rem 1rem; }
.rests .label { font-weight: 700; }
.nojs-list > li { margin-bottom: 1rem; }
.nojs-items { list-style: none; padding-left: 1rem; }
/* sign-up */
.q { margin: 1rem 0; }
.send { margin-top: 1rem; } /* H-13: space between the check's box and the send button */
#f-email label { display: block; font-weight: 700; }
input[type="email"] { font: inherit; width: 100%; max-width: 28rem; padding: 0.45rem; border: 2px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); }
.error { color: var(--error); font-weight: 700; margin: 0.25rem 0; }
[aria-invalid="true"] { border-color: var(--error); }
.error-summary { border: 3px solid var(--error); padding: 0.5rem 1rem; margin: 1rem 0; }
.error-summary h3 { margin-top: 0.25rem; }
.status:empty { display: none; }
.status { font-weight: 700; }
.thanks-view { border: 2px solid var(--green); padding: 0.5rem 1rem; margin: 1rem 0; }
[hidden] { display: none !important; }
