/* ═══════════════════════════════════════════════════════════
   Post-Tax Salary Calculator — CSS
   ID root:  #post-tax-salary-calculator
   Guard:    document['__ptsc_listener_attached__'] on document
             + DOMContentLoaded check

   CLICK TRIGGER:  e.target.closest('.ptsc-calculate-btn')
                   then btn.closest('#post-tax-salary-calculator')
   ENTER TRIGGER:  e.target.closest('#ptsc-annual-salary')
                   then input.closest('#post-tax-salary-calculator')

   ALL JS querySelector targets (must exist in HTML, styled here):
     #ptsc-annual-salary    reads .value; Enter trigger via closest()
     #ptsc-error            style.display='block'/'none'; textContent
     #ptsc-result           style.display='block'/'none'
     .ptsc-result-header    setText (textContent)
     #ptsc-salary-display   setText
     #ptsc-slab-body        clearChildren + appendChild <tr> rows
     #ptsc-tax-before-rebate setText
     #ptsc-rebate-row       style.display='flex' (always set, never hidden)
     #ptsc-rebate-value     setText
     #ptsc-tax-after-rebate  setText
     #ptsc-cess-value       setText
     #ptsc-total-tax        setText
     #ptsc-annual-posttax   setText
     #ptsc-monthly-posttax  setText
     #ptsc-effective-rate   setText

   DISPLAY PATTERNS:
     .ptsc-error  CSS: display:none  JS: 'block'(show) / 'none'(hide)
     .ptsc-result CSS: display:none  JS: 'block'(show) / 'none'(hide)
     #ptsc-rebate-row CSS: display:flex  JS: always sets 'flex' (never hides)

   JS-CREATED <tr> CLASSES (via tr.className):
     'ptsc-slab-zero'    inactive slabs (salary below slab min)
     'ptsc-slab-active'  active slabs where tax > 0
     (no class)          active slab where tax = 0 (0% first slab)

   CSS-ONLY CLASSES (in HTML, never touched by JS):
     .ptsc-input-group      input row wrapper
     .ptsc-hint             aria-describedby hint span
     .ptsc-result-header    header div inside result
     .ptsc-summary-row      base row (flex, label+value)
     .ptsc-salary-entered   modifier on .ptsc-summary-row (salary row)
     .ptsc-rebate-row       modifier on .ptsc-summary-row
     .ptsc-total-tax-row    modifier on .ptsc-summary-row
     .ptsc-posttax-row      modifier on .ptsc-summary-row (2 rows)
     .ptsc-effective-row    modifier on .ptsc-summary-row
     .ptsc-label            left span in summary rows
     .ptsc-value            right span in summary rows
     .ptsc-highlight        modifier on .ptsc-value (posttax rows)
     .ptsc-divider          horizontal rule div
     .ptsc-divider-bold     modifier on .ptsc-divider (bolder)
     .ptsc-section-title    section heading
     .ptsc-slab-table       the breakdown table
     .ptsc-disclaimer       footer note

   TEXTCONTENT ONLY — never innerHTML in this JS

   Design System: Dark #0A0F1C | Green #10B981 | Font: DM Sans
   ═══════════════════════════════════════════════════════════ */
/* Rank Math Breadcrumb Styling */
.rank-math-breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.rank-math-breadcrumb a {
  color: #5A7090;
  text-decoration: none;
}
.rank-math-breadcrumb a:hover {
  color: #10B981;
}
.rank-math-breadcrumb .separator {
  color: #374B64;
  margin: 0 8px;
}
.rank-math-breadcrumb .last {
  color: #8899AA;
}

/* ── HERO ── */
.ptsc-hero {
  text-align: center;
  padding: 48px 20px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.ptsc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  color: #10B981;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ptsc-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
  line-height: 1.2;
}

.ptsc-hero-title span { color: #10B981; }

.ptsc-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.ptsc-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ptsc-htag {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #10B981;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 6px 14px;
}

/* ── CALCULATOR SECTION WRAPPER ── */
.ptsc-calc-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

/* ═══════════════════════════════════════════════════════════
   #post-tax-salary-calculator
   JS: e.target.closest('.ptsc-calculate-btn') → btn.closest('#post-tax-salary-calculator')
   JS: e.target.closest('#ptsc-annual-salary') → input.closest('#post-tax-salary-calculator')
   ═══════════════════════════════════════════════════════════ */
#post-tax-salary-calculator,
#post-tax-salary-calculator *,
#post-tax-salary-calculator *::before,
#post-tax-salary-calculator *::after {
  box-sizing: border-box;
}

#post-tax-salary-calculator {
  font-family: 'DM Sans', sans-serif;
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Green top accent bar */
#post-tax-salary-calculator::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #34D399, #059669);
  z-index: 1;
}

/* ── CARD HEADER ── */
.ptsc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(55,75,100,0.2);
}

.ptsc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16,185,129,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.ptsc-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ptsc-card-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
}

/* ── FORM BODY ── */
.ptsc-form-body {
  padding: 28px 32px 32px;
}

@media (max-width: 540px) {
  .ptsc-card-header { padding: 20px 18px 16px; }
  .ptsc-form-body   { padding: 20px 18px 24px; }
}

/* ── INPUT GROUP — .ptsc-input-group (JS: no interaction) ── */
#post-tax-salary-calculator .ptsc-input-group {
  margin-bottom: 20px;
}

/* ── LABEL — JS: no interaction ── */
#post-tax-salary-calculator label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #C8D8E8;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* ── INPUT WRAP (prefix ₹ icon) ── */
.ptsc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ptsc-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #5A7090;
  pointer-events: none;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
}

/* ── #ptsc-annual-salary  (input[type="number"])
   JS: e.target.closest('#ptsc-annual-salary') — Enter trigger
   JS: reads .value in validateAndCalculate
   NO error class added to input by JS
   aria-describedby="ptsc-input-hint" links to .ptsc-hint span
── */
#post-tax-salary-calculator input[type="number"] {
  display: block;
  width: 100%;
  padding: 12px 15px 12px 42px;
  background: rgba(10,15,28,0.6);
  border: 2px solid rgba(55,75,100,0.4);
  border-radius: 10px;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  -moz-appearance: textfield;
}

#post-tax-salary-calculator input[type="number"]::placeholder {
  color: #374B64;
}

#post-tax-salary-calculator input[type="number"]:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
  background: rgba(16,185,129,0.04);
}

/* Spin button hide — matches original */
#post-tax-salary-calculator input[type="number"]::-webkit-outer-spin-button,
#post-tax-salary-calculator input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── .ptsc-hint — aria-describedby target, no JS interaction ── */
#post-tax-salary-calculator .ptsc-hint {
  display: block;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #5A7090;
  line-height: 1.4;
}

/* ── .ptsc-calculate-btn
   JS: e.target.closest('.ptsc-calculate-btn') — click trigger
── */
#post-tax-salary-calculator .ptsc-calculate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.1s;
  letter-spacing: 0.2px;
  user-select: none;
  -webkit-user-select: none;
}

#post-tax-salary-calculator .ptsc-calculate-btn:hover {
  background-color: #0EA573;
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
  transform: translateY(-1px);
}

#post-tax-salary-calculator .ptsc-calculate-btn:active {
  transform: scale(0.985);
  box-shadow: none;
}

#post-tax-salary-calculator .ptsc-calculate-btn:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   #ptsc-error — CSS: display:none base
   JS: errorEl.style.display = 'block' (show on validation fail)
   JS: errorEl.style.display = 'none'  (hide on success)
   JS: textContent only (no innerHTML)
   role="alert" aria-live="polite" from original
   ═══════════════════════════════════════════════════════════ */
#post-tax-salary-calculator .ptsc-error {
  /* CSS base: display:none — JS overrides with style.display = 'block' */
  display: none;
  margin-top: 15px;
  padding: 14px 18px;
  background: rgba(248,113,113,0.08);
  border-radius: 12px;
  border-left: 4px solid #F87171;
  border: 1px solid rgba(248,113,113,0.2);
  border-left: 4px solid #F87171;
  color: #F87171;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   #ptsc-result — CSS: display:none base
   JS: resultEl.style.display = 'block' (show on success)
   JS: resultEl.style.display = 'none'  (hide on error)
   role="region" aria-live="polite" aria-label from original
   ═══════════════════════════════════════════════════════════ */
#post-tax-salary-calculator .ptsc-result {
  /* CSS base: display:none — JS overrides with style.display = 'block' */
  display: none;
  margin-top: 24px;
  padding: 28px 28px 20px;
  background: rgba(10,15,28,0.4);
  border-radius: 14px;
  border: 1px solid rgba(55,75,100,0.3);
  font-size: 14px;
  line-height: 1.5;
  animation: ptsc-fade-up 0.4s ease-out;
}

@keyframes ptsc-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── .ptsc-result-header — querySelector, setText writes title ── */
#post-tax-salary-calculator .ptsc-result-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #10B981;
}

/* ═══════════════════════════════════════════════════════════
   SUMMARY ROWS
   .ptsc-summary-row — base flex row
   Modifier classes on the same element (CSS-only, not set by JS):
     .ptsc-salary-entered   → salary entry row
     .ptsc-rebate-row       → rebate row (id=#ptsc-rebate-row)
     .ptsc-total-tax-row    → total tax row
     .ptsc-posttax-row      → post-tax annual/monthly rows
     .ptsc-effective-row    → effective rate row

   #ptsc-rebate-row: JS always sets style.display = 'flex'
     (never hidden — shows "Not Applicable" when rebate doesn't apply)
   ═══════════════════════════════════════════════════════════ */
#post-tax-salary-calculator .ptsc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}

/* ── .ptsc-label — left side of summary row (textContent by JS) ── */
#post-tax-salary-calculator .ptsc-summary-row .ptsc-label {
  font-family: 'DM Sans', sans-serif;
  color: #8899AA;
  font-size: 13.5px;
  flex-shrink: 1;
}

/* ── .ptsc-value — right side of summary row (textContent by JS) ── */
#post-tax-salary-calculator .ptsc-summary-row .ptsc-value {
  font-family: 'DM Sans', sans-serif;
  color: #C8D8E8;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── .ptsc-salary-entered — salary entered row value colour ── */
#post-tax-salary-calculator .ptsc-salary-entered .ptsc-value {
  color: #10B981;
  font-size: 15px;
}

/* ── .ptsc-rebate-row — rebate row
   JS: rebateRow.style.display = 'flex' — always explicitly set
   CSS must support display:flex as default for this row
── */
#post-tax-salary-calculator .ptsc-rebate-row .ptsc-value {
  color: #34D399;
  font-weight: 700;
}

/* ── .ptsc-total-tax-row — total tax row (bold, red value) ── */
#post-tax-salary-calculator .ptsc-total-tax-row .ptsc-label {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 14px;
}

#post-tax-salary-calculator .ptsc-total-tax-row .ptsc-value {
  font-weight: 700;
  color: #F87171;
  font-size: 15px;
}

/* ── .ptsc-posttax-row — annual/monthly post-tax rows ── */
#post-tax-salary-calculator .ptsc-posttax-row {
  padding: 10px 0;
}

#post-tax-salary-calculator .ptsc-posttax-row .ptsc-label {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 14px;
}

/* ── .ptsc-highlight — modifier on .ptsc-value in posttax rows
   Also applied in responsive overrides
── */
#post-tax-salary-calculator .ptsc-highlight {
  color: #10B981 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* ── .ptsc-effective-row — effective tax rate row (purple/violet value) ── */
#post-tax-salary-calculator .ptsc-effective-row .ptsc-value {
  color: #A78BFA;
  font-weight: 700;
}

/* ── .ptsc-divider — horizontal separator ── */
#post-tax-salary-calculator .ptsc-divider {
  height: 1px;
  background: rgba(55,75,100,0.3);
  margin: 10px 0;
}

/* ── .ptsc-divider-bold — bolder separator (compound modifier) ── */
#post-tax-salary-calculator .ptsc-divider.ptsc-divider-bold {
  height: 2px;
  background: rgba(55,75,100,0.5);
}

/* ── .ptsc-section-title — section heading above slab table ── */
#post-tax-salary-calculator .ptsc-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5A7090;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 10px 0;
}

/* ═══════════════════════════════════════════════════════════
   SLAB TABLE — .ptsc-slab-table
   #ptsc-slab-body — JS: clearChildren + appendChild <tr> rows
   JS-created <tr> classes:
     'ptsc-slab-zero'    → inactive slab (muted/grey)
     'ptsc-slab-active'  → active slab with tax > 0 (highlighted)
     (no class)          → active slab but tax = 0 (normal)
   ═══════════════════════════════════════════════════════════ */
#post-tax-salary-calculator .ptsc-slab-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(55,75,100,0.2);
}

#post-tax-salary-calculator .ptsc-slab-table thead th {
  text-align: left;
  font-weight: 600;
  color: #5A7090;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 8px;
  background: rgba(10,15,28,0.5);
  border-bottom: 1px solid rgba(55,75,100,0.3);
  white-space: nowrap;
}

/* Right-align numeric columns 2, 3, 4 (Rate, Taxable, Tax) */
#post-tax-salary-calculator .ptsc-slab-table thead th:nth-child(2),
#post-tax-salary-calculator .ptsc-slab-table thead th:nth-child(3),
#post-tax-salary-calculator .ptsc-slab-table thead th:nth-child(4) {
  text-align: right;
}

#post-tax-salary-calculator .ptsc-slab-table tbody td {
  padding: 8px 8px;
  color: #8899AA;
  border-bottom: 1px solid rgba(55,75,100,0.12);
  font-variant-numeric: tabular-nums;
}

#post-tax-salary-calculator .ptsc-slab-table tbody td:nth-child(2),
#post-tax-salary-calculator .ptsc-slab-table tbody td:nth-child(3),
#post-tax-salary-calculator .ptsc-slab-table tbody td:nth-child(4) {
  text-align: right;
}

#post-tax-salary-calculator .ptsc-slab-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── tr.ptsc-slab-active — JS: tr.className = 'ptsc-slab-active' ── */
#post-tax-salary-calculator .ptsc-slab-table tbody tr.ptsc-slab-active td {
  color: #C8D8E8;
  font-weight: 600;
  background: rgba(16,185,129,0.04);
}

/* ── tr.ptsc-slab-zero — JS: tr.className = 'ptsc-slab-zero' ── */
#post-tax-salary-calculator .ptsc-slab-table tbody tr.ptsc-slab-zero td {
  color: #374B64;
}

/* ── .ptsc-disclaimer — footer note inside result ── */
#post-tax-salary-calculator .ptsc-disclaimer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(55,75,100,0.2);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #374B64;
  line-height: 1.5;
  font-style: italic;
}

/* ── SHARED SECTION STYLES ── */
.ptsc-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.ptsc-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ptsc-section-title-outer {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.ptsc-section-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.ptsc-hiw-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

.ptsc-hiw-card {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.ptsc-hiw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #3B82F6, #8B5CF6, #F59E0B);
}

.ptsc-hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 600px) {
  .ptsc-hiw-steps { grid-template-columns: 1fr; gap: 20px; }
  .ptsc-hiw-card  { padding: 28px 20px; }
}

.ptsc-hiw-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.ptsc-s1 { background: rgba(16,185,129,0.15);  color: #10B981; }
.ptsc-s2 { background: rgba(59,130,246,0.15);  color: #3B82F6; }
.ptsc-s3 { background: rgba(139,92,246,0.15);  color: #8B5CF6; }

.ptsc-hiw-stepname {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.ptsc-hiw-stepdesc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #8899AA;
  line-height: 1.6;
}

/* ── INFO SECTIONS ── */
.ptsc-info-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ptsc-info-block {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 16px;
  padding: 32px;
}

@media (max-width: 540px) {
  .ptsc-info-block { padding: 24px 20px; }
}

.ptsc-info-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #10B981;
  margin: 0 0 16px;
}

.ptsc-info-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  line-height: 1.8;
  margin: 0 0 12px;
}

.ptsc-info-text:last-child { margin-bottom: 0; }

.ptsc-info-note {
  color: #5A7090;
  font-style: italic;
  margin-top: 14px;
}

/* Reference table (widget 3 — separate from .ptsc-slab-table inside calculator) */
.ptsc-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  margin-top: 4px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(55,75,100,0.3);
}

.ptsc-ref-table th {
  background: rgba(10,15,28,0.6);
  color: #8899AA;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(55,75,100,0.3);
}

.ptsc-ref-table td {
  padding: 11px 14px;
  color: #C8D8E8;
  border-bottom: 1px solid rgba(55,75,100,0.12);
}

.ptsc-ref-table tbody tr:last-child td { border-bottom: none; }
.ptsc-ref-table tbody tr:hover td { background: rgba(55,75,100,0.08); }
.ptsc-td-green  { color: #10B981; font-weight: 700; }
.ptsc-td-red    { color: #F87171; font-weight: 700; }
.ptsc-td-muted  { color: #5A7090; font-size: 13px; }

/* ── RELATED GRID ── */
.ptsc-related-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 20px;
}

.ptsc-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 680px) {
  .ptsc-related-grid { grid-template-columns: 1fr; }
}

.ptsc-related-block {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 16px;
  overflow: hidden;
}

.ptsc-related-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(16,185,129,0.1);
  border-bottom: 1px solid rgba(16,185,129,0.2);
}

.ptsc-related-tools { display: flex; flex-direction: column; padding: 8px 0; }

.ptsc-rtool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(55,75,100,0.12);
  transition: background 0.2s;
}

.ptsc-rtool-item:last-child { border-bottom: none; }
.ptsc-rtool-item:hover { background: rgba(16,185,129,0.05); }
.ptsc-rtool-item:hover .ptsc-rtool-arrow { color: #10B981; transform: translateX(3px); }

.ptsc-rtool-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

.ptsc-rtool-text { flex: 1; min-width: 0; }

.ptsc-rtool-text strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  color: #C8D8E8; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ptsc-rtool-text small {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #5A7090; line-height: 1.5;
}

.ptsc-rtool-arrow {
  font-size: 14px; color: #374B64; flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.ptsc-rtool-viewall { background: rgba(16,185,129,0.04); }
.ptsc-rtool-viewall .ptsc-rtool-text strong { color: #10B981; }

/* ── QUICK FACTS ── */
.ptsc-facts-list { display: flex; flex-direction: column; padding: 10px 0; }

.ptsc-fact-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(55,75,100,0.12);
  transition: background 0.2s;
}

.ptsc-fact-item:last-child { border-bottom: none; }
.ptsc-fact-item:hover { background: rgba(55,75,100,0.08); }

.ptsc-fact-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.ptsc-fact-body { flex: 1; }

.ptsc-fact-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #C8D8E8; margin-bottom: 3px; line-height: 1.3;
}

.ptsc-fact-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #5A7090; line-height: 1.65;
}

/* ── FAQ ── */
.ptsc-faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.ptsc-faq-list { display: flex; flex-direction: column; gap: 10px; }

.ptsc-faq-item {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.ptsc-faq-item:hover { border-color: rgba(16,185,129,0.3); }
.ptsc-faq-item.ptsc-faq-open { border-color: rgba(16,185,129,0.4); }

.ptsc-faq-q {
  width: 100%; background: transparent; border: none;
  padding: 18px 20px; color: #FFFFFF;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; line-height: 1.4;
}

.ptsc-faq-q::after {
  content: '+'; font-size: 22px; color: #10B981;
  flex-shrink: 0; font-weight: 400; transition: transform 0.3s; line-height: 1;
}

.ptsc-faq-item.ptsc-faq-open .ptsc-faq-q::after { transform: rotate(45deg); }

.ptsc-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: #8899AA; line-height: 1.7;
}

.ptsc-faq-item.ptsc-faq-open .ptsc-faq-a { padding: 0 20px 18px; }

/* ── CTA ── */
.ptsc-cta-section {
  text-align: center;
  padding: 60px 20px 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(16,185,129,0.03) 100%);
}

.ptsc-cta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3.5vw, 34px); font-weight: 700;
  color: #FFFFFF; margin: 0 0 12px;
}

.ptsc-cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: #8899AA;
  max-width: 420px; margin: 0 auto 28px; line-height: 1.6;
}

.ptsc-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #10B981; color: #FFFFFF !important;
  padding: 14px 32px; border-radius: 12px; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 15px; transition: all 0.25s;
}

.ptsc-cta-btn:hover {
  background: #059669; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.25);
  color: #FFFFFF !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  #post-tax-salary-calculator .ptsc-result {
    padding: 18px 14px;
  }

  #post-tax-salary-calculator .ptsc-slab-table {
    font-size: 12px;
  }

  #post-tax-salary-calculator .ptsc-slab-table thead th {
    font-size: 10.5px;
    padding: 6px 4px;
  }

  #post-tax-salary-calculator .ptsc-slab-table tbody td {
    padding: 6px 4px;
  }

  #post-tax-salary-calculator .ptsc-summary-row .ptsc-label {
    font-size: 12.5px;
  }

  #post-tax-salary-calculator .ptsc-summary-row .ptsc-value {
    font-size: 13px;
  }

  #post-tax-salary-calculator .ptsc-highlight {
    font-size: 14.5px !important;
  }
}

/* ── PRINT ── */
@media print {
  .ptsc-calculate-btn { display: none !important; }
  #post-tax-salary-calculator .ptsc-result { display: block !important; }
}
