:root {
  --paper: #f5f1e8;
  --paper-deep: #ece5d6;
  --card: #fffdf8;
  --ink: #232019;
  --ink-soft: #5a5444;
  --ink-faint: #8b8371;
  --line: #ddd5c3;
  --line-strong: #cbc1aa;
  --green-900: #1e3a2c;
  --green-700: #2c5540;
  --green-600: #37664c;
  --green-100: #e7eee8;
  --terracotta: #a5522c;
  --terracotta-100: #f3e3da;
  --gold: #8a6d2f;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(35, 32, 25, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(35, 32, 25, 0.18);
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

::selection {
  background: var(--green-700);
  color: #fff;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 8px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
  text-decoration: none;
}

.nav a.active {
  color: var(--green-700);
  font-weight: 600;
}

.ccy {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.ccy-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a5444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  padding: 6px 26px 6px 10px;
  cursor: pointer;
  max-width: 118px;
}

.ccy-select:hover {
  border-color: var(--line-strong);
}

.ccy-select:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
}

.qsearch {
  position: relative;
  flex: 1 1 320px;
  min-width: 200px;
  max-width: 420px;
}

.qsearch .qsearch-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-faint);
  pointer-events: none;
}

.qsearch input[type="search"] {
  width: 100%;
  padding: 8px 34px 8px 34px;
  font-size: 0.95rem;
}

.qsearch-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 6px;
  pointer-events: none;
  background: var(--paper-deep);
}

.qsearch-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.qsearch-results[hidden] {
  display: none;
}

.qsearch-result {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.qsearch-result:last-child {
  border-bottom: none;
}

.qsearch-result:hover,
.qsearch-result.is-active {
  background: var(--green-100);
  text-decoration: none;
}

.qsearch-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.qsearch-result span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.qsearch-empty {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px 0 4px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-700);
}

.quick-chip span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 1px 8px;
}

.quick-chip:hover {
  border-color: var(--green-700);
  background: var(--green-100);
  text-decoration: none;
}

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 18px;
}

.hero p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.section {
  padding: 40px 0;
  scroll-margin-top: 70px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head .count {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

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

.tool-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tool-card-link:hover {
  text-decoration: none;
}

.tool-card-link h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.tool-card-link p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.card-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-faint);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.card-like svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-like:hover {
  color: var(--terracotta);
  border-color: #e5c9ba;
  background: var(--terracotta-100);
}

.card-like.liked {
  color: var(--terracotta);
  border-color: #e0b39a;
  background: var(--terracotta-100);
}

.card-like.liked svg {
  fill: var(--terracotta);
  stroke: var(--terracotta);
}

.card-like .like-count {
  font-family: var(--mono);
  font-size: 0.8rem;
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 9px;
  margin-bottom: 6px;
}

.tool-card-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 26px 0 4px;
}

.crumb a {
  color: var(--ink-faint);
}

.crumb a:hover {
  color: var(--green-700);
}

.crumb .sep {
  margin: 0 6px;
}

.updated {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: -2px 0 0;
}

.page-head {
  padding: 18px 0 10px;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-head p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin: 18px 0 34px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.input-wrap {
  position: relative;
}

.input-wrap .prefix,
.input-wrap .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 0.92rem;
  pointer-events: none;
}

.input-wrap .prefix {
  left: 12px;
}

.input-wrap .suffix {
  right: 12px;
}

input[type="number"],
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.input-wrap input[type="number"],
.input-wrap input[type="text"] {
  padding-left: 30px;
}

.input-wrap.has-suffix input[type="number"] {
  padding-right: 40px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(55, 102, 76, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-900);
  text-decoration: none;
}

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

.btn-secondary:hover {
  border-color: var(--ink-soft);
  background: var(--paper-deep);
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.results {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.result-line:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.result-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-900);
  font-variant-numeric: tabular-nums;
}

.result-value.big {
  font-size: 1.5rem;
  font-weight: 700;
}

.result-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 8px;
}

[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  padding: 8px 11px;
  border-radius: 6px;
  max-width: 280px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.4);
}

[data-tip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: 16px;
  border: 5px solid transparent;
  border-bottom-color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 30;
}

[data-tip]:hover::after,
[data-tip]:hover::before,
[data-tip]:focus-visible::after,
[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.copy-btn {
  margin-top: 12px;
  font-size: 0.85rem;
  padding: 7px 14px;
}

.copy-btn.done {
  background: var(--green-100);
  color: var(--green-900);
  border-color: var(--green-600);
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

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

.prose ul {
  margin: 0 0 16px 22px;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 6px;
}

.formula {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--green-900);
  overflow-x: auto;
  margin: 12px 0 20px;
}

.example {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-600);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 14px 0 22px;
}

.example p {
  margin-bottom: 6px;
}

.example p:last-child {
  margin-bottom: 0;
}

.faq {
  max-width: 720px;
  margin-top: 12px;
}

.faq h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 2px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-right: 4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -4px;
}

.faq-item .faq-body {
  padding: 0 2px 16px;
  color: var(--ink-soft);
  max-width: 66ch;
}

.faq-item .faq-body p {
  margin-bottom: 8px;
}

.disclaimer {
  background: var(--terracotta-100);
  border: 1px solid #e5c9ba;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #7a3d22;
  margin: 24px 0 30px;
}

.related {
  margin-top: 34px;
}

.related h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: block;
}

.related-card:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.related-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-card span {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.page-narrow {
  max-width: 720px;
}

.page-narrow h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-narrow .lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.page-narrow h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 30px 0 10px;
}

.page-narrow p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.page-narrow ul {
  margin: 0 0 16px 22px;
  color: var(--ink-soft);
}

.page-narrow li {
  margin-bottom: 6px;
}

.page-narrow .muted {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.contact-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 8px;
}

.founder {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 26px 0 8px;
}

.founder-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex: none;
}

.founder-role {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.founder-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.founder-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 480px) {
  .founder {
    flex-direction: column;
    text-align: center;
  }
}

.contact-block p {
  margin-bottom: 10px;
}

.contact-block code {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--paper-deep);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--green-900);
}

.footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-inner {
  padding: 44px 0 30px;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 24px;
  margin-bottom: 26px;
}

.footer-blurb {
  grid-column: span 3;
  max-width: none;
}

.footer-cols {
  grid-column: span 9;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}

.footer-col--tall ul {
  columns: 2;
  column-gap: 20px;
}

.footer-blurb .brand {
  margin-bottom: 10px;
}

.footer-blurb p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer-bottom .legal {
  display: flex;
  gap: 16px;
}

.footer-bottom a {
  color: var(--ink-faint);
}

.footer-bottom a:hover {
  color: var(--green-700);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 50;
}

.skip-link:focus {
  left: 0;
}

.ad-note {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

.ad-slot {
  display: none;
}

.ad-slot:has(ins.adsbygoogle) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot--leaderboard {
  min-height: 90px;
}

.ad-slot--rect {
  min-height: 250px;
  max-width: 420px;
  margin: 0 auto;
}

.topic-table {
  margin: 34px 0 10px;
  max-width: 720px;
}

.topic-table h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.topic-table .topic-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.topic-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-table th,
.topic-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.topic-table tr:last-child th,
.topic-table tr:last-child td {
  border-bottom: none;
}

.topic-table th {
  width: 42%;
  font-weight: 600;
}

.topic-table th a {
  color: var(--ink);
  text-decoration: none;
}

.topic-table th a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-table td {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -12px rgba(35, 32, 25, 0.25);
  padding: 18px 20px;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.cookie-banner p a {
  color: var(--green-700);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-blurb {
    grid-column: span 1;
    max-width: 380px;
  }

  .footer-cols {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 52px 0 30px;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 0.9rem;
  }

  .ccy-select {
    padding: 6px 22px 6px 8px;
    max-width: 96px;
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .calc-card {
    padding: 20px;
  }

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

@media (max-width: 420px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-col--tall ul {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
