/* Shared typography: Figtree headings, Manrope body text, Saira wordmarks. */
@font-face {
    font-family: "Figtree";
    src: url("fonts/figtree/Figtree-VariableFont_wght.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("fonts/figtree/Figtree-Italic-VariableFont_wght.woff2") format("woff2");
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

*,
*::before,
*::after {
    font-family: "Manrope", sans-serif !important;
}

:is(h1, h2, h3, h4, h5, h6, [role="heading"]),
:is(h1, h2, h3, h4, h5, h6, [role="heading"]) *,
:is(h1, h2, h3, h4, h5, h6, [role="heading"])::before,
:is(h1, h2, h3, h4, h5, h6, [role="heading"])::after,
:is(h1, h2, h3, h4, h5, h6, [role="heading"]) *::before,
:is(h1, h2, h3, h4, h5, h6, [role="heading"]) *::after {
    font-family: "Figtree", sans-serif !important;
}

.wordmark,
.wordmark *,
.footer-brand > a,
.footer-brand > a * {
    font-family: "Saira", sans-serif !important;
}

@font-face {
    font-family: "Saira";
    src: url("fonts/saira/static/Saira-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #142039;
    --muted: #63748e;
    --purple: #234ee8;
    --purple: #8F48E5;
    --border: #dfe6f0;
    --surface: #f6f8fb;
    --banner-background: linear-gradient(115deg, #101b31, #1d2b43 65%, #12203c);
    --banner-copy: #c3cee0;
    --banner-accent: #d08bff;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: var(--surface);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
    ;
}
body {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    ;
}
button, input {
    font: inherit;
    ;
}
button, a {
    -webkit-tap-highlight-color: transparent;
    ;
}
button {
    cursor: pointer;
    ;
}
a {
    color: var(--purple);
    text-decoration: none;
    ;
}
a:hover {
    text-decoration: underline;
    ;
}
/* Navigation focuses the page heading for screen readers and the next Tab stop.
   A non-interactive heading does not need the browser's selection-like outline. */
h1[tabindex="-1"]:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid #8aa7ff;
    outline-offset: 4px;
    ;
}
input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px #234ee819;
    background: var(--theme-panel, white);
    ;
}
.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
    ;
}
.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;
    ;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: var(--theme-panel, white);
    padding: 12px;
    ;
}
.skip-link:focus {
    top: 12px;
    ;
}
.auth-page {
    max-width: 952px;
    padding: 32px 28px 38px;
    margin: auto;
    ;
}
.privacy-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 29px 28px;
    background: var(--banner-background);
    border-radius: 23px;
    color: white;
    box-shadow: 0 8px 20px #10213a13;
    margin-bottom: 28px;
    ;
}
.privacy-copy {
    flex: 1;
    ;
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--banner-accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    margin: 0 0 10px;
    ;
}
.eyebrow .icon {
    font-size: 0.875rem;
    font-weight: 900;
}
.privacy-banner h2 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -.6px;
    margin: 0 0 9px;
    font-weight: 700;
    ;
}
.privacy-copy > p:last-child {
    margin: 0;
    color: var(--banner-copy);
    font-size: 14px;
    max-width: 510px;
    ;
}
.privacy-copy a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
    ;
}
.privacy-note {
    flex: 0 0 270px;
    border: 1px solid #ffffff19;
    background: #ffffff0c;
    border-radius: 15px;
    padding: 17px;
    font-size: 14px;
    color: #d2dbea;
    ;
}
.privacy-note p {
    margin: 0 0 9px;
    color: white;
    font-size: 14px;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 7px;
    ;
}
.privacy-note .icon {
    color: var(--theme-success, #63e0bb);
    width: 14px;
    height: 14px;
    ;
}
.privacy-note ul {
    margin: 0;
    padding: 0;
    list-style: none;
    ;
}
.privacy-note li {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
    ;
}
.auth-card {
    background: var(--theme-panel, white);
    border: 1px solid var(--theme-border, #e2e9f3);
    border-radius: 23px;
    box-shadow: 0 9px 25px #19335906;
    overflow: hidden;
    ;
}
.auth-tabs {
    display: flex;
    background: var(--theme-panel-soft, #f9fafe);
    border-bottom: 1px solid var(--border);
    ;
}
.auth-tabs a {
    text-decoration: none;
    flex: 1;
    border: 0;
    border-bottom: 2px solid transparent;
    background: var(--theme-panel, white);
    color: var(--muted);
    padding: 18px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 550;
    font-size: 14px;
    ;
}
.auth-tabs a.active {
    border-bottom-color: var(--purple);
    color: var(--purple);
    background: var(--theme-panel, white);
    font-weight: 650;
    ;
}
.auth-tabs a:hover {
    background: var(--theme-panel-soft, #eff3fc);
    ;
}
.auth-tabs a:focus-visible {
    outline-offset: -4px;
    ;
}
.auth-panel {
    width: 100%;
    max-width: 516px;
    margin: auto;
    padding: 35px 28px 30px;
    ;
}
.form-heading {
    text-align: center;
    margin-bottom: 24px;
    ;
}
.section-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    ;
}
.form-heading h1 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -.9px;
    margin: 7px 0 8px;
    font-weight: 750;
    ;
}
.form-heading p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 auto;
    max-width: 370px;
    ;
}
.field {
    margin-bottom: 18px;
    ;
}
.field label {
    display: block;
    color: var(--theme-muted, #364762);
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 6px;
    ;
}
.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    ;
}
.input-wrapper {
    position: relative;
    ;
}
.input-wrapper > .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 13px;
    width: 16px;
    height: 16px;
    color: var(--theme-muted, #879ab4);
    pointer-events: none;
    ;
}
input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--theme-panel-soft, #f8faff);
    color: var(--ink);
    min-height: 44px;
    transition: border-color .15s, box-shadow .15s;
    font-size: 14px;
    ;
}
input::placeholder {
    color: var(--theme-muted, #8192ab);
    ;
}
.input-wrapper input {
    padding-left: 39px;
    ;
}
.password-wrapper input {
    padding-right: 43px;
    ;
}
.password-toggle {
    border: 0;
    background: none;
    position: absolute;
    right: 4px;
    top: 2px;
    width: 40px;
    height: 40px;
    color: var(--theme-muted, #7b8da8);
    border-radius: 6px;
    ;
}
.password-toggle:hover {
    color: var(--purple);
    ;
}
.text-button {
    border: 0;
    background: none;
    color: var(--purple);
    padding: 0;
    font-size: 14px;
    font-weight: 550;
    ;
}
.text-button:hover {
    text-decoration: underline;
    ;
}
.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 11px;
    background: var(--accent-solid, var(--purple));
    color: white;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 6px #234ee81c;
    transition: background .15s, transform .15s;
    ;
}
.primary-button:hover {
    background: #193dd1;
    text-decoration: none;
    ;
}
.primary-button:active {
    transform: translateY(1px);
    ;
}
.primary-button .icon {
    width: 16px;
    height: 16px;
    ;
}
.preview-note {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 0;
    ;
}
.form-status {
    color: var(--theme-muted, #354f8a);
    font-size: 16px;
    line-height: 1.6;
    background: var(--theme-panel-soft, #eff4ff);
    border: 2px solid var(--theme-border, #cbd8f0);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
[hidden] {
    display: none !important;
}
.home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}
.portal-preview .home-actions .primary-button {
    margin-top: 0;
    max-width: 260px;
}
.primary-button:disabled {
    cursor: not-allowed;
    opacity: .75;
}
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
.form-status p {
    margin: 0;
}
.form-status strong {
    display: block;
    margin-bottom: 4px;
}
.form-status--error {
    color: var(--theme-danger, #991b1b);
    background: var(--theme-danger-soft, #fef2f2);
    border-color: var(--theme-border, #dc2626);
}
.form-footer {
    border-top: 1px solid var(--theme-border, #ecf0f6);
    padding-top: 17px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: var(--muted);
    ;
}
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    ;
}
.field-help {
    font-size: 14px;
    color: var(--muted);
    margin: 7px 0 0;
    ;
}
.below-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--theme-muted, #73839c);
    font-size: 14px;
    margin: 20px 0 0;
    ;
}
.below-card .icon {
    width: 14px;
    height: 14px;
    ;
}
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--theme-panel, white);
    ;
}
.footer-content {
    flex-wrap: wrap;
    max-width: 1220px;
    padding: 22px 28px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 14px;
    color: var(--theme-muted, #74849e);
    ;
}
.footer-content p {
    margin: 0;
    ;
}
.footer-content strong {
    color: var(--theme-muted, #384b67);
    ;
}
.portal-preview {
    max-width: 700px;
    padding: 100px 28px;
    margin: auto;
    ;
}
.portal-preview h1 {
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 16px 0 24px;
    ;
}
.portal-preview p {
    color: var(--muted);
    font-size: 17px;
    max-width: 500px;
    ;
}
.portal-preview .primary-button {
    max-width: 200px;
    margin-top: 30px;
    ;
}
@media (max-width: 680px) {
    .auth-page {
        padding: 22px 16px 28px;
        ;
    }
    .privacy-banner {
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        border-radius: 18px;
        margin-bottom: 22px;
        ;
    }
    .privacy-banner h2 {
        font-size: 23px;
        ;
    }
    .privacy-note {
        flex-basis: auto;
        padding: 14px;
        ;
    }
    .auth-card {
        border-radius: 18px;
        ;
    }
    .auth-tabs a {
        font-size: 14px;
        padding: 16px 6px;
        gap: 5px;
        ;
    }
    .optional {
        display: none;
        ;
    }
    .auth-panel {
        padding: 28px 22px;
        ;
    }
    .form-heading h1 {
        font-size: 25px;
        ;
    }
    .footer-content {
        padding: 20px;
        text-align: center;
        flex-direction: column;
        gap: 8px;
        ;
    }
}
@media (max-width: 370px) {
    .name-fields {
        grid-template-columns: 1fr;
        gap: 0;
        ;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        scroll-behavior: auto !important;
        ;
    }
}


.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
}
.footer-links a {
    color: var(--theme-muted, #465b7b);
    padding: 8px 0;
    text-underline-offset: 4px;
}
.legal-page {
    max-width: 820px;
    padding: 64px 28px;
    margin: auto;
    font-size: 16px;
}
.legal-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
}
.legal-page .primary-button {
    max-width: 240px;
    margin-top: 28px;
}
.account-link {
    padding: 8px;
    font-size: 14px;
}
@media (max-width: 680px) {
    .footer-links {
        justify-content: center;
    }
}

.expert-toggle {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    border: 1px solid var(--theme-border, #dce3ef);
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 44px;
    max-width: calc(100vw - 32px);
    background: var(--theme-panel, white);
    box-shadow: 0 6px 24px #14203926;
    color: var(--theme-muted, #344766);
    font-size: 14px;
    font-weight: 650;
}
.expert-toggle[aria-pressed="true"] {
    color: var(--theme-warning, #513a0d);
    border-color: var(--theme-border, #d4ad42);
    background: var(--theme-warning-soft, #fff2c7);
}
@media (max-width: 700px) {
    .expert-toggle {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        font-size: 12px;
    }
}
.expert-toggle:hover { text-decoration: none; border-color: var(--purple); }
.expert-toggle:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
@media print { .expert-toggle { display: none; } }


.expert-dot { width: 8px; height: 8px; border-radius: 50%; background: #91a1bb; }
.expert-toggle[aria-pressed="true"] .expert-dot { background: #e9a51b; }

/* Structured political positions share the ordinary profile layout. */
.political-career { background: var(--theme-panel, white); border: 1px solid var(--theme-border, #dbe4f2); border-radius: 22px; padding: 28px; margin-bottom: 24px; color: var(--theme-ink, #17243f); }
.career-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.political-career h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 6px; line-height: 1.5; }
.political-career h2 svg { color: var(--theme-muted, #285bea); flex-shrink: 0; width: 21px; height: 21px; }
.political-career p { line-height: 1.6; margin: 6px 0 0; color: var(--theme-muted, #52678b); }
.career-heading p { font-size: .95rem; }
.career-timeline { position: relative; list-style: none; padding: 0; margin: 30px 0 0; }
.career-timeline:has(.career-entry)::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 18px; width: 2px; background: var(--theme-panel-soft, #dbe6fb); }
.career-entry { position: relative; display: flex; gap: 16px; align-items: start; padding: 0 0 30px 34px; }
.career-entry:last-child { padding-bottom: 0; }
.career-entry::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; background: var(--theme-panel, white); border: 3px solid var(--theme-border, #285bea); border-radius: 50%; box-sizing: border-box; }
.career-entry-content { flex: 1; min-width: 0; }
.career-entry-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.career-entry h3 { font-size: 1rem; font-weight: 650; line-height: 1.6; margin: 0; }
.career-period { display: inline-block; background: var(--theme-panel-soft, #edf3ff); color: var(--theme-muted, #214bc9); border-radius: 5px; padding: 2px 8px; font-size: .875rem; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.career-entry p { font-size: .95rem; }
.career-empty { color: var(--theme-muted, #52678b); line-height: 1.6; }
.position-edit-control { display: none; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border: 1px solid var(--theme-border, #dbe5f6); background: var(--theme-panel-soft, #f7faff); color: var(--theme-muted, #244bc4); padding: 6px 12px; border-radius: 9px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; }
.position-edit-control svg { width: 16px; height: 16px; }
.position-add { white-space: nowrap; }
.position-add > span { font-size: 1.2rem; line-height: 1; }
[data-profile-editor][data-mode="propose"] .position-edit-control { display: inline-flex; }
.position-edit-control:hover { background: var(--theme-panel-soft, #edf3ff); border-color: var(--theme-border, #9db5ec); }
.position-edit-control:focus-visible { outline: 3px solid #6592f1; outline-offset: 3px; }
.position-dialog { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--theme-border, #dbe4f2); border-radius: 20px; padding: 28px; color: var(--theme-ink, #17243f); box-shadow: 0 24px 80px #14213b33; }
.position-dialog::backdrop { background: #15213b66; }
.position-dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.position-dialog-heading button { background: transparent; border: 0; font-size: 1.6rem; padding: 4px 12px; cursor: pointer; }
.position-dialog label { display: block; font-weight: 600; margin: 16px 0 6px; }
.position-dialog input, .position-dialog select { width: 100%; font: inherit; color: inherit; background: var(--theme-panel-soft, #fafbfe); border: 1px solid var(--theme-border, #bdcce4); border-radius: 9px; padding: 10px 12px; }
.position-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.position-hint { font-size: .9rem; color: var(--theme-muted, #52678b); }
.position-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; justify-content: end; }
.position-dialog-actions button { font: inherit; border: 1px solid var(--theme-border, #dbe4f2); border-radius: 9px; padding: 10px 14px; background: var(--theme-panel, white); cursor: pointer; }
.position-dialog-actions .position-remove { margin-right: auto; color: var(--theme-danger, #a32424); }
.position-dialog-actions .position-confirm { background: #244bec; color: white; border-color: var(--theme-border, #244bec); }
.position-dialog [hidden] { display: none; }
.role-picker { display: grid; gap: 10px; }
.role-picker button { text-align: left; padding: 12px; border: 1px solid var(--theme-border, #dbe4f2); background: var(--theme-panel-soft, #f7faff); color: var(--theme-ink, #17243f); border-radius: 9px; font: inherit; cursor: pointer; }
@media (max-width: 640px) { .political-career { padding: 20px; } .career-heading { flex-direction: column; gap: 8px; } .career-entry { gap: 8px; padding-left: 28px; } .position-edit { padding: 6px 8px; } .position-dialog { padding: 20px; } .position-dialog-actions button { flex: 1; white-space: nowrap; } }
.representation-note { margin: 0; padding: 0 24px 22px; color: var(--theme-muted, #52678b); font-size: .9rem; line-height: 1.6; }

/* Identity candidates are created dynamically inside the source picker. */
.identity-candidate { display: flex; align-items: center; gap: 12px; border: 1px solid var(--theme-border, #dce4ef); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 8px 0; color: var(--theme-ink, #17233d); }
.identity-candidate:hover, .identity-candidate:has(input:checked) { background: var(--theme-panel-soft, #f0f5ff); border-color: var(--theme-border, #7a9df2); }
.identity-candidate input { width: 20px; height: 20px; accent-color: #244bef; flex-shrink: 0; }
.identity-candidate span { display: grid; gap: 4px; font-weight: 400; }
.identity-candidate span span { color: var(--theme-muted, #526382); }

[data-preview-list] > [hidden] { display:none !important; }
.site-toasts { position:fixed; right:24px; bottom:24px; z-index:10000; display:grid; gap:12px; width:min(420px,calc(100vw - 32px)); pointer-events:none; }
.site-toasts[popover] { inset:auto 24px 24px auto; margin:0; padding:0; border:0; overflow:visible; background:transparent; }
.site-toast { display:flex; align-items:start; gap:16px; padding:18px 20px; border:1px solid var(--border); border-left:4px solid var(--purple); border-radius:14px; background:var(--panel,white); color:var(--ink); box-shadow:0 12px 36px #10203b26; pointer-events:auto; }
.site-toast p { margin:0; flex:1; line-height:1.6; font-size:14px; overflow-wrap:anywhere; }
.site-toast button { border:0; padding:0 4px; background:transparent; color:var(--muted); font:inherit; font-size:24px; line-height:1; cursor:pointer; }
.site-toast.error { border-left-color:var(--theme-danger,#b12443); }.site-toast.warning { border-left-color:var(--theme-warning,#91600d); }.site-toast.success { border-left-color:var(--theme-success,#008864); }
.site-toast button:focus-visible { outline:2px solid var(--purple); outline-offset:4px; }
@media(max-width:600px) { .site-toasts,.site-toasts[popover] { right:16px; bottom:16px; max-width:calc(100% - 32px); }.site-toast { padding:16px; } }
@media print { .site-toasts { display:none; } }
@media (prefers-reduced-motion: no-preference) {
    html:has(.voting-guide) { scroll-behavior: smooth; }
}

/* Shared brand for the full header and restricted access pages. */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--ink);
}

.header-brand:hover {
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 37px;
    height: 37px;
}

.header-brand .wordmark {
    font-family: "Saira", "Segoe UI", sans-serif;
    display: block;
    font-size: 21px;
    letter-spacing: normal;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

.header-brand .wordmark span {
    color: var(--purple);
}

.brand-country {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 1.4px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-muted, #566682);
}

/* Shared date field, including dates where only the year or month is known. */
.partial-date { min-width: 0; border: 0; padding: 0; margin: 0; }
.partial-date legend { font-size: .86rem; font-weight: 600; margin-bottom: 7px; }
.partial-date-parts { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--theme-border); border-radius: 9px; background: var(--theme-panel); }
.partial-date-parts:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.partial-date .partial-date-parts input { width: 3ch; min-width: 0; flex: 1; border: 0; outline: 0; box-shadow: none; background: transparent; padding: 10px 0; text-align: center; color: var(--theme-ink); }
.partial-date .partial-date-parts input[data-date-part="year"] { flex: 1.5; }
.partial-date-parts span, .partial-date small { color: var(--theme-muted); }
.partial-date small { font-size: .75rem; }

/* Keep account pages aligned when switching between short and long content. */
html:has(.account-layout) { scrollbar-gutter:stable; }

/* Imported source text retains its paragraphs without rendering source HTML. */
.source-text { white-space:pre-line; overflow-wrap:anywhere; }
