:root {
  --forest-950: #10120f;
  --forest-900: #151813;
  --forest-850: #191b15;
  --forest-800: #202318;
  --forest-700: #2b3020;
  --ink: #f3ead7;
  --muted: #c9bda4;
  --faint: #938c79;
  --gold: #d8a64e;
  --gold-light: #f0c978;
  --sage: #74a891;
  --sage-dark: #46735e;
  --clay: #9c4934;
  --line: rgba(216, 166, 78, 0.22);
  --line-strong: rgba(216, 166, 78, 0.42);
  --panel-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--forest-950);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(243, 234, 215, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(243, 234, 215, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--forest-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::selection {
  color: var(--forest-950);
  background: var(--gold);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

p {
  color: var(--muted);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--forest-950);
  background: var(--gold-light);
  border-radius: var(--radius);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 166, 78, 0.14);
  background: rgba(16, 18, 15, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 160px;
}

.brand img {
  display: block;
  width: 160px;
  height: 42px;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a,
.footer-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold-light);
}

.header-action {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

.icon-button.menu-toggle {
  display: none;
}

.icon-button.menu-toggle::before {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  color: var(--ink);
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.icon-button.menu-toggle:has(svg)::before {
  content: none;
}

.icon-button,
.button,
.text-button,
.tile-tool {
  border: 1px solid transparent;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--forest-800);
  border-color: var(--line);
  border-radius: var(--radius);
}

.icon-button svg,
.button svg,
.text-button svg,
.tile-tool svg,
.board-footer svg,
.hero-note svg,
.summary-callout svg,
.note-heading svg,
.inline-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--forest-950);
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button-quiet:hover {
  background: rgba(216, 166, 78, 0.08);
  border-color: var(--gold);
}

.button-block {
  width: 100%;
}

.text-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: var(--gold-light);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
}

.text-button:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-top: 80px;
  padding-bottom: 76px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(116, 168, 145, 0.14);
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-note svg {
  color: var(--sage);
}

.hero-signal {
  padding: 16px;
  background: var(--forest-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}

.hero-visual {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: var(--forest-850);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 3px 1px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-visual figcaption strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.signal-header,
.signal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
}

.signal-live span {
  width: 7px;
  height: 7px;
  background: var(--sage);
  border-radius: 50%;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 18px 0;
  padding: 12px;
  background: #0e100d;
  border: 1px solid rgba(243, 234, 215, 0.08);
  border-radius: 4px;
}

.signal-cell {
  aspect-ratio: 1;
  border-radius: 2px;
}

.signal-cell.soil { background: #725b3d; }
.signal-cell.crop { background: #7aa85d; }
.signal-cell.path { background: #b99a62; }
.signal-cell.building { background: #a65e43; }
.signal-cell.tree { background: #3e6f54; }
.signal-cell.water { background: #456c75; }

.signal-footer {
  color: var(--faint);
  text-transform: none;
}

.signal-footer strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.intro-band,
.alternate-band {
  background: rgba(32, 35, 24, 0.7);
  border-top: 1px solid rgba(216, 166, 78, 0.12);
  border-bottom: 1px solid rgba(216, 166, 78, 0.12);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 72px;
}

.intro-grid h2 {
  max-width: 430px;
}

.intro-copy {
  columns: 2 240px;
  column-gap: 34px;
}

.intro-copy p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.8;
}

.intro-copy p + p {
  break-before: column;
}

.tool-section,
.content-section,
.notes-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 5px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.native-ad-section {
  padding-bottom: 10px;
}

.native-ad-frame {
  min-height: 112px;
  padding: 14px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(216, 166, 78, 0.18);
  border-radius: 4px;
  background: rgba(32, 35, 24, 0.76);
}

.native-ad-label {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

#container-ac55d13390e067ce52bd4acbcae56a0c {
  min-height: 72px;
  width: 100%;
  overflow: hidden;
}

.planner-context {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 0.56fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 166, 78, 0.16);
  border-bottom: 1px solid rgba(216, 166, 78, 0.16);
}

.planner-context-art {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.planner-context-art img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
  object-position: 52% 52%;
}

.planner-context-copy {
  max-width: 520px;
  padding-right: 12px;
}

.planner-context-copy .eyebrow {
  margin-bottom: 8px;
}

.planner-context-copy h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.planner-context-copy p:last-child {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 214px;
  gap: 14px;
  align-items: stretch;
}

.tool-panel,
.board-panel,
.lookup-tool,
.result-panel {
  min-width: 0;
  background: var(--forest-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}

.tool-panel {
  padding: 18px;
}

.panel-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tool-panel h3,
.board-panel h3 {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.tile-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tile-tool {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  overflow: hidden;
  color: var(--muted);
  background: var(--forest-800);
  border-color: rgba(243, 234, 215, 0.1);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 750;
  text-align: left;
}

.tile-tool:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.tile-tool.is-selected {
  color: var(--forest-950);
  background: var(--gold);
  border-color: var(--gold);
}

.tile-tool svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.panel-rule {
  height: 1px;
  margin: 17px 0;
  background: rgba(243, 234, 215, 0.1);
}

.field-label,
.lookup-controls label,
.calculator-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.text-input,
.select-input,
.number-input {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  color: var(--ink);
  background: #11130f;
  border: 1px solid rgba(243, 234, 215, 0.15);
  border-radius: 5px;
}

.text-input::placeholder {
  color: #766f60;
}

.text-input:focus,
.select-input:focus,
.number-input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(216, 166, 78, 0.2);
  outline-offset: 1px;
}

.select-input {
  appearance: auto;
}

.toolbar-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.inline-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.45;
}

.inline-status.is-success {
  color: var(--sage);
}

.inline-status.is-error {
  color: #e5896f;
}

.board-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
}

.board-header,
.board-footer,
.progress-line,
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.board-header {
  margin-bottom: 15px;
}

.board-header h3 {
  margin-bottom: 0;
}

.board-count {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 0.75rem;
  white-space: nowrap;
}

.board-count strong {
  color: var(--gold-light);
}

.grid-board {
  display: grid;
  min-width: 312px;
  grid-template-columns: repeat(12, minmax(24px, 1fr));
  gap: 4px;
  padding: 10px;
  background:
    linear-gradient(rgba(243, 234, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 215, 0.035) 1px, transparent 1px),
    #0e100d;
  background-size: 24px 24px;
  border: 1px solid rgba(243, 234, 215, 0.1);
  border-radius: 5px;
}

.plot-cell {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: transparent;
  background: #24291e;
  border: 1px solid rgba(243, 234, 215, 0.08);
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 900;
  transition: filter 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.plot-cell:hover {
  border-color: var(--gold-light);
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.plot-cell::before {
  content: attr(data-letter);
  color: rgba(16, 18, 15, 0.62);
}

.plot-cell[data-tile="empty"]::before {
  content: "+";
  color: rgba(243, 234, 215, 0.2);
  font-size: 0.9rem;
}

.plot-cell[data-tile="soil"] { background: #735b3d; }
.plot-cell[data-tile="crop"] { background: #75a258; }
.plot-cell[data-tile="building"] { background: #a75d45; }
.plot-cell[data-tile="tree"] { background: #3f7155; }
.plot-cell[data-tile="path"] { background: #b99b63; }
.plot-cell[data-tile="water"] { background: #476d75; }

.board-footer {
  min-height: 44px;
  margin-top: 9px;
}

.board-footer p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--faint);
  font-size: 0.7rem;
}

.board-footer p svg {
  color: var(--sage);
}

.summary-list {
  display: grid;
  gap: 2px;
  margin: 0;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-bottom: 1px solid rgba(243, 234, 215, 0.08);
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.summary-list dd {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 800;
}

.summary-callout {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 234, 215, 0.1);
}

.summary-callout svg {
  color: var(--gold);
  margin-top: 2px;
}

.summary-callout p {
  margin: 0;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.55;
}

.tool-explainer,
.calculation-notes,
.prose-grid,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tool-explainer > div,
.calculation-notes > div,
.prose-grid > div,
.trust-note {
  padding: 18px;
  background: rgba(25, 27, 21, 0.65);
  border-left: 2px solid var(--sage-dark);
}

.tool-explainer strong,
.calculation-notes strong,
.prose-grid h3,
.trust-note h3 {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.9rem;
}

.tool-explainer p,
.calculation-notes p,
.prose-grid p,
.trust-note p {
  margin: 0;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.7;
}

.split-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.checklist-panel {
  padding: 18px;
}

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

.filter-row .field-label {
  flex: 0 0 auto;
  margin: 0;
}

.filter-row .select-input {
  max-width: 220px;
}

.checklist {
  display: grid;
  gap: 7px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 10px;
  background: rgba(32, 35, 24, 0.8);
  border: 1px solid rgba(243, 234, 215, 0.08);
  border-radius: 5px;
  cursor: pointer;
}

.check-row:hover {
  border-color: var(--line-strong);
}

.check-row[hidden] {
  display: none;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--sage);
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.check-row small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.71rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-row em {
  color: var(--gold-light);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 800;
}

.progress-line {
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.75rem;
}

.progress-line strong {
  color: var(--gold-light);
}

.progress-track {
  display: block;
  flex: 1 1 150px;
  height: 7px;
  overflow: hidden;
  background: var(--forest-700);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
  transition: width 180ms ease;
}

.content-note {
  padding: 22px;
  background: var(--forest-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-art {
  margin: 0 0 16px;
}

.tool-art img {
  display: block;
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(216, 166, 78, 0.28);
  border-radius: 5px;
}

.tool-art figcaption {
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.note-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 800;
}

.content-note p {
  font-size: 0.86rem;
  line-height: 1.75;
}

.content-note p:last-of-type {
  margin-bottom: 14px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-link:hover {
  color: var(--ink);
}

.lookup-tool {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
}

.lookup-controls {
  padding-right: 24px;
  border-right: 1px solid rgba(243, 234, 215, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--faint);
  pointer-events: none;
}

.input-with-icon .text-input {
  padding-left: 38px;
}

.field-hint {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.7rem;
  line-height: 1.55;
}

.lookup-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lookup-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  min-width: 0;
  align-items: center;
  padding: 10px;
  background: rgba(32, 35, 24, 0.8);
  border: 1px solid rgba(243, 234, 215, 0.08);
  border-radius: 5px;
}

.avatar-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest-950);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.lookup-result strong,
.lookup-result p {
  display: block;
}

.lookup-result strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.lookup-result p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-tag {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag-green { color: #b7dbc2; background: rgba(116, 168, 145, 0.18); }
.tag-gold { color: var(--gold-light); background: rgba(216, 166, 78, 0.16); }
.tag-clay { color: #e2a18e; background: rgba(156, 73, 52, 0.18); }

.lookup-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--faint);
  background: rgba(32, 35, 24, 0.8);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.prose-grid {
  margin-top: 14px;
}

.alternate-band .shell {
  padding-top: 92px;
  padding-bottom: 92px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.calculator-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.calculator-form label {
  min-width: 0;
}

.calculator-form label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-form small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.65rem;
  line-height: 1.35;
}

.result-panel {
  padding: 20px;
}

.result-state {
  padding: 4px 7px;
  color: var(--sage);
  background: rgba(116, 168, 145, 0.14);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
}

.result-state.is-error {
  color: #e2a18e;
  background: rgba(156, 73, 52, 0.18);
}

.result-big {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(243, 234, 215, 0.1);
}

.result-big span {
  color: var(--gold-light);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.result-big small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 0 4px;
}

.result-stats div {
  min-width: 0;
}

.result-stats span,
.result-stats strong {
  display: block;
}

.result-stats span {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 0.66rem;
}

.result-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-footnote {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.69rem;
  line-height: 1.6;
}

.how-section {
  padding-top: 92px;
  padding-bottom: 92px;
  background: #0d0f0c;
  border-top: 1px solid rgba(216, 166, 78, 0.12);
  border-bottom: 1px solid rgba(216, 166, 78, 0.12);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  min-height: 180px;
  padding: 18px;
  background: var(--forest-850);
  border: 1px solid rgba(243, 234, 215, 0.1);
  border-radius: var(--radius);
}

.step-list li > span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.step-list h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.step-list p {
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.65;
}

.notes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-note {
  border-left-color: var(--gold);
}

.trust-note > svg {
  width: 19px;
  height: 19px;
  margin-bottom: 15px;
  color: var(--gold-light);
}

.source-line {
  margin: 24px 0 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.source-line a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  gap: 64px;
}

.faq-intro {
  max-width: 350px;
  color: var(--faint);
  font-size: 0.85rem;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 7px;
}

.faq-list details {
  background: rgba(16, 18, 15, 0.44);
  border: 1px solid rgba(243, 234, 215, 0.1);
  border-radius: 5px;
}

.faq-list summary {
  padding: 16px 18px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.faq-list details[open] summary {
  color: var(--gold-light);
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 17px 38px;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid rgba(216, 166, 78, 0.16);
  background: var(--forest-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.brand-sprout {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--gold);
  background: rgba(216, 166, 78, 0.12);
  border-radius: 4px;
}

.brand-sprout svg {
  width: 17px;
  height: 17px;
}

.footer-grid p {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 0.73rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-disclaimer {
  max-width: 260px;
  justify-self: end;
  text-align: right;
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding-top: 78px;
  padding-bottom: 96px;
}

.legal-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.legal-heading h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-heading > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-panel {
  max-width: 900px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--forest-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}

.legal-panel h2 {
  margin-top: 30px;
  font-size: 1.55rem;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel h3 {
  margin-top: 24px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-panel ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.legal-panel a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  display: inline-block;
  padding: 6px 9px;
  color: var(--gold-light) !important;
  background: rgba(216, 166, 78, 0.12);
  border-radius: 4px;
  font-size: 0.75rem !important;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .output-panel {
    grid-column: 1 / -1;
  }

  .summary-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .summary-list div {
    display: block;
    padding: 6px 0;
  }

  .summary-list dd {
    margin-top: 3px;
  }

  .summary-callout {
    display: none;
  }

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand,
  .brand img {
    width: 145px;
  }

  .brand img {
    height: 38px;
  }

  .header-action {
    display: none;
  }

  .icon-button.menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    background: var(--forest-850);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 42px;
    padding: 10px 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .hero-signal {
    max-width: 560px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .intro-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-grid,
  .tool-section,
  .content-section,
  .notes-section,
  .how-section,
  .alternate-band .shell {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .intro-copy {
    columns: 1;
  }

  .intro-copy p + p {
    margin-top: 18px;
    break-before: auto;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading > p {
    margin-top: 15px;
  }

  .workspace,
  .split-tool,
  .calculator-layout,
  .lookup-tool {
    grid-template-columns: 1fr;
  }

  .planner-context {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .planner-context-art img {
    height: 168px;
  }

  .planner-context-copy {
    max-width: none;
    padding: 0 6px 4px;
  }

  .output-panel {
    grid-column: auto;
  }

  .summary-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .lookup-controls {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 234, 215, 0.1);
  }

  .lookup-results {
    grid-template-columns: 1fr;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-disclaimer {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 520px;
    text-align: left;
  }

  .legal-main {
    padding-top: 58px;
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .signal-header,
  .signal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .workspace {
    gap: 10px;
  }

  .tool-panel,
  .board-panel,
  .content-note,
  .lookup-tool,
  .result-panel {
    padding: 14px;
  }

  .grid-board {
    min-width: 0;
    gap: 3px;
    padding: 7px;
  }

  .tool-art img {
    height: 180px;
  }

  .plot-cell {
    font-size: 0.54rem;
  }

  .board-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .summary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-list div:nth-child(4),
  .summary-list div:nth-child(5) {
    border-bottom: 0;
  }

  .tool-explainer,
  .calculation-notes,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .filter-row .select-input {
    max-width: none;
  }

  .check-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .check-row em {
    display: none;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-form .button {
    width: 100%;
  }

  .result-stats {
    gap: 6px;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-list li {
    min-height: auto;
  }

  .step-list li > span {
    margin-bottom: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .legal-heading h1 {
    font-size: 3rem;
  }
}

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