/* ── Calculator Grid ──────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.calc-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.calc-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.calc-card-item:hover {
  border-color: var(--cat-color, var(--accent));
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}

.calc-card-link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  height: 100%;
  text-decoration: none;
  color: var(--text);
}

.calc-card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.calc-card-cat {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cat-color, var(--muted));
  font-weight: 600;
  margin-bottom: .375rem;
}

.calc-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.calc-card-desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.calc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
}

.calc-card-action {
  font-size: .8rem;
  font-weight: 600;
  color: var(--cat-color, var(--accent));
}

.calc-card-badge {
  font-size: .7rem;
  background: #f59e0b20;
  color: #d97706;
  padding: .15rem .5rem;
  border-radius: 99px;
  font-weight: 600;
}

/* ── Calculator Page ──────────────────────────────────────── */
.calculator-page {
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: var(--shadow-sm);
  --shadow-md: var(--shadow);
  --border-light: var(--border);
  --bg-card: var(--surface);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --transition: 0.2s ease;
  padding-top: 0;
  overflow-x: clip;
  /* Prevent horizontal page-level scrolling without breaking sticky */
}

/* ===== GRID LAYOUT ===== */
.calc-grid {
  display: grid;
  column-gap: 10px;
  row-gap: 10px;
  margin: 0;
}

/* Desktop: 3 columns with specific areas */
@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 32fr 40fr 28fr;
    grid-template-areas:
      "info main sidebar"
      "ad ad sidebar"
      "seo seo sidebar";
    align-items: start;
    max-width: 100%;
  }

  .calc-ad-top {
    grid-area: ad;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .calc-sidebar-info {
    grid-area: info;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .calc-main-content {
    grid-area: main;
    margin: 0;
  }

  .calc-sidebar {
    grid-area: sidebar;
    margin: 0;
  }

  .calc-seo-footer {
    grid-area: seo;
    margin: 0;
    padding: 0;
  }
}

.calc-crumbs-header {
  padding: 0;
  margin-bottom: 5px;
}

/* ── Form Styling ────────────────────────────────────────── */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.unit-label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
}

.form-control {
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8480' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  background: #dc262615;
  border: 1px solid #dc262640;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--danger);
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  gap: .75rem;
  align-items: stretch;
  /* Ensuring same height */
  margin-top: 1.5rem;
}

.form-actions .btn-primary,
.form-actions .btn-ghost {
  height: 54px !important;
  /* Force same height */
  margin: 0 !important;
  /* Kill any individual offsets */
  border-radius: var(--radius-sm);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-actions .btn-primary {
  flex: 3;
}

/* 75% space */
.form-actions .btn-ghost {
  flex: 1;
  justify-content: center;
}

/* ── Result Box ───────────────────────────────────────────── */
.result-box {
  display: block;
  position: relative;
  clear: both;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  contain: layout;
  /* CLS Fix 4: isolates box layout from parent document */
  animation: slideUp .35s ease both;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  /* CLS Fix 4: reduced from 12px */
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}

.share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.result-highlight {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface2);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.result-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.result-label {
  font-size: 1rem;
  font-weight: 600;
  margin-top: .5rem;
}

/* BMI specific */
.bmi-gauge-wrap {
  margin: 1.25rem 0;
}

.bmi-gauge {
  height: 10px;
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 35%, #f59e0b 65%, #ef4444 100%);
  border-radius: 99px;
  position: relative;
  margin-bottom: .5rem;
}

.bmi-gauge-fill {
  position: absolute;
  top: -3px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
  transition: left .6s cubic-bezier(.4, 0, .2, 1);
  margin-left: -8px;
}

.bmi-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  margin-top: .5rem;
  text-align: center;
}

.result-rows {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem .875rem;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}

.result-row span {
  color: var(--text-2);
}

.result-row strong {
  font-weight: 600;
}

.result-advice {
  margin-top: 1rem;
  padding: .875rem 1rem;
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* EMI specific */
.emi-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
  justify-content: center;
}

.emi-donut {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

.emi-legend {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Age specific */
.age-primary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.age-primary small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.age-sep {
  color: var(--border);
  font-size: 2rem;
}

.result-disclaimer {
  margin-top: 1.25rem;
  font-size: .75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .875rem;
}

/* Specific Tool Components */
.result-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .result-grid-3 {
    grid-template-columns: 1fr;
  }
}

.result-stat {
  text-align: center;
  padding: 1rem;
  background: var(--surface2);
  border-radius: var(--radius);
}

.result-stat.rs-highlight {
  background: var(--accent);
}

.result-stat.rs-highlight .rs-value,
.result-stat.rs-highlight .rs-label {
  color: #fff;
}

.rs-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.rs-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .25rem;
}

/* ===== CALCULATOR META & INFO SPLIT ===== */
.calc-tool-hero {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calc-tool-hero:hover {
  border-color: var(--cat-color);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.calc-hero-shortcut {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 10;
}

.calc-hero-shortcut svg {
  width: 14px;
  height: 14px;
  color: var(--cat-color);
}

.calc-hero-shortcut:hover {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color) 25%, transparent);
}

.calc-hero-shortcut:hover svg {
  color: #fff;
}

.calc-detailed-guide {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.calc-info__header {
  width: 100%;
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-info__header-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.calc-info__header-icon {
  font-size: 1.5rem;
}

.calc-info__toggle-icon {
  font-size: 1.5rem;
}

.calc-info__toggle-title {
  flex: 1;
}

.calc-info__toggle-chevron {
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.calc-info__body {
  padding: 1.75rem;
}

/* Mobile: Info card is now static */
@media (max-width: 1023px) {
  .calc-detailed-guide {
    margin-bottom: 1rem;
  }
}

/* Hero Title Group */
.calc-info__hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.calc-info__icon {
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: none;
  color: var(--cat-color);
  position: relative;
}

.calc-info__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-info__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1.5px solid;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.calc-info__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  color: var(--color-secondary);
  letter-spacing: -0.01em;
}

.calc-info__desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.calc-info__facts {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 600;
}

.calc-info__facts span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: var(--surface2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.calc-info__facts span:hover {
  background: var(--bg2);
  transform: scale(1.05);
}

.calc-info__howto {
  background: var(--surface2);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.calc-info__howto-title {
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-info__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calc-info__steps li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-2);
  align-items: center;
}

.calc-info__step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--cat-color);
  color: white;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.calc-info__formula {
  background: var(--surface2);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.calc-info__formula-label {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.katex-formula-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 0.5rem 0;
  font-size: 1.15rem;
  color: var(--color-primary);
  /* Custom scrollbar for better look */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.katex-formula-wrapper::-webkit-scrollbar {
  height: 4px;
}

.katex-formula-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.katex-formula-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.calc-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.calc-info__tag {
  background: var(--surface2);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.calc-info__tag:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* ===== CENTER TOOL CARD ===== */
.calc-tool__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--cat-color, var(--accent));
  /* Premium Widget Look */
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient to enhance widget depth */
.calc-tool__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--cat-color) 4%, transparent), transparent);
  pointer-events: none;
}

/* ===== RIGHT SIDEBAR ===== */
.calc-sidebar__sticky {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 1024px) {
  .calc-sidebar__sticky {
    position: sticky;
    top: 80px;
  }
}

.calc-sidebar__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
}

.calc-sidebar__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-left: 4px solid var(--cat-color);
  padding-left: 0.75rem;
}

.calc-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-sidebar__list li {
  margin-bottom: 0.75rem;
}

.calc-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.calc-sidebar__link:hover {
  background: #f8fafc;
  color: var(--cat-color);
}

.calc-sidebar__link-icon {
  font-size: 1.5rem;
}

.calc-sidebar__link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calc-sidebar__link-text strong {
  font-size: 0.9rem;
}

.calc-sidebar__link-text small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.calc-sidebar__link-arrow {
  opacity: 0.5;
  font-size: 0.875rem;
}

.calc-sidebar__category {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
}

.calc-sidebar__category:hover,
.calc-sidebar__category--active {
  background: var(--cat-color);
  color: white;
}

/* ===== SEO FOOTER ===== */
.calc-seo-footer {
  margin: 0;
  padding: 0;
}

.calc-seo-footer__content {
  max-width: 100%;
  overflow-x: auto;
}

/* ── Content (CMS) Styling ───────────────────────────────── */
.calc-db-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 1.5rem;
  line-height: 1.8;
  color: var(--text-2);
}

.calc-db-content h2 {
  color: var(--color-secondary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.calc-db-content h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.calc-db-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.calc-db-content ul,
.calc-db-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.calc-db-content li {
  margin-bottom: 0.75rem;
}

.calc-db-content strong {
  color: var(--text);
  font-weight: 700;
}

.calc-db-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--surface2);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.calc-db-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.calc-db-content th,
.calc-db-content td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.calc-db-content th {
  background: var(--surface2);
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .calc-db-content {
    padding: 1.5rem;
  }

  .calc-db-content h2 {
    font-size: 1.35rem;
  }
}

/* ===== UTILITIES ===== */
@media (max-width: 1023px) {
  .calc-grid {
    display: flex;
    flex-direction: column;
  }

  .calc-sidebar-info {
    display: contents;
  }

  .calc-tool-hero {
    order: 1;
    margin-bottom: 0;
  }

  .calc-main-content {
    order: 2;
    margin-bottom: 0;
  }

  .calc-detailed-guide {
    order: 3;
    margin-bottom: 0;
  }

  .calc-ad-top {
    order: 4;
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .calc-seo-footer {
    order: 5;
    margin-top: 10px;
  }

  .calc-sidebar {
    order: 6;
    margin-top: 10px;
  }
}

/* B-2 Fix: Surface Tool Engine above the fold on small phones.
   The .calc-info__desc pushes the form to ~48% viewport on a 667px device.
   Hiding it on small screens brings the form within the top ~30% of viewport.
   The description is still readable in .calc-detailed-guide below the form. */
@media (max-width: 767px) {
  .calc-info__desc {
    display: none;
  }

  .calc-info__facts {
    font-size: 0.8rem;
    gap: 0.5rem;
    margin-bottom: 0;
  }
}

/* ── Amortization Table Scroll Upgrade ─────────────────────── */
.amortization-table-wrap {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  /* Handle wide tables on mobile */
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
}

.amortization-table {
  border-collapse: collapse;
  width: 100%;
}

.amortization-table th,
.amortization-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.amortization-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 2px 0 var(--border);
}


