:root {
  --bg-paper: #f6f4ee;
  --bg-sheet: #fcfbf7;
  --bg-tinted: #ede9df;
  --ink: #161614;
  --ink-muted: #5c5952;
  --ink-subtle: #78736a;
  --rule: #d8d1c4;
  --rule-strong: #161614;
  --accent: #1b4d3e;
  --accent-soft: #e6efe9;
  --terracotta: #9e3b24;
  --terracotta-soft: #f7eae6;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius: 3px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

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

.tabular,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Statutory Ticker */
.ledger-ticker {
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  padding: 7px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.ledger-ticker__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ledger-ticker__tag {
  background: var(--ink);
  color: var(--bg-paper);
  padding: 2px 8px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ledger-ticker__items {
  display: flex;
  gap: 22px;
  align-items: center;
}

.ledger-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ledger-ticker__item::after {
  content: "·";
  margin-left: 14px;
  color: var(--ink-subtle);
}

.ledger-ticker__item:last-child::after {
  display: none;
}

/* Masthead Navigation */
.site-header {
  background: var(--bg-paper);
  border-bottom: 1.5px solid var(--rule-strong);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-edition {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 6px;
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 6px 11px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

/* Asymmetric Hero */
.hero {
  padding: 46px 0 42px;
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 26px;
}

.index-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  background: var(--bg-sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0 12px;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  font-size: 14.5px;
  outline: none;
}

.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 11px;
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.pill-link:hover,
.pill-link.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Mini Reference Sheet on Hero */
.hero-ledger {
  background: var(--bg-sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 4px 4px 0 var(--bg-tinted);
}

.hero-ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1.5px solid var(--rule-strong);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.hero-ledger__head h2 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}

.hero-ledger__head span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.ledger-mini-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.ledger-mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-tinted);
  font-size: 13.5px;
}

.ledger-mini-list li:last-child {
  border-bottom: 0;
}

.ledger-mini-list .k {
  color: var(--ink-muted);
}

.ledger-mini-list .v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--rule-strong);
  background: var(--bg-sheet);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  background: var(--bg-tinted);
  color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fcfbf7;
}

.btn--primary:hover {
  background: #143b2f;
  border-color: #143b2f;
  color: #fcfbf7;
}

.btn--sm {
  padding: 6px 11px;
  font-size: 12.5px;
}

/* Ruled Chapters */
.chapter {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--rule-strong);
  margin-bottom: 22px;
}

.chapter-head__roman {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.chapter-head h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}

.chapter-head p {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  color: var(--ink-muted);
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  color: var(--ink);
}

.tool-card.is-hidden {
  display: none;
}

.tool-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.tool-card__code {
  font-weight: 700;
  color: var(--ink);
}

.tool-card__statute {
  color: var(--ink-muted);
  background: var(--bg-tinted);
  padding: 2px 8px;
  border-radius: var(--radius);
}

.tool-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.tool-card__cta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* High Contrast Ink Method Band */
.method-band {
  background: var(--ink);
  color: var(--bg-paper);
  padding: 48px 0;
}

.method-band__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(246, 244, 238, 0.22);
  padding-bottom: 16px;
  margin-bottom: 28px;
  gap: 20px;
}

.method-band__head h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  margin: 0;
}

.method-band__head span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b7c9c1;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.method-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8fd1b8;
  margin-bottom: 8px;
  display: block;
}

.method-item h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
}

.method-item p {
  margin: 0;
  font-size: 14.5px;
  color: #d6d2c7;
}

/* Guides Index */
.guides-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--rule);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-card:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.guide-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 8px;
}

.guide-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

/* Inner Pages & Breadcrumbs */
.page-head {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  text-decoration: none;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.page-head__lead {
  font-size: 16.5px;
  color: var(--ink-muted);
  max-width: 68ch;
  margin: 0 0 14px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.stamp-badge {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: var(--radius);
  font-weight: 600;
}

/* Tool Split Calculation Sheet */
.calc-section {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.preset-bar__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-right: 4px;
}

.preset-btn {
  font-size: 12.5px;
  padding: 6px 11px;
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}

.preset-btn:hover,
.preset-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 24px;
  align-items: start;
}

.ledger-pane {
  background: var(--bg-sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.ledger-pane__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.form-grid {
  display: grid;
  gap: 15px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.field input[type="number"],
.field input[type="text"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 9px 11px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.field--checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-paper);
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.field--checkbox input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.field__hint {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* Output Result Sheet */
.result-sheet {
  background: var(--bg-sheet);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.result-hero {
  border-bottom: 1.5px solid var(--rule-strong);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.result-hero__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.result-hero__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 14px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dist-bar {
  margin: 0 0 18px;
}

.dist-track {
  display: flex;
  height: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tinted);
  border: 1px solid var(--rule);
}

.dist-seg--accent {
  background: var(--accent);
}

.dist-seg--terracotta {
  background: var(--terracotta);
}

.dist-seg--muted {
  background: #aba395;
}

.dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.dist-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 1px;
}

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

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-tinted);
  font-size: 14px;
}

.breakdown-list li:last-child {
  border-bottom: 0;
}

.breakdown-list .lbl {
  color: var(--ink-muted);
}

.breakdown-list .val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.breakdown-list .val--accent {
  color: var(--accent);
}

.breakdown-list .val--terracotta {
  color: var(--terracotta);
}

.result-notes {
  background: var(--bg-paper);
  border-left: 3px solid var(--accent);
  padding: 10px 13px;
  font-size: 13px;
  color: var(--ink-muted);
}

.result-notes p {
  margin: 4px 0;
}

/* Schedule & Proforma Table */
.schedule-card {
  margin-top: 22px;
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-card__head {
  padding: 13px 18px;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bg-tinted);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--bg-sheet);
  border-bottom: 1px solid var(--rule);
}

.data-table td.num,
.data-table th.num {
  text-align: right;
}

/* Proforma Builder Specific */
.proforma-rows {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.proforma-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1.1fr 0.75fr auto;
  gap: 8px;
  align-items: center;
}

.proforma-row input,
.proforma-row select {
  padding: 7px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
}

/* Prose, Formulas, FAQs */
.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  padding: 36px 0 48px;
  align-items: start;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

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

.prose p {
  margin: 0 0 14px;
  color: #2b2a26;
}

.formula-box {
  background: var(--bg-sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 22px;
}

.formula-box h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 10px;
}

.formula-box pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--accent);
}

.example-box {
  background: var(--accent-soft);
  border: 1px solid #bfd4ca;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 26px;
}

.example-box h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--accent);
}

.example-box p {
  margin: 0;
  font-size: 14.5px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.faq-item {
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Sidebar */
.sidebar-box {
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.sidebar-box h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

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

.sidebar-links li {
  border-bottom: 1px solid var(--bg-tinted);
}

.sidebar-links li:last-child {
  border-bottom: 0;
}

.sidebar-links a {
  display: block;
  padding: 8px 0;
  font-size: 13.5px;
  text-decoration: none;
}

/* 4-Column Colophon Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg-paper);
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(246, 244, 238, 0.16);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fd1b8;
  margin: 0 0 12px;
}

.footer-col p {
  font-size: 13.5px;
  color: #cbc5b9;
  margin: 0 0 12px;
}

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

.footer-col li {
  margin-bottom: 7px;
  font-size: 13.5px;
}

.footer-col a {
  color: #e6e1d6;
  text-decoration: none;
}

.footer-col a:hover {
  color: #8fd1b8;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a49f94;
}

/* Cookie Consent Bar */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: 410px;
  background: var(--bg-sheet);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(22, 22, 20, 0.16);
  z-index: 60;
  font-size: 13px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 12px;
  color: var(--ink-muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg-paper);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  z-index: 70;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero__grid,
  .calc-grid,
  .editorial-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .tool-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .chapter-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .proforma-row {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-paper);
    border-bottom: 1.5px solid var(--rule-strong);
    padding: 16px 24px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }
}

/* A4 Print Rules for Clean Proforma & Report Printing */
@media print {
  .ledger-ticker,
  .site-header,
  .preset-bar,
  .result-actions,
  .editorial-layout,
  .site-footer,
  .cookie-banner,
  .ledger-pane__actions,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff;
    font-size: 11pt;
  }

  .container {
    max-width: none;
    padding: 0;
  }

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

  .ledger-pane,
  .result-sheet,
  .schedule-card {
    border: 1px solid #999;
    box-shadow: none;
  }
}
