/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
:root {
  color-scheme: light;
  --page: #f2f0e9;
  --surface: #fbfaf6;
  --surface-muted: #e7ebe5;
  --surface-strong: #17211e;
  --ink: #18211f;
  --ink-soft: #53615d;
  --ink-faint: #77827e;
  --ink-inverse: #f7f5ee;
  --line: #c9cec7;
  --line-strong: #87938e;
  --accent: #bf4e37;
  --accent-strong: #913723;
  --accent-cool: #1f7167;
  --accent-gold: #d6b85a;
  --positive: #25745d;
  --negative: #b14535;
  --focus-ring: #a9d3ca;
  --notice-surface: #dcece5;
  --alert-surface: #f7dfd9;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #101513;
  --surface: #171e1b;
  --surface-muted: #1c2823;
  --surface-strong: #0c100f;
  --ink: #ecebe4;
  --ink-soft: #adb8b3;
  --ink-faint: #818d88;
  --ink-inverse: #121816;
  --line: #34413c;
  --line-strong: #66736e;
  --accent: #e2765e;
  --accent-strong: #f0937d;
  --accent-cool: #67b9aa;
  --accent-gold: #e1c66b;
  --positive: #68b69a;
  --negative: #ee806b;
  --focus-ring: #315e56;
  --notice-surface: #17342b;
  --alert-surface: #3b211d;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --page: #101513;
    --surface: #171e1b;
    --surface-muted: #1c2823;
    --surface-strong: #0c100f;
    --ink: #ecebe4;
    --ink-soft: #adb8b3;
    --ink-faint: #818d88;
    --ink-inverse: #121816;
    --line: #34413c;
    --line-strong: #66736e;
    --accent: #e2765e;
    --accent-strong: #f0937d;
    --accent-cool: #67b9aa;
    --accent-gold: #e1c66b;
    --positive: #68b69a;
    --negative: #ee806b;
    --focus-ring: #315e56;
    --notice-surface: #17342b;
    --alert-surface: #3b211d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid #34413c;
  padding: 0.75rem 1.5rem;
  color: #f7f5ee;
  background: #101513;
}

.app-header-main,
.app-header-actions,
.app-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-header-main {
  flex: 1 1 auto;
  gap: 1.25rem;
}

.app-header-actions {
  flex: 0 0 auto;
  gap: 0.5rem;
  justify-content: flex-end;
}

.app-nav {
  gap: 0.35rem 0.85rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.brand,
.app-nav a {
  color: #f7f5ee;
  text-decoration: none;
}

.brand {
  font-weight: 800;
}

.app-wordmark {
  position: relative;
  padding-bottom: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.app-wordmark::after {
  position: absolute;
  right: 0;
  bottom: -0.1rem;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold) 0 68%, var(--accent) 68% 100%);
  content: "";
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 180ms ease;
}

.app-wordmark:hover::after {
  transform: scaleX(1);
}

.app-nav a {
  color: #b9c5c0;
  font-weight: 650;
}

.app-nav a:hover {
  color: #ffffff;
}

.organization-name {
  max-width: 15rem;
  color: #b9c5c0;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header .theme-toggle {
  border-color: #66736e;
  color: #f7f5ee;
}

.app-header .theme-toggle:hover {
  border-color: #e2765e;
  color: #f2b09f;
  background: #17211e;
}

.app-header .button-secondary {
  border-color: #66736e;
  color: #f7f5ee;
  background: transparent;
}

.auth-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem max(1.5rem, calc((100vw - 64rem) / 2));
  background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(16px);
}

.auth-site-header .brand {
  color: var(--ink);
}

.app-main {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 4rem;
}

.auth-panel {
  width: min(100%, 28rem);
  margin: 6vh auto 0;
  border-top: 3px solid var(--accent);
  padding-top: 2rem;
}

.auth-panel h1 {
  margin: 0 0 1.5rem;
  font-size: 1.9rem;
  line-height: 1.2;
}

.dashboard h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.dashboard {
  padding: 2rem 0;
}

.dashboard p {
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.dashboard-meta {
  margin-top: -0.75rem;
}

.public-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: start;
  padding: 8vh 0 2rem;
}

.public-landing-content p {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}

.section-header h1,
.section-header h2 {
  margin: 0;
}

.alert {
  border: 1px solid var(--negative);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--negative);
  background: var(--alert-surface);
}

.public-feature-grid {
  display: grid;
  gap: 0.75rem;
}

.public-feature-grid div,
.settings-section,
.record-list li,
.member-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.public-feature-grid div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.public-feature-grid span,
.settings-section p,
.detail-list dd,
.record-list small,
.member-list small {
  color: var(--ink-soft);
}

.json-report {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.json-report summary {
  cursor: pointer;
  font-weight: 700;
}

.json-report pre {
  max-width: 100%;
  overflow: auto;
  margin: 0.85rem 0 0;
  color: var(--ink);
  white-space: pre-wrap;
}

.account-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.account-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  font-weight: 650;
}

.application-body .app-main a:not(.button),
.auth-body .app-main a:not(.button) {
  color: var(--accent-cool);
  text-underline-offset: 0.2rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 650;
}

input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
}

select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
}

input:focus,
select:focus {
  border-color: var(--accent-cool);
  outline: 3px solid var(--focus-ring);
}

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  text-decoration: none;
}

.button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0.58rem 0.85rem;
  color: var(--ink-inverse);
  background: var(--ink);
  font: inherit;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-muted);
}

.button-danger {
  border-color: var(--negative);
  color: #ffffff;
  background: var(--negative);
}

.settings-page {
  display: grid;
  gap: 1.25rem;
  padding: 1rem 0 2rem;
}

.page-heading > p,
.section-header > div > p {
  max-width: 54rem;
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.settings-section {
  padding: 1.25rem;
}

.settings-section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.settings-section h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
}

.compact-form {
  max-width: 32rem;
}

.inline-form {
  grid-template-columns: minmax(14rem, 1fr) minmax(10rem, 12rem) auto;
  align-items: end;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
}

.detail-list dt {
  font-weight: 750;
}

.detail-list dd {
  margin: 0;
}

.record-list,
.member-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.record-list li,
.member-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
}

.record-list li {
  align-items: baseline;
}

.member-list li {
  flex-wrap: wrap;
}

.member-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.organization-switcher select {
  min-width: 12rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-link {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.auth-context {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.auth-context strong {
  color: var(--ink);
}

.auth-link a {
  color: var(--accent-cool);
  font-weight: 650;
}

.scenario-picker-reopen {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.72rem 1rem;
  color: var(--ink);
  background: var(--surface-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.scenario-picker-reopen:focus,
.scenario-picker-close:focus,
.scenario-picker-option:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.scenario-picker-dialog {
  width: min(calc(100vw - 2rem), 46rem);
  max-height: min(42rem, calc(100vh - 2rem));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1.25rem 4rem rgba(12, 16, 15, 0.35);
}

.scenario-picker-dialog::backdrop {
  background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
}

.scenario-picker-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  background: var(--surface);
}

.scenario-picker-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.scenario-picker-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface-muted);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.scenario-picker-list {
  display: grid;
  gap: 0.65rem;
  max-height: calc(min(42rem, 100vh - 2rem) - 5.2rem);
  overflow-y: auto;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.scenario-picker-option {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--surface-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scenario-picker-option:hover {
  border-color: var(--accent-cool);
  background: color-mix(in srgb, var(--surface-muted) 82%, var(--accent-cool));
}

.scenario-picker-name {
  font-weight: 800;
}

.scenario-picker-email {
  color: var(--accent-cool);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.scenario-picker-description {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.invitation-link {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.flash {
  margin: 0 0 1rem;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
}

.flash-notice {
  color: var(--positive);
  background: var(--notice-surface);
}

.flash-alert {
  color: var(--negative);
  background: var(--alert-surface);
}

.product-surface {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  padding-top: 0.25rem;
}

.product-surface > .section-header:first-child {
  margin-bottom: 0;
}

.product-surface > h2,
.decision-grid h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.metric,
.action-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background: var(--surface);
}

.metric {
  display: grid;
  gap: 0.35rem;
  min-height: 6.75rem;
}

.metric span,
.metric small,
.action-panel p,
.data-table small,
.tree-list small {
  color: var(--ink-soft);
}

.metric strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.action-panel {
  display: grid;
  gap: 0.65rem;
}

.action-panel p {
  margin: 0;
  line-height: 1.5;
}

.action-panel .button,
.action-panel form {
  justify-self: start;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.decision-grid > section {
  min-width: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.subnav a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  font-weight: 700;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--surface);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.data-table code {
  overflow-wrap: anywhere;
}

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

.tree-list {
  display: grid;
  gap: 0.45rem;
}

.tree-children {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem 1rem;
  border-left: 1px solid var(--line-strong);
  padding-left: 1.25rem;
}

.tree-node {
  position: relative;
  min-width: 0;
}

.tree-children > .tree-node::before {
  position: absolute;
  top: 1.25rem;
  left: -1.25rem;
  width: 0.9rem;
  border-top: 1px solid var(--line-strong);
  content: "";
}

.tree-node-content {
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  background: var(--surface);
}

.tree-list > .tree-node > .tree-node-content {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-muted);
}

.tree-node-content strong {
  font-size: 0.975rem;
}

.tree-node-content small {
  line-height: 1.35;
}

@media (max-width: 78rem) {
  .app-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .app-header-main,
  .app-header-actions {
    width: 100%;
  }

  .app-header-main,
  .app-nav {
    flex-wrap: wrap;
  }

  .app-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 46rem) {
  .app-header {
    align-items: flex-start;
  }

  .app-nav {
    flex-wrap: wrap;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .tree-children {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
  }

  .tree-children > .tree-node::before {
    left: -0.75rem;
    width: 0.55rem;
  }
}

.public-body {
  color: #18211f;
  background:
    repeating-linear-gradient(0deg, rgba(24, 33, 31, 0.035) 0 1px, transparent 1px 2rem),
    #f5f2ea;
}

.public-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.public-site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid #1f302b;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 242, 234, 0.96);
}

.public-brand,
.public-site-nav a,
.public-action,
.public-primary,
.public-secondary {
  color: inherit;
  text-decoration: none;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 850;
}

.public-brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #18211f;
  background: #d6c36a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.public-site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-width: 0;
  overflow-x: auto;
}

.public-site-nav a {
  flex: 0 0 auto;
  color: #4b5a54;
  font-size: 0.92rem;
  font-weight: 750;
}

.public-action,
.public-primary,
.public-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid #18211f;
  padding: 0.72rem 1rem;
  font-weight: 800;
}

.public-action,
.public-primary {
  color: #f9f6ed;
  background: #18211f;
}

.public-secondary {
  background: #f5f2ea;
}

.ledger-hero,
.public-page-hero,
.public-band {
  padding-right: clamp(1rem, 5vw, 4rem);
  padding-left: clamp(1rem, 5vw, 4rem);
}

.ledger-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 13rem);
  padding-top: clamp(2.25rem, 5vh, 3.5rem);
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem);
  border-bottom: 1px solid #26342f;
  background:
    linear-gradient(90deg, transparent 0 68%, rgba(177, 69, 46, 0.11) 68% 69%, transparent 69%),
    linear-gradient(180deg, transparent 0 72%, rgba(45, 93, 85, 0.12) 72% 73%, transparent 73%);
}

.public-eyebrow {
  margin: 0 0 0.9rem;
  color: #9d3d2b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ledger-hero h1,
.public-page-hero h1 {
  max-width: 58rem;
  margin: 0;
  color: #18211f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.4vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.public-page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.9rem);
}

.public-lede,
.public-page-hero p:not(.public-eyebrow),
.public-split p,
.public-proof-grid p,
.public-timeline span,
.roadmap-rail span {
  color: #4b5a54;
  line-height: 1.6;
}

.public-lede,
.public-page-hero p:not(.public-eyebrow) {
  max-width: 48rem;
  font-size: 1.18rem;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.ledger-specimen {
  min-height: 29rem;
  border: 1px solid #18211f;
  background:
    repeating-linear-gradient(90deg, rgba(24, 33, 31, 0.12) 0 1px, transparent 1px 5.5rem),
    #fbf8ef;
  box-shadow: 0.8rem 0.8rem 0 #2d5d55;
}

.specimen-topline,
.specimen-stamps,
.specimen-ledger {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.specimen-topline {
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid #18211f;
  color: #4b5a54;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.specimen-ledger {
  grid-template-columns: minmax(5.25rem, 0.42fr) minmax(0, 1fr);
  padding-top: 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.specimen-ledger span {
  color: #7b4e2c;
}

.specimen-ledger strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.specimen-ruling {
  display: grid;
  gap: 0.55rem;
  padding: 0.25rem 1rem 1rem;
}

.specimen-ruling span {
  height: 0.55rem;
  border-bottom: 1px solid rgba(24, 33, 31, 0.35);
}

.specimen-stamps {
  grid-template-columns: repeat(3, 1fr);
  margin: 0 1rem 1rem;
  border-top: 2px solid #9d3d2b;
  padding: 0.85rem 0 0;
}

.specimen-stamps span {
  border: 1px solid #9d3d2b;
  padding: 0.45rem 0.35rem;
  color: #9d3d2b;
  font-size: 0.73rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.public-band,
.public-page-hero {
  border-bottom: 1px solid #d7d1c1;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.public-band-tight {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.public-section-heading {
  max-width: 62rem;
}

.public-section-heading h2,
.public-split h2 {
  margin: 0;
  color: #18211f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.05;
}

.public-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.public-proof-grid article {
  border-top: 3px solid #2d5d55;
  padding-top: 1rem;
}

.public-proof-grid h3,
.public-capability-list strong,
.public-timeline strong,
.roadmap-rail strong {
  display: block;
  margin: 0 0 0.45rem;
  color: #18211f;
  font-size: 1.08rem;
}

.proof-number {
  display: block;
  margin-bottom: 1.2rem;
  color: #9d3d2b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.public-page-hero {
  background: #ece7db;
}

.public-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.public-capability-list,
.roadmap-rail {
  display: grid;
  gap: 0.85rem;
}

.public-capability-list p,
.roadmap-rail p {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  border-top: 1px solid #9f9a8d;
  padding-top: 0.85rem;
}

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

.public-timeline li {
  min-height: 15rem;
  border: 1px solid #18211f;
  border-right: 0;
  padding: 1rem;
  background: #fbf8ef;
  counter-increment: step;
}

.public-timeline li:last-child {
  border-right: 1px solid #18211f;
}

.public-timeline li::before {
  display: block;
  margin-bottom: 4rem;
  color: #9d3d2b;
  content: counter(step, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.audit-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #18211f;
  background: #fbf8ef;
}

.audit-board div {
  min-height: 8rem;
  border-right: 1px solid #18211f;
  border-bottom: 1px solid #18211f;
  padding: 1rem;
}

.audit-board div:nth-child(3n) {
  border-right: 0;
}

.audit-board span {
  display: block;
  margin-bottom: 1.4rem;
  color: #7b4e2c;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-board strong {
  color: #18211f;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.import-matrix {
  border: 1px solid #18211f;
  background: #fbf8ef;
}

.import-matrix div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(8rem, 0.42fr) minmax(0, 1.3fr);
  border-bottom: 1px solid #18211f;
}

.import-matrix div:last-child {
  border-bottom: 0;
}

.import-matrix strong,
.import-matrix span {
  min-width: 0;
  border-right: 1px solid #18211f;
  padding: 0.9rem;
  overflow-wrap: anywhere;
}

.import-matrix strong:last-child,
.import-matrix span:last-child {
  border-right: 0;
}

.import-matrix strong {
  color: #f9f6ed;
  background: #18211f;
}

@media (max-width: 48rem) {
  .public-landing,
  .inline-form,
  .detail-list div {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: center;
    padding: 0.9rem 1rem;
  }

  .app-header-main {
    width: 100%;
    flex-wrap: wrap;
  }

  .app-nav {
    order: 2;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    padding: 0.35rem 0 0.15rem;
  }

  .app-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .organization-name {
    max-width: min(45vw, 14rem);
  }

  .auth-site-header {
    min-height: 4rem;
    padding-inline: 1rem;
  }

  .app-main {
    padding: 1.5rem 1rem;
  }

  .auth-panel {
    margin-top: 3vh;
  }

  .public-site-header {
    position: static;
    grid-template-columns: 1fr auto;
  }

  .public-site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    padding-bottom: 0.15rem;
  }

  .ledger-hero,
  .public-split,
  .public-proof-grid,
  .public-timeline,
  .audit-board {
    grid-template-columns: 1fr;
  }

  .ledger-hero {
    min-height: 0;
    padding-top: 1.55rem;
    padding-bottom: 1.55rem;
  }

  .ledger-hero h1 {
    font-size: 2.18rem;
    line-height: 1.02;
  }

  .public-lede {
    font-size: 1rem;
    line-height: 1.48;
  }

  .public-actions {
    gap: 0.6rem;
    margin-top: 1.15rem;
  }

  .public-primary,
  .public-secondary {
    min-height: 2.45rem;
    padding: 0.58rem 0.75rem;
    font-size: 0.94rem;
  }

  .ledger-specimen {
    display: none;
    min-height: auto;
    box-shadow: 0.45rem 0.45rem 0 #2d5d55;
  }

  .specimen-stamps,
  .public-capability-list p,
  .roadmap-rail p,
  .import-matrix div {
    grid-template-columns: 1fr;
  }

  .public-timeline li,
  .public-timeline li:last-child,
  .audit-board div,
  .audit-board div:nth-child(3n),
  .import-matrix strong,
  .import-matrix span {
    border-right: 0;
  }

  .import-matrix strong,
  .import-matrix span {
    border-bottom: 1px solid #18211f;
  }
}
