/* Steward Tool — public site. Cream paper, navy chrome, ink body. Phone first. */
:root {
  --paper: #F7F4EE;
  --navy: #1B365D;
  --ink: #1A1A1A;
  --gold: #8A6D2B;
  --white: #FFFFFF;
  --line: #D9D2C5;
  --muted: #3A3A3A;
  --radius: 12px;
  --font: Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
  --tap: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; }
body.st {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
  padding-bottom: 76px;
}
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.st-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.st-word {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.st-eyebrow { display: block; font-size: 0.65rem; letter-spacing: 0.14em; opacity: 0.75; font-weight: 600; }
.st-nav { display: none; gap: 18px; }
.st-nav a { color: var(--white); text-decoration: none; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
.st-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.st-wrap { max-width: 40rem; margin: 0 auto; padding: 18px 16px 28px; }
.st-wrap h1 { font-size: 1.55rem; line-height: 1.25; color: var(--navy); margin: 0 0 8px; }
.st-wrap h2 { font-size: 1.2rem; color: var(--navy); margin: 1.4em 0 0.4em; }
.st-wrap p, .st-wrap li { color: var(--ink); }
.lede { font-size: 1.05rem; margin: 0 0 16px; }

label { display: block; font-weight: 700; color: var(--navy); margin: 12px 0 6px; }
select, textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: var(--tap);
}
textarea { min-height: 7.5rem; resize: vertical; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font: 700 1.05rem/1 var(--font);
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.btn:disabled, .btn[disabled] {
  background: #9aa6b4;
  border-color: #9aa6b4;
  color: #f4f4f4;
  cursor: not-allowed;
}
.btn-ghost {
  background: var(--white);
  color: var(--navy);
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-row .btn { width: auto; min-width: 7.5rem; min-height: 48px; flex: 1; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}
.gold-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 6px;
}
.gate { color: var(--navy); font-weight: 700; margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip-q {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--ink);
  font: 600 0.92rem/1.2 var(--font);
  cursor: pointer;
}
.chip-q:disabled { opacity: 0.45; cursor: not-allowed; }

.cite { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cite-meta { font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.cite-quote { margin: 0; color: var(--ink); }
.disclaimer { font-size: 0.92rem; color: var(--ink); margin: 14px 0 0; }

.partner { border-style: dashed; border-color: var(--gold); }
.partner .btn { min-height: 48px; }

.st-footer {
  background: var(--navy);
  color: var(--white);
  padding: 22px 16px 90px;
  font-size: 0.95rem;
}
.st-footer a { color: var(--white); }
.st-footer p { margin: 6px 0; color: var(--white); }
.st-foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0; }

.st-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-top: 2px solid var(--navy);
  z-index: 30;
}
.st-tabbar a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 4px;
  text-align: center;
}
.st-tabbar a[aria-current="page"] { background: var(--navy); color: var(--white); }

.rate { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--white); }
.rate th, .rate td { border: 1px solid var(--line); padding: 10px; text-align: left; color: var(--ink); }
.rate th { background: var(--navy); color: var(--white); }
.ok { font-weight: 700; color: var(--navy); }
.err { color: #7a1f1f; font-weight: 700; }

.book-list { list-style: none; padding: 0; margin: 0; }
.book-list a {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: var(--tap);
}
.book-list strong { color: var(--navy); display: block; }
.article-row {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 720px) {
  body.st { padding-bottom: 0; }
  .st-nav { display: flex; }
  .st-tabbar { display: none; }
  .st-footer { padding-bottom: 28px; }
  .btn { width: auto; min-width: 12rem; }
}
