/* Citation payment portal.
   Matches the mo-stjo reporting portal's design language so the two services
   read as one system: white header under a brand rule, neutral cards on a
   light ground, dark TBL footer. Department colours (--brand, --brand-dark,
   --accent) are served separately by /brand.css from config. */
:root {
  --ink:#1b2430; --muted:#5c6773; --line:#dde3ea; --bg:#f6f8fa;
  --err:#a4262c; --ok:#0f6b3f;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.wrap { max-width:840px; margin:0 auto; padding:0 20px; }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:8px; top:8px; background:#fff; padding:8px; z-index:100; }

header.site { background:#fff; border-bottom:3px solid var(--brand); }
header.site .wrap { display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px; padding-top:14px; padding-bottom:14px; }
.brand { display:flex; align-items:center; gap:14px; }
a.brand { text-decoration:none; color:inherit; }
a.brand:hover .agency { text-decoration:underline; }
a.brand:focus { outline:3px solid #9dbde0; outline-offset:3px; border-radius:4px; }
.logo { height:56px; width:auto; display:block; }
.agency { font-weight:700; color:var(--brand-dark); font-size:17px; }
.service { color:var(--muted); font-size:15px; font-weight:600; }

.notice-bar { background:#fff4e5; border-top:1px solid #f0d6ab;
  border-bottom:1px solid #f0d6ab; padding:12px 20px; text-align:center;
  font-size:15px; }

main { padding:32px 20px 56px; }
h1 { color:var(--brand-dark); margin:0 0 12px; line-height:1.25; }
h2 { color:var(--brand); font-size:19px; margin:0 0 8px; }
p { margin:12px 0; }
.lead { color:var(--muted); font-size:17px; margin:0 0 24px; }
.hint { color:var(--muted); font-size:14px; margin:6px 0 0; }
.fine { color:#a9bcd1; font-size:13px; }
.opt { color:var(--muted); font-weight:400; }
.err { color:var(--err); font-size:14px; margin:6px 0 0; }
a { color:var(--brand); }

.card { background:#fff; border:1px solid var(--line); border-radius:8px;
  padding:20px 22px; margin:22px 0; }

form { background:#fff; border:1px solid var(--line); border-radius:8px;
  padding:8px 24px 24px; }
fieldset { border:0; border-top:1px solid var(--line); margin:24px 0 0; padding:20px 0 0; }
fieldset:first-of-type { border-top:0; }
legend { font-weight:700; color:var(--brand-dark); padding:0 8px 0 0; }
label { display:block; margin:16px 0 6px; font-weight:600; font-size:15px; }
input[type=text],input[type=email],input:not([type]) { width:100%; padding:11px 12px;
  border:1px solid #c3ccd6; border-radius:5px; font:inherit; background:#fff; }
input:focus { outline:3px solid #9dbde0; border-color:var(--brand); }
.or { text-align:center; color:var(--muted); margin:18px 0 0; }

.radio { display:flex; align-items:center; gap:10px; font-weight:400;
  padding:11px 2px; border-bottom:1px solid var(--line); margin:0; }
.radio:last-child { border-bottom:0; }
.radio input { width:auto; }

.btn { display:inline-block; background:var(--brand); color:#fff; border:0;
  padding:13px 26px; border-radius:5px; font-size:16px; font-weight:600;
  cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--brand-dark); }
.btn:focus { outline:3px solid #9dbde0; outline-offset:2px; }

table.amounts { width:100%; border-collapse:collapse; background:#fff;
  border:1px solid var(--line); border-radius:8px; padding:8px 22px;
  margin:22px 0; display:block; }
table.amounts tbody { display:table; width:100%; }
.amounts th, .amounts td { text-align:left; padding:9px 0; font-weight:400;
  color:var(--muted); font-size:15px; }
.amounts td { text-align:right; font-variant-numeric:tabular-nums;
  color:var(--ink); }
.amounts tr.total th, .amounts tr.total td { border-top:2px solid var(--line);
  font-weight:700; font-size:19px; color:var(--brand-dark); padding-top:12px; }

dl.detail { background:#fff; border:1px solid var(--line); border-radius:8px;
  padding:20px 22px; margin:22px 0; }
dl.detail dt { font-size:14px; color:var(--muted); margin-top:14px; }
dl.detail dt:first-child { margin-top:0; }
dl.detail dd { margin:3px 0 0; font-weight:600; }

.notice { background:#fff; border-left:4px solid var(--accent);
  border-radius:0 6px 6px 0; padding:18px 22px; margin:26px 0; }
.notice.info { border-left-color:var(--brand); }
.notice.good { border-left-color:var(--ok); }
.notice h1, .notice h2 { margin-top:0; }
.errors { background:#fdecea; border:1px solid #f3c2c2; color:var(--err);
  border-radius:6px; padding:14px 18px; margin:20px 0; }
.success { background:#fff; border:1px solid var(--line);
  border-top:4px solid var(--ok); border-radius:8px; padding:28px; margin:22px 0; }
.success h1 { margin-bottom:12px; }

.reference { background:var(--bg); border:1px solid var(--line);
  border-radius:6px; padding:16px 20px; margin:22px 0; }
.reference .ref { font-family:ui-monospace,Menlo,monospace; font-size:17px;
  word-break:break-all; margin:6px 0; color:var(--brand-dark); font-weight:700; }
.backlink { margin-top:22px; }
.backlink a { font-size:15px; text-decoration:none; }
.backlink a:hover { text-decoration:underline; }

footer.site { background:var(--brand-dark); color:#dbe4ef; padding:26px 0;
  font-size:14px; margin-top:40px; }
footer.site p { margin:5px 0; }
footer.site a { color:#cfe0f2; }
.agency-line { font-weight:600; color:#fff; }
.powered { display:flex; align-items:center; gap:9px; margin-top:14px !important; }
.powered span { color:#a9bcd1; font-size:13px; }
/* The shield is navy-and-red, so it needs a light chip to read against the
   dark footer -- inverting it the way we do the wordmark would destroy it. */
.tbl-shield { height:26px; width:auto; background:#fff; border-radius:5px;
  padding:4px 5px; box-sizing:content-box; }
.tbl-mark { height:17px; width:auto; filter:brightness(0) invert(1); opacity:.92; }
.tbl-link { display:flex; align-items:center; gap:9px; text-decoration:none; }
.tbl-link:hover .tbl-mark { opacity:1; }
.tbl-link:hover span { text-decoration:underline; }
.tbl-link:focus { outline:2px solid #9dbde0; outline-offset:3px; border-radius:3px; }

#idle-warn { position:fixed; left:50%; transform:translateX(-50%); bottom:20px;
  z-index:200; background:#fff4e5; border:1px solid #e0b978; border-radius:8px;
  padding:14px 20px; font-size:15px; max-width:92%;
  box-shadow:0 4px 18px rgba(0,0,0,.18); }
[hidden] { display:none !important; }

@media (max-width:520px) {
  .logo { height:44px; }
  header.site .wrap { gap:8px; }
  .amounts tr.total th, .amounts tr.total td { font-size:17px; }
}
