/* EB Garamond — Copyright 2017 The EB Garamond Project Authors
   (https://github.com/octaviopardo/EBGaramond12)
   Licensed under the SIL Open Font License, Version 1.1 (see fonts/OFL.txt) */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'EB Garamond', serif;
  color: #1a1a2e;
  background: #f8fafc;
  line-height: 1.6;
}
main {
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem;
}
h1 { margin-bottom: 1rem; font-size: 1.75rem; }
p { margin-bottom: 1rem; }
button {
  display: inline-block;
  padding: 0.6em 1.5em;
  border: none;
  border-radius: 0.4em;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}
button:hover { background: #1d4ed8; }
button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
fieldset {
  border: none;
  margin-bottom: 1.5rem;
  padding: 0;
  transition: padding-left 0.15s;
}
legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  width: 100%;
}
/* Visually-hidden but accessible to screen readers and keyboard */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Fancy radio option tile */
.radio-option {
  display: block;
  padding: 0.75em 1em;
  margin: 0.25em 0;
  border: 2px solid #cbd5e1;
  border-radius: 0.5em;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.radio-option:hover { border-color: #93c5fd; }
.radio-option:has(:checked) {
  border-color: #2563eb;
  background-color: #eff6ff;
}
.radio-option:has(:focus-visible) {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
/* Error styles */
fieldset.has-error {
  border-left: 3px solid #ef4444;
  padding-left: 0.75em;
}
fieldset.has-error legend { color: #b91c1c; }
.error-summary {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 0.5em;
  padding: 1em;
  margin-bottom: 1.5rem;
}
.error-summary h2 {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.25em;
}
.error-summary ul { padding-left: 1.5em; margin: 0; }
.error-summary a { color: #991b1b; text-decoration: underline; }
.back-link { display: inline-block; margin-top: 1rem; color: #2563eb; }
.text-input {
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  border: 2px solid #cbd5e1;
  border-radius: 0.5em;
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.15s;
  background: #fff;
}
.text-input:focus {
  outline: none;
  border-color: #2563eb;
}
fieldset.has-error .text-input {
  border-color: #ef4444;
}
.optional-badge {
  font-weight: 400;
  font-size: 0.85em;
  color: #475569;
}
.radio-option-none {
  border-style: dashed;
  opacity: 0.7;
  margin-top: 0.5em;
}
.req-mark { color: #b91c1c; margin-left: 0.1em; }
.field-error { color: #991b1b; font-size: 0.9em; margin: 0.25em 0 0.5em; }
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: static;
  display: block;
  padding: 0.5em 1em;
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 0.4em;
  margin: 0.5rem 1rem;
  text-align: center;
  color: #2563eb;
  font-weight: 600;
}
