/* Shared public portal styles — readable contrast, visible focus, landmarks */
:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1a1d21;
    --muted: #4a5560;
    --border: #c5ccd4;
    --link: #0b5cab;
    --link-hover: #084a89;
    --error: #a40000;
    --success: #0a5c0a;
    --focus: #0b5cab;
    --max-width: 40rem;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    font-size: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}
a {
    color: var(--link);
}
a:hover {
    color: var(--link-hover);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3.5rem;
    z-index: 1000;
    padding: 0.5rem 0.85rem;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--focus);
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: 0.75rem;
}
.site-header,
.site-main,
.site-footer {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}
.site-header {
    padding: 1.25rem 0 0.5rem;
}
.site-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    line-height: 1.25;
}
.site-header .lede {
    margin: 0;
    color: var(--muted);
}
.site-main {
    padding: 1rem 0 2rem;
}
.site-header.wide,
.site-main.wide,
.site-footer.wide {
    --max-width: 72rem;
}
/* Disclosure is shown on the form; badge may use inline styles blocked by CSP. */
.grecaptcha-badge {
    visibility: hidden;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden;
}
.site-footer {
    padding: 1.25rem 0 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}
.site-footer nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem;
}
.form-field {
    margin-bottom: 1rem;
}
.form-field label,
.fieldset-legend {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea,
.form-field select {
    width: 100%;
    max-width: 28rem;
    padding: 0.5rem 0.65rem;
    font: inherit;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
}
.choice-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.choice-list li {
    margin: 0.35rem 0;
}
.choice-list label {
    font-weight: 400;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
}
fieldset {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.85rem 1rem 1rem;
    margin: 0 0 1rem;
}
button,
.button {
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #243040;
    border-radius: 4px;
    background: #243040;
    color: #fff;
}
button:hover,
.button:hover {
    background: #1a2430;
}
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
button.secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.error,
[role="alert"]:not(.is-success) {
    color: var(--error);
}
.is-success {
    color: var(--success);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.status-box {
    margin: 0 0 1rem;
}
.prose h2 {
    margin-top: 1.75rem;
    font-size: 1.2rem;
}
.prose p,
.prose li {
    color: var(--text);
}
.prose ul {
    padding-left: 1.25rem;
}
.meta {
    color: var(--muted);
    font-size: 0.95rem;
}