/* ==========================================================================
   APP_FOIA — public design system (Variant B: form + guidance rail)
   Applied from the Claude Design exploration in _DEV/Design_06_23_2026-Form.
   ========================================================================== */

:root {
    --fps-navy:      #0d3b66;
    --fps-navy-dark: #0a2e52;
    --fps-ink:       #061E3E;
    --fps-ink-700:   #11172A;
    --fps-text:      #2E364D;
    --fps-muted:     #6B748C;
    --fps-border:    #D6DAE4;
    --fps-line:      #E7EAF1;
    --fps-gold:      #C8A047;
    --fps-gold-dark: #A98432;
    --fps-gold-soft: #FBF6E8;
    --fps-error:     #B3321A;
    --fps-error-bg:  #FBEAE6;
    --fps-bg-soft:   #FAFBFD;
    --fps-green:     #2F7A4F;
    --fps-focus:     #2A6AAE;
}

/* ---- Base ---------------------------------------------------------------- */
.public-body {
    font-family: 'Source Sans 3', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--fps-text);
    background: #F4F6FA;
}
.font-serif { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; }

.fps-shell { max-width: 1000px; }
.fps-narrow { max-width: 760px; margin-inline: auto; }

a { color: var(--fps-navy); }

/* ---- Header / nav -------------------------------------------------------- */
.fps-navbar {
    background: var(--fps-navy);
    padding: 14px 0;
}
.fps-eyebrow {
    font-size: 11px;
    letter-spacing: .13em;
    font-weight: 700;
    color: #9db6d6;
}
.fps-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #cfe0f2;
    text-decoration: none;
}
.fps-nav-link:hover { color: #fff; }
.fps-gold-stripe {
    height: 3px;
    background: linear-gradient(90deg, var(--fps-gold), #E3BF6D);
}
.fps-footer {
    color: var(--fps-muted);
    border-top: 1px solid var(--fps-line);
}

/* ---- Cards / surfaces ---------------------------------------------------- */
.fps-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(11,31,60,.06);
    overflow: hidden;
}

/* ---- Hero ---------------------------------------------------------------- */
.fps-kicker {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #113F76;
}
.fps-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    color: var(--fps-ink);
    letter-spacing: -.01em;
    line-height: 1.15;
    margin: 8px 0 8px;
}
.fps-lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--fps-text);
}

/* ---- Section headers (gold square + heading) ---------------------------- */
.fps-section {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--fps-line);
    padding-bottom: 9px;
    margin: 4px 0 16px;
}
.fps-section .dot {
    width: 9px; height: 9px;
    background: var(--fps-gold);
    border-radius: 2px;
    flex: none;
}
.fps-section h2 {
    font-weight: 700;
    font-size: 16px;
    color: var(--fps-ink-700);
    margin: 0;
}

/* ---- Forms --------------------------------------------------------------- */
.fps-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--fps-text);
    margin-bottom: 6px;
}
.fps-required { color: var(--fps-error); }
.form-hint {
    font-size: 12px;
    color: var(--fps-muted);
}
.public-body .form-control,
.public-body .form-select {
    border: 1px solid var(--fps-border);
    border-radius: 6px;
    font-size: 15px;
    padding: 11px 13px;
    color: var(--fps-ink-700);
}
.public-body textarea.form-control { line-height: 1.55; min-height: 110px; }
.public-body .form-control:focus,
.public-body .form-select:focus {
    border-color: var(--fps-focus);
    box-shadow: 0 0 0 3px rgba(42,106,174,.25);
}
.public-body .form-control::placeholder { color: #959CB0; }

/* invalid state */
.public-body .form-control.is-invalid,
.public-body .form-select.is-invalid {
    border-color: var(--fps-error);
    background-color: #FFFBFA;
    background-image: none;
}
.public-body .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(179,50,26,.20);
}
.fps-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fps-error);
    margin-top: 6px;
}

/* error summary alert */
.fps-alert-error {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--fps-error-bg);
    border: 1px solid #E8C4BC;
    border-left: 4px solid var(--fps-error);
    border-radius: 8px;
    padding: 13px 15px;
    color: #8f2815;
}
.fps-alert-error .title { font-weight: 700; font-size: 14px; }

/* ---- Upload dropzone ----------------------------------------------------- */
.fps-dropzone {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1.5px dashed #C2CADB;
    border-radius: 8px;
    padding: 16px;
    background: var(--fps-bg-soft);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin: 0;
}
.fps-dropzone:hover { border-color: #9db6d6; }
.fps-dropzone:focus-within {
    border-color: var(--fps-focus);
    box-shadow: 0 0 0 3px rgba(42,106,174,.20);
}
.fps-dropzone.dragover { border-color: var(--fps-navy); background: #eef4fb; }
.fps-dropzone.is-invalid { border-color: var(--fps-error); background: #FFFBFA; }
.fps-dropzone svg { flex: none; }
.fps-dropzone-title { font-weight: 600; font-size: 14px; color: #113F76; }
.fps-dropzone-sub { font-size: 12px; color: var(--fps-muted); margin-top: 2px; }
.fps-file-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.fps-file-pill {
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--fps-border);
    border-radius: 999px;
    padding: 2px 10px;
    color: var(--fps-ink-700);
}

/* ---- Primary button ------------------------------------------------------ */
.btn-fps {
    background-color: var(--fps-navy);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 13px 30px;
}
.btn-fps:hover, .btn-fps:focus { background-color: var(--fps-navy-dark); color: #fff; }
.btn-fps:focus-visible { box-shadow: 0 0 0 3px rgba(42,106,174,.4); }

/* ---- Guidance rail ------------------------------------------------------- */
.fps-rail {
    background: var(--fps-bg-soft);
    border-left: 1px solid var(--fps-line);
    padding: 28px 24px;
}
.fps-rail-eyebrow {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--fps-gold-dark);
    margin-bottom: 14px;
}
.fps-steps { display: flex; flex-direction: column; }
.fps-step { display: flex; gap: 12px; }
.fps-step-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.fps-step-num {
    width: 24px; height: 24px;
    border-radius: 999px;
    background: var(--fps-navy);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.fps-step-num.done { background: var(--fps-green); }
.fps-step-line { width: 2px; flex: 1; background: #DCE7F2; margin: 2px 0; }
.fps-step-body { padding-bottom: 16px; }
.fps-step-title { font-weight: 700; font-size: 13.5px; color: var(--fps-ink-700); }
.fps-step-text { font-size: 12.5px; line-height: 1.5; color: #4A5269; }
.fps-rail-card {
    background: #fff;
    border: 1px solid var(--fps-line);
    border-radius: 8px;
    padding: 13px 14px;
    margin-top: 18px;
}

/* tips list (mobile / fallback) */
.fps-tips { color: #4A5269; font-size: 13px; line-height: 1.6; }

/* On small screens the rail moves below and loses its left border */
@media (max-width: 991.98px) {
    .fps-rail { border-left: none; border-top: 1px solid var(--fps-line); }
}

/* ==========================================================================
   Shared: cards, monospace, status pills, and the chat-bubble timeline
   (consumed by public/track.php and the admin request detail)
   ========================================================================== */

.card-form {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
}
.required-star { color: var(--fps-error); }
.mono { font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; }

/* ---- Status pills (color is always paired with a label) ----------------- */
.spill {
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; padding: 3px 10px;
    font-weight: 700; font-size: 11.5px; line-height: 1.4;
    border: 1px solid transparent; white-space: nowrap;
}
.spill .spill-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.spill--lg { padding: 7px 14px 7px 12px; font-size: 13px; }
.spill--lg .spill-dot { width: 9px; height: 9px; }
.spill--received { background:#EEF1F6; border-color:#DDE1EA; color:#4A5269; }
.spill--received .spill-dot { background:#6B748C; }
.spill--under-review { background:#DCE7F2; border-color:#C2D6EA; color:#113F76; }
.spill--under-review .spill-dot { background:#2A6AAE; }
.spill--awaiting-fee { background:#FBF0D8; border-color:#EAD9A8; color:#8A6410; }
.spill--awaiting-fee .spill-dot { background:#C8A047; }
.spill--in-redaction { background:#ECE7F6; border-color:#D8CEEC; color:#5A3E9B; }
.spill--in-redaction .spill-dot { background:#7A5AC9; }
.spill--released { background:#DEEDE3; border-color:#C5DECF; color:#1E5E3A; }
.spill--released .spill-dot { background:#2F7A4F; }
.spill--partially-released { background:#E6EFD7; border-color:#CFE0B9; color:#4B6B22; }
.spill--partially-released .spill-dot { background:#6B9B36; }
.spill--denied { background:#FBEAE6; border-color:#E8C4BC; color:#8F2815; }
.spill--denied .spill-dot { background:#B3321A; }
.spill--closed { background:#E5E7EC; border-color:#D2D6DF; color:#2E364D; }
.spill--closed .spill-dot { background:#4A5269; }

/* ---- Timeline (chat bubbles + system pills + internal notes) ------------ */
.tl-daysep { display:flex; align-items:center; gap:14px; margin:4px 0 18px; }
.tl-daysep::before, .tl-daysep::after { content:""; flex:1; height:1px; background:var(--fps-line); }
.tl-daysep span { font-weight:700; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#959CB0; white-space:nowrap; }

.tl-legend { display:flex; gap:20px; flex-wrap:wrap; align-items:center; background:var(--fps-bg-soft); border:1px solid var(--fps-line); border-radius:8px; padding:11px 16px; margin-bottom:20px; }
.tl-legend .lg { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:12.5px; color:var(--fps-text); }
.tl-legend .lg-dot { width:16px; height:16px; border-radius:999px; flex:none; }
.tl-legend .lg-dot.staff { background:var(--fps-navy); }
.tl-legend .lg-dot.requester { background:var(--fps-green); }
.tl-legend .lg-dot.system { background:#EEF1F6; border:1px solid var(--fps-border); }
.tl-legend .lg-sq { width:16px; height:16px; border-radius:4px; background:#FCF6E6; border:1.5px dashed #E0C778; flex:none; }

.tl-system { display:flex; justify-content:center; margin-bottom:18px; }
.tl-system-inner { display:inline-flex; align-items:center; gap:10px; background:#F3F5F9; border:1px solid var(--fps-line); border-radius:999px; padding:8px 16px; max-width:92%; flex-wrap:wrap; justify-content:center; font-size:13px; color:#4A5269; }
.tl-system-inner b { color:#2E364D; }
.tl-sys-time { font-size:12px; color:#959CB0; white-space:nowrap; }

.tl-msg { display:flex; gap:11px; margin-bottom:16px; }
.tl-msg.right { justify-content:flex-end; }
.tl-msg.left { justify-content:flex-start; }
.tl-avatar { width:34px; height:34px; border-radius:999px; display:flex; align-items:center; justify-content:center; flex:none; font-weight:700; font-size:11.5px; color:#fff; box-shadow:0 1px 2px rgba(11,31,60,.18); }
.tl-avatar.staff { background:var(--fps-navy); }
.tl-avatar.requester { background:var(--fps-green); }
.tl-cbody { max-width:76%; min-width:0; }
.tl-meta { display:flex; align-items:baseline; gap:8px; margin-bottom:5px; }
.tl-msg.right .tl-meta { justify-content:flex-end; }
.tl-name { font-weight:700; font-size:13.5px; color:var(--fps-ink-700); }
.tl-sub { font-size:11.5px; color:var(--fps-muted); }
.tl-time { font-size:12px; color:#959CB0; }
.tl-bubble { padding:11px 14px; font-size:14px; line-height:1.55; color:var(--fps-text); white-space:pre-wrap; word-wrap:break-word; }
.tl-bubble.staff { background:#EEF3F9; border:1px solid #DCE7F2; border-radius:4px 14px 14px 14px; }
.tl-msg.right .tl-bubble.staff { border-radius:14px 4px 14px 14px; }
.tl-bubble.requester { background:#E9F3EC; border:1px solid #CFE6D7; border-radius:4px 14px 14px 14px; }
.tl-msg.right .tl-bubble.requester { border-radius:14px 4px 14px 14px; }
.tl-emailed { display:flex; align-items:center; gap:5px; margin-top:5px; font-size:11.5px; font-weight:600; color:var(--fps-green); }
.tl-msg.right .tl-emailed { justify-content:flex-end; }
.tl-emailed.no { color:#959CB0; }

.tl-internal { border:1.5px dashed #E0C778; background:#FCF6E6; border-radius:10px; padding:13px 16px; margin-bottom:18px; }
.tl-internal-head { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:7px; }
.tl-internal-badge { display:inline-flex; align-items:center; gap:6px; background:#F3E6C2; border-radius:999px; padding:3px 9px; font-weight:700; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:#7A5F1E; }
.tl-internal-name { font-weight:700; font-size:13px; color:#5a4a26; }
.tl-internal-time { font-size:12px; color:#A98432; }
.tl-internal-flag { font-size:11.5px; color:#A98432; margin-left:auto; }
.tl-internal-body { font-size:14px; line-height:1.55; color:#5a4a26; white-space:pre-wrap; }

.tl-files { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.file-card { display:inline-flex; align-items:center; gap:10px; border:1px solid #DCE7F2; border-radius:8px; padding:10px 13px; text-decoration:none; background:#fff; max-width:340px; }
.file-card:hover { background:var(--fps-bg-soft); }
.file-card .fc-icon { width:30px; height:30px; border-radius:6px; background:#FBF0D8; display:flex; align-items:center; justify-content:center; flex:none; }
.file-card .fc-name { display:block; font-weight:600; font-size:13.5px; color:#113F76; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-card .fc-meta { font-size:12px; color:var(--fps-muted); }

/* ==========================================================================
   Public screens — confirmation, tracking, help, closed
   ========================================================================== */
.conf-check { width:60px; height:60px; border-radius:999px; background:#DEEDE3; display:flex; align-items:center; justify-content:center; margin:0 auto; }
.conf-icon-circle { width:54px; height:54px; border-radius:999px; display:flex; align-items:center; justify-content:center; }
.conf-ref { border:1px solid var(--fps-line); border-radius:10px; padding:18px; margin:24px 0 16px; background:var(--fps-bg-soft); }
.conf-ref-num { font-weight:600; font-size:26px; color:var(--fps-navy); letter-spacing:.04em; }
.conf-link { text-align:left; border:1px solid #DCE7F2; border-left:4px solid var(--fps-gold); border-radius:10px; padding:16px 18px; background:#FBF6E8; }
.conf-copy { display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:13px; color:var(--fps-navy); background:#fff; border:1px solid #E3D3A2; border-radius:6px; padding:0 13px; cursor:pointer; white-space:nowrap; }
.conf-copy.copied { color:var(--fps-green); border-color:#C5DECF; }

.track-summary { border:1px solid var(--fps-line); border-radius:10px; padding:20px 22px; margin:18px 0 26px; }
.track-compose { border:1px solid var(--fps-line); border-radius:10px; padding:20px 22px; margin-top:28px; background:var(--fps-bg-soft); }

/* shared attach label (public tracking compose + admin composer base) */
.attach-label { display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color:#113F76; cursor:pointer; }
.attach-label input { display:none; }
.attach-names { font-weight:400; font-size:12px; color:var(--fps-muted); }

/* admin-card label reused on public tracking summary */
.adm-card-label { font-weight:700; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--fps-muted); }
.sb-divider { height:1px; background:#EEF1F6; }

/* ==========================================================================
   Admin staff sign-in (A0)
   ========================================================================== */
.login-page { min-height:100vh; background:#EEF3F9; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 16px; }
.login-brand { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.login-brand-name { font-weight:700; font-size:19px; color:var(--fps-ink); line-height:1.05; }
.login-brand-sub { font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:#113F76; font-weight:700; margin-top:3px; }
.login-card { width:100%; max-width:404px; background:#fff; border:1px solid #DCE7F2; border-radius:12px; box-shadow:0 8px 24px rgba(11,31,60,.10); padding:28px 30px 26px; }
.login-head { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.login-lock { width:34px; height:34px; border-radius:8px; background:var(--fps-navy); display:flex; align-items:center; justify-content:center; flex:none; }
.login-title { font-weight:700; font-size:17px; color:var(--fps-ink-700); line-height:1.1; }
.login-sub { font-size:12.5px; color:var(--fps-muted); }
.login-note { display:flex; gap:9px; align-items:flex-start; background:#EEF3F9; border:1px solid #DCE7F2; border-radius:8px; padding:11px 12px; margin:0 0 18px; font-size:12.5px; line-height:1.5; color:var(--fps-text); }
.login-note b { color:#113F76; }
.login-note code { font-family:ui-monospace,'SF Mono',monospace; font-size:12px; background:#fff; border:1px solid #DCE7F2; border-radius:4px; padding:1px 5px; }
.login-field { margin-bottom:15px; }
.input-icon { position:relative; }
.input-icon > svg.lead { position:absolute; left:12px; top:50%; transform:translateY(-50%); }
.input-icon .form-control { padding-left:36px; }
.input-icon .has-eye { padding-right:40px; }
.login-eye { position:absolute; right:10px; top:50%; transform:translateY(-50%); cursor:pointer; background:none; border:none; padding:4px; color:#6B748C; display:inline-flex; }
.login-back { display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:#113F76; text-decoration:none; margin-top:20px; }
.login-foot { font-size:11.5px; color:#959CB0; margin-top:20px; text-align:center; }

/* ---- Radio "choice" cards (request type) + disclosures ------------------ */
.fps-choice-group { display:flex; flex-direction:column; gap:8px; }
.fps-choice {
    display:flex; align-items:center; gap:10px; border:1px solid var(--fps-border);
    border-radius:8px; padding:11px 14px; cursor:pointer; margin:0; transition:border-color .12s, background .12s;
}
.fps-choice:hover { border-color:#9db6d6; }
.fps-choice input { accent-color: var(--fps-navy); width:17px; height:17px; flex:none; }
.fps-choice span { font-size:14.5px; color:var(--fps-ink-700); }
.fps-choice:has(input:checked) { border-color: var(--fps-focus); background:#F4F8FD; box-shadow:0 0 0 2px rgba(42,106,174,.12); }
fieldset legend.fps-label { float:none; width:auto; font-size:13px; padding:0; margin-bottom:8px; }

.fps-disclosures { background:var(--fps-bg-soft); border:1px solid var(--fps-line); border-radius:10px; padding:18px 20px; }
.fps-disclosures h2 { color:var(--fps-ink-700); }
.fps-disclosures ol { color:#4A5269; line-height:1.6; padding-left:20px; }
.fps-disclosures li { margin-bottom:6px; }
.fps-disclosures a { font-weight:600; }
