/* Scout risk-card renderer styles, shared by the PWA (scout_app.html), the
 * /scout hero live check and the indexable /scout/check/<slug> pages.
 * Extracted verbatim from scout_app.html 2026-08-23 (Block 5) - keep this the
 * single source, do not fork per page. No em dashes per project style.
 */
:root {
  --alert:#dc2626;   --alert-bg:#fef2f2;   --alert-ink:#991b1b;
  --caution:#d97706; --caution-bg:#fffaeb;  --caution-ink:#92400e;
  --good:#15803d;    --good-bg:#f0fdf5;     --good-ink:#166534;
  --info:#2563eb;    --info-bg:#eff5ff;     --info-ink:#1e40af;
  --none:#64748b;    --none-bg:#f8fafc;     --none-ink:#475569;
}

.result-addr { font-size:13px; color:var(--muted,#64748b); font-weight:600; margin:0 2px 14px;
               word-break:break-word; display:flex; align-items:center; gap:7px; }
.result-addr svg { width:15px; height:15px; color:var(--amber,#d97706); flex-shrink:0; }

.risk { display:flex; gap:13px; padding:15px 16px; border-radius:16px; background:var(--paper,#fff);
        border:1px solid var(--line,rgba(30,41,59,.10)); box-shadow:var(--shadow-sm,0 1px 2px rgba(16,24,40,.05)); margin-bottom:11px;
        position:relative; overflow:hidden; }
.risk::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--tier); }
.risk-ic { width:38px; height:38px; flex-shrink:0; border-radius:11px; display:flex; align-items:center;
           justify-content:center; background:var(--tier-bg); color:var(--tier); font-size:17px; }
.risk-ic svg { width:20px; height:20px; }
.risk-body { flex:1; min-width:0; }
.risk-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.risk-title { font-size:15.5px; font-weight:700; color:var(--ink,#1e293b); }
.risk-val { font-size:12.5px; font-weight:700; color:var(--tier-ink); background:var(--tier-bg);
            padding:3px 9px; border-radius:999px; white-space:nowrap; flex-shrink:0; }
.risk-desc { font-size:13px; color:var(--muted,#64748b); margin-top:5px; line-height:1.5; }
a.risk-link { text-decoration:none; color:inherit; align-items:center; }
a.risk-link:active { background:#fbfcfd; }
.risk-go { align-self:center; color:var(--faint,#94a3b8); font-size:24px; font-weight:400; flex-shrink:0; margin-left:2px; }

.section-h { font-size:12px; font-weight:700; color:var(--faint,#94a3b8); letter-spacing:.07em;
             text-transform:uppercase; margin:22px 4px 11px; }
.cleared { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.chip { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600;
        color:var(--good-ink); background:var(--good-bg); border:1px solid rgba(21,128,61,.18);
        padding:5px 11px; border-radius:999px; }
.chip svg { width:13px; height:13px; }
.chip.na { color:var(--none-ink); background:var(--none-bg); border-color:var(--line,rgba(30,41,59,.10)); }

.empty { text-align:center; color:var(--muted,#64748b); padding:30px 10px; font-size:14px; }
.spin { margin:34px auto; width:28px; height:28px; border:3px solid var(--line,rgba(30,41,59,.10));
        border-top-color:var(--amber,#d97706); border-radius:50%; animation:scout-spin .8s linear infinite; }
@keyframes scout-spin { to { transform:rotate(360deg); } }

/* Comparison matrix tiers (PWA-only feature, but the tier classes are the
   same vocabulary as the cards above so they live here too). */
.t-alert { color:var(--alert-ink); background:var(--alert-bg); }
.t-caution { color:var(--caution-ink); background:var(--caution-bg); }
.t-good { color:var(--good-ink); background:var(--good-bg); }
.t-info { color:var(--info-ink); background:var(--info-bg); }
.t-none { color:var(--none-ink); background:var(--paper,#fff); }

/* Live address check form - shared by the /scout hero and the "Check another
 * address" form on /scout/check/<slug> pages. Uses the marketing site's own
 * --line/--clay/--sand/--text-lt tokens (site.css), with fallbacks for use
 * inside the PWA shell too. */
.scout-check { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-start; margin-bottom:10px; }
.scout-check-field { position:relative; flex:1 1 240px; min-width:0; }
.scout-check-field input {
  width:100%; padding:13px 15px; font:inherit; font-size:15px;
  border:1.5px solid var(--line,rgba(30,41,59,.10)); border-radius:10px; background:#fff; color:inherit;
}
.scout-check-field input:focus {
  outline:none; border-color:var(--clay,#d97706); box-shadow:0 0 0 3px rgba(217,119,6,0.14);
}
.scout-check-suggest {
  display:block; position:absolute; top:calc(100% + 4px); left:0; right:0;
  z-index:50; background:#fff; border:1px solid var(--line,rgba(30,41,59,.10)); border-radius:10px;
  box-shadow:var(--shadow-md,0 10px 30px rgba(16,24,40,.08)); overflow:hidden;
}
.scout-check-suggest[hidden] { display:none; }
.scout-check-item {
  display:block; width:100%; text-align:left; padding:10px 14px;
  font:inherit; font-size:14px; background:none; border:0; cursor:pointer; color:inherit;
}
.scout-check-item:hover, .scout-check-item:focus { background:var(--sand,#f4efe6); outline:none; }
.scout-check-note { padding:10px 14px; font-size:13px; color:var(--text-lt,#4a5257); }
.scout-check button.btn-primary { flex:0 0 auto; }

.scout-check-result { margin-bottom:18px; }
.scout-check-result[hidden] { display:none; }
.scout-check-cta {
  display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center;
  margin-top:6px; padding-top:14px; border-top:1px solid var(--line,rgba(30,41,59,.10));
}
.scout-check-share { font-size:13.5px; font-weight:600; color:var(--clay,#d97706); text-decoration:underline; }
.scout-check-disclaimer { font-size:12px; color:var(--text-lt,#4a5257); margin-top:12px; line-height:1.5; }

/* Usable down to 360px: stack the field and button instead of overflowing. */
@media (max-width: 400px) {
  .scout-check { flex-direction:column; }
  /* flex-basis runs along the column axis once stacked, so the 240px basis
     above would become a 240px-tall field - reset it. */
  .scout-check-field { flex:0 0 auto; width:100%; }
  .scout-check button.btn-primary { width:100%; }
}
