/* servicer-check.css — Mortgage Servicer Complaint Check page.
   Builds on style.css tokens + checker.css (hero, panel, field, sv tiles,
   cta-card are reused). Page-specific pieces only. */

/* The caveat is a prominent block, not a footnote (design constraint a). */
.caveat {
  background: var(--clay); color: var(--clay-ink);
  border: 1px solid rgba(169,67,44,.3); border-radius: 14px;
  padding: 18px 20px; margin-top: 18px;
}
.caveat strong { display: block; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 6px; }
.caveat p { font-size: .92rem; color: var(--clay-ink); }

/* Suggest dropdown */
.sc-suggest { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sc-opt {
  text-align: left; background: #FCFBF8; border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 13px; cursor: pointer; font-family: inherit;
  font-size: .95rem; color: var(--ink); min-height: 44px;
}
.sc-opt:hover, .sc-opt:focus { border-color: var(--slate); background: #fff; outline: none; }
.sc-opt-raw { color: var(--slate); font-weight: 600; }
.sc-hint { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Status / loading / error band */
.sc-status {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px; font-size: .95rem;
}
.sc-status.warn { background: var(--amber); border-color: rgba(143,101,22,.3); color: var(--amber-ink); }
.sc-status a { color: var(--slate); font-weight: 700; }
.sc-spin {
  display: inline-block; width: 13px; height: 13px; margin-right: 6px;
  border: 2px solid var(--line); border-top-color: var(--brass); border-radius: 50%;
  vertical-align: -1px; animation: sc-rot .8s linear infinite;
}
@keyframes sc-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-spin { animation: none; } }

/* Results */
.sc-results { margin-top: 20px; }
.sc-matched {
  background: var(--slate); color: #fff; border-radius: 16px; padding: 24px;
}
.sc-matched-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.sc-matched h2 { font-size: clamp(1.2rem, 4vw, 1.7rem); font-weight: 800; margin-top: 6px; word-break: break-word; }
.sc-matched h2, .sc-matched .sc-window { color: #fff; }
.sc-window { font-size: .84rem; color: #B9C6CD; margin-top: 8px; }

.sc-tiles { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.sc-tiles .sv { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; min-width: 160px; }
.sc-tiles .sv .n { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--slate); }
.sc-tiles .sv .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.sc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 14px; }
.sc-card h3 { font-size: 1.08rem; }
.sc-sub { font-size: .86rem; color: var(--muted); margin: 5px 0 14px; }

/* Bars */
.sc-bars { display: flex; flex-direction: column; gap: 12px; }
.sc-bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; margin-bottom: 4px; }
.sc-bar-key { font-weight: 600; }
.sc-bar-val { color: var(--muted); white-space: nowrap; }
.sc-bar-track { height: 9px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.sc-bar-fill { height: 100%; background: var(--brass); border-radius: 999px; }
.sc-empty { color: var(--muted); font-size: .92rem; }

/* Trend */
.sc-tgrid { display: flex; gap: 16px; align-items: flex-end; height: 150px; padding-top: 6px; }
.sc-tcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.sc-tbar { width: 100%; max-width: 90px; background: var(--slate); border-radius: 7px 7px 0 0; min-height: 4px; }
.sc-tnum { font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-top: 6px; }
.sc-tlab { font-size: .72rem; color: var(--muted); text-align: center; margin-top: 2px; }
.sc-delta { font-size: .88rem; color: var(--muted); margin-top: 14px; text-align: center; }

.sc-narrative .sc-cfpb-btn {
  display: inline-block; margin-top: 12px; background: var(--slate); color: #fff;
  text-decoration: none; font-family: var(--font-head); font-weight: 700;
  font-size: .88rem; border-radius: 999px; padding: 12px 20px;
}
.sc-narrative .sc-cfpb-btn:hover { background: var(--slate-deep); }

.sc-source { font-size: .8rem; color: var(--muted); margin-top: 16px; font-style: italic; }
.sc-source a { color: var(--slate); }

@media (max-width: 560px) {
  .sc-tiles .sv { flex: 1; min-width: 0; }
  .sc-tgrid { gap: 8px; }
}
