/* ════════════════════════════════════════════════════════════
   tools/savings/style.css — Deposit Interest Calculator (hub)
   Aesthetic: /for/ master template — page bg เทา + การ์ดขาว + pill ดำ
   Accent: mint green (savings/growth)
   ════════════════════════════════════════════════════════════ */

body.tool-savings,
main.container:has(.sv-page),
.sv-page {
  --page-bg:    #F2F2F4;
  --card-bg:    #FFFFFF;
  --card-soft:  #F7F7F8;
  --ink:        #0A0A0A;
  --text:       #1F2937;
  --muted:      #6B7280;
  --hairline:   #EAEAEC;

  --acc:        #10B981;   /* mint — featured / value-positive */
  --acc-dim:    #34D399;
  --acc-soft:   #D8EFE0;
  --acc-text:   #047857;

  --tile-blue-bg:    #DDEBFA; --tile-blue-icon:    #2A8FE0;
  --tile-peach-bg:   #FCE9D6; --tile-peach-icon:   #E07A35;
  --tile-mint-bg:    #D8EFE0; --tile-mint-icon:    #2D8957;

  --r-card:     24px;
  --r-pill:     999px;
  --r-tile:     16px;
  --r-input:    14px;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(0,0,0,.06);
}

/* override the global container/body for this page */
body { background: #F2F2F4; }
body.tool-savings main.container,
main.container:has(.sv-page) {
  max-width: 1280px;
  padding-inline: clamp(16px, 3vw, 28px);
}
body.tool-savings .site-header-inner {
  max-width: 1280px;
}

.sv-page {
  color: var(--text);
}

/* back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  margin: 20px 0 16px;
  font-weight: 500;
}
.back-link:hover { color: var(--ink); }

/* ─── HERO ────────────────────────────────────────────────── */
.sv-hero {
  padding: clamp(16px, 3vw, 32px) 4px clamp(20px, 4vw, 32px);
  max-width: 720px;
}
.sv-eyebrow {
  font-size: 14px;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.sv-h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.sv-h1-accent { color: var(--muted); font-weight: 600; }
.sv-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 600px;
}

/* ─── PANEL (white wrapping card) ─────────────────────────── */
.sv-panel {
  background: var(--card-bg);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.sv-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
  gap: 14px;
  flex-wrap: wrap;
}
.sv-panel-title {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.01em;
}
.sv-panel-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ─── TYPE GRID (3 cards) ─────────────────────────────────── */
.sv-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 820px) { .sv-type-grid { grid-template-columns: 1fr; } }

.sv-type {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  text-decoration: none;
  background: var(--card-bg);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sv-type:hover {
  border-color: #D4D4D8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.08);
}
.sv-type-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.sv-type-fd .sv-type-tile  { background: var(--tile-blue-bg);  color: var(--tile-blue-icon); }
.sv-type-rs .sv-type-tile  { background: var(--tile-peach-bg); color: var(--tile-peach-icon); }
.sv-type-tf .sv-type-tile  { background: var(--tile-mint-bg);  color: var(--tile-mint-icon); }

.sv-type-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -.005em;
}
.sv-type-rate {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.sv-type-rate strong { color: var(--ink); font-weight: 600; }
.sv-type-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.sv-type-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.sv-type-cta::after {
  content: '';
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--card-soft);
  transition: background .15s, color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.sv-type:hover .sv-type-cta::after {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

/* featured badge */
.sv-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--acc);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ─── COMPARE TABLE (Open Listings style) ─────────────────── */
.sv-compare {
  overflow-x: auto;
  margin: 0 -8px;
}
.sv-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}
.sv-compare th, .sv-compare td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.sv-compare th:first-child, .sv-compare td:first-child {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  width: 22%;
}
.sv-compare thead th {
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
/* featured column (ปลอดภาษี) — boxed + mint values like Open Listings */
.sv-compare .col-feat {
  background: rgba(16,185,129,.04);
  position: relative;
}
.sv-compare thead .col-feat {
  color: var(--ink);
  font-weight: 700;
  border-top: 2px solid var(--acc);
  border-left: 1px solid var(--acc-soft);
  border-right: 1px solid var(--acc-soft);
  border-radius: 12px 12px 0 0;
}
.sv-compare tbody .col-feat {
  border-left: 1px solid var(--acc-soft);
  border-right: 1px solid var(--acc-soft);
  color: var(--acc-text);
  font-weight: 600;
}
.sv-compare tbody tr:last-child .col-feat {
  border-bottom: 2px solid var(--acc);
  border-radius: 0 0 12px 12px;
}
.sv-compare tbody td strong { color: var(--ink); font-weight: 700; }
.sv-compare tbody .col-feat strong { color: var(--acc-text); }

.sv-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--card-soft);
  color: var(--muted);
}
.sv-tag-warn { background: #FEF3F2; color: #B42318; }
.sv-tag-partial { background: #FFFAEB; color: #B54708; }
.sv-tag-good { background: var(--acc-soft); color: var(--acc-text); }

/* ─── BIG RESULT CARDS (2-card) ───────────────────────────── */
.sv-result-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .sv-result-row { grid-template-columns: 1fr; } }

.sv-result-card {
  background: var(--card-soft);
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
}
.sv-result-card-feat {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border-color: var(--acc-soft);
}
.sv-result-label {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px;
}
.sv-result-card-feat .sv-result-label { color: var(--acc-text); }
.sv-result-value {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.sv-result-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.sv-result-card-feat .sv-result-note { color: var(--acc-text); opacity: .85; }

/* ─── CALC FORM ───────────────────────────────────────────── */
.sv-form { display: flex; flex-direction: column; gap: 18px; }

.sv-field { display: flex; flex-direction: column; gap: 8px; }
.sv-field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sv-field-hint { font-size: 11.5px; color: var(--muted); font-weight: 400; }

.sv-input-wrap {
  display: flex;
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 0 16px;
  transition: border-color .15s, background .15s;
}
.sv-input-wrap:focus-within {
  border-color: var(--ink);
  background: var(--card-bg);
}
.sv-input-prefix, .sv-input-suffix {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  font-weight: 500;
}
.sv-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 8px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  outline: none;
  text-align: right;
  min-width: 0;
}

/* two-col field row */
.sv-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .sv-field-row { grid-template-columns: 1fr; } }

/* segmented pill control (Matango style) */
.sv-seg {
  display: flex;
  background: var(--card-soft);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
}
.sv-seg input { display: none; }
.sv-seg label {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sv-seg input:checked + label {
  background: var(--ink);
  color: #fff;
}

/* breakdown rows */
.sv-breakdown {
  margin-top: 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.sv-break-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 4px;
  font-size: 14px;
}
.sv-break-row + .sv-break-row { border-top: 1px solid var(--hairline); }
.sv-break-label { color: var(--muted); }
.sv-break-value { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-break-deduct { color: #B42318; }
.sv-break-final {
  margin-top: 4px;
  padding: 14px 4px;
  border-top: 1.5px solid var(--ink) !important;
  font-size: 16px;
}
.sv-break-final .sv-break-label { color: var(--ink); font-weight: 700; }
.sv-break-final .sv-break-value { font-size: 18px; }

/* callout */
.sv-callout {
  margin-top: 18px;
  background: var(--acc-soft);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--acc-text);
}
.sv-callout-icon { font-size: 18px; flex-shrink: 0; }
.sv-callout p { margin: 0; }
.sv-callout strong { color: var(--acc-text); }

/* ─── FAQ + Related ───────────────────────────────────────── */
.sv-faq-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) { .sv-faq-grid { grid-template-columns: 1fr; } }

.sv-faq details {
  background: var(--card-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.sv-faq details[open] {
  background: var(--card-bg);
  border-color: var(--ink);
}
.sv-faq summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s;
}
.sv-faq details[open] summary::after { content: '−'; }
.sv-faq-body {
  padding: 0 18px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
}
.sv-faq-body p { margin: 0 0 8px; }
.sv-faq-body p:last-child { margin-bottom: 0; }

.sv-related-title {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.sv-related-list { list-style: none; padding: 0; margin: 0; }
.sv-related-list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.sv-related-list li:first-child { border-top: 0; padding-top: 4px; }
.sv-related-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.sv-related-list a:hover { color: var(--acc-text); }
/* =========================================================================
   tools/wht/style.css — Earnest-inspired clean calculator UI (Green theme)
   ========================================================================= */

/* Override token: ทั้งหน้านี้ใช้สีเขียวแบบ Earnest */
body {
  --blue:        #22C485;   /* primary green */
  --blue-dark:   #1AAC73;   /* hover */
  --primary-bg:  #E8F8F1;
  --primary-mid: #C9F0DD;
  --primary-tint: rgba(34, 196, 133, 0.12);
  --primary-text: #15803D;
  --accent-light: #6FE3B0;
}

/* Container & header inner: กว้างสุด 1400px ไม่มี padding ข้าง */
body .container {
  max-width: 1400px;
  padding: 0;
}
body .site-header-inner {
  max-width: 1400px;
  padding: 0.85rem 1.5rem;
}

/* Back link (pill) — มี margin จากขอบ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 1.25rem 0 0 1.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  transition: color 0.15s;
}
.back-link:hover { color: var(--blue); }

/* ============ Heading row — เต็มความกว้าง บน 2 columns ============ */
.calc-header {
  padding: 1.25rem 2rem 1.5rem;
  margin-top: 0.75rem;
}
.calc-header .page-title { margin-bottom: 0.5rem; }
.calc-header .page-subtitle { margin-bottom: 0; }

/* ============ Layout — 2 columns พื้นขาว ============ */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.calc-form {
  padding: 2rem 2rem 3rem;
  min-width: 0;
}
.calc-result {
  padding: 2rem 2rem 3rem;
  min-width: 0;
}

/* การ์ดขาว ครอบฟอร์ม / breakdown */
.form-card,
.result-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.75rem 1.85rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 6px 18px rgba(15,23,42,0.04);
}

/* Mobile: stack แนวตั้ง */
@media (max-width: 768px) {
  .calc-header {
    padding: 0.75rem 1rem 1.25rem;
  }
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-form,
  .calc-result {
    padding: 1.25rem 1rem 1.5rem;
  }
  .calc-form { padding-bottom: 0.5rem; }
}
@media (max-width: 480px) {
  .form-card,
  .result-card {
    padding: 1.25rem 1.1rem;
    border-radius: 12px;
  }
}

/* ============ Form column ============ */
.page-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Field — clear label + underline input */
.field { margin-bottom: 2rem; }
.field-label {
  display: block;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.field-input {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0.45rem;
  transition: border-color 0.15s;
}
.field-input:focus-within { border-color: var(--blue); }
.field-input.field-input-error { border-bottom-color: #EF4444; }
.field-prefix {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}
.field-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  padding: 0;
  width: 100%;
  letter-spacing: -0.01em;
  -moz-appearance: textfield;
}
.field-input input::-webkit-outer-spin-button,
.field-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-input input::placeholder {
  color: #CBD5E1;
  font-weight: 400;
}

.error-msg {
  color: #DC2626;
  font-size: 0.9rem;
  margin-top: 0.55rem;
  font-weight: 500;
  display: none;
}
.error-msg.show { display: block; }

/* Select — also underline, custom arrow */
.field-select {
  position: relative;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0.45rem;
  transition: border-color 0.15s;
}
.field-select:focus-within { border-color: var(--blue); }
.field-select::after {
  content: "▾";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-65%);
  pointer-events: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.field-select select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  padding: 0 1.75rem 0 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Segmented control */
.seg-control {
  display: flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg-control input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg-control label {
  flex: 1;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  user-select: none;
  margin: 0;
}
.seg-control label:hover { color: var(--text-soft); }
.seg-control input:checked + label {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}

/* Primary button */
.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(34,196,133,0.30);
}
.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(34,196,133,0.38);
}

/* ============ Result column ============ */
.result-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--muted);
}
.result-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.55;
}
.result-empty p { font-size: 0.95rem; }

.result-content { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Summary cards (2 stat cards เหนือ breakdown — ลอยนอก result-card) */
.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
@media (max-width: 540px) {
  .summary-cards { grid-template-columns: 1fr; }
}
.summary-card {
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  border: 1px solid;
}
.summary-card-pay {
  background: linear-gradient(140deg, #E8F8F1 0%, #C9F0DD 100%);
  border-color: var(--accent-light);
}
.summary-card-wht {
  background: linear-gradient(140deg, #FEF2F2 0%, #FEE2E2 100%);
  border-color: #FECACA;
}
.summary-card-label {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
  letter-spacing: -0.005em;
}
.summary-card-value {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.summary-card-pay .summary-card-value { color: #15803D; }
.summary-card-wht .summary-card-value { color: #B91C1C; }
.summary-card-note {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.summary-card-pay .summary-card-note { color: #15803D; opacity: 0.75; }
.summary-card-wht .summary-card-note { color: #B91C1C; opacity: 0.75; }

/* === Breakdown (receipt-style) — อยู่ใน .result-card แล้ว ไม่ต้องมี border บน === */
.breakdown {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.break-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.break-row + .break-row { border-top: 1px dashed #E2E8F0; }
.break-label {
  color: var(--text-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.break-formula {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.break-value {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
}
.break-add    { color: var(--text-soft); font-weight: 500; }
.break-deduct { color: #DC2626; }

.break-row-subtotal {
  background: #F8FAFC;
  margin: 0.25rem -0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 8px;
  border-top: none !important;
}
.break-row-subtotal + .break-row { border-top: none; }
.break-row-subtotal .break-label { font-weight: 500; color: var(--text); }

.break-row-final {
  margin-top: 0.5rem;
  padding-top: 1.1rem !important;
  border-top: 2px solid var(--text) !important;
}
.break-row-final .break-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.break-final {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rate-badge {
  background: var(--primary-tint);
  color: var(--blue);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* === CTA — สร้างใบ 50 ทวิ === */
.cta-cert {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, #E8F8F1 0%, #C9F0DD 100%);
  border: 1.5px solid var(--accent-light);
  border-radius: 16px;
  text-decoration: none;
  color: var(--primary-text);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cta-cert:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(34, 196, 133, 0.20);
}
.cta-cert::before {
  /* decorative glow */
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 65%);
  pointer-events: none;
}

.cta-cert-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(34, 196, 133, 0.25);
  position: relative;
  z-index: 1;
}
.cta-cert-icon svg { stroke: currentColor; }

.cta-cert-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cta-cert-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.cta-cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.cta-cert-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.cta-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--blue);
  color: #fff;
  padding: 0.78rem 1.25rem;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(34, 196, 133, 0.32);
  transition: background 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
}
.cta-cert:hover .cta-cert-btn {
  background: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(34, 196, 133, 0.42);
}
.cta-cert-btn svg {
  stroke: currentColor;
  transition: transform 0.18s;
}
.cta-cert:hover .cta-cert-btn svg { transform: translateX(2px); }

/* Mobile */
@media (max-width: 540px) {
  .cta-cert {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    padding: 1.4rem 1.1rem;
  }
  .cta-cert-icon { margin: 0 auto; }
  .cta-cert-tag,
  .cta-cert-btn { align-self: center; justify-content: center; }
  .cta-cert-btn { width: 100%; }
}

/* print-only ตัวเลือก default — ซ่อน */
.print-only { display: none; }

/* === Summary callout (green) === */
.summary-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--primary-mid) 100%);
  border: 1px solid var(--accent-light);
  border-radius: 14px;
}
.summary-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.summary-text {
  color: var(--primary-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.summary-text strong {
  font-weight: 700;
  color: var(--primary-text);
  white-space: nowrap;
}

/* ============ Info + FAQ — minimal flat, 2 columns ============ */
/* ขยายให้เท่าขอบของ calc-form / calc-result (padding 2rem ด้านนอก) */
.info-grid {
  max-width: 1400px;
  margin: 4rem auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
    margin: 3rem auto 4rem;
  }
}

.info-accordion { margin: 0; padding: 0; max-width: none; }

.info-accordion-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.5rem;
  padding: 0;
}

/* Accordion item — flat bottom-border style */
.info-acc {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  margin: 0;
  padding: 0;
  box-shadow: none;
}
.info-acc:first-of-type {
  border-top: 1px solid var(--border-soft);
}

/* FAQ in single column inside its grid cell */
.info-accordion-faq .faq-grid {
  display: block;  /* override any inherited grid */
}

/* Summary */
.info-acc summary {
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  letter-spacing: -0.005em;
  user-select: none;
  transition: color 0.15s;
}
.info-acc summary::-webkit-details-marker { display: none; }
.info-acc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.25s, border-color 0.15s;
  flex-shrink: 0;
  opacity: 0.7;
}
.info-acc[open] summary::after {
  transform: rotate(225deg);
  margin-bottom: -4px;
  border-color: var(--blue);
  opacity: 1;
}
.info-acc summary:hover { color: var(--text); }
.info-acc summary:hover::after { border-color: var(--text-soft); opacity: 1; }
.info-acc[open] summary { font-weight: 500; color: var(--text); }

/* Body */
.info-acc-body {
  padding: 0 0.25rem 1.4rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}
.info-acc-body p { margin-bottom: 0.8rem; }
.info-acc-body p:last-child { margin-bottom: 0; }
.info-acc-body strong { color: var(--text); font-weight: 600; }
.info-acc-body em { color: var(--text); font-style: normal; font-weight: 500; }

/* Rate list inside accordion */
.rate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
.rate-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #F8FAFC;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.rate-pct {
  flex-shrink: 0;
  min-width: 2.75rem;
  text-align: center;
  background: var(--primary-tint);
  color: var(--blue);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Formula box */
.formula {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
}
.formula-row {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.formula-row + .formula-row { border-top: 1px dashed var(--border); }


/* ============ Responsive tweaks ============ */
@media (max-width: 880px) {
  body .container    { padding: 1rem 1rem 3rem; }
  .calc-layout       { gap: 2rem; }
  .field-input input { font-size: 1.4rem; }
  .field-prefix      { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .seg-control label { padding: 0.6rem 0.35rem; font-size: 0.875rem; }
  .field             { margin-bottom: 1.5rem; }
  .info-grid         { padding: 0 1rem; }
  .info-acc summary  { padding: 1.1rem 0.25rem; font-size: 0.95rem; }
  .result-actions    { justify-content: stretch; }
  .action-btn        { width: 100%; justify-content: center; }
}

/* ============ Print stylesheet ============ */
@media print {
  @page {
    size: A4;
    margin: 1.5cm;
  }

  body, html {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  /* ซ่อนสิ่งที่ไม่จำเป็นในเอกสารพิมพ์ */
  .site-header,
  .site-footer,
  .back-link,
  .calc-form,
  .info-grid,
  .no-print,
  .result-empty {
    display: none !important;
  }

  /* Reset layout เพื่อให้ใบสรุปเต็มหน้ากระดาษ */
  body .container,
  body.home .container { max-width: 100% !important; padding: 0 !important; }

  .calc-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    background: #fff !important;
    margin: 0 !important;
  }

  .calc-result {
    padding: 0 !important;
    background: none !important;
    border: none !important;
  }
  .result-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
  }

  /* แสดงหัว/ท้ายเอกสารเฉพาะตอนพิมพ์ */
  .print-only { display: block !important; }
  .print-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #000;
  }
  .print-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #000;
  }
  .print-meta {
    font-size: 0.9rem;
    color: #555;
  }
  .print-meta-sep { margin: 0 0.4rem; opacity: 0.6; }
  .print-footer {
    margin-top: 1.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid #ccc;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
  }

  /* บังคับสีพื้นหลังให้ออกตอนพิมพ์ (สำคัญสำหรับ Chrome) */
  .summary-card,
  .summary-callout,
  .break-row-subtotal,
  .formula,
  .rate-list li {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .summary-cards { page-break-inside: avoid; }
  .breakdown { page-break-inside: avoid; }

  /* ลด animation/transition */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   SUB-PAGE COMPONENTS (regular-savings · fixed-deposit · tax-free)
   ใช้ภายใต้ body.tool-savings — mint accent theme
   ════════════════════════════════════════════════════════════ */

body.tool-savings { background: var(--page-bg, #F2F2F4); }
body.tool-savings main.container {
  max-width: 1100px;
  padding: 1.25rem 1.25rem 3rem;
}
body.tool-savings article { display: block; border: 0; padding: 0; margin: 0; background: transparent; }

/* ─── HERO BANNER ─────────────────────────────────────── */
body.tool-savings .hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--acc-soft, #D8EFE0) 0%, #EAF7EF 100%);
  border: 1px solid var(--acc-soft, #D8EFE0);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(24px, 3vw, 36px);
  overflow: hidden;
}
body.tool-savings .hero-banner::before {
  content: "";
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 65%);
  pointer-events: none;
}
body.tool-savings .hero-inner {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
}
body.tool-savings .hero-icon {
  width: 76px; height: 76px;
  background: var(--acc, #10B981);
  color: #fff;
  border-radius: 18px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px -8px rgba(16,185,129,.55);
}
body.tool-savings .hero-icon-regular { background: var(--tile-peach-icon, #E07A35); box-shadow: 0 8px 22px -8px rgba(224,122,53,.5); }
body.tool-savings .hero-icon-fixed   { background: var(--tile-blue-icon, #2A8FE0);  box-shadow: 0 8px 22px -8px rgba(42,143,224,.5); }
body.tool-savings .hero-body { flex: 1; min-width: 280px; }
body.tool-savings .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -.025em;
  line-height: 1.15;
}
body.tool-savings .hero-platform {
  font-size: .55em;
  color: var(--acc-text, #047857);
  background: rgba(255,255,255,.7);
  padding: 4px 12px;
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 600;
  margin-left: 6px;
}
body.tool-savings .hero-tagline {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.6;
}
body.tool-savings .hero-tagline strong { color: var(--acc-text, #047857); font-weight: 600; }
body.tool-savings .hero-stats {
  display: flex; gap: 32px;
  list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
body.tool-savings .hero-stats li { display: flex; flex-direction: column; }
body.tool-savings .hero-stat-num {
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
body.tool-savings .hero-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* ─── BASIC CALC SECTION ──────────────────────────────── */
body.tool-savings .basic-calc-section {
  background: var(--card-bg, #fff);
  border: 1px solid var(--hairline, #EAEAEC);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
body.tool-savings .section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.015em;
}
body.tool-savings .section-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

/* ─── CALC LAYOUT (override WHT layout) ───────────────── */
body.tool-savings .calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
body.tool-savings .calc-layout > * { min-width: 0; }
@media (max-width: 880px) {
  body.tool-savings .calc-layout { grid-template-columns: 1fr; gap: 16px; }
}
body.tool-savings .calc-form,
body.tool-savings .calc-result { padding: 0; min-width: 0; }
body.tool-savings .form-card,
body.tool-savings .result-card {
  background: var(--card-soft, #F7F7F8);
  border: 1px solid var(--hairline, #EAEAEC);
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: none;
}

/* ─── FIELDS ──────────────────────────────────────────── */
body.tool-savings .field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
body.tool-savings .field:last-child { margin-bottom: 0; }
body.tool-savings .field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  display: block;
}
body.tool-savings .lbl-hint {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
body.tool-savings .field-input {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid var(--hairline, #EAEAEC);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
body.tool-savings .field-input:focus-within {
  border-color: var(--acc, #10B981);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
body.tool-savings .field-prefix {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}
body.tool-savings .field-input input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
body.tool-savings .field-input input::-webkit-outer-spin-button,
body.tool-savings .field-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.tool-savings .field-input input[type=number] { -moz-appearance: textfield; }
body.tool-savings .hint-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 2px;
}
body.tool-savings .hint-text strong { color: var(--ink); font-weight: 600; }

/* ─── TERM GRID (fixed-deposit picker) ────────────────── */
body.tool-savings .term-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.tool-savings .term-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--hairline, #EAEAEC);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
body.tool-savings .term-btn:hover {
  border-color: var(--acc, #10B981);
  color: var(--acc-text, #047857);
}
body.tool-savings .term-btn.is-active {
  background: var(--acc, #10B981);
  color: #fff;
  border-color: var(--acc, #10B981);
}

/* ─── SEG CONTROL (radio group) ───────────────────────── */
body.tool-savings .seg-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card-soft, #F7F7F8);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
body.tool-savings .seg-control input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
body.tool-savings .seg-control label {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
}
body.tool-savings .seg-control label:hover { color: var(--ink); }
body.tool-savings .seg-control input:checked + label {
  background: #fff;
  color: var(--acc-text, #047857);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  font-weight: 600;
}

/* ─── CHECK ROW (auto-WHT override) ───────────────────── */
body.tool-savings .check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
body.tool-savings .check-row:hover { border-color: var(--acc, #10B981); }
body.tool-savings .check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--acc, #10B981);
  flex-shrink: 0;
  cursor: pointer;
}
body.tool-savings .check-row > span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
body.tool-savings .check-row strong { color: var(--ink); font-weight: 600; }
body.tool-savings .check-hint {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ─── SUMMARY CARDS — savings variants ────────────────── */
body.tool-savings .summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  body.tool-savings .summary-cards { grid-template-columns: 1fr; }
}
body.tool-savings .summary-card {
  background: #fff;
  border: 1px solid var(--hairline, #EAEAEC);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: none;
}
body.tool-savings .summary-card-net {
  background: linear-gradient(135deg, #F0FAF5 0%, #E4F4EC 100%);
  border-color: var(--acc-soft, #D8EFE0);
}
body.tool-savings .summary-card-interest {
  background: linear-gradient(135deg, #FFF8F0 0%, #FCF1E1 100%);
  border-color: #F4DEC0;
}
body.tool-savings .summary-card-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 6px;
}
body.tool-savings .summary-card-value {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 0 0 4px;
}
body.tool-savings .summary-card-net .summary-card-value      { color: var(--acc-text, #047857); }
body.tool-savings .summary-card-interest .summary-card-value { color: #B45309; }
body.tool-savings .summary-card-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ─── RESULT DETAIL — breakdown card ──────────────────── */
body.tool-savings .result-detail-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -.005em;
}
body.tool-savings .breakdown { display: flex; flex-direction: column; }
body.tool-savings .break-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--hairline, #EAEAEC);
}
body.tool-savings .break-row:last-child { border-bottom: 0; }
body.tool-savings .break-label { color: var(--muted); min-width: 0; }
body.tool-savings .break-value {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
body.tool-savings .break-deduct { color: #B91C1C; }
body.tool-savings .break-row-final {
  border-top: 2px solid var(--acc, #10B981);
  border-bottom: 0;
  margin-top: 8px;
  padding-top: 13px;
}
body.tool-savings .break-row-final .break-label { color: var(--ink); font-weight: 600; font-size: 15px; }
body.tool-savings .break-final {
  color: var(--acc-text, #047857);
  font-size: 17px;
  font-weight: 700;
}

/* ─── SUMMARY CALLOUT ─────────────────────────────────── */
body.tool-savings .summary-callout {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--acc-soft, #D8EFE0);
  border: 1px solid #BFE5CC;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
body.tool-savings .summary-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
body.tool-savings .summary-text {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}
body.tool-savings .summary-text strong { color: var(--ink); font-weight: 600; }
body.tool-savings .callout-good {
  color: var(--acc-text, #047857);
  font-weight: 700;
}

/* ─── FAQ WRAP — 2 column layout ──────────────────────── */
body.tool-savings .faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: clamp(28px, 4vw, 48px);
}
@media (max-width: 880px) {
  body.tool-savings .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
}
body.tool-savings .faq-col { min-width: 0; }
body.tool-savings .info-accordion-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--acc, #10B981);
  letter-spacing: -.005em;
  display: inline-block;
}
body.tool-savings .info-acc {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline, #EAEAEC);
  border-radius: 0;
  padding: 0;
}
body.tool-savings .info-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
body.tool-savings .info-acc summary::-webkit-details-marker { display: none; }
body.tool-savings .info-acc summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .2s, color .2s;
}
body.tool-savings .info-acc[open] summary { color: var(--acc-text, #047857); font-weight: 600; }
body.tool-savings .info-acc[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--acc, #10B981); }
body.tool-savings .info-acc-body {
  padding: 0 4px 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
body.tool-savings .info-acc-body p { margin: 0 0 10px; }
body.tool-savings .info-acc-body p:last-child { margin: 0; }
body.tool-savings .info-acc-body strong { color: var(--ink); font-weight: 600; }
body.tool-savings .info-acc-body ul { margin: 8px 0; padding-left: 22px; }
body.tool-savings .info-acc-body li { margin: 4px 0; }
body.tool-savings .info-acc-body a { color: var(--acc-text, #047857); text-decoration: underline; }

/* ─── RELATED TOOLS sidebar ───────────────────────────── */
body.tool-savings .related-tools-wrap {
  background: var(--card-soft, #F7F7F8);
  border: 1px solid var(--hairline, #EAEAEC);
  border-radius: 14px;
  padding: 18px 20px;
  height: max-content;
}
body.tool-savings .related-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -.005em;
}
body.tool-savings .related-tools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.tool-savings .related-tools a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: block;
  padding: 6px 0;
  transition: color .15s;
}
body.tool-savings .related-tools a:hover { color: var(--acc-text, #047857); }
