/* ============================================================
   Hawaiʻi Parentage Router — styles.css
   Palette (deliberately not government-branded):
     --paper   #EEF2F0  cool sea-grey background
     --card    #FFFFFF  content surfaces
     --ink     #16302B  primary text (deep teal-charcoal)
     --ink-60  rgba(22,48,43,.66)  secondary text
     --ocean   #0B5D63  primary action / progress
     --ocean-d #073F44  hover / pressed
     --gold    #A8791F  sparing accent (focus ring, dividers)
     --line    #D9E1DD  hairline borders
     --amber-bg #FBF4E4 / --amber-line #E3C878  caution / flag notices
   Fonts: system stacks only — no network font loading, so the
   page works identically with the browser fully offline.
   ============================================================ */

:root {
  --paper: #EEF2F0;
  --card: #ffffff;
  --ink: #16302B;
  --ink-60: rgba(22, 48, 43, 0.66);
  --ocean: #0B5D63;
  --ocean-d: #073F44;
  --gold: #A8791F;
  --line: #D9E1DD;
  --amber-bg: #FBF4E4;
  --amber-line: #E3C878;
  --radius: 14px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  * { scroll-behavior: smooth; }
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- signature element: a quiet horizon band ---------- */
.skyline {
  height: 10px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #0B5D63 0%,
    #12767D 35%,
    #1C8F8C 65%,
    #0B5D63 100%
  );
}

/* ---------- header ---------- */
.site-header {
  padding: 40px 0 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
}

.beta-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  vertical-align: middle;
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-60);
  max-width: 52ch;
}

/* ---------- notices ---------- */
.notice {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--card);
}

.notice-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean-d);
}

.notice p {
  margin: 0;
  color: var(--ink-60);
  font-size: 0.92rem;
}

.notice-disclaimer {
  border-left: 4px solid var(--ocean);
}

.notice-privacy {
  border-left: 4px solid var(--gold);
}

/* ---------- app shell ---------- */
.app-shell {
  margin: 28px 0 48px;
}

/* progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ocean);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--ink-60);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* question card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(22, 48, 43, 0.04);
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 0 0 8px;
  color: var(--ink);
}

.question-helper {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--ink-60);
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.answer-btn {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.answer-btn:hover {
  border-color: var(--ocean);
  background: #E4EEEC;
}

.answer-btn:active {
  transform: scale(0.99);
}

.answer-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* nav row (back / restart) */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.text-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean-d);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.text-btn:disabled {
  color: var(--ink-60);
  opacity: 0.4;
  cursor: not-allowed;
}

.text-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.text-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- results ---------- */
.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  margin: 0 0 4px;
  color: var(--ocean-d);
}

.result-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  font-weight: 700;
  margin: 0 0 6px;
}

.result-section {
  margin: 20px 0;
}

.result-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-60);
  margin: 0 0 6px;
}

.result-section p, .result-section li {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.98rem;
}

.result-section ul {
  padding-left: 1.2em;
}

.agency-box {
  background: #E4EEEC;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.agency-box a {
  color: var(--ocean-d);
  font-weight: 600;
}

.flag-box {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: 10px;
  padding: 14px 16px;
}

.flag-box h3 {
  color: #8A5A00;
}

.authority-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--paper);
}

.authority-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.authority-item:last-child { border-bottom: none; }

.authority-cite {
  font-weight: 700;
  color: var(--ink);
}

.authority-meta {
  color: var(--ink-60);
  font-size: 0.82rem;
  margin-top: 2px;
}

.verified-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DCEFE0;
  color: #1E5E33;
  margin-left: 6px;
}

/* GUIDANCE pill: visually distinct from VERIFIED so a cautionary,
   non-statutory note is never mistaken for a legal citation. */
.guidance-pill {
  background: #E3E8F2;
  color: #2C3E70;
  margin-left: 0;
  margin-bottom: 8px;
}

/* v0.2: numbered pathway shown on results with more than one stage */
.pathway-list {
  margin: 0;
  padding-left: 1.3em;
}

.pathway-list li {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.98rem;
}

/* v0.2: collapsible, non-determinative note (e.g. deceased/unavailable
   alleged parent). Uses native <details>/<summary> for accessibility. */
.details-note summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: #8A5A00;
}

.details-note summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.details-note p {
  color: var(--ink);
  font-size: 0.92rem;
}

.result-disclaimer {
  font-size: 0.85rem;
  color: var(--ink-60);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
}

.result-actions {
  margin-top: 22px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 26px 0 48px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-60);
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 22px 16px; }
  .site-header { padding: 30px 0 22px; }
}
