/* DebtOptimizerHub — Clean Finance Theme (single, consistent stylesheet) */

:root{
  --bg:      #f1f5f9;
  --card:    #ffffff;
  --text:    #0f172a;
  --muted:   #475569;
  --border:  #e2e8f0;

  --primary: #1e3a5f;
  --primary2:#1d4ed8;
  --danger:  #b91c1c;
  --ok:      #047857;

  --shadow:  0 10px 30px rgba(15, 23, 42, .08);
  --shadow2: 0 6px 18px rgba(15, 23, 42, .08);
  --radius:  16px;
  --max:     1100px;

  --sans:    'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
             "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
}

/* Prevent mystery overflow */
body, .card, .article{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Media should never blow out container width */
img, svg, video, canvas{
  max-width: 100%;
  height: auto;
}

a{ color: var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 60px;
}

/* NAV */
.nav{
  padding:16px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:22px;
  letter-spacing:-0.02em;
  line-height:1;
}

.brand a{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

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

.brand img{
  width:46px;
  height:46px;
  display:block;
}

.navlinks{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.navlinks a{
  color: #334155;
  font-weight: 650;
  white-space: normal;
}

.navlinks a:hover{
  color: var(--primary);
  text-decoration:none;
}

@media (max-width: 720px){
  .nav{
    align-items:flex-start;
  }

  .navlinks{
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    row-gap: 8px;
    margin-top: 6px;
  }
}

/* HERO */
.hero{
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 70%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hero h1{
  margin:0 0 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.hero p{
  margin:0;
  color: #334155;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 550;
}

/* GRID / CARDS */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: start;
}

.card{
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}

@media (min-width: 900px){
  .card.two{ grid-column: span 7; }
  .card.one{ grid-column: span 5; }
}

.card.one{ align-self: start; }

.card h2{
  margin:0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.card p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

/* SINGLE-COLUMN TOOL LAYOUT */
.tool-layout{
  margin-top: 18px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.tool-layout .tool-main{
  width: 100%;
}

@media (max-width: 900px){
  .tool-layout{
    max-width: 100%;
  }
}

/* GUIDE GRID LAYOUT */
@media (min-width: 900px){
  .guide-grid{
    gap: 18px;
  }

  .guide-grid .guide-main{
    grid-column: span 8;
  }

  .guide-grid .guide-side{
    grid-column: span 4;
  }
}

/* TOOLS LIST */
.tools{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tool{
  display:block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-left: 4px solid var(--primary);
  background: #f1f5f9;
  text-decoration: none;
  transition: all .15s ease;
}

.tool:hover{
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.tool strong{
  display:block;
  margin-bottom: 4px;
  font-weight: 850;
  color: var(--text);
}

.tool .meta{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 550;
}

/* FORMS */
.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px){
  .form{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-size: 13px;
  color: #334155;
  margin: 0 0 6px;
  font-weight: 650;
}

.field input,
.field select{
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
  font-weight: 550;
}

.field input::placeholder,
textarea::placeholder{
  color: #9aa3ad;
  opacity: 1;
}

.field input:focus,
.field select:focus{
  border-color: rgba(30, 58, 95, .55);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, .10);
}

/* Remove number input spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

input[type=number]{
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ACTIONS / BUTTONS */
.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

button{
  border: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

button:hover{
  filter: brightness(0.96);
}

/* =========================
   Secondary buttons (Reset)
   ========================= */

button.secondary{
  background:#f1f5f9;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:11px 16px;
  font-weight:800;
  cursor:pointer;

  transition:background .15s ease, transform .05s ease, box-shadow .15s ease;
}

/* Hover */
button.secondary:hover{
  background:#e2e8f0;
  box-shadow:0 1px 2px rgba(15,23,42,.08);
  transform: translateY(-1px);
}

/* Click */
button.secondary:active{
  background:#dbe2ea;
  transform:translateY(1px);
}

/* Keyboard accessibility */
button.secondary:focus-visible{
  outline:3px solid rgba(30,58,95,.35);
  outline-offset:2px;
}

/* =========================
   Calculate button styling
   ========================= */

#calcBtn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

/* Hover */
#calcBtn:hover {
  background:#1b4f85;
  transform: translateY(-1px);
}

/* Click */
#calcBtn:active {
  background: #163f6b;
  transform: translateY(1px);
}

/* Keyboard accessibility */
#calcBtn:focus-visible {
  outline: 3px solid rgba(30,58,95,.35);
  outline-offset: 2px;
}

/* =========================
   Next Step button styling
   ========================= */

#nextStepPrimaryLink {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

/* Hover */
#nextStepPrimaryLink:hover {
  background:#1b4f85;
  transform: translateY(-1px);
}

/* Click */
#nextStepPrimaryLink:active {
  background: #163f6b;
  transform: translateY(1px);
}

/* Keyboard accessibility */
#nextStepPrimaryLink:focus-visible {
  outline: 3px solid rgba(30,58,95,.35);
  outline-offset: 2px;
}


/* =========================
   Secondary Next Step button styling
   ========================= */

#nextStepSecondaryLink {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

/* Hover */
#nextStepSecondaryLink:hover {
  background:#1b4f85;
  transform: translateY(-1px);
}

/* Click */
#nextStepSecondaryLink:active {
  background: #163f6b;
  transform: translateY(1px);
}

/* Keyboard accessibility */
#nextStepSecondaryLink:focus-visible {
  outline: 3px solid rgba(30,58,95,.35);
  outline-offset: 2px;
}

.note{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 550;
}

.actions > table,
.actions > .table{
  flex: 0 0 100%;
  width: 100%;
}

/* KPI BOXES */
.kpis{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px){
  .kpis{ grid-template-columns: 1fr; }
}

.kpi{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;

  /* subtle depth so results feel important */
  box-shadow: 0 1px 2px rgba(15,23,42,.05);

  transition: box-shadow .15s ease, transform .05s ease;
}

.kpi:hover{
  box-shadow: 0 4px 10px rgba(15,23,42,.08);
  transform: translateY(-1px);
}

.kpi .label{
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kpi .value{
  font-size: 24px;
  font-weight: 900;
  margin-top: 6px;
  color: var(--text);
  line-height: 1.1;
}

.kpi .sub{
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

/* ALERTS */
.alert{
  border: 1px solid rgba(185, 28, 28, .25);
  background: rgba(185, 28, 28, .06);
  padding: 10px 12px;
  border-radius: 14px;
  color: #7f1d1d;
  display: none;
  font-weight: 650;
}

/* TABLE — keep exported working behavior for tools/modals */
.table{
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  display: table;
}

.card .table,
.card table.table{
  width: 100%;
  max-width: 100%;
}

#schedTable{
  width: 100%;
  max-width: 100%;
}

.table th,
.table td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.table th:first-child,
.table td:first-child{
  width: 72px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
  font-variant-numeric: tabular-nums;
}

.table th{
  color: #334155;
  font-weight: 800;
  background: #f1f5f9;
}

.table th:nth-child(n+2),
.table td:nth-child(n+2){
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table tr:last-child td{ border-bottom: 0; }

/* Mobile: wide tables scroll instead of collapsing */
@media (max-width: 720px){
  .table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 560px;
  }

  .table th,
  .table td{
    white-space: nowrap;
  }
}

/* Table wrapper for guide tables */
.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  margin: 20px 0;
}

/* FOOTER + SEPARATOR */
.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
}

hr.sep{
  border:0;
  height:2px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(30,58,95,.35),
    transparent
  );
  margin:28px 0;
}

/* GUIDE PAGE */
.article{
  width:100%;
  padding: 4px 10px 2px;
}

@media (min-width: 900px){
  .article{
    max-width: 100%;
    margin: 0;
    padding: 6px 20px 4px;
  }
}

@media (min-width: 1200px){
  .article{
    padding-left: 24px;
    padding-right: 24px;
  }
}

.article h2{
  margin-top:20px;
  margin-bottom:12px;
  font-size:20px;
  font-weight:900;
  letter-spacing:-0.01em;
  border-left:4px solid rgba(30,58,95,.85);
  padding-left:10px;
  position:relative;
}

.article h2::after{
  content:"";
  display:block;
  width:40px;
  height:2px;
  margin-top:8px;
  background:rgba(30,58,95,.35);
}

.article p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.72;
  font-size:15.5px;
}

.article ul{
  margin: 8px 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.article li{
  margin: 8px 0;
  line-height: 1.6;
}

.callout-label{
  margin: 0 0 8px;
  font-weight: 800;
  color: #334155;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Example Box */
.example-box{
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary2);
  background: #eef4ff;
}

.example-box > strong{
  display:block;
  margin-bottom: 6px;
  font-weight: 900;
  color: var(--text);
}

.example-box p{
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-tool{
  display:block;
  margin: 14px 0 18px;
  padding: 16px 18px;
  background: #f6f8fb;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  text-decoration: none;
  transition: all .15s ease;
}

.guide-tool strong{
  display:block;
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 900;
  color: var(--text);
}

.guide-tool .meta{
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 600;
}

.guide-tool:hover{
  background:#eef3f9;
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(15,23,42,.08);
}

.promo-slot{
  margin: 22px 0;
  padding: 22px 16px 14px;
  border: 1px dashed rgba(30, 58, 95, 0.22);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(30, 58, 95, 0.035),
    rgba(30, 58, 95, 0.02)
  );
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  min-height: 110px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  box-sizing:border-box;
}

.promo-slot::before{
  content:"Advertisement";
  position:absolute;
  top:6px;
  left:12px;
  font-size:10px;
  letter-spacing:.08em;
  font-weight:900;
  color:rgba(15,23,42,.45);
}

@media (max-width: 640px){
  .promo-slot{
    margin: 18px 0;
    min-height: 84px;
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 12px;
  }
}

.guide-index{
  margin-top:40px;
}

.guide-index .guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:10px;
  margin-top:16px;
}

.guide-index .guide-grid a{
  display:block;
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  color:var(--text);
  background:#f8fafc;
  line-height:1.35;
}

.guide-index .guide-grid a:hover{
  background:#eef2f7;
  transform: translateY(-1px);
}

.guide-index h3{
  margin-top:28px;
}

@media (max-width: 640px){
  .guide-index .guide-grid{
    grid-template-columns:1fr;
  }
}

.balance-jump{
  margin:32px 0;
}

.balance-jump-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
  gap:8px;
  margin-top:10px;
}

.balance-jump-grid a{
  padding:12px 14px;
  display:block;
  text-align:center;
  padding:10px;
  border:1px solid var(--border);
  border-radius:8px;
  text-decoration:none;
  font-weight:800;
  background:#f1f5f9;
  color:var(--text);
}

.balance-jump-grid a:hover{
  background:#e2e8f0;
  transform: translateY(-1px);
}

.cluster-hub-link{
  margin-top:6px;
  font-size:14px;
  color:var(--muted);
}

.cluster-hub-link a{
  font-weight:700;
}

/* Sticky sidebar (desktop) */
.sticky{
  position: sticky;
  top: 14px;
}

@media (max-width: 899px){
  .sticky{ display:none; }
}

.small-note{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Mobile shortcuts */
.mobile-shortcuts{
  display:none;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f6f8fb;
}

.mobile-shortcuts h3{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mobile-shortcuts .links{
  display:grid;
  gap: 10px;
}

.mobile-shortcuts a{
  display:block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  text-decoration:none;
}

.mobile-shortcuts a strong{
  display:block;
  font-weight: 900;
  margin-bottom: 2px;
  color: var(--text);
}

.mobile-shortcuts a span{
  display:block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 899px){
  .mobile-shortcuts{ display:block; }
}

/* Table of contents */
.toc{
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li{
  margin: 0;
  padding: 0;
}

.toc li + li{
  margin-top: 8px;
}

.toc a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration:none;
  transition: all .15s ease;
}

.toc a:hover{
  background: #eef3f9;
  color: var(--primary);
  text-decoration:none;
  transform: translateY(-1px);
}

/* Summary cards */
.summary-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 700px){
  .summary-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.summary-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}

.summary-card strong{
  display:block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 850;
  color: var(--text);
}

.summary-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Guide comparison tables only */
.table-compare{
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.table-compare th,
.table-compare td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.table-compare th{
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.table-compare tr:last-child td{
  border-bottom: 0;
}

@media (max-width: 720px){
  .table-compare{
    min-width: 560px;
  }

  .table-compare th,
  .table-compare td{
    white-space: nowrap;
  }
}

/* CALCULATOR PREVIEW CARD */
.calc-preview{
  margin: 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
  min-width: 0;
}

.calc-preview .bar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.calc-preview .bar strong{
  font-weight: 900;
  color: var(--text);
}

.calc-preview .bar .hint{
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  flex: 1 1 240px;
  white-space: normal;
}

@media (max-width: 420px){
  .calc-preview .bar .hint{ flex-basis: 100%; }
}

.calc-preview .body{ padding: 14px; }

.preview-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px){
  .preview-grid{ grid-template-columns: 1fr; }
}

.preview-field{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  min-width: 0;
}

.preview-field .label{
  font-size: 12px;
  color: #334155;
  font-weight: 750;
  margin-bottom: 6px;
}

.preview-field .fake-input{
  height: 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display:flex;
  align-items:center;
  padding: 0 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}

.preview-kpis{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px){
  .preview-kpis{ grid-template-columns: 1fr; }
}

.preview-kpi{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  min-width: 0;
}

.preview-kpi .k{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.preview-kpi .v{
  margin-top: 4px;
  font-weight: 950;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.preview-actions{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
}

.preview-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
  text-decoration:none;
  border: 0;
}

.preview-btn:hover{
  text-decoration:none;
  filter: brightness(0.96);
}

.preview-btn.secondary{
  background: #e2e8f0;
  color: var(--text);
  border: 1px solid #cbd5e1;
}

.preview-actions .note{ margin: 0; }

/* Explore more calculators */
.more-calculators{
  margin-top: 0;
  margin-bottom: 18px;
}

.more-calculators h3{
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.more-calculators ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.more-calculators li{
  margin: 0;
  padding: 0;
}

.more-calculators a{
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: all 0.15s ease;
}

.more-calculators a:hover{
  background: #eef3f9;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.guide-link-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin-top:14px;
}

.guide-card{
  display:block;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#f8fafc;
  text-decoration:none;
  transition:all .15s ease;
}

.guide-card strong{
  display:block;
  font-weight:900;
  font-size:15px;
  color:var(--text);
  margin-bottom:4px;
}

.guide-card span{
  font-size:13px;
  color:rgba(15,23,42,0.75);
}

.guide-card:hover{
  background:#eef6ff;
  transform:translateY(-1px);
}

.scenario-switcher{
  margin:18px 0;
  padding:14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#f8fafc;
}

.scenario-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.scenario-links a{
  display:inline-block;
  padding:6px 10px;
  border-radius:8px;
  background:#eef6ff;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  color:#1e3a5f;
}

.scenario-links a:hover{
  background:#1e3a5f;
  color:#ffffff;
}