/* Public site, results and chat components. Loaded after main.css. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 760px; }
.mt { margin-top: 2rem; }
.small { font-size: 0.9rem; }
.big { font-size: 1.6rem; }
.lead-dark { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.price { font-weight: 700; color: var(--teal-700); margin: 0.25rem 0; }
.section { padding-block: 3rem; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.cta { background: var(--white); }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 0.4rem 0.8rem; font: inherit; cursor: pointer; min-height: 40px; }
@media (min-width: 901px) { .nav { gap: 0.6rem; } .nav a:not(.btn) { padding-inline: 0.15rem; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav.open { display: flex; }
}

.breadcrumbs { padding-block: 0.75rem; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--muted); }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11, 37, 69, 0.14); color: inherit; }
.card h2, .card h3 { margin-bottom: 0.3rem; }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1.5px solid currentColor; }
.badge-demo { color: #8a5a00; background: #fff6e0; }
.notice { padding: 0.9rem 1rem; border-left: 4px solid var(--teal); background: #eaf6f6; border-radius: 6px; }

.quick-choices { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.quick-choices a { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; text-decoration: none; font-size: 0.92rem; }
.quick-choices a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.journey { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; counter-reset: j; }
.journey li { counter-increment: j; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 600; }
.journey li::before { content: counter(j) ". "; color: var(--teal-700); }
.steps { padding-left: 1.2rem; display: grid; gap: 0.6rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 1.5rem; }
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.field select, .field textarea, .field input[type="number"], .field input[type="date"], .field input[type="file"] {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink);
  border: 1.5px solid #b8c0cc; border-radius: 8px; background: var(--white); min-height: 44px;
}
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.facts { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.25rem 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0.1rem 0 0; font-weight: 600; }
.checklist { padding-left: 1.2rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--white); }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #eef1f5; font-size: 0.85rem; }

.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
details.faq summary { cursor: pointer; font-weight: 600; }
blockquote { margin: 0 0 0.5rem; font-style: italic; }

.footer-grid { display: grid; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: #cfd8e6; }
.fineprint { font-size: 0.85rem; opacity: 0.85; }

/* Eligibility results and match factors (status is shown as text, never by colour alone) */
.result { margin-top: 1rem; }
.result-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.status-pill { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1.5px solid currentColor; }
.status-eligible, .factor-match { color: #0b6b3a; }
.status-conditional, .factor-partial, .factor-unknown { color: #8a5a00; }
.status-not_eligible, .factor-fail { color: var(--danger); }
.factor-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.35rem; }
.factor-list li { display: flex; gap: 0.5rem; align-items: baseline; }
.factor-tag { flex: none; min-width: 5.2rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.meter { height: 8px; background: #e3e8ee; border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.meter > span { display: block; height: 100%; background: var(--teal); }

/* AI chat panel */
.chat-launcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 0.8rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); min-height: 48px; }
.chat-launcher span { color: #5fd0d2; }
.chat-panel { position: fixed; right: 1rem; bottom: 4.5rem; z-index: 61; width: min(400px, calc(100vw - 2rem)); max-height: min(620px, 78vh); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(11,37,69,0.25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: 0.75rem 1rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; min-width: 40px; min-height: 40px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 180px; background: var(--sand); }
.msg { max-width: 88%; padding: 0.55rem 0.8rem; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-ai { background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.msg-user { background: var(--teal); color: #fff; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem 1rem 0; }
.chat-quick button { background: var(--white); border: 1.5px solid var(--teal); color: var(--teal-700); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; font: inherit; font-size: 0.88rem; min-height: 36px; }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; }
.chat-form input { flex: 1; padding: 0.6rem 0.75rem; border: 1.5px solid #b8c0cc; border-radius: 8px; font: inherit; min-height: 44px; min-width: 0; }
.chat-note { margin: 0; padding: 0 1rem 0.75rem; font-size: 0.75rem; color: var(--muted); }

.staging-banner { background: #fff6e0; color: #6b4300; border-bottom: 1px solid #e5c98a; text-align: center; padding: 0.4rem 1rem; font-size: 0.88rem; font-weight: 600; }
