/* Original Houston IT care language: ink, paper, signal green, warm clay. */
:root {
  color-scheme: light;
  --ink: #152b2d;
  --muted: #526769;
  --paper: #f6f3eb;
  --surface: #fffdf8;
  --line: #ced8d4;
  --green: #0d705f;
  --green-dark: #084d43;
  --mint: #dceee7;
  --amber: #a85e13;
  --amber-soft: #fae8cd;
  --clay: #8f3c2f;
  --clay-soft: #f5dfd8;
  --focus: #b96500;
  --shadow: 0 18px 50px rgba(21, 43, 45, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; overflow-wrap: anywhere; }
body::before { content: ""; display: block; height: 7px; background: var(--green); }
a { color: var(--green-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 20; top: .7rem; left: .7rem; padding: .7rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

main, footer { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
main { padding: clamp(3rem, 7vw, 6.5rem) 0 4rem; }
main > * { min-width: 0; }
.eyebrow, .kicker, .label { margin: 0 0 .45rem; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); }
h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 7vw, 5.7rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h3 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.3; }
p { margin-top: 0; }
.disclosure { max-width: 780px; margin: 2rem 0 2.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--green); background: var(--mint); }

.doors { display: none; }
.enhanced .doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; position: sticky; z-index: 10; top: .5rem; margin: 2.5rem 0 3rem; padding: .55rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 253, 248, .96); box-shadow: var(--shadow); }
.doors button { min-width: 0; min-height: 52px; padding: .7rem .8rem; border: 0; border-radius: .65rem; color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.doors button[aria-selected="true"] { color: white; background: var(--green-dark); }

[role="tabpanel"] { min-width: 0; margin: 3rem 0 5rem; }
[role="tabpanel"][hidden] { display: none; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.synthetic-tag, .decision-status, .verified-mark { display: inline-flex; align-items: center; min-height: 32px; flex: 0 0 auto; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.synthetic-tag { border: 1px solid var(--line); background: var(--surface); color: var(--muted); }

.mission, .decision-card, .receipt, .boundary-card, .guardian-card { min-width: 0; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--surface); box-shadow: var(--shadow); }
.mission { overflow: hidden; }
.mission-summary { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: clamp(1.2rem, 4vw, 2rem); border-bottom: 1px solid var(--line); }
.mission-summary p { margin-bottom: 0; color: var(--muted); }
.helper { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.helper > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--green-dark); color: white; font-weight: 800; }
.helper small { color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; min-width: 0; padding: 2.2rem 1rem 1.3rem; border-right: 1px solid var(--line); color: var(--muted); }
.timeline li:last-child { border-right: 0; }
.timeline li::before { content: ""; position: absolute; top: .95rem; left: 1rem; width: .72rem; height: .72rem; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.timeline li.done::before { border-color: var(--green); background: var(--green); }
.timeline li.current { color: var(--ink); background: var(--amber-soft); }
.timeline li.current::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(168, 94, 19, .15); }
.timeline strong, .timeline span { display: block; }
.timeline strong { font-size: .86rem; }
.timeline span { margin-top: .35rem; font-size: .78rem; line-height: 1.4; }

.decision-card { margin-top: 1.25rem; padding: clamp(1.2rem, 4vw, 2rem); border-top: 6px solid var(--amber); }
.decision-intro, .receipt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.decision-status { background: var(--amber-soft); color: #743b07; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 1.5rem 0 0; background: var(--line); border: 1px solid var(--line); }
.details-grid > div { min-width: 0; padding: 1rem; background: var(--surface); }
dt { font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
dd { margin: .35rem 0 0; }
.boundary-note { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; }

.guardian-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guardian-card { position: relative; padding: 1.4rem; box-shadow: none; }
.guardian-card .state-dot { display: block; width: .72rem; height: .72rem; margin-bottom: .9rem; border-radius: 50%; background: currentColor; }
.guardian-card.healthy { color: var(--green-dark); border-top: 6px solid var(--green); }
.guardian-card.attention { color: #7b490b; border-top: 6px solid var(--amber); }
.guardian-card.decision { color: #752c22; border-top: 6px solid var(--clay); }
.guardian-card h3, .guardian-card p:not(.label) { color: var(--ink); }
.guardian-card .next-step { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; }
.promise { margin-top: 1rem; padding: 1.1rem 1.3rem; border: 1px dashed var(--green); border-radius: .8rem; color: var(--muted); background: var(--mint); }

.receipt { overflow: hidden; }
.receipt-top { padding: clamp(1.2rem, 4vw, 2rem); color: white; background: var(--green-dark); }
.receipt-top .label { color: #bde5d8; }
.verified-mark { color: var(--green-dark); background: #d4f1e6; }
.receipt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.receipt-list > div { min-width: 0; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.boundary-card { margin-top: 1rem; padding: 1.4rem; border-left: 6px solid var(--green); box-shadow: none; }
.boundary-card h3 span { display: inline-grid; width: 2rem; height: 2rem; margin-right: .4rem; place-items: center; border-radius: 50%; color: white; background: var(--green); }
details { margin-top: 1rem; }
summary { min-height: 44px; cursor: pointer; font-weight: 750; }

.closing { margin: 6rem 0 1rem; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1.25rem; color: white; background: var(--ink); }
.closing .kicker { color: #a9dacf; }
.closing p { max-width: 650px; }
.cta { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1rem; border-radius: .55rem; color: var(--green-dark); background: white; font-weight: 800; text-decoration: none; }
footer { padding: 1.5rem 0 3rem; color: var(--muted); font-size: .85rem; }

@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 1rem 1rem 1rem 3rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline li::before { top: 1.3rem; }
  .guardian-grid { grid-template-columns: 1fr; }
  .mission-summary, .details-grid, .receipt-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main, footer { width: min(100% - 1rem, 1120px); }
  main { padding-top: 2.5rem; }
  .enhanced .doors { position: static; grid-template-columns: 1fr; }
  .doors button { min-height: 44px; }
  .panel-heading, .decision-intro, .receipt-top { align-items: flex-start; flex-direction: column; }
  [role="tabpanel"] { margin-bottom: 3.5rem; }
  .mission-summary, .decision-card, .guardian-card, .boundary-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
