/* Tunni calculators. Uses only the design-system tokens already defined on the blog (:root in Custom CSS);
   fallbacks repeat the same token values so the component still renders if loaded elsewhere. */
.tunni-calc {
  --tc-brand: var(--brand, #5a2ed3);
  --tc-brand-hover: var(--brand-hover, #4b18b8);
  --tc-brand-soft: var(--brand-soft, #f7f5ff);
  --tc-brand-line: var(--brand-line, #ddd7f9);
  --tc-ink: var(--ink, #17171d);
  --tc-ink-2: var(--ink-2, #53535f);
  --tc-muted: var(--muted, #6d6d7a);
  --tc-line: var(--line, #e9e9ed);
  --tc-line-soft: var(--line-soft, #f0f0f3);
  --tc-control: var(--control, #e4e5ea);
  --tc-chip: var(--chip, #f4f4f7);
  --tc-surface: var(--surface, #fafafb);
  --tc-display: var(--font-display, 'Manrope', Arial, sans-serif);
  --tc-text: var(--font-text, 'Inter', Arial, sans-serif);
  margin: 32px 0;
  font-family: var(--tc-text);
  color: var(--tc-ink);
}
.tunni-calc__loading { padding: 28px; border: 1px dashed var(--tc-control); border-radius: 20px; color: var(--tc-muted); font: 500 14px/20px var(--tc-text); }
.tunni-calc.is-ready .tunni-calc__loading { display: none; }
.tunni-calc-off { padding: 16px 20px; border-radius: 16px; background: var(--tc-chip); color: var(--tc-ink-2); font: 400 15px/24px var(--tc-text); }

.tc { border: 1px solid var(--tc-line); border-radius: 20px; background: #fff; overflow: hidden; }
.tc-form { padding: 28px; }
.entry-content .tunni-calc .tc-scope { margin: 0 0 24px !important; padding: 12px 16px; border-radius: 12px; background: var(--tc-surface); color: var(--tc-ink-2); font: 400 14px/20px var(--tc-text) !important; }
.entry-content .tunni-calc .tc-scope strong { color: var(--tc-ink); font-weight: 600; }

.tc-fields { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .tc-fields { grid-template-columns: 1fr 1fr; } .tc-field--wide, .tc-field--radio { grid-column: 1 / -1; } }
.tc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tc-field__label { font: 500 14px/20px var(--tc-text); color: var(--tc-ink); padding: 0; }
.tc-field__opt { color: var(--tc-muted); font-weight: 400; }
.entry-content .tunni-calc .tc-field__help { margin: 0 !important; font: 400 13px/18px var(--tc-text) !important; color: var(--tc-muted); }
.entry-content .tunni-calc .tc-field__error { margin: 0 !important; font: 500 13px/18px var(--tc-text) !important; color: var(--danger-text, #c43d3d); }
.entry-content .tunni-calc .tc-field__error::before { content: "⚠ "; }

.tc input[type=text], .tc input[type=number], .tc input[type=date], .tc select {
  box-sizing: border-box; width: 100%; height: 48px; margin: 0; padding: 0 16px;
  border: 1px solid var(--tc-control); border-radius: 12px; background: #fff; color: var(--tc-ink);
  font: 400 16px/20px var(--tc-text); font-variant-numeric: tabular-nums;
  transition: border-color .2s cubic-bezier(.22,1,.36,1), box-shadow .2s cubic-bezier(.22,1,.36,1);
}
.tc select { appearance: auto; }
.tc input::placeholder { color: var(--tc-muted); }
.tc input:focus, .tc select:focus { outline: none; border-color: var(--tc-brand); box-shadow: 0 0 0 4px rgba(90,46,211,.14); }
.tc [aria-invalid="true"] { border-color: var(--danger, #d93f42) !important; }
.tc-money { position: relative; }
.tc-money__prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tc-muted); font: 500 15px/20px var(--tc-text); pointer-events: none; }
.tc-money input { padding-left: 44px !important; }

.tc-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-radio__opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--tc-control); border-radius: 9999px; cursor: pointer; font: 500 15px/20px var(--tc-text); }
.tc-radio__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--tc-brand); }
.tc-radio__opt:has(input:checked) { background: var(--tc-brand-soft); border-color: var(--tc-brand-line); color: var(--brand-text, #5a2ed3); }
.tc-radio__opt:has(input:focus-visible) { outline: 2px solid var(--tc-brand); outline-offset: 3px; }

.tc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font: 600 15px/20px var(--tc-display); cursor: pointer; transition: background-color .2s cubic-bezier(.22,1,.36,1), transform .2s cubic-bezier(.22,1,.36,1); }
.tc-btn:active { transform: scale(.98); }
.tc-btn:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 3px; }
.tc-btn--primary { background: var(--tc-brand); color: #fff; }
.tc-btn--primary:hover { background: var(--tc-brand-hover); }
.tc-btn--secondary { background: var(--tc-chip); color: var(--tc-ink); }
.tc-btn--secondary:hover { background: var(--tc-control); }
.entry-content .tunni-calc .tc-status { margin: 12px 0 0 !important; min-height: 20px; font: 500 13px/18px var(--tc-text) !important; color: var(--tc-muted); }

.tc-result { padding: 28px; border-top: 1px solid var(--tc-line); background: var(--tc-surface); }
.tc-result.is-stale > :not(.tc-stale) { opacity: .45; }
.entry-content .tunni-calc .tc-stale { margin: 0 0 16px !important; padding: 12px 16px; border-radius: 12px; background: var(--warning-bg, #fff6e6); color: var(--warning-text, #9a5b06); font: 500 14px/20px var(--tc-text) !important; }
.tc-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tc-hl { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--tc-line); }
.tc-hl.is-main { background: var(--tc-brand-soft); border-color: var(--tc-brand-line); }
.tc-hl__label { font: 500 13px/18px var(--tc-text); color: var(--tc-ink-2); }
.tc-hl__value { white-space: nowrap; font: 600 24px/32px var(--tc-display); letter-spacing: -0.015em; color: var(--tc-ink); font-variant-numeric: tabular-nums; }
.tc-hl.is-main .tc-hl__value { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; color: var(--brand-text, #5a2ed3); }
.tc-hl__note { font: 400 13px/18px var(--tc-text); color: var(--tc-muted); }

.entry-content .tunni-calc .tc-alert { margin: 16px 0 0 !important; padding: 14px 16px; border-radius: 12px; font: 400 14px/20px var(--tc-text) !important; list-style: none; }
.entry-content .tunni-calc .tc-alert li { margin: 0 !important; }
.entry-content .tunni-calc .tc-alert li + li { margin-top: 6px !important; }
.tc-alert--warning { background: var(--warning-bg, #fff6e6); color: var(--warning-text, #9a5b06); }
.tc-alert--danger { background: var(--danger-bg, #fdefef); color: var(--danger-text, #c43d3d); }

.entry-content .tunni-calc .tc-table { width: 100%; margin: 20px 0 0 !important; border-collapse: collapse; font: 400 15px/24px var(--tc-text); background: transparent; border: 0 !important; }
.entry-content .tunni-calc .tc-table caption { caption-side: top; text-align: left; padding: 0 0 8px; font: 600 12px/16px var(--tc-text); letter-spacing: .08em; text-transform: uppercase; color: var(--tc-muted); }
.entry-content .tunni-calc .tc-table th, .entry-content .tunni-calc .tc-table td { padding: 10px 0 !important; border: 0 !important; border-bottom: 1px solid var(--tc-line-soft) !important; text-align: left; vertical-align: top; font-weight: 400; background: transparent !important; }
.entry-content .tunni-calc .tc-table th small { display: block; font: 400 13px/18px var(--tc-text); color: var(--tc-muted); }
.tc-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 16px !important; }
.tc-num.deduction { color: var(--tc-ink-2); }
.tc-muted { color: var(--tc-muted); font-size: 13px; }
.tc-group th { padding-top: 16px !important; font: 600 12px/16px var(--tc-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-muted); }
.tc-total th, .tc-total td { font: 600 16px/24px var(--tc-display) !important; color: var(--tc-ink); border-bottom: 0 !important; border-top: 1px solid var(--tc-line) !important; }
.tc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tc-breakdown { margin-top: 20px; border-top: 1px solid var(--tc-line); padding-top: 4px; }
.tc-breakdown summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font: 600 15px/20px var(--tc-display); color: var(--brand-text, #5a2ed3); list-style: none; }
.tc-breakdown summary::-webkit-details-marker { display: none; }
.tc-breakdown summary::after { content: ""; margin-left: 8px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.tc-breakdown[open] summary::after { transform: rotate(-135deg); }
.tc-breakdown summary:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 3px; border-radius: 8px; }
.tc-table--memo { font-size: 14px; line-height: 20px; }

.entry-content .tunni-calc .tc-assumptions { margin-top: 20px; }
.entry-content .tunni-calc .tc-assumptions__title { margin: 0 0 8px !important; font: 600 12px/16px var(--tc-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-muted); }
.entry-content .tunni-calc .tc-assumptions ul { margin: 0 !important; padding-left: 18px !important; }
.entry-content .tunni-calc .tc-assumptions li { margin: 0 0 4px !important; font: 400 14px/20px var(--tc-text) !important; color: var(--tc-ink-2); }
.entry-content .tunni-calc .tc-disclaimer { margin: 16px 0 0 !important; font: 400 13px/18px var(--tc-text) !important; color: var(--tc-muted); }
.entry-content .tunni-calc .tc-meta { margin: 4px 0 0 !important; font: 500 11px/14px var(--tc-text) !important; color: var(--tc-muted); }

@media (max-width: 639px) {
  .tc-form, .tc-result { padding: 20px; }
  .tc { border-radius: 16px; }
  .tc-actions .tc-btn { flex: 1 1 auto; }
  .tc-highlights { grid-template-columns: 1fr; }
  .tc-hl.is-main .tc-hl__value { font-size: 28px; line-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .tc *, .tc *::after { transition: none !important; } }
@media print {
  .tunni-calc { margin: 0; }
  .tc { border: 0; }
  .tc-actions, .entry-content .tunni-calc .tc-status, .entry-content .tunni-calc .tc-stale { display: none !important; }
  .tc-breakdown > :not(summary) { display: block !important; }
  .tc-breakdown summary::after { display: none; }
  .tc-result { background: #fff; padding: 0; border: 0; }
}

/* ---- Calculator pages (editorial content around the tool) ---- */
.entry-content .tunni-calc-page .tc-lead { font: 400 18px/28px var(--font-text, 'Inter', Arial, sans-serif) !important; color: var(--ink-2, #53535f); }
.entry-content .tunni-calc-page .tc-formula { padding: 16px 20px; border-radius: 12px; background: var(--brand-soft, #f7f5ff); color: var(--ink, #17171d); font: 600 16px/24px var(--font-display, 'Manrope', Arial, sans-serif) !important; }
.entry-content .tunni-calc-page .tc-note, .entry-content .tunni-calc-page .tc-reviewed { font: 400 14px/20px var(--font-text, 'Inter', Arial, sans-serif) !important; color: var(--muted, #6d6d7a); }
.entry-content .tunni-calc-page .tc-page-table { width: 100%; margin: 16px 0 24px; border-collapse: collapse; font: 400 15px/24px var(--font-text, 'Inter', Arial, sans-serif); border: 0; }
.entry-content .tunni-calc-page .tc-page-table th, .entry-content .tunni-calc-page .tc-page-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line, #e9e9ed); text-align: left; vertical-align: top; }
.entry-content .tunni-calc-page .tc-page-table thead th { font: 600 12px/16px var(--font-text, 'Inter', Arial, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6d6d7a); background: var(--surface, #fafafb); }
.entry-content .tunni-calc-page .tc-page-table td { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tunni-calc-page .tc-sources a { color: var(--brand-text, #5a2ed3); }
.entry-content .tunni-calc-page .tc-cta { margin: 40px 0 0; padding: 32px; border-radius: 24px; background: var(--bg-tint, #f7f5ff); }
.entry-content .tunni-calc-page .tc-cta p { margin: 0 0 8px !important; }
.entry-content .tunni-calc-page .tc-cta__title { font: 600 24px/32px var(--font-display, 'Manrope', Arial, sans-serif) !important; letter-spacing: -0.015em; color: var(--ink, #17171d); }
.entry-content .tunni-calc-page .tc-cta__btn { display: inline-flex; align-items: center; height: 44px; margin-top: 8px; padding: 0 22px; border-radius: 10px; background: var(--brand, #5a2ed3); color: #fff !important; font: 600 15px/20px var(--font-display, 'Manrope', Arial, sans-serif); text-decoration: none !important; }
.entry-content .tunni-calc-page .tc-cta__btn:hover { background: var(--brand-hover, #4b18b8); }
.entry-content .tunni-calc-page .tc-cta__btn:focus-visible { outline: 2px solid var(--brand, #5a2ed3); outline-offset: 3px; }

.entry-content .tc-list { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0 32px !important; padding: 0 !important; list-style: none; }
@media (min-width: 640px) { .entry-content .tc-list { grid-template-columns: 1fr 1fr; } }
.entry-content .tc-list__item { margin: 0 !important; }
.entry-content .tc-list__link { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 28px; border: 1px solid transparent; border-radius: 20px; background: var(--surface-hover, #f7f7f9); color: var(--ink, #17171d) !important; text-decoration: none !important; transition: background-color .3s cubic-bezier(.22,1,.36,1), border-color .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
.entry-content .tc-list__link:hover { background: #fff; border-color: var(--line, #e9e9ed); transform: translateY(-4px); }
.entry-content .tc-list__link:focus-visible { outline: 2px solid var(--brand, #5a2ed3); outline-offset: 3px; }
.entry-content .tc-list__title { font: 600 20px/28px var(--font-display, 'Manrope', Arial, sans-serif); letter-spacing: -0.01em; }
.entry-content .tc-list__text { margin-top: 8px; font: 400 15px/24px var(--font-text, 'Inter', Arial, sans-serif); color: var(--ink-2, #53535f); }
.entry-content .tc-list__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font: 600 14px/20px var(--font-display, 'Manrope', Arial, sans-serif); }
.entry-content .tc-list__link:hover .tc-list__cta { color: var(--brand-text, #5a2ed3); }
@media (max-width: 639px) { .tc-list__link { padding: 20px; border-radius: 16px; } .tunni-calc-page .tc-cta { padding: 24px 20px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .tc-list__link { transition: none; } .tc-list__link:hover { transform: none; } }
.tunni-calc .tc-field[hidden] { display: none !important; }

.entry-content .tunni-calc .tc-info th, .entry-content .tunni-calc .tc-info td { color: var(--tc-ink-2); }
@media (max-width: 639px) { .entry-content .tunni-calc-page .tc-page-table { font-size: 14px; line-height: 20px; } .entry-content .tunni-calc-page .tc-page-table th, .entry-content .tunni-calc-page .tc-page-table td { padding: 8px 6px; } }
.entry-content .tunni-calc .tc-num.tc-muted { white-space: normal; max-width: 50%; }
.entry-content .tunni-calc .tc-alert li { font: inherit !important; }

/* ---- Select with the DS chevron ---- */
.tunni-calc .tc-select { position: relative; }
.tunni-calc .tc-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.tunni-calc .tc-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--tc-ink-2); border-bottom: 1.5px solid var(--tc-ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tunni-calc .tc-select select:hover, .tunni-calc .tc-date input:hover, .tunni-calc .tc-money input:hover, .tunni-calc input[data-mask]:hover { border-color: var(--gray-300, #d3d3db); }

/* ---- Date: masked input + calendar popover ---- */
.tunni-calc .tc-date { position: relative; }
.tunni-calc .tc-date input { padding-right: 52px !important; letter-spacing: .02em; }
.tunni-calc .tc-date__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--tc-ink-2); cursor: pointer; transition: background-color .15s cubic-bezier(.22,1,.36,1), color .15s cubic-bezier(.22,1,.36,1); }
.tunni-calc .tc-date__btn:hover, .tunni-calc .tc-date__btn[aria-expanded="true"] { background: var(--tc-brand-soft); color: var(--tc-brand); }
.tunni-calc .tc-date__btn:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 2px; }
.tunni-calc .tc-cal { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: 320px; max-width: calc(100vw - 40px); box-sizing: border-box; padding: 16px; border: 1px solid var(--tc-line); border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -12px rgba(26,6,76,.36); animation: tc-cal-in .2s cubic-bezier(.22,1,.36,1); }
@keyframes tc-cal-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tunni-calc .tc-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.entry-content .tunni-calc .tc-cal__title { margin: 0 !important; font: 600 16px/24px var(--tc-display) !important; letter-spacing: -0.01em; color: var(--tc-ink); }
.tunni-calc .tc-cal__nav { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--tc-line); border-radius: 9999px; background: #fff; color: var(--tc-ink); cursor: pointer; transition: border-color .15s; }
.tunni-calc .tc-cal__nav:hover { border-color: var(--tc-ink); }
.tunni-calc .tc-cal__nav:focus-visible, .tunni-calc .tc-cal__day:focus-visible, .tunni-calc .tc-cal__today:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 2px; }
.entry-content .tunni-calc .tc-cal__grid { width: 100%; margin: 0 !important; border-collapse: separate; border-spacing: 2px; border: 0 !important; table-layout: fixed; }
.entry-content .tunni-calc .tc-cal__grid th { padding: 4px 0 !important; border: 0 !important; background: transparent !important; text-align: center; font: 600 12px/16px var(--tc-text) !important; color: var(--tc-muted); }
.entry-content .tunni-calc .tc-cal__grid td { padding: 0 !important; border: 0 !important; background: transparent !important; text-align: center; }
.tunni-calc .tc-cal__day { width: 100%; aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 9999px; background: transparent; color: var(--tc-ink); font: 500 14px/20px var(--tc-text); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, color .15s; }
.tunni-calc .tc-cal__day:hover { background: var(--tc-chip); }
.tunni-calc .tc-cal__day.is-out { color: var(--gray-400, #a0a0ab); }
.tunni-calc .tc-cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--tc-brand-line); color: var(--brand-text, #5a2ed3); }
.tunni-calc .tc-cal__day.is-selected { background: var(--tc-brand); color: #fff; box-shadow: none; }
.tunni-calc .tc-cal__day.is-selected:hover { background: var(--tc-brand-hover); }
.tunni-calc .tc-cal__foot { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tc-line-soft); }
.tunni-calc .tc-cal__today { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--tc-chip); color: var(--tc-ink); font: 600 14px/20px var(--tc-display); cursor: pointer; }
.tunni-calc .tc-cal__today:hover { background: var(--tc-control); }
@media (max-width: 639px) { .tunni-calc .tc-cal { width: 100%; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .tunni-calc .tc-cal { animation: none; } }

/* =====================================================================================
   Result panel: empty state, composition bar
   ===================================================================================== */
.tc-panel { position: relative; min-width: 0; }
.tc-empty { display: none; }
.tc-comp { margin-top: 20px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--tc-line); }
.entry-content .tunni-calc .tc-comp__title { margin: 0 0 12px !important; font: 600 12px/16px var(--tc-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-muted); }
.tc-comp__bar { display: flex; gap: 3px; height: 12px; border-radius: 9999px; overflow: hidden; }
.tc-comp__seg { flex: 1 1 0; min-width: 4px; }
.entry-content .tunni-calc .tc-comp__legend { display: grid; gap: 8px; margin: 16px 0 0 !important; padding: 0 !important; list-style: none; }
.entry-content .tunni-calc .tc-comp__legend li { display: flex; align-items: center; gap: 10px; margin: 0 !important; font: 400 14px/20px var(--tc-text) !important; color: var(--tc-ink-2); }
.tc-comp__dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.tc-comp__label { flex: 1; min-width: 0; }
.tc-comp__pct { font: 600 14px/20px var(--tc-display); color: var(--tc-ink); font-variant-numeric: tabular-nums; }
.tc-tone--brand { background: var(--tc-brand); }
.tc-tone--magenta { background: var(--magenta, #bc3181); }
.tc-tone--blue { background: var(--info, #1f6fb0); }
.tc-tone--amber { background: var(--warning, #f2a93b); }
.tc-tone--gray { background: var(--gray-400, #a0a0ab); }

/* Inside a calculator page the tool gets a two-column layout: form | result. */
.tcp-tool .tunni-calc { margin: 0; }
.tcp-tool .tc { border-radius: 24px; box-shadow: 0 8px 20px -8px rgba(26,6,76,.18); }
.tcp-tool .tc-result { border-top: 0; background: transparent; padding: 0; }
.tcp-tool .tc-panel { padding: 28px; border-top: 1px solid var(--tc-line); background: var(--tc-surface); }
.tcp-tool .tc-panel:has(> .tc-result[hidden]) .tc-empty { display: block; }
.entry-content .tunni-calc .tc-empty__title { margin: 0 !important; font: 600 20px/28px var(--tc-display) !important; letter-spacing: -0.01em; color: var(--tc-ink); }
.entry-content .tunni-calc .tc-empty__text { margin: 8px 0 0 !important; font: 400 15px/24px var(--tc-text) !important; color: var(--tc-ink-2); }
.tc-empty__ghost { display: grid; gap: 14px; margin-top: 28px; padding: 24px; border: 1px dashed var(--tc-control); border-radius: 16px; background: #fff; }
.tc-empty__ghost span { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tc-empty__ghost i, .tc-empty__ghost b { display: block; height: 10px; border-radius: 9999px; background: var(--tc-chip); }
.tc-empty__ghost i { width: 46%; }
.tc-empty__ghost b { width: 22%; }
.tc-empty__ghost span:first-child b { height: 16px; width: 34%; background: var(--tc-brand-soft); }
@media (min-width: 1024px) {
  .tcp-tool .tc { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; }
  .tcp-tool .tc-form { padding: 36px; }
  .tcp-tool .tc-panel { padding: 36px; border-top: 0; border-left: 1px solid var(--tc-line); }
  .tcp-tool .tc-panel > * { position: sticky; top: 96px; }
  .tcp-tool .tc-fields { grid-template-columns: 1fr 1fr; }
  .tcp-tool .tc-highlights { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .tcp-tool .tc-hl.is-main { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .tcp-tool .tc-panel { padding: 20px; } .tcp-tool .tc { border-radius: 20px; } }

/* =====================================================================================
   Calculator pages (/calculadoras/ and children) — Tunni design system
   ===================================================================================== */
body.tcp .entry-content { max-width: none !important; }
body.tcp.separate-containers .inside-article { padding: 24px 40px 64px; }
@media (max-width: 767px) { body.tcp.separate-containers .inside-article { padding: 16px 16px 48px; } }
.tunni-calc-page { --tcp-ink: var(--ink, #17171d); --tcp-ink-2: var(--ink-2, #53535f); --tcp-muted: var(--muted, #6d6d7a); --tcp-line: var(--line, #e9e9ed); --tcp-soft: var(--brand-soft, #f7f5ff); --tcp-brand: var(--brand, #5a2ed3); --tcp-brand-text: var(--brand-text, #5a2ed3); --tcp-display: var(--font-display, 'Manrope', Arial, sans-serif); --tcp-text: var(--font-text, 'Inter', Arial, sans-serif); color: var(--tcp-ink); }

/* Tile (bw-tile) */
.tcp-tile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tile-bg, var(--brand-soft, #f7f5ff)); color: var(--tile-fg, var(--brand, #5a2ed3)); }
.tcp-tile--lg { width: 64px; height: 64px; border-radius: 16px; }
.tcp-tile--lg svg { width: 32px; height: 32px; }
.tcp-tile--brand { --tile-bg: var(--violet-100, #eeeafc); --tile-fg: var(--brand, #5a2ed3); }
.tcp-tile--magenta { --tile-bg: var(--magenta-soft, #ffeef5); --tile-fg: var(--magenta, #bc3181); }
.tcp-tile--amber { --tile-bg: var(--warning-bg, #fff6e6); --tile-fg: var(--amber, #c27c0e); }
.tcp-tile--blue { --tile-bg: var(--info-bg, #eef5fd); --tile-fg: var(--info, #1f6fb0); }
.tcp-tile--green { --tile-bg: var(--success-bg, #eaf7f0); --tile-fg: var(--success-text, #077649); }

/* Hero */
.tcp-hero { position: relative; margin: 0 0 32px; padding: 32px 40px 36px; border-radius: 24px; background: var(--tcp-soft); overflow: hidden; isolation: isolate; }
.tcp-hero::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90,46,211,.12), rgba(90,46,211,0)); }
html body.tcp.page .entry-content .tcp-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content .tcp-crumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font: 500 13px/18px var(--tcp-text) !important; color: var(--tcp-muted); }
html body.tcp.page .entry-content .tcp-crumbs li + li::before { content: "/"; color: var(--gray-400, #a0a0ab); }
html body.tcp.page .entry-content .tcp-crumbs a { color: var(--tcp-ink-2); text-decoration: none; }
html body.tcp.page .entry-content .tcp-crumbs a:hover { color: var(--tcp-brand-text); text-decoration: underline; }
html body.tcp.page .entry-content .tcp-crumbs [aria-current] { color: var(--tcp-ink); }
.tcp-hero__row { display: flex; align-items: flex-start; gap: 24px; }
.tcp-hero__text { min-width: 0; max-width: 760px; }
html body.tcp.page .entry-content .tcp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px !important; padding: 6px 14px 6px 12px; border: 1px solid var(--violet-200, #ddd7f9); border-radius: 9999px; background: #fff; font: 500 13px/18px var(--tcp-text) !important; color: var(--tcp-ink); }
.tcp-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tcp-brand); }
html body.tcp.page .entry-content .tcp-hero__title { margin: 0 !important; font: 600 48px/56px var(--tcp-display) !important; letter-spacing: -0.025em !important; color: var(--tcp-ink); text-wrap: balance; }
html body.tcp.page .entry-content .tcp-hero__lead { margin: 16px 0 0 !important; max-width: 640px; font: 400 18px/28px var(--tcp-text) !important; color: var(--tcp-ink-2); text-wrap: pretty; }
html body.tcp.page .entry-content .tcp-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0 !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content .tcp-trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font: 500 14px/20px var(--tcp-text) !important; color: var(--tcp-ink); }
.tcp-trust svg { color: var(--tcp-brand); }
.tcp--tool .tcp-hero__row { padding-left: 0; }
@media (max-width: 767px) {
  .tcp-hero { margin-bottom: 20px; padding: 20px 20px 24px; border-radius: 20px; }
  .tcp-hero::after { display: none; }
  .tcp-hero__row { flex-direction: column; gap: 16px; }
  .tcp-tile--lg { width: 52px; height: 52px; }
  .tcp-tile--lg svg { width: 26px; height: 26px; }
  html body.tcp.page .entry-content .tcp-crumbs ol { margin-bottom: 20px !important; }
  html body.tcp.page .entry-content .tcp-hero__title { font-size: 32px !important; line-height: 40px !important; }
  html body.tcp.page .entry-content .tcp-hero__lead { font-size: 16px !important; line-height: 24px !important; }
  html body.tcp.page .entry-content .tcp-trust { flex-direction: column; margin-top: 20px !important; }
}

/* Body: sticky table of contents + article */
.tcp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 72px; }
.tcp-aside { display: none; }
@media (min-width: 1024px) {
  .tcp-body { grid-template-columns: 220px minmax(0, 800px); justify-content: center; gap: 72px; margin-top: 96px; }
  .tcp-aside { display: block; }
  .tcp-toc { position: sticky; top: 96px; }
}
.tcp-main { min-width: 0; }
html body.tcp.page .entry-content .tcp-toc__title { margin: 0 0 12px !important; font: 600 12px/16px var(--tcp-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tcp-muted); }
html body.tcp.page .entry-content .tcp-toc ol { margin: 0 !important; padding: 0 !important; list-style: none; border-left: 1px solid var(--tcp-line); }
html body.tcp.page .entry-content .tcp-toc li { margin: 0 !important; font: 500 14px/20px var(--tcp-text) !important; }
html body.tcp.page .entry-content .tcp-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--tcp-ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
html body.tcp.page .entry-content .tcp-toc a:hover { color: var(--tcp-ink); border-left-color: var(--gray-300, #d3d3db); }
html body.tcp.page .entry-content .tcp-toc a.is-active { color: var(--tcp-brand-text); border-left-color: var(--tcp-brand); }

.tcp-sec { scroll-margin-top: 96px; }
.tcp-sec + .tcp-sec { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--tcp-line); }
html body.tcp.page .entry-content .tunni-calc-page h2 { margin: 0 0 16px !important; scroll-margin-top: 96px; font: 600 32px/40px var(--tcp-display) !important; letter-spacing: -0.02em !important; color: var(--tcp-ink); text-wrap: balance; }
html body.tcp.page .entry-content .tcp-main p, html body.tcp.page .entry-content .tcp-main li { font: 400 17px/28px var(--tcp-text) !important; color: var(--tcp-ink-2); }
html body.tcp.page .entry-content .tcp-main p { margin: 0 0 16px !important; }
html body.tcp.page .entry-content .tcp-main strong { color: var(--tcp-ink); font-weight: 600; }
html body.tcp.page .entry-content .tcp-main a { color: var(--tcp-brand-text); }
@media (max-width: 767px) {
  .tcp-sec + .tcp-sec { margin-top: 40px; padding-top: 40px; }
  html body.tcp.page .entry-content .tunni-calc-page h2 { font-size: 24px !important; line-height: 32px !important; }
  html body.tcp.page .entry-content .tcp-main p, html body.tcp.page .entry-content .tcp-main li { font-size: 16px !important; line-height: 26px !important; }
}

/* Numbered steps */
html body.tcp.page .entry-content ol.tcp-steps { counter-reset: tcp-step; display: grid; gap: 12px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content ol.tcp-steps > li { counter-increment: tcp-step; position: relative; margin: 0 !important; padding: 20px 20px 20px 72px; border-radius: 16px; background: var(--surface, #fafafb); border: 1px solid var(--line-soft, #f0f0f3); }
html body.tcp.page .entry-content ol.tcp-steps > li::before { content: counter(tcp-step); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--violet-100, #eeeafc); color: var(--tcp-brand-text); font: 600 16px/1 var(--tcp-display); }
@media (max-width: 639px) { html body.tcp.page .entry-content ol.tcp-steps > li { padding: 64px 16px 16px; } html body.tcp.page .entry-content ol.tcp-steps > li::before { left: 16px; top: 16px; } }

/* Formula and example */
html body.tcp.page .entry-content .tcp-main .tc-formula { margin: 20px 0 !important; padding: 20px 24px; border-radius: 16px; background: var(--tcp-soft); border: 1px solid var(--violet-200, #ddd7f9); font: 600 17px/26px var(--tcp-display) !important; color: var(--tcp-ink); }
html body.tcp.page .entry-content .tcp-main .tc-page-table { margin: 20px 0 8px; border: 1px solid var(--tcp-line); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
html body.tcp.page .entry-content .tcp-main .tc-page-table thead th { background: var(--surface, #fafafb); padding: 12px 16px; }
html body.tcp.page .entry-content .tcp-main .tc-page-table td { padding: 12px 16px; color: var(--tcp-ink-2); }
html body.tcp.page .entry-content .tcp-main .tc-page-table tr:last-child td { border-bottom: 0; }
html body.tcp.page .entry-content .tcp-sec--example .tc-page-table tr:last-child td { background: var(--tcp-soft); color: var(--tcp-ink); }
html body.tcp.page .entry-content .tcp-main .tc-page-table td:last-child, html body.tcp.page .entry-content .tcp-main .tc-page-table thead th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 639px) { html body.tcp.page .entry-content .tcp-main .tc-page-table td:last-child { white-space: normal; } html body.tcp.page .entry-content .tcp-main .tc-page-table td, html body.tcp.page .entry-content .tcp-main .tc-page-table thead th { padding: 10px; } }
html body.tcp.page .entry-content .tcp-main .tc-note { font-size: 14px !important; line-height: 20px !important; color: var(--tcp-muted); }

/* Limits */
html body.tcp.page .entry-content ul.tcp-limits { display: grid; gap: 8px; margin: 16px 0 0 !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content ul.tcp-limits li { position: relative; margin: 0 !important; padding: 14px 16px 14px 48px; border-radius: 12px; background: var(--surface, #fafafb); font-size: 16px !important; line-height: 24px !important; }
html body.tcp.page .entry-content ul.tcp-limits li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-200, #e4e5ea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%2353535f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* FAQ accordion */
.tcp-faq { border-bottom: 1px solid var(--tcp-line); }
.tcp-sec--faq h2 + .tcp-faq { border-top: 1px solid var(--tcp-line); margin-top: 8px; }
.tcp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 0; cursor: pointer; list-style: none; }
.tcp-faq summary::-webkit-details-marker { display: none; }
.tcp-faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--chip, #f4f4f7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 11v10M11 16h10' stroke='%2317171d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; transition: transform .25s cubic-bezier(.22,1,.36,1), background-color .2s; }
.tcp-faq[open] summary::after { transform: rotate(45deg); background-color: var(--violet-100, #eeeafc); }
.tcp-faq summary:hover::after { background-color: var(--gray-200, #e4e5ea); }
.tcp-faq summary:focus-visible { outline: 2px solid var(--tcp-brand); outline-offset: 4px; border-radius: 8px; }
html body.tcp.page .entry-content .tcp-faq summary h3 { margin: 0 !important; font: 600 18px/26px var(--tcp-display) !important; letter-spacing: -0.01em !important; color: var(--tcp-ink); }
.tcp-faq__a { padding: 0 48px 20px 0; }
html body.tcp.page .entry-content .tcp-faq__a p:last-child { margin-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { .tcp-faq summary::after { transition: none; } }

/* Sources */
html body.tcp.page .entry-content ul.tcp-sources { display: grid; gap: 8px; margin: 16px 0 0 !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content ul.tcp-sources li { margin: 0 !important; font-size: 15px !important; line-height: 22px !important; }
html body.tcp.page .entry-content ul.tcp-sources a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 16px; border: 1px solid var(--tcp-line); border-radius: 12px; color: var(--tcp-ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
html body.tcp.page .entry-content ul.tcp-sources a::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--info-bg, #eef5fd) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M12 10h8l3 3v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2Z' stroke='%231f6fb0' stroke-width='1.5'/%3E%3Cpath d='M13 17h6M13 20h4' stroke='%231f6fb0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; }
html body.tcp.page .entry-content ul.tcp-sources a::after { content: "↗"; margin-left: auto; color: var(--tcp-muted); }
html body.tcp.page .entry-content ul.tcp-sources a:hover { border-color: var(--gray-300, #d3d3db); background: var(--surface, #fafafb); }
html body.tcp.page .entry-content ul.tcp-sources a:focus-visible { outline: 2px solid var(--tcp-brand); outline-offset: 2px; }
html body.tcp.page .entry-content .tcp-main .tc-reviewed { margin-top: 20px !important; font-size: 14px !important; line-height: 20px !important; color: var(--tcp-muted); }

/* Cards (bw-module) */
html body.tcp.page .entry-content ul.tcp-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content li.tcp-card { margin: 0 !important; }
.tcp-card__link { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid transparent; border-radius: 24px; background: var(--surface-hover, #f7f7f9); color: var(--tcp-ink) !important; text-decoration: none !important; transition: background-color .3s cubic-bezier(.22,1,.36,1), border-color .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
.tcp-card__link:hover { transform: translateY(-4px); border-color: var(--tcp-line); background: #fff; }
.tcp-card__link:active { background: var(--surface-pressed, #efeff3); }
.tcp-card__link:focus-visible { outline: 2px solid var(--tcp-brand); outline-offset: 3px; }
.tcp-card__title { margin-top: 28px; font: 600 20px/28px var(--tcp-display); letter-spacing: -0.01em; }
.tcp-card__text { margin-top: 8px; font: 400 15px/24px var(--tcp-text); color: var(--tcp-ink-2); }
.tcp-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; font: 600 14px/20px var(--tcp-display); color: var(--tcp-ink); }
.tcp-card__link:hover .tcp-card__cta { color: var(--tcp-brand-text); }
.tcp-card__cta svg { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.tcp-card__link:hover .tcp-card__cta svg { transform: translateX(3px); }
@media (max-width: 639px) { .tcp-card__link { padding: 20px; border-radius: 20px; } .tcp-card__title { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .tcp-card__link, .tcp-card__cta svg { transition: none; } .tcp-card__link:hover { transform: none; } .tcp-card__link:hover .tcp-card__cta svg { transform: none; } }

.tcp-related { margin-top: 96px; }
.tcp-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
html body.tcp.page .entry-content .tcp-related__head h2 { margin: 0 !important; }
html body.tcp.page .entry-content .tcp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px/20px var(--tcp-display); color: var(--tcp-brand-text); text-decoration: none; white-space: nowrap; }
html body.tcp.page .entry-content .tcp-link:hover { text-decoration: underline; }

/* Hub groups and "how it works" */
.tcp-group + .tcp-group { margin-top: 56px; }
.tcp-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; }
html body.tcp.page .entry-content .tcp-group__head h2 { margin: 0 !important; font-size: 24px !important; line-height: 32px !important; letter-spacing: -0.015em !important; }
html body.tcp.page .entry-content .tcp-group__head p { margin: 0 !important; font: 400 15px/24px var(--tcp-text) !important; color: var(--tcp-muted); }
.tunni-calc-page--hub .tcp-hero { margin-bottom: 56px; }
.tcp-how { margin-top: 96px; padding: 40px; border-radius: 24px; background: var(--surface, #fafafb); }
html body.tcp.page .entry-content .tcp-how__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none; counter-reset: tcp-how; }
html body.tcp.page .entry-content .tcp-how__list li { counter-increment: tcp-how; margin: 0 !important; }
html body.tcp.page .entry-content .tcp-how__list li::before { content: "0" counter(tcp-how); display: block; margin-bottom: 12px; font: 600 14px/20px var(--tcp-display); color: var(--tcp-brand-text); }
html body.tcp.page .entry-content .tcp-how__list p { margin: 0 !important; font: 400 15px/24px var(--tcp-text) !important; color: var(--tcp-ink-2); }
html body.tcp.page .entry-content .tcp-how__list p.tcp-how__title { margin-bottom: 6px !important; font: 600 18px/26px var(--tcp-display) !important; color: var(--tcp-ink); }
html body.tcp.page .entry-content .tcp-how__note { margin: 32px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--tcp-line); font: 400 14px/20px var(--tcp-text) !important; color: var(--tcp-muted); }
@media (max-width: 767px) { .tcp-how { margin-top: 64px; padding: 24px 20px; border-radius: 20px; } .tcp-related { margin-top: 64px; } }

/* Closing CTA (dark brand band) */
.tcp-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 96px; padding: 48px; border-radius: 24px; background: var(--violet-950, #1a064c); color: #fff; overflow: hidden; isolation: isolate; }
.tcp-cta::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140,107,240,.45), rgba(140,107,240,0)); }
.tcp-cta__text { max-width: 560px; }
html body.tcp.page .entry-content .tcp-cta__eyebrow { margin: 0 0 12px !important; font: 600 12px/16px var(--tcp-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-300, #c4b8f9); }
html body.tcp.page .entry-content .tunni-calc-page h2.tcp-cta__title { margin: 0 !important; color: #fff !important; }
html body.tcp.page .entry-content .tcp-cta__lead { margin: 12px 0 0 !important; font: 400 17px/26px var(--tcp-text) !important; color: rgba(255,255,255,.78); }
html body.tcp.page .entry-content .tcp-cta__btn { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: 12px; background: #fff; color: var(--violet-950, #1a064c) !important; font: 600 16px/20px var(--tcp-display); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
html body.tcp.page .entry-content .tcp-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -16px rgba(0,0,0,.5); }
html body.tcp.page .entry-content .tcp-cta__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) { .tcp-cta { margin-top: 64px; padding: 28px 20px; border-radius: 20px; } html body.tcp.page .entry-content .tcp-cta__btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { html body.tcp.page .entry-content .tcp-cta__btn { transition: none; } }

@media (min-width: 640px) { html body.tcp.page .entry-content ul.tcp-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { html body.tcp.page .entry-content ul.tcp-cards { grid-template-columns: repeat(3, 1fr); } }
.tc-btn--primary:focus, .tc-btn--primary:active { background: var(--tc-brand); color: #fff; }
.tc-btn--primary:hover { background: var(--tc-brand-hover); color: #fff; }
.tc-btn--secondary:focus, .tc-btn--secondary:active { background: var(--tc-chip); color: var(--tc-ink); }
.tc-btn--secondary:hover { background: var(--tc-control); color: var(--tc-ink); }

/* Calendar: neutralise the theme's button padding/typography so days never wrap. */
.tunni-calc .tc-cal button { padding: 0 !important; margin: 0; min-width: 0; letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: none; }
.tunni-calc .tc-cal { width: 336px; padding: 16px 16px 12px; }
.tunni-calc .tc-cal__head { margin-bottom: 12px; }
.tunni-calc .tc-cal__nav { width: 40px; height: 40px; border-color: var(--tc-line); }
.tunni-calc .tc-cal__nav svg { display: block; }
.entry-content .tunni-calc .tc-cal__grid { border-spacing: 0 2px; }
.entry-content .tunni-calc .tc-cal__grid th { padding: 0 0 6px !important; font: 600 12px/16px var(--tc-text) !important; letter-spacing: .04em; }
.tunni-calc .tc-cal__day { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; aspect-ratio: auto; max-width: 100%; border-radius: 12px; font: 500 15px/1 var(--tc-text) !important; color: var(--tc-ink); background: transparent; }
.tunni-calc .tc-cal__day span { display: block; line-height: 1; }
.tunni-calc .tc-cal__day:hover { background: var(--tc-chip); color: var(--tc-ink); }
.tunni-calc .tc-cal__day.is-out { color: var(--gray-400, #a0a0ab); }
.tunni-calc .tc-cal__day.is-today { box-shadow: none; color: var(--brand-text, #5a2ed3); font-weight: 600 !important; }
.tunni-calc .tc-cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tunni-calc .tc-cal__day.is-selected, .tunni-calc .tc-cal__day.is-selected:hover, .tunni-calc .tc-cal__day.is-selected:focus { background: var(--tc-brand); color: #fff; font-weight: 600 !important; }
.tunni-calc .tc-cal__day.is-selected::after { background: #fff; }
.tunni-calc .tc-cal__day:focus { background: transparent; color: var(--tc-ink); }
.tunni-calc .tc-cal__day:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 0; }
.tunni-calc .tc-cal__foot { margin-top: 6px; padding-top: 10px; }
.tunni-calc .tc-cal__today { height: 36px; padding: 0 16px !important; border-radius: 10px; font: 600 14px/20px var(--tc-display) !important; }
@media (max-width: 639px) {
  .tunni-calc .tc-cal-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(10,10,13,.45); animation: tc-fade .2s ease-out; }
  .tunni-calc .tc-cal { position: fixed; z-index: 9999; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px -12px rgba(26,6,76,.3); animation: tc-sheet-in .28s cubic-bezier(.22,1,.36,1); }
  .tunni-calc .tc-cal::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 9999px; background: var(--gray-200, #e4e5ea); }
  .tunni-calc .tc-cal__day { width: 44px; max-width: 100%; height: 44px; font-size: 16px !important; }
  .tunni-calc .tc-cal__nav { width: 44px; height: 44px; }
  .tunni-calc .tc-cal__today { height: 44px; padding: 0 20px !important; }
}
@keyframes tc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tc-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tunni-calc .tc-cal, .tunni-calc .tc-cal-backdrop { animation: none !important; } }

.tunni-calc .tc-cal .tc-cal__foot { justify-content: space-between; }
.tunni-calc .tc-cal button.tc-cal__today, .tunni-calc .tc-cal button.tc-cal__close { height: 40px; padding: 0 16px !important; border: 0; border-radius: 10px; font: 600 14px/20px var(--tc-display) !important; cursor: pointer; }
.tunni-calc .tc-cal button.tc-cal__today { background: var(--tc-brand-soft); color: var(--brand-text, #5a2ed3); }
.tunni-calc .tc-cal button.tc-cal__today:hover { background: var(--violet-100, #eeeafc); }
.tunni-calc .tc-cal button.tc-cal__close { background: transparent; color: var(--tc-ink-2); }
.tunni-calc .tc-cal button.tc-cal__close:hover { background: var(--tc-chip); color: var(--tc-ink); }
.tunni-calc .tc-cal button.tc-cal__close:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 2px; }
@media (max-width: 639px) { .tunni-calc .tc-cal button.tc-cal__today, .tunni-calc .tc-cal button.tc-cal__close { height: 44px; padding: 0 20px !important; } }

.tc-cal-host { position: static; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.tc-cal-host .tunni-calc { margin: 0; }
@media (max-width: 639px) {
  .tunni-calc .tc-cal { box-sizing: border-box; }
  .tunni-calc .tc-cal .tc-cal__day { width: 100%; max-width: 44px; }
}
@media (max-width: 359px) { .tunni-calc .tc-cal { padding-left: 10px; padding-right: 10px; } .tunni-calc .tc-cal__nav { width: 40px; height: 40px; } }
@media (max-width: 639px) {
  html body.tcp.page .entry-content .tcp-main .tc-page-table { table-layout: fixed; width: 100%; }
  html body.tcp.page .entry-content .tcp-main .tc-page-table thead th, html body.tcp.page .entry-content .tcp-main .tc-page-table td { white-space: normal !important; overflow-wrap: anywhere; hyphens: auto; padding: 10px 8px; }
}

/* Tables by salary (generated by the engine) */
html body.tcp.page .entry-content .tcp-main .tc-page-table caption { caption-side: bottom; padding: 10px 16px; text-align: left; font: 400 13px/18px var(--tcp-text); color: var(--tcp-muted); }
html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary tbody th { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line, #e9e9ed); text-align: left; font: 600 15px/22px var(--tcp-text); color: var(--tcp-ink); background: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary thead th:not(:first-child) { text-align: right; }
html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary td strong { color: var(--tcp-brand-text); }
html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary tbody tr:hover > * { background: var(--surface, #fafafb); }
@media (max-width: 639px) {
  html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary { font-size: 13px; }
  html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary tbody th { padding: 10px 8px; font-size: 13px; white-space: normal; }
  html body.tcp.page .entry-content .tcp-main .tc-page-table--by-salary td { white-space: normal !important; }
}

/* Hub: which calculator to use */
.tcp-situations { margin: 0 0 64px; }
html body.tcp.page .entry-content .tcp-situations h2 { margin-bottom: 20px !important; font-size: 24px !important; line-height: 32px !important; letter-spacing: -0.015em !important; }
html body.tcp.page .entry-content .tcp-situations__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
html body.tcp.page .entry-content .tcp-situations__list li { margin: 0 !important; padding: 20px 22px; border: 1px solid var(--tcp-line); border-radius: 16px; background: #fff; }
html body.tcp.page .entry-content .tcp-situations__list p { margin: 0 !important; font: 400 15px/24px var(--tcp-text) !important; color: var(--tcp-ink-2); }
html body.tcp.page .entry-content .tcp-situations__list p.tcp-situations__q { margin-bottom: 6px !important; font: 600 17px/24px var(--tcp-display) !important; color: var(--tcp-ink); }
html body.tcp.page .entry-content .tcp-situations__list a { color: var(--tcp-brand-text); font-weight: 500; }
/* Wide generated tables scroll sideways inside their own box on phones; the page never widens. */
.tcp-table-scroll { margin: 20px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line, #e9e9ed); border-radius: 16px; }
.tcp-table-scroll:focus-visible { outline: 2px solid var(--brand, #5a2ed3); outline-offset: 2px; }
html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table { margin: 0 !important; border: 0; border-radius: 0; }
@media (max-width: 639px) {
  html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table--by-salary { table-layout: auto; width: max-content; min-width: 100%; }
  html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table--by-salary th, html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table--by-salary td { white-space: nowrap !important; overflow-wrap: normal; hyphens: none; padding: 10px 12px; }
  html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table--by-salary thead th { white-space: normal !important; min-width: 84px; }
  html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table--by-salary tbody th { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line, #e9e9ed); }
}
@media (max-width: 639px) {
  /* Edge shadow shows there are more columns to the right. */
  .tcp-table-scroll { background: linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(23,23,29,.16), rgba(23,23,29,0)) right / 14px 100% no-repeat scroll; }
  html body.tcp.page .entry-content .tcp-main .tcp-table-scroll .tc-page-table caption { white-space: normal !important; max-width: calc(100vw - 72px); position: sticky; left: 0; }
}
