/* Real Life Calculators — design system.
   Every rule is scoped under .rlc so it cannot leak into a WordPress/Elementor theme.
   The only unscoped rules are inside @media print (to hide theme chrome when printing). */

.rlc {
  --rlc-primary: #1f4fd6;
  --rlc-primary-strong: #173ea8;
  --rlc-primary-soft: #eef3ff;
  --rlc-accent: #0f8a5f;
  --rlc-background: #f6f7fb;
  --rlc-surface: #ffffff;
  --rlc-text: #111827;
  --rlc-muted: #5a6475;
  --rlc-border: #e2e6ee;
  --rlc-border-strong: #c9d0dc;
  --rlc-danger: #b42318;
  --rlc-danger-soft: #fef3f2;
  --rlc-warn: #8a5a00;
  --rlc-warn-soft: #fff8e6;
  --rlc-radius: 14px;
  --rlc-radius-sm: 10px;
  --rlc-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 16px rgba(16, 24, 40, 0.06);
  --rlc-focus: 0 0 0 3px rgba(31, 79, 214, 0.35);
  --rlc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --rlc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--rlc-font);
  color: var(--rlc-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
/* Dark mode is not enabled for the MVP. To add it, redefine the tokens above inside
   @media (prefers-color-scheme: dark) { .rlc { ... } } — no component rule needs to change. */

.rlc *, .rlc *::before, .rlc *::after { box-sizing: border-box; }
.rlc img, .rlc svg { max-width: 100%; }
.rlc a { color: var(--rlc-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.rlc a:hover { color: var(--rlc-primary-strong); }
.rlc :focus-visible { outline: none; box-shadow: var(--rlc-focus); border-radius: 6px; }
.rlc .rlc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rlc .rlc-skip:focus { position: static !important; width: auto; height: auto; clip: auto; margin: 8px; display: inline-block; }

/* ---------- Layout ---------- */
.rlc.rlc-page { background: var(--rlc-background); }
.rlc .rlc-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.rlc .rlc-narrow { max-width: 820px; }
.rlc .rlc-section { margin: 40px 0; }
.rlc .rlc-section > h2, .rlc .rlc-prose h2 { font-size: 1.45rem; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.01em; }
.rlc h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 750; }
.rlc h2 { font-weight: 700; }
.rlc h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.rlc p { margin: 0 0 12px; }
.rlc .rlc-lead { font-size: 1.1rem; color: var(--rlc-muted); max-width: 720px; }
.rlc .rlc-eyebrow { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rlc-primary); margin: 0 0 8px; }

/* ---------- Header / footer (static site and Elementor theme-builder snippets) ---------- */
.rlc .rlc-header { background: var(--rlc-surface); border-bottom: 1px solid var(--rlc-border); position: sticky; top: 0; z-index: 20; }
.rlc .rlc-header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.rlc .rlc-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--rlc-text); text-decoration: none; font-size: 1.05rem; }
.rlc .rlc-logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--rlc-primary); color: #fff; display: grid; place-items: center; font-size: 0.9rem; }
.rlc .rlc-nav { margin-inline-start: auto; }
.rlc .rlc-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
.rlc .rlc-nav a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--rlc-text); text-decoration: none; font-size: 0.95rem; }
.rlc .rlc-nav a:hover, .rlc .rlc-nav a[aria-current='page'] { background: var(--rlc-primary-soft); color: var(--rlc-primary-strong); }
.rlc .rlc-btn.rlc-nav-toggle { display: none; margin-inline-start: auto; }
/* .rlc-compact: set by the script when the full menu would not fit on one line (long words in some languages). */
.rlc .rlc-header.rlc-compact .rlc-btn.rlc-nav-toggle { display: inline-flex; }
.rlc .rlc-header.rlc-compact .rlc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rlc-surface); border-bottom: 1px solid var(--rlc-border); padding: 8px 16px 16px; }
.rlc .rlc-header.rlc-compact .rlc-nav.rlc-open { display: block; }
.rlc .rlc-header.rlc-compact .rlc-nav ul { flex-direction: column; white-space: normal; }
@media (max-width: 860px) {
  .rlc .rlc-btn.rlc-nav-toggle { display: inline-flex; }
  .rlc .rlc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rlc-surface); border-bottom: 1px solid var(--rlc-border); padding: 8px 16px 16px; }
  .rlc .rlc-nav.rlc-open { display: block; }
  .rlc .rlc-nav ul { flex-direction: column; }
}
.rlc .rlc-footer { background: #0f172a; color: #cbd5e1; margin-top: 64px; padding: 40px 0 24px; font-size: 0.95rem; }
.rlc .rlc-footer a { color: #e2e8f0; text-decoration: none; }
.rlc .rlc-footer a:hover { text-decoration: underline; }
.rlc .rlc-footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rlc .rlc-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin: 0 0 10px; }
.rlc .rlc-footer ul { list-style: none; margin: 0; padding: 0; }
.rlc .rlc-footer li { margin: 6px 0; }
.rlc .rlc-footer-note { border-top: 1px solid #1e293b; margin-top: 28px; padding-top: 16px; color: #94a3b8; font-size: 0.875rem; }

/* ---------- Hero, search ---------- */
.rlc .rlc-hero { padding: 48px 0 28px; }
.rlc .rlc-hero-home { text-align: center; padding: 64px 0 40px; }
.rlc .rlc-hero-home .rlc-lead { margin: 0 auto 24px; }
.rlc .rlc-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.rlc .rlc-search-input { flex: 1; min-height: 52px; font-size: 1.05rem; }
.rlc .rlc-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius-sm); box-shadow: var(--rlc-shadow); list-style: none; margin: 0; padding: 6px; z-index: 30; text-align: start; max-height: 60vh; overflow: auto; }
.rlc .rlc-search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--rlc-text); }
.rlc .rlc-search-results a:hover, .rlc .rlc-search-results a:focus-visible { background: var(--rlc-primary-soft); }
.rlc .rlc-search-results small { color: var(--rlc-muted); white-space: nowrap; }
.rlc .rlc-search-empty { padding: 10px 12px; color: var(--rlc-muted); }

/* ---------- Cards ---------- */
.rlc .rlc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rlc .rlc-grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rlc .rlc-card { display: block; background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius); padding: 18px; text-decoration: none; color: var(--rlc-text); transition: border-color 0.15s, box-shadow 0.15s; height: 100%; }
.rlc a.rlc-card:hover { border-color: var(--rlc-primary); box-shadow: var(--rlc-shadow); color: var(--rlc-text); }
.rlc .rlc-card h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--rlc-text); }
.rlc .rlc-card p { margin: 0; color: var(--rlc-muted); font-size: 0.93rem; line-height: 1.5; }
.rlc .rlc-card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--rlc-primary-soft); color: var(--rlc-primary); display: grid; place-items: center; margin-bottom: 12px; }
.rlc .rlc-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rlc .rlc-card-meta { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--rlc-primary); font-weight: 600; }
.rlc .rlc-features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.rlc .rlc-features li { background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius); padding: 18px; }
.rlc .rlc-features strong { display: block; margin-bottom: 4px; }
.rlc .rlc-list-cols { columns: 3 240px; column-gap: 24px; padding: 0; list-style: none; }
.rlc .rlc-list-cols li { break-inside: avoid; margin: 0 0 8px; }

/* ---------- Breadcrumbs ---------- */
.rlc .rlc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; font-size: 0.9rem; color: var(--rlc-muted); }
.rlc .rlc-breadcrumbs li:not(:last-child)::after { content: '›'; margin-inline-start: 6px; color: var(--rlc-border-strong); }
.rlc .rlc-breadcrumbs a { color: var(--rlc-muted); text-decoration: none; }
.rlc .rlc-breadcrumbs a:hover { color: var(--rlc-primary); text-decoration: underline; }

/* ---------- Answer box (AEO) ---------- */
.rlc .rlc-answer { background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-inline-start: 4px solid var(--rlc-accent); border-radius: var(--rlc-radius-sm); padding: 14px 16px; margin: 0 0 20px; }
.rlc .rlc-answer p { margin: 0; }

/* ---------- Calculator ---------- */
.rlc .rlc-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 8px 0 32px; min-height: 320px; }
.rlc .rlc-locale-grid > *, .rlc .rlc-fields > * { min-width: 0; } /* long select options (country names) must not widen the column on small phones */
@media (min-width: 960px) {
  .rlc .rlc-calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .rlc .rlc-calc .rlc-result { position: sticky; top: 76px; }
}
.rlc .rlc-form { background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius); padding: 20px; box-shadow: var(--rlc-shadow); }
.rlc .rlc-fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rlc .rlc-field { min-width: 0; }
.rlc .rlc-field[hidden] { display: none; }
.rlc .rlc-label { display: block; font-weight: 600; font-size: 0.93rem; margin: 0 0 6px; color: var(--rlc-text); }
.rlc .rlc-help { font-size: 0.83rem; color: var(--rlc-muted); margin: 6px 0 0; line-height: 1.45; }
.rlc .rlc-error { font-size: 0.85rem; color: var(--rlc-danger); margin: 6px 0 0; font-weight: 550; }
.rlc .rlc-error::before { content: '⚠ '; }
.rlc .rlc-input { display: block; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--rlc-text); background: var(--rlc-surface); border: 1px solid var(--rlc-border-strong); border-radius: var(--rlc-radius-sm); margin: 0; -webkit-appearance: none; appearance: none; line-height: 1.3; }
.rlc select.rlc-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6475' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.rlc .rlc-input:hover { border-color: #9aa6b8; }
.rlc .rlc-input:focus { outline: none; border-color: var(--rlc-primary); box-shadow: var(--rlc-focus); }
.rlc .rlc-input[aria-invalid='true'] { border-color: var(--rlc-danger); background: var(--rlc-danger-soft); }
.rlc .rlc-control { display: flex; align-items: stretch; border: 1px solid var(--rlc-border-strong); border-radius: var(--rlc-radius-sm); background: var(--rlc-surface); overflow: hidden; }
.rlc .rlc-control:focus-within { border-color: var(--rlc-primary); box-shadow: var(--rlc-focus); }
.rlc .rlc-control .rlc-input { border: 0; border-radius: 0; min-width: 0; box-shadow: none; }
.rlc .rlc-control .rlc-input[aria-invalid='true'] { background: var(--rlc-danger-soft); }
.rlc .rlc-affix { display: flex; align-items: center; padding: 0 12px; background: #f3f5f9; color: var(--rlc-muted); font-size: 0.9rem; white-space: nowrap; }
.rlc .rlc-field-toggle { display: flex; flex-direction: column; justify-content: center; }
.rlc .rlc-check { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 550; font-size: 0.95rem; }
.rlc .rlc-check input { width: 20px; height: 20px; accent-color: var(--rlc-primary); margin: 0; flex: none; }

.rlc .rlc-rows { grid-column: 1 / -1; border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius-sm); padding: 14px; margin: 0; min-width: 0; }
.rlc .rlc-rows legend { padding: 0 6px; }
.rlc .rlc-rows-body { display: grid; gap: 10px; margin-bottom: 10px; }
.rlc .rlc-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) 44px; align-items: end; padding-bottom: 10px; border-bottom: 1px dashed var(--rlc-border); }
.rlc .rlc-row .rlc-label { font-size: 0.8rem; font-weight: 550; color: var(--rlc-muted); }
.rlc .rlc-row .rlc-input { min-height: 44px; }

.rlc .rlc-locale { margin: -4px 0 16px; font-size: 0.9rem; }
.rlc .rlc-locale summary { cursor: pointer; color: var(--rlc-muted); padding: 6px 0; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.rlc .rlc-locale summary::-webkit-details-marker { display: none; }
.rlc .rlc-locale summary::after { content: '▾'; font-size: 0.8rem; }
.rlc .rlc-locale[open] summary::after { content: '▴'; }
.rlc .rlc-locale-k { font-weight: 650; color: var(--rlc-text); }
.rlc .rlc-locale-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 12px; background: #f8f9fc; border-radius: var(--rlc-radius-sm); margin-top: 6px; }

.rlc .rlc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rlc .rlc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: var(--rlc-radius-sm); font: inherit; font-weight: 650; font-size: 1rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; line-height: 1; margin: 0; }
.rlc .rlc-btn-primary { background: var(--rlc-primary); color: #fff; }
.rlc .rlc-btn-primary:hover { background: var(--rlc-primary-strong); color: #fff; }
.rlc .rlc-btn-ghost { background: var(--rlc-surface); color: var(--rlc-text); border-color: var(--rlc-border-strong); }
.rlc .rlc-btn-ghost:hover { border-color: var(--rlc-primary); color: var(--rlc-primary-strong); }
.rlc .rlc-btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.rlc .rlc-btn-icon { min-height: 44px; width: 44px; padding: 0; background: transparent; border-color: var(--rlc-border); color: var(--rlc-muted); font-size: 1.3rem; }
.rlc .rlc-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Result ---------- */
.rlc .rlc-result:focus { outline: none; }
.rlc .rlc-result-card { background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-top: 4px solid var(--rlc-primary); border-radius: var(--rlc-radius); padding: 20px; box-shadow: var(--rlc-shadow); }
.rlc .rlc-result-label { margin: 0; font-size: 0.85rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rlc-muted); }
.rlc .rlc-result-value { margin: 4px 0 16px; font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 780; line-height: 1.15; color: var(--rlc-primary-strong); letter-spacing: -0.02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rlc .rlc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.rlc .rlc-stat { background: #f7f9fc; border-radius: var(--rlc-radius-sm); padding: 10px 12px; }
.rlc .rlc-stat dt { font-size: 0.8rem; color: var(--rlc-muted); margin: 0 0 2px; }
.rlc .rlc-stat dd { margin: 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rlc .rlc-notes { margin: 0 0 14px; padding-inline-start: 20px; color: var(--rlc-text); font-size: 0.95rem; }
.rlc .rlc-notes li { margin: 4px 0; }
.rlc .rlc-result-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.rlc .rlc-feedback { font-size: 0.88rem; color: var(--rlc-accent); font-weight: 600; }
.rlc .rlc-disclaimer { margin: 14px 0 0; font-size: 0.8rem; color: var(--rlc-muted); }
.rlc .rlc-alert { border-radius: var(--rlc-radius-sm); padding: 12px 14px; margin: 0 0 14px; font-size: 0.95rem; }
.rlc .rlc-alert-error { background: var(--rlc-danger-soft); color: var(--rlc-danger); border: 1px solid #fecdca; }
.rlc .rlc-alert-warn { background: var(--rlc-warn-soft); color: var(--rlc-warn); border: 1px solid #fde7b0; }
.rlc .rlc-alert-info { background: var(--rlc-primary-soft); color: var(--rlc-primary-strong); border: 1px solid #d5e0ff; }

/* ---------- Tables, prose, FAQ ---------- */
/* Charts: breakdown donut and "what if" line. Numbers are HTML, the SVG only draws. */
.rlc .rlc-chart { margin: 4px 0 16px; padding: 14px; border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius-sm); background: var(--rlc-surface); }
.rlc .rlc-chart figcaption { font-size: 0.9rem; }
.rlc .rlc-chart-sub { display: block; color: var(--rlc-muted); font-size: 0.82rem; margin-top: 2px; }
.rlc .rlc-chart-donut { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rlc .rlc-chart-donut svg { width: 116px; height: 116px; flex: none; }
.rlc .rlc-chart-donut circle { fill: none; stroke-width: 6.5; }
.rlc .rlc-chart-donut ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rlc .rlc-chart-b, .rlc .rlc-key-b { stroke: var(--rlc-accent); background: var(--rlc-accent); }
.rlc .rlc-chart-a, .rlc .rlc-key-a { stroke: var(--rlc-primary); background: var(--rlc-primary); }
.rlc .rlc-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: baseline; }
.rlc .rlc-chart-line svg { display: block; width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.rlc .rlc-chart-path { fill: none; stroke: var(--rlc-primary); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rlc .rlc-chart-area { fill: var(--rlc-primary-soft); }
.rlc .rlc-chart-mark { stroke: var(--rlc-muted); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.rlc .rlc-chart-dot { fill: var(--rlc-surface); stroke: var(--rlc-primary); stroke-width: 3; vector-effect: non-scaling-stroke; }
.rlc .rlc-chart-scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; font-size: 0.82rem; }
.rlc .rlc-chart-scale div:nth-child(2) { text-align: center; }
.rlc .rlc-chart-scale div:last-child { text-align: end; }
.rlc .rlc-chart-scale dt { color: var(--rlc-muted); }
.rlc .rlc-chart-scale dd { margin: 0; font-weight: 650; }
.rlc .rlc-chart-you dt { color: var(--rlc-primary); font-weight: 650; }
.rlc .rlc-compare caption { text-align: start; font-weight: 650; }
.rlc .rlc-table-wrap { overflow-x: auto; margin: 0 0 12px; -webkit-overflow-scrolling: touch; }
.rlc .rlc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.rlc .rlc-table caption { text-align: start; font-weight: 650; padding: 0 0 8px; color: var(--rlc-text); }
.rlc .rlc-table th, .rlc .rlc-table td { padding: 8px 10px; border-bottom: 1px solid var(--rlc-border); text-align: start; vertical-align: top; }
.rlc .rlc-table thead th { font-size: 0.8rem; color: var(--rlc-muted); font-weight: 650; background: #f7f9fc; }
.rlc .rlc-table tbody th { font-weight: 550; }
.rlc .rlc-table-data tbody th, .rlc .rlc-table-data td { white-space: nowrap; }
.rlc .rlc-prose { background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius); padding: 24px; margin: 0 0 20px; }
.rlc .rlc-prose ul, .rlc .rlc-prose ol { padding-inline-start: 22px; margin: 0 0 12px; }
.rlc .rlc-prose li { margin: 4px 0; }
.rlc .rlc-formula { list-style: none; padding: 0 !important; margin: 0 0 14px; }
.rlc .rlc-formula li { font-family: var(--rlc-mono); font-size: 0.9rem; background: #f4f6fa; border: 1px solid var(--rlc-border); border-radius: 8px; padding: 8px 12px; margin: 6px 0; overflow-wrap: anywhere; }
.rlc .rlc-faq details { border-bottom: 1px solid var(--rlc-border); padding: 4px 0; }
.rlc .rlc-faq summary { cursor: pointer; font-weight: 650; padding-block: 12px; padding-inline: 0 28px; position: relative; list-style: none; }
.rlc .rlc-faq summary::-webkit-details-marker { display: none; }
.rlc .rlc-faq summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 10px; font-size: 1.3rem; color: var(--rlc-muted); }
.rlc .rlc-faq details[open] summary::after { content: '−'; }
.rlc .rlc-faq details > div { padding: 0 0 12px; color: #273142; }
.rlc .rlc-meta { font-size: 0.88rem; color: var(--rlc-muted); border-top: 1px solid var(--rlc-border); padding-top: 16px; margin-top: 24px; }
.rlc .rlc-meta p { margin: 4px 0; }
.rlc .rlc-ad { margin: 24px 0; }
.rlc .rlc-ad:empty { display: none; }
.rlc .rlc-ad-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rlc-muted); margin: 0 0 4px; text-align: center; }
.rlc .rlc-noscript { padding: 16px; background: var(--rlc-warn-soft); border-radius: var(--rlc-radius-sm); }

@media (max-width: 520px) {
  .rlc .rlc-form, .rlc .rlc-result-card, .rlc .rlc-prose { padding: 16px; border-radius: 12px; }
  .rlc .rlc-actions .rlc-btn { flex: 1 1 auto; }
  .rlc .rlc-search { flex-direction: column; }
  .rlc .rlc-row { grid-template-columns: 1fr 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) { .rlc * { transition: none !important; } }

/* ---------- Languages: switcher, suggestion bar, right-to-left ---------- */
.rlc .rlc-langs { display: inline-flex; }
.rlc .rlc-header .rlc-langs { margin-inline-start: 8px; }
.rlc .rlc-footer .rlc-langs { margin-top: 8px; }
.rlc .rlc-lang-select { min-height: 38px; width: auto; padding-block: 6px; font-size: 0.9rem; }
.rlc .rlc-footer .rlc-lang-select { background-color: #1e293b; color: #e2e8f0; border-color: #334155; }
.rlc .rlc-langbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--rlc-primary-soft); border: 1px solid #d5e0ff; border-radius: var(--rlc-radius-sm); padding: 10px 14px; margin: 12px auto 0; max-width: 1088px; font-size: 0.95rem; }
.rlc .rlc-langbar span { flex: 1 1 220px; }
.rlc .rlc-langbar .rlc-btn { min-height: 38px; }
.rlc[dir='rtl'] select.rlc-input, .rlc [dir='rtl'] select.rlc-input { background-position: left 12px center; padding-right: 12px; padding-left: 34px; }
.rlc[dir='rtl'] .rlc-control { direction: ltr; }
@media (max-width: 860px) { .rlc .rlc-header .rlc-langs { order: 2; } }
/* Long compound words (de "Gehaltserhöhungsrechner", nl "Verpakkingsgrootte") must not push past a phone screen:
   hyphenate by the page's lang, and break only as a last resort. */
.rlc h1, .rlc h2, .rlc h3, .rlc .rlc-label, .rlc .rlc-result-label, .rlc th { overflow-wrap: anywhere; hyphens: auto; }
/* Values (amounts, dates) must not split mid-number; text in value cells still wraps at spaces. */
.rlc td { overflow-wrap: break-word; }
/* Phones: logo + menu + language select must fit one row without horizontal scroll (was 405px wide at 375px). */
@media (max-width: 480px) {
  .rlc .rlc-header .rlc-lang-select { font-size: 1rem; } /* under 16px makes iOS zoom the page when tapped */
  .rlc .rlc-langbar .rlc-btn { min-height: 44px; }
  .rlc .rlc-header-inner { gap: 8px; }
  .rlc .rlc-logo { min-width: 0; }
  .rlc .rlc-header .rlc-langs { margin-inline-start: 0; min-width: 0; flex: 0 1 auto; }
  .rlc .rlc-header .rlc-lang-select { width: 100%; max-width: 120px; min-width: 64px; text-overflow: ellipsis; }
}

/* ---------- Print: only the calculator and its result ---------- */
@media print {
  body * { visibility: hidden !important; }
  .rlc .rlc-calc, .rlc .rlc-calc *, .rlc .rlc-print-title, .rlc .rlc-print-title * { visibility: visible !important; }
  .rlc .rlc-calc { position: absolute; left: 0; top: 40px; width: 100%; display: block; }
  .rlc .rlc-print-title { position: absolute; left: 0; top: 0; }
  .rlc .rlc-actions, .rlc .rlc-result-actions, .rlc .rlc-locale, .rlc .rlc-ad, .rlc .rlc-btn { display: none !important; }
  .rlc .rlc-form, .rlc .rlc-result-card { box-shadow: none; border-color: #999; break-inside: avoid; }
  .rlc .rlc-result { position: static !important; }
}

/* Cookie consent bar: small, bottom, never covers the page. */
.rlc.rlc-consent-wrap { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; justify-content: center; pointer-events: none; background: none; }
.rlc .rlc-consent { pointer-events: auto; max-width: 760px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--rlc-surface); border: 1px solid var(--rlc-border); border-radius: 12px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.14); font-size: 0.88rem; }
.rlc .rlc-consent p { margin: 0; flex: 1 1 280px; color: var(--rlc-text); }
.rlc .rlc-consent-actions { display: flex; gap: 8px; }
@media print { .rlc.rlc-consent-wrap { display: none; } }

/* "Next step" box under the calculator: the two most useful follow-up calculators. */
.rlc .rlc-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--rlc-border); border-inline-start: 4px solid var(--rlc-accent); border-radius: var(--rlc-radius-sm); background: var(--rlc-surface); }
.rlc .rlc-next-k { margin: 0; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rlc-accent); }
.rlc .rlc-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1 1 300px; }
.rlc .rlc-next a { font-weight: 650; }
.rlc .rlc-next span { display: block; color: var(--rlc-muted); font-size: 0.85rem; }
@media print { .rlc .rlc-next { display: none; } }

/* Case-page link lists ("₹10 LPA · ₹12 LPA · …"). */
.rlc .rlc-chips { line-height: 2; margin: 0; }
.rlc .rlc-chips a, .rlc .rlc-chips strong { white-space: nowrap; }

/* "Embed this calculator" box at the end of calculator pages. */
.rlc .rlc-embed { margin: 8px 0 20px; border: 1px solid var(--rlc-border); border-radius: var(--rlc-radius-sm); padding: 10px 14px; background: var(--rlc-surface); }
.rlc .rlc-embed summary { cursor: pointer; font-weight: 650; }
.rlc .rlc-embed p { color: var(--rlc-muted); font-size: 0.9rem; }
.rlc .rlc-embed textarea { font-family: var(--rlc-mono); font-size: 0.78rem; min-height: 0; resize: vertical; }
@media print { .rlc .rlc-embed { display: none; } }
