:root {
  color-scheme: light;
  --page: #f3f6fa;
  --panel: #fff;
  --ink: #122941;
  --muted: #4a6076;
  --line: #d1dde9;
  --blue: #154a83;
  --focus: #246fbc;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
.frame { width: min(100% - 2rem, 72rem); margin-inline: auto; }
header { background: white; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; min-height: 4.5rem; padding-block: .6rem; }
.bar nav, .langs, .actions, footer .frame { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.langs { margin-inline-start: auto; }
.langs [aria-current] { font-weight: 700; }
a { color: var(--blue); text-underline-offset: .18em; }
.brand { display: inline-flex; text-decoration: none; gap: .55rem; align-items: center; font-weight: 800; line-height: 1; color: var(--ink); }
.brand small { display: block; margin-top: .25rem; letter-spacing: .13em; font-size: .63rem; }
.mark { border-radius: .45rem; background: var(--ink); color: white; padding: .55rem; font-size: 1.15rem; }
.mark span { color: #8fc4ef; }
main { flex: 1; padding-block: 2.5rem 4rem; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: 1.38rem; }
h3 { font-size: 1.12rem; }
p { margin: .55rem 0 .85rem; }
.intro { margin-bottom: 1.5rem; }
.intro p, .muted, footer { color: var(--muted); }
.card, .tile { background: var(--panel); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(.85rem, 2.5vw, 1.45rem); margin-bottom: 1rem; min-width: 0; overflow-wrap: anywhere; }
.card.welcome { max-width: 45rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.tiles .tile { margin-bottom: 0; }
.tiles:not(:empty) + .card { margin-top: 1rem; }
.actions { margin-block: .6rem .85rem; }
button, .button { appearance: none; color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: .4rem; text-decoration: none; font: inherit; font-weight: 650; padding: .52rem .85rem; cursor: pointer; }
.button.secondary { background: white; color: var(--blue); }
button:hover, .button:hover { box-shadow: inset 0 0 0 2px #6ca8db; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a, button, summary, input { scroll-margin: 1rem; }
.skip { position: absolute; top: .5rem; left: .6rem; background: white; padding: .5rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
form { margin-block: .7rem; }
label { display: block; font-weight: 600; margin-block: .5rem; }
input, textarea, select { color: inherit; font: inherit; }
input:not([type=checkbox]):not([type=radio]), textarea, select { display: block; width: 100%; margin-top: .25rem; padding: .45rem .55rem; border: 1px solid #8ba3bb; border-radius: .35rem; background: white; }
textarea { min-height: 6rem; resize: vertical; }
.check { font-weight: 400; display: flex; align-items: baseline; gap: .45rem; }
fieldset { border: 1px solid var(--line); margin: .65rem 0; border-radius: .4rem; padding: .55rem 1rem; min-width: 0; }
legend, summary { font-weight: 650; }
details { border-block-start: 1px solid var(--line); }
summary { padding: .7rem .15rem; cursor: pointer; }
details > div { padding: .15rem .5rem .6rem; }
details details { margin-left: .5rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .2rem 1rem; align-items: end; }
.notice { padding: .75rem 1rem; background: #e3effa; border-radius: .35rem; }
progress { width: 100%; accent-color: var(--blue); }
.pre { white-space: pre-wrap; }
footer { border-top: 1px solid var(--line); background: white; padding: 1rem 0; }
footer .frame { justify-content: space-between; }
.certificate { max-width: 56rem; margin: 1rem auto; background: white; padding: clamp(1rem, 6vw, 4rem); border: .3rem double var(--blue); text-align: center; }
.certificate small { overflow-wrap: anywhere; }
@media print {
  body { background: white; }
  header, footer, .skip, .print-control { display: none; }
  main.frame { padding: 0; width: 100%; }
  .certificate { max-width: none; margin: 0; break-inside: avoid; }
}
