:root {
  --ink: #1c2430;
  --muted: #5e6872;
  --paper: #f4f1ea;
  --sheet: #fffcf7;
  --line: #e2d9cc;
  --green: #0f5c4c;
  --green-dark: #0b3d34;
  --gold: #a68446;
  --warn: #8a3d32;
  --shadow: 0 16px 40px rgba(28, 36, 48, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(166, 132, 70, 0.08), transparent 32%),
    var(--paper);
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.75;
}

a { color: var(--green-dark); }

.wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  background: var(--green-dark);
  color: #f7f3ea;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 243, 234, 0.35);
  border-radius: 8px;
  font-weight: 700;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; }
.brand-text small { color: rgba(247, 243, 234, 0.72); font-size: 13px; }

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

.nav a, .nav button {
  color: #f7f3ea;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 12px;
}

.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, 0.08); }

.nav-solid {
  background: #f7f3ea !important;
  color: var(--green-dark) !important;
}

.notice {
  background: #f7f1e4;
  color: #5c4a2d;
  border-bottom: 1px solid var(--line);
}

.notice p { margin: 8px 0; font-size: 14px; }

main { padding: 42px 0 72px; }

h1 { font-size: 40px; line-height: 1.35; margin: 0 0 12px; letter-spacing: 0; }
h2 { font-size: 22px; margin: 0 0 12px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.lead { font-size: 18px; color: var(--muted); margin-top: 0; max-width: 68ch; }

.hero { max-width: 760px; padding-bottom: 8px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card, .sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card { padding: 22px; }
.card p, .audience p { color: var(--muted); }

.sheet { padding: 28px; margin-top: 20px; }
.sheet.narrow, .page-head.narrow { max-width: 560px; }

.page-head { margin-bottom: 8px; }

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend { font-weight: 700; margin-bottom: 8px; }

label { display: block; font-weight: 700; margin: 16px 0 6px; }

input, textarea, select {
  width: 100%;
  border: 1px solid #cfc4b2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(15, 92, 76, 0.25);
  border-color: var(--green);
}

textarea { min-height: 180px; resize: vertical; }

.mic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

button.mic {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--green);
  border-radius: 999px;
  font: inherit;
  padding: 8px 14px;
  cursor: pointer;
}

button.mic.live {
  background: var(--warn);
  color: white;
  border-color: var(--warn);
}

.mic-status { margin: 0; color: var(--muted); }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.paths { flex-direction: column; }

.choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

input[type="radio"] { width: auto; }

button.primary, a.primary, a.ghost {
  display: inline-block;
  margin-top: 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
}

button.primary, a.primary {
  background: var(--green);
  color: white;
  border: 0;
}

a.ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.flash {
  background: #fff4d6;
  border: 1px solid #e3d3a1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.list { list-style: none; padding: 0; margin: 0; }

.list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.list li:first-child { border-top: 0; padding-top: 0; }

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.meta { color: var(--muted); font-size: 14px; }

.badge {
  display: inline-block;
  flex: none;
  border-radius: 999px;
  padding: 2px 10px;
  background: #efe8da;
  color: #5c4a2d;
  font-size: 13px;
  font-weight: 700;
}

.badge.ready { background: #e5f3ee; color: var(--green-dark); }
.badge.wait { background: #f8ece4; color: var(--warn); }

.question { font-size: 18px; }

.answer {
  white-space: pre-wrap;
  font-size: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.sources { margin: 0; padding-right: 20px; }
.sources li { margin-bottom: 10px; }
.sources span {
  display: inline-block;
  margin-left: 8px;
  color: var(--gold);
  font-weight: 700;
}

.empty { color: var(--muted); }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
}

.foot strong { color: var(--ink); }
.foot p { margin: 6px 0 0; max-width: 70ch; }

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .bar { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  h1 { font-size: 30px; }
  .row { flex-direction: column; }
  .wrap { width: min(1040px, calc(100% - 28px)); }
}
