:root {
  color-scheme: light;
  --ink: #112c47;
  --muted: #425b72;
  --blue: #124b86;
  --blue-dark: #0b3662;
  --border: #c9d8e6;
  --surface: #fff;
  --canvas: #f2f6fa;
  --focus: #a64f00;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
main { max-width: 67rem; margin: auto; padding: clamp(.85rem, 4vw, 3rem); min-width: 0; }
header {
  display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.15rem);
  border-bottom: 1px solid var(--border); padding: 0 0 1.15rem; margin-bottom: 1.25rem;
}
.official-mark { flex: 0 0 auto; width: clamp(1.1rem, 3vw, 2rem); align-self: stretch; border-left: 3px solid var(--blue); }
small { display: block; color: var(--muted); font-weight: 600; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 .65rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.035em; margin: .3rem 0 0; }
h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); }
h3 { font-size: 1.12rem; }
p, li { overflow-wrap: anywhere; }
p { margin: .6rem 0; }
section, article, details {
  background: var(--surface); padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--border);
  border-radius: .85rem; margin-bottom: .95rem; min-width: 0;
}
details > summary { cursor: pointer; font-weight: 650; color: var(--blue-dark); }
details[open] > summary { margin-bottom: .8rem; }
form { display: grid; gap: .75rem; margin: .75rem 0; min-width: 0; }
label { display: block; min-width: 0; font-weight: 600; }
input:not([type=radio],[type=checkbox],[type=hidden]), select, textarea {
  display: block; width: 100%; max-width: 29rem; margin: .2rem 0 0; padding: .66rem .72rem;
  background: var(--surface); border: 1px solid #617d97; border-radius: .4rem; color: var(--ink); font: inherit;
}
input[type=file] { font-size: .9rem; }
textarea { resize: vertical; }
input:is([type=radio],[type=checkbox]) { margin-inline-end: .45rem; accent-color: var(--blue); }
button, .button {
  justify-self: start; display: inline-block; max-width: 100%; min-height: 2.7rem; line-height: 1.35;
  border: 1px solid var(--blue); border-radius: .42rem; padding: .58rem .9rem;
  color: #fff; background: var(--blue); font: inherit; font-weight: 650; text-decoration: none;
  cursor: pointer; overflow-wrap: anywhere; transition: background .16s ease, border-color .16s ease;
}
button:hover, .button:hover { background: var(--blue-dark); }
button.secondary { background: #fff; color: var(--blue-dark); }
button:disabled { background: #e7eef5; color: var(--muted); border-color: var(--border); cursor: default; }
a { color: var(--blue); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { margin-bottom: .5rem; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem; }
.cards label {
  background: #f6f9fd; border: 1px solid #a3bad0; border-radius: .55rem; padding: .75rem;
  cursor: pointer; overflow-wrap: anywhere; transition: border-color .16s ease, background .16s ease;
}
.cards label:has(input:checked) { border-color: var(--blue); background: #e8f2fd; }
.cards img { display: block; width: 100%; height: clamp(6rem, 18vw, 10rem); object-fit: contain; margin-bottom: .5rem; }
img { max-width: 100%; height: auto; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.steps li { border-top: 3px solid var(--border); padding-top: .45rem; font-size: clamp(.7rem, 2.8vw, .95rem); color: var(--muted); }
.steps li[aria-current=step] { border-color: var(--blue); color: var(--blue-dark); font-weight: 750; }
.notice, #status:not(:empty) { background: #e6f0fb; padding: .8rem; border-radius: .45rem; }
iframe { display: block; width: 100%; min-width: 0; height: 760px; border: 1px solid var(--border); }
table { table-layout: fixed; border-collapse: collapse; width: 100%; }
td, th { padding: .5rem; border-bottom: 1px solid var(--border); text-align: left; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
