:root {
    color-scheme: light;
}

body.correction-page,
body.correction-thanks-page {
    margin: 0;
    background: #f4f8f6;
    color: #17372d;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.45;
}

body.correction-page *,
body.correction-thanks-page * {
    box-sizing: border-box;
}

body.correction-page input:not([type="hidden"]),
body.correction-page select,
body.correction-page textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #bfd1c9;
    border-radius: 10px;
    background: #ffffff;
    color: #17372d;
    font: inherit;
    box-shadow: none;
}

body.correction-page textarea {
    min-height: 170px;
    resize: vertical;
}

body.correction-page input:not([type="hidden"])::placeholder,
body.correction-page textarea::placeholder {
    color: #82928c;
}

body.correction-page input:not([type="hidden"]):focus,
body.correction-page select:focus,
body.correction-page textarea:focus {
    outline: 3px solid rgba(49, 95, 80, 0.14);
    outline-offset: 1px;
    border-color: #5e8b7c;
}

body.correction-page label {
    display: block;
    margin-bottom: 7px;
    color: #5f716b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.correction-page button,
body.correction-page input[type="submit"] {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #315f50;
    border-radius: 10px;
    background: #315f50;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

body.correction-page button:hover,
body.correction-page input[type="submit"]:hover {
    background: #264d40;
}

body.correction-page a,
body.correction-thanks-page a {
    color: #1f6a55;
    text-underline-offset: 3px;
}

body.correction-page form p {
    margin-top: 0;
}

body.correction-page .errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #8f3f3f;
    font-size: 13px;
    font-weight: 700;
}

body.correction-page .helptext {
    display: block;
    margin-top: 6px;
    color: #71827c;
    font-size: 12px;
}

body.correction-page .card,
body.correction-thanks-page .card {
    border-color: #d8e3de;
    box-shadow: 0 16px 36px rgba(23, 55, 45, 0.07);
}

body.correction-page .form-actions,
body.correction-page .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 720px) {
    body.correction-page input:not([type="hidden"]),
    body.correction-page select,
    body.correction-page textarea {
        font-size: 16px;
    }
}

body.correction-page .suggestion-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Compact, consistently spaced public suggestion form. */
body.correction-page .page-shell { max-width: 820px; }
body.correction-page .relationship-grid { gap: 18px; align-items: start; }
body.correction-page .relationship { padding: 0; background: transparent; border: 0; min-width: 0; }
body.correction-page .suggestion-field { margin-top: 22px; }
body.correction-page .suggestion-guidance { margin: 12px 0 22px; color: #5f716b; font-size: 14px; }
body.correction-page .suggestion-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
body.correction-page .suggestion-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #bfd1c9; border-radius: 10px; text-decoration: none; }
body.correction-page label { text-transform: none; letter-spacing: normal; font-size: 14px; }
@media (max-width: 720px) {
    body.correction-page .relationship-grid { grid-template-columns: minmax(0, 1fr); }
}

/* V1 review pass - 2026-10-13: clearer errors and contact hint. */
body.correction-page .suggestion-error {
    border: 1px solid #e3b9b4;
    background: #fff6f4;
    color: #7c2d24;
    font-weight: 600;
}
body.correction-page .suggestion-error p { margin: 0; }
body.correction-page #contact-guidance { margin: 8px 0 22px; font-size: 13px; }


/* Public suggestion person picker: names first, P numbers always visible. */
body.correction-page .public-suggestion-person-picker { position: relative; }
body.correction-page .public-person-search-help { margin: 4px 0 10px; }
body.correction-page .public-person-search-results {
    position: relative;
    max-height: 260px;
    margin-top: 5px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #bfd1c9;
    border-radius: 10px;
    box-shadow: 0 9px 18px rgba(23, 55, 45, .09);
}
body.correction-page .public-person-search-results[hidden] { display: none; }
body.correction-page button.public-person-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e5eeea;
    padding: 10px 12px;
    background: #fff;
    color: #17372d;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    gap: 12px;
}
body.correction-page button.public-person-search-result:hover,
body.correction-page button.public-person-search-result:focus-visible {
    background: #e9f2ef;
    color: #17372d;
}
body.correction-page .public-person-search-number { white-space: nowrap; color: #536e64; font-weight: 800; }
body.correction-page .public-person-search-note { padding: 10px 12px; color: #536e64; font-size: 14px; }
body.correction-page .public-person-search-selection { margin: 8px 0 0; font-size: 13px; font-weight: 650; color: #315f50; }

/* JOGWAD-UI-20261014: The autocomplete is a floating dropdown,
   NOT an in-flow block that pushes the form/textarea down. */
body.correction-page .relationship-grid { overflow: visible; }
body.correction-page .public-suggestion-person-picker {
    position: relative;
    z-index: 10;
}
body.correction-page .public-suggestion-person-picker[hidden] { display: none !important; }
body.correction-page .public-suggestion-person-picker .public-person-search-results {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    max-height: min(260px, 44vh);
    overflow-y: auto;
}
body.correction-page .public-suggestion-person-picker .public-person-search-results[hidden] { display: none !important; }
body.correction-page .public-person-search-result > span:first-child,
body.correction-page .public-person-search-selection {
    text-transform: uppercase;
}
