:root {
  --fascia: #133b2d;
  --fascia-deep: #0c2a20;
  --paper: #fbfaf5;
  --paper-alt: #f3f0e6;
  --edge: #e3dfd2;
  --edge-strong: #c9c3b2;
  --ink: #17221d;
  --ink-2: #47564f;
  --ink-3: #5f6c66;
  --brass: #d6ad57;
  --brass-hi: #f0cf7e;
  --strip: #f4c534;
  --strip-hover: #ffd447;
  --sash: #c2401f;
  --signal: #1d6b4c;
  --link: #1d5a43;
  --glass-ink: #e5eee8;
  --glass-muted: #b2c5bb;
  --radius: 2px;
  --maxw: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--strip); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fascia-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--fascia);
  outline-offset: 2px;
}
.fascia {
  background: var(--fascia);
  color: var(--glass-ink);
  border-bottom: 3px solid var(--brass);
}
.fascia-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 20px 30px;
}
.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(214, 173, 87, 0.25);
  font-size: 0.9rem;
}
.brand {
  font-family: "Gloock", Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.topnav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.topnav-links a { color: var(--glass-ink); text-decoration: none; }
.topnav-links a:hover { color: var(--brass-hi); text-decoration: underline; }
.crumbs {
  margin: 18px 0 10px;
  font-size: 0.875rem;
  color: var(--glass-muted);
}
.crumbs a { color: var(--brass-hi); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.hero-copy { max-width: 68ch; }
h1 {
  font-family: "Gloock", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.95rem, 1.3rem + 2.2vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #fff;
}
.hero-meta {
  margin: 0;
  color: var(--glass-muted);
  font-size: 0.95rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--strip);
  color: #1b1606;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid #d9ab20;
  cursor: pointer;
}
.btn-primary:hover { background: var(--strip-hover); color: #1b1606; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--brass-hi);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 1px solid rgba(214, 173, 87, 0.55);
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(214, 173, 87, 0.12); color: #fff; }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--fascia);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 1px solid var(--fascia);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-dark:hover { background: var(--fascia); color: #fff; }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 56px;
}
article { display: block; }
h2 {
  font-family: "Gloock", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--edge);
}
article > h2:first-child { margin-top: 0; }
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--ink);
}
p { max-width: 72ch; margin: 0 0 14px; }
.summary-lead {
  font-size: 1.04rem;
  line-height: 1.68;
  max-width: none;
  color: var(--ink);
  padding: 18px 22px;
  background: var(--paper-alt);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  margin: 0 0 24px;
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--fascia);
  border-bottom: 1px solid var(--edge-strong);
  background: #fff;
  margin: 0 0 28px;
}
.ledger-cell {
  padding: 16px 16px 14px;
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.ledger-cell:nth-child(4n) { border-right: 0; }
.ledger-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.ledger-val {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
}
.ledger-val.positive { color: var(--signal); }
.ledger-val.cut { color: var(--sash); }
.ledger-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--edge);
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 0 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
th {
  background: var(--paper-alt);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
td.num, th.num {
  text-align: right;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tr:hover td { background: #faf8f1; }
.tag-sale { color: var(--fascia); font-weight: 600; }
.tag-rent { color: var(--sash); font-weight: 600; }

/* Calculator */
.calc-panel {
  background: #fff;
  border: 1px solid var(--edge-strong);
  border-top: 3px solid var(--fascia);
  border-radius: var(--radius);
  padding: 20px;
  margin: 14px 0 28px;
}
.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.calc-out {
  background: var(--fascia-deep);
  color: var(--glass-ink);
  padding: 18px;
  border-radius: var(--radius);
}
.calc-out-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(214, 173, 87, 0.22);
}
.calc-out-row:last-child { border-bottom: 0; }
.calc-out-label { font-size: 0.86rem; color: var(--glass-muted); }
.calc-out-val {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc-out-val.hl { color: var(--strip); font-size: 1.3rem; }
.calc-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* Filter bar on hub */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 16px;
}
.filter-btn {
  min-height: 40px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--fascia);
  color: #fff;
  border-color: var(--fascia);
}
.search-input {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  min-width: 210px;
  margin-left: auto;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--fascia); }

/* FAQ & Siblings */
.faq-list { margin: 12px 0 24px; }
.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.faq-a {
  margin: 0;
  color: var(--ink-2);
  max-width: 74ch;
}
.sibling-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0;
  margin: 10px 0 20px;
  list-style: none;
}
.sibling-links li a {
  display: inline-block;
  padding: 6px 11px;
  background: var(--paper-alt);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
}
.sibling-links li a:hover {
  border-color: var(--fascia);
  background: #fff;
}

/* Footer / Listingrail CTA */
.site-footer {
  background: var(--fascia-deep);
  color: var(--glass-ink);
  border-top: 3px solid var(--brass);
  padding: 36px 20px 44px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-inner h2 {
  color: #fff;
  border-bottom-color: rgba(214, 173, 87, 0.3);
  margin-top: 0;
  font-size: 1.4rem;
}
.footer-inner p { color: var(--glass-muted); font-size: 0.94rem; }
.footer-plans {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 173, 87, 0.28);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.footer-plans ul { margin: 8px 0 14px; padding-left: 18px; color: var(--glass-ink); }
.footer-plans li { margin-bottom: 6px; }
.footer-meta {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(214, 173, 87, 0.2);
  font-size: 0.82rem;
  color: var(--glass-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-meta a { color: var(--brass-hi); }

@media (max-width: 820px) {
  .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-cell:nth-child(2n) { border-right: 0; }
  .calc-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-input { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .fascia-inner { padding: 16px 14px 24px; }
  main { padding: 22px 14px 40px; }
  .calc-inputs { grid-template-columns: 1fr; }
  .ledger-val { font-size: 1.15rem; }
}
