:root {
  --cream: #F5F0E8;
  --cream-deep: #EDE6DA;
  --paper: #FFFFFF;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --brass: #B8956A;
  --indigo: #1E293B;
  --charcoal: #1C1917;
  --muted: #57534E;
  --stone: #57534E;
  --line: rgba(28, 25, 23, 0.1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (max-width: 799px) {
  html { scroll-padding-top: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.wordmark img { display: block; height: 32px; width: auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3c3833;
  padding: 0.4rem 0.15rem;
  border-radius: 0.35rem;
}
.nav-links a:hover { color: var(--teal-dark); background: rgba(13, 148, 136, 0.08); }
.nav-links a.is-active { color: var(--teal-dark); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brass);
}
.nav-cta { justify-self: end; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost {
  background: var(--paper);
  color: var(--charcoal);
  border-color: rgba(28, 25, 23, 0.16);
}
.btn-ghost:hover { border-color: rgba(28, 25, 23, 0.32); }
.btn:disabled, .btn[disabled] {
  background: var(--cream-deep);
  color: var(--muted);
  border-color: transparent;
  cursor: default;
}
.sample-label {
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.page { padding: 1.6rem 0 4.5rem; }
h1.serif, .serif {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.lede { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.site-footer {
  position: relative;
  color: #FFFFFF;
  background: #1C1917 var(--stone) center / cover no-repeat;
  padding: 4.5rem 0 2rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.36);
}
.footer-inner { position: relative; z-index: 1; display: grid; gap: 1.75rem; }
.site-footer .wordmark {
  background: var(--cream);
  border-radius: 0.45rem;
  padding: 0.4rem 0.6rem;
}
.site-footer .wordmark img { height: 30px; }
.site-footer p { max-width: 22rem; color: rgba(246, 241, 232, 0.86); margin-top: 0.65rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; }
.foot-links a { color: rgba(246, 241, 232, 0.9); font-weight: 600; }
.foot-links a:hover { color: #fff; }
.foot-meta { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.foot-meta span { display: block; }
.foot-meta a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 0.15em; }
.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.kpi { padding: 0.95rem 1rem 1rem; }
.kpi span, .quiet {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.kpi strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi em, .delta {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.note {
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: 0.98rem;
}
.note strong { font-weight: 700; }
.stack { display: grid; gap: 0.85rem; }
.split { display: grid; gap: 0.85rem; }
.block-pad { padding: 0.95rem 1rem 1.05rem; }
.block-pad h2, .panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.meta { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.head-row, .panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.data th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th.num, table.data td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.data td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(245, 240, 232, 0.65); }
table.data tr.total td {
  font-weight: 700;
  border-top: 1px solid rgba(28, 25, 23, 0.28);
  border-bottom: 0;
}
.scroll { overflow-x: auto; }
.rail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: 5.5rem;
}
.rail button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
}
.rail button.is-on {
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
}
.workspace {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.panel { display: none; }
.panel.is-on { display: block; }
.is-focus {
  outline: 2px solid var(--teal-dark);
  outline-offset: 4px;
  border-radius: 1rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chart-box { position: relative; height: 240px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.walk {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(36rem, calc(100% - 1.5rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
  padding: 0.95rem 1rem 1rem;
}
.walk h2 { font-size: 1.05rem; letter-spacing: -0.02em; margin: 0.15rem 0 0.3rem; }
.walk p { color: var(--muted); font-size: 0.95rem; }
.walk-count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.walk-actions { display: flex; justify-content: flex-end; gap: 0.45rem; margin-top: 0.8rem; }
.walk-actions .btn { padding: 0.65rem 0.95rem; }
dialog.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(52rem, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
}
dialog.sheet::backdrop { background: rgba(28, 25, 23, 0.46); }
.sheet-card {
  background: var(--paper);
  color: var(--charcoal);
  border-radius: 1rem;
  overflow: auto;
  max-height: calc(100vh - 2rem);
}
.sheet-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--cream);
}
.sheet-body { padding: 1.5rem 1.4rem 1.7rem; }
.also { margin-top: 1.75rem; color: var(--muted); }
.also a { color: var(--teal-dark); font-weight: 700; }
.also a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .split.two { grid-template-columns: 1.15fr 0.85fr; }
  .split.plan { grid-template-columns: minmax(0, 1fr) 18rem; }
}
@media (max-width: 799px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 0.15rem 0.85rem;
    padding-bottom: 0.7rem;
  }
  .kpis { grid-template-columns: 1fr 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .rail {
    position: static;
    flex-direction: row;
    overflow: auto;
    padding-bottom: 0.2rem;
  }
  .rail button { width: auto; white-space: nowrap; }
}
@media print {
  body * { visibility: hidden; }
  dialog.sheet[open],
  dialog.sheet[open] * { visibility: visible; }
  dialog.sheet[open] { position: absolute; inset: 0 auto auto 0; width: 100%; max-height: none; }
  .sheet-card { max-height: none; box-shadow: none; }
  .sheet-bar { display: none; }
}
