:root {
  color-scheme: light;
  color: #243246;
  background: #f5f7fa;
  line-height: 1.65;
  --accent: #1762b5;
  --muted: #586679;
  --border: #d3dce7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #104682; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #77b5fa; outline-offset: 3px; }
.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.page-header { padding-block: 1.5rem; }
.languages { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .875rem; }
.languages a[aria-current="page"] { color: #243246; font-weight: 700; }
main { flex: 1; padding-block: 2.5rem 3.5rem; }
h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.4; }
p { margin: .5rem 0 1rem; }
.intro { color: var(--muted); max-width: 62rem; }
.page-intro { margin: 0 0 1.75rem; }
.panel { padding: 1.75rem; border: 1px solid var(--border); border-radius: .75rem; background: #fff; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.profile dl { margin: 0; }
.profile dt { font-weight: 700; margin-top: .75rem; }
.profile dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { min-width: 0; display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: .4rem; }
input, textarea, select { display: block; width: 100%; padding: .7rem .85rem; border: 1px solid #aab9cb; border-radius: .35rem; color: inherit; background: #fff; }
textarea { min-height: 11rem; resize: vertical; line-height: 1.65; }
#content, #response { font-family: var(--font-mono); }
input[readonly], textarea[readonly] { background: #f2f5f8; color: #526073; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.field-help { display: block; font-size: .825rem; color: var(--muted); margin-top: .35rem; }
form.panel { display: flex; flex-direction: column; gap: 1.75rem; }
.form-actions { display: flex; justify-content: center; }
.button { border: 1px solid var(--accent); border-radius: .4rem; padding: .7rem 1.5rem; background: var(--accent); color: #fff; cursor: pointer; font-weight: 700; }
.button:hover { background: #104e91; }
.button:disabled { cursor: wait; opacity: .65; }
.submit-button { min-width: min(100%, 22rem); }
.status { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 4px solid var(--accent); background: #eaf3ff; border-radius: .3rem; }
.status p:last-child { margin-bottom: 0; }
.record-time { margin: 0 0 .5rem; }
.previous-reply { white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0 0; font: inherit; }
.site-footer { padding-block: 1.75rem; text-align: center; background: #fff; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer .languages { justify-content: center; }
dialog { width: min(100% - 2.5rem, 30rem); border: 1px solid var(--border); border-radius: .75rem; padding: 1.5rem; color: inherit; box-shadow: 0 1rem 4rem #15274033; }
dialog::backdrop { background: #15274088; }
dialog h2 { margin: 0 0 1rem; font-size: 1.2rem; }
dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
dialog form { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.error-messages, [hidden] { display: none !important; }
.noscript { color: #8b2b18; }
.ad-unit { margin-top: 2.5rem; }
.ad-unit:has(> ins[data-ad-status="unfilled"]) { display: none; }

@media (max-width: 40rem) {
  .container { width: calc(100% - 1.5rem); }
  main { padding-block: 1.5rem 2rem; }
  .panel { padding: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .field-wide { grid-column: auto; }
  .submit-button { width: 100%; }
}
