/* ==========================================================================
   ROBO RUPEE — Calculator pages (SIP / SWP / IDCW / Capital Gains)
   Load AFTER style.css and glass_button.css
   ========================================================================== */

:root{
  /* chart + result colours (validated for colour-blind separation on #000) */
  --c-invest:   #4F6BFF;   /* principal / invested / balance   */
  --c-return:   #E2559F;   /* returns / gains / net in hand    */
  --c-third:    #BE8420;   /* tax / withdrawals                */
  --c-grid:     rgba(255,255,255,.07);
  --accent-grad: linear-gradient(90deg,#4F6BFF 0%,#BD49D1 100%);
  --input-bg:   #0B0B10;
  --input-border: rgba(110,95,255,.45);
  --panel-bg:   #09090C;
  --panel-border: rgba(255,255,255,.10);
}
body.light-theme{
  --c-invest:   #3F57E8;
  --c-return:   #C7357F;
  --c-third:    #B7791F;
  --c-grid:     rgba(0,0,0,.07);
  --input-bg:   #FFFFFF;
  --input-border: rgba(79,70,229,.30);
  --panel-bg:   #FFFFFF;
  --panel-border: rgba(15,23,42,.10);
}

/* ---------- header ---------- */
.calc-header{ position:relative; z-index:60; }
.calc-header .navbar{ padding:0; }
.calc-header .navbar-brand{ padding:0; margin-right:1.5rem; }
.calc-header .navbar-brand img{ height:54px; width:auto; }
.calc-header .main-nav{ gap:0; align-items:center; margin:0; }
.calc-header .main-nav li a{ text-decoration:none; padding:0 12px; margin:0; display:inline-block; transition:color .25s; }
.calc-header .main-nav li.nav-sep{ width:1px; height:20px; background:var(--text); opacity:.7; }
.calc-header .lang-btn{ padding:12px 30px; }
.calc-header .lang-btn svg{ width:16px; height:16px; }
.calc-header .menu-toggle{ background:transparent; border:0; color:var(--white); padding:6px; }
.calc-header .menu-toggle svg{ width:26px; height:26px; }
.header-main.sticky{ top:0; left:0; padding:10px 0; }

/* ---------- hero ---------- */
.calc-hero{ position:relative; text-align:center; padding:64px 0 40px; }
.calc-hero::before{
  content:''; position:absolute; left:50%; top:-40px; width:min(980px,100%); height:440px;
  transform:translateX(-50%); z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(53,0,244,.26) 0%, rgba(53,0,244,.08) 40%, transparent 70%);
}
.calc-crumb{ display:inline-flex; align-items:center; gap:8px; font-size:.8125rem; color:var(--text); margin-bottom:22px; }
.calc-crumb a{ color:var(--text); text-decoration:none; transition:color .25s; }
.calc-crumb a:hover{ color:var(--white); }
.calc-crumb .sep{ opacity:.5; }
.calc-crumb [aria-current]{ color:var(--white); }
.calc-hero h1{ font-size:clamp(2.25rem,4.6vw,4rem); color:var(--white); letter-spacing:-1.5px; line-height:1.1; margin-bottom:14px; }
.calc-hero h1 .accent-word{ color:#4B2BFF; }
.calc-hero .lead-sub{ font-size:1.125rem; color:var(--text); max-width:640px; margin:0 auto; }
.calc-badges{ display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:20px; }
.calc-badge{ display:inline-flex; align-items:center; gap:6px; font-size:.8125rem; color:var(--gray100); border:1px solid var(--white-200); background:var(--white-100); border-radius:999px; padding:6px 14px; }
.calc-badge svg{ width:14px; height:14px; }

/* ---------- big cards (override small dashboard gcard) ---------- */
.calc-card.gcard{ width:100%; }
.calc-card.gcard:hover{ transform:none; }
.calc-card > .gcard-inner{ padding:40px; }
.calc-card .gcard-inner::before, .calc-card .gcard-inner::after{ pointer-events:none; }
.calc-section{ padding-bottom:32px; }

.card-title, .aside-title{ text-align:left; }
.card-title{ font-size:1.375rem; font-weight:700; color:var(--white); margin-bottom:6px; }
.card-sub{ font-size:.9rem; color:var(--text); }

/* ---------- form ---------- */
.rr-form{ display:flex; flex-direction:column; gap:26px; }
.rr-field label.rr-label, .rr-field .rr-label{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; color:var(--white); font-size:1rem; font-weight:500; margin-bottom:10px; }
.rr-label .hint{ color:var(--text-mute); font-size:.8125rem; font-weight:400; }
.rr-input{
  display:flex; align-items:center; gap:8px; height:52px; padding:0 22px; border-radius:999px;
  background:var(--input-bg); border:1px solid var(--input-border);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 0 transparent;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.rr-input:focus-within{ border-color:rgba(140,120,255,.95); box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 4px rgba(79,70,255,.18); }
.rr-input input{
  flex:1; min-width:0; height:100%; background:transparent; border:0; outline:0;
  color:var(--white); font-family:var(--font-family); font-size:1.0625rem; font-weight:500;
}
.rr-input input[type="date"]{ color-scheme:dark; }
body.light-theme .rr-input input[type="date"]{ color-scheme:light; }
.rr-prefix, .rr-suffix{ color:var(--text-mute); font-size:1rem; white-space:nowrap; }
.rr-input.is-invalid{ border-color:var(--danger); box-shadow:0 0 0 4px rgba(255,77,77,.14); }
.rr-error{ min-height:0; color:var(--danger); font-size:.8125rem; margin-top:6px; display:none; }
.rr-error.show{ display:block; }

/* range slider */
.rr-range{ -webkit-appearance:none; appearance:none; width:100%; height:24px; background:transparent; margin:10px 0 0; cursor:pointer; --fill:50%; }
.rr-range:focus{ outline:none; }
.rr-range::-webkit-slider-runnable-track{
  height:4px; border-radius:99px;
  background:linear-gradient(90deg,#4F6BFF,#BD49D1) 0 0 / var(--fill) 100% no-repeat, var(--white-200);
}
.rr-range::-webkit-slider-thumb{
  -webkit-appearance:none; width:18px; height:18px; margin-top:-7px; border-radius:50%;
  background:#fff; border:3px solid #5B4BFF; box-shadow:0 0 0 4px rgba(91,75,255,.18), 0 0 14px rgba(140,110,255,.55);
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rr-range:hover::-webkit-slider-thumb{ transform:scale(1.12); }
.rr-range:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 7px rgba(91,75,255,.35); }
.rr-range::-moz-range-track{ height:4px; border-radius:99px; background:var(--white-200); }
.rr-range::-moz-range-progress{ height:4px; border-radius:99px; background:linear-gradient(90deg,#4F6BFF,#BD49D1); }
.rr-range::-moz-range-thumb{ width:13px; height:13px; border-radius:50%; background:#fff; border:3px solid #5B4BFF; box-shadow:0 0 0 4px rgba(91,75,255,.18), 0 0 14px rgba(140,110,255,.55); }
.rr-scale{ display:flex; justify-content:space-between; font-size:.75rem; color:var(--text-mute); margin-top:2px; }

/* pills (radio) */
.rr-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.rr-pill{ position:relative; display:inline-flex; align-items:center; border:1px solid var(--white-200); background:var(--white-100); color:var(--text); border-radius:999px; padding:8px 14px; font-size:.875rem; cursor:pointer; transition:all .25s var(--ease); user-select:none; }
.rr-pill input{ position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.rr-pill:hover{ color:var(--white); border-color:var(--white-400); }
.rr-pill.active{ color:#fff; border-color:rgba(120,100,255,.9); background:linear-gradient(135deg,rgba(48,7,255,.55),rgba(80,6,49,.55)); box-shadow:0 0 16px rgba(91,75,255,.32); }
.rr-pill:focus-within{ outline:2px solid rgba(140,120,255,.9); outline-offset:2px; }

/* option cards (fund type) */
.rr-options{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rr-option{ position:relative; display:flex; gap:12px; align-items:flex-start; border:1px solid var(--white-200); background:var(--white-100); border-radius:18px; padding:14px 16px; cursor:pointer; transition:all .25s var(--ease); }
.rr-option input{ position:absolute; opacity:0; pointer-events:none; }
.rr-option .opt-dot{ margin-top:2px; }
.rr-option strong{ display:block; color:var(--white); font-size:.9375rem; font-weight:600; margin-bottom:2px; }
.rr-option small{ display:block; color:var(--text-mute); font-size:.78rem; line-height:1.4; }
.rr-option:hover{ border-color:var(--white-400); }
.rr-option.active{ border-color:rgba(120,100,255,.9); background:linear-gradient(135deg,rgba(48,7,255,.22),rgba(80,6,49,.22)); }
.rr-option.active .opt-dot{ border-color:var(--white); }
.rr-option.active .opt-dot::after{ content:""; position:absolute; inset:3px; border-radius:50%; background:var(--white); }
.rr-option:focus-within{ outline:2px solid rgba(140,120,255,.9); outline-offset:2px; }

/* advanced options */
.rr-advanced{ border:1px solid var(--white-200); border-radius:22px; background:var(--white-100); }
.rr-advanced > summary{ list-style:none; cursor:pointer; padding:14px 20px; color:var(--white); font-weight:500; display:flex; align-items:center; justify-content:space-between; }
.rr-advanced > summary::-webkit-details-marker{ display:none; }
.rr-advanced > summary svg{ width:18px; height:18px; transition:transform .3s var(--ease); }
.rr-advanced[open] > summary svg{ transform:rotate(180deg); }
.rr-advanced .adv-body{ padding:6px 20px 22px; display:flex; flex-direction:column; gap:22px; }

/* calculate button */
.rr-actions{ display:flex; justify-content:center; margin-top:4px; }
.rr-actions .glass-btn{ padding:14px 34px; }

/* ---------- result panel ---------- */
.rr-result{ position:relative; height:100%; border-radius:28px; border:1px solid var(--panel-border); background:var(--panel-bg); padding:32px; display:flex; flex-direction:column; }
.rr-result-label{ color:var(--text); font-size:.9375rem; }
.rr-result-value{ font-size:clamp(2.1rem,4vw,3rem); font-weight:700; color:var(--white); letter-spacing:-1px; line-height:1.15; margin:4px 0 2px; word-break:break-word; }
.rr-result-words{ color:var(--text-mute); font-size:.9rem; }
.rr-status{ display:inline-flex; align-items:center; gap:8px; margin-top:12px; font-size:.875rem; font-weight:500; border-radius:999px; padding:6px 14px; border:1px solid var(--white-200); color:var(--white); align-self:flex-start; }
.rr-status svg{ width:16px; height:16px; }
.rr-status.good{ color:var(--success); border-color:rgba(0,210,106,.35); background:rgba(0,210,106,.08); }
.rr-status.warn{ color:#F2B544; border-color:rgba(242,181,68,.35); background:rgba(242,181,68,.08); }
body.light-theme .rr-status.warn{ color:#9A6200; }

.rr-split{ display:flex; gap:2px; height:10px; border-radius:99px; overflow:hidden; margin:22px 0 10px; background:var(--white-100); }
.rr-split .seg{ height:100%; transition:width .5s var(--ease); min-width:0; }
.rr-split .seg:first-child{ border-radius:99px 0 0 99px; }
.rr-split .seg:last-child{ border-radius:0 99px 99px 0; }
.rr-split .seg:only-child{ border-radius:99px; }
.seg-1, .dot-1{ background:var(--c-invest); }
.seg-2, .dot-2{ background:var(--c-return); }
.seg-3, .dot-3{ background:var(--c-third); }
.rr-legend{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; font-size:.8125rem; color:var(--text); }
.rr-legend span{ display:inline-flex; align-items:center; gap:7px; }
.rr-legend i{ width:9px; height:9px; border-radius:50%; display:inline-block; }

.rr-rows{ margin:18px 0 0; }
.rr-row{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:13px 0; border-top:1px solid var(--white-100); }
.rr-row:first-child{ border-top:0; }
.rr-row dt{ color:var(--gray100); font-weight:400; font-size:.9375rem; }
.rr-row dd{ margin:0; color:var(--white); font-weight:700; font-size:1rem; text-align:right; font-variant-numeric:tabular-nums; }
.rr-row dt small{ display:block; color:var(--text-mute); font-size:.75rem; margin-top:2px; }
.rr-row dd small{ display:block; font-weight:400; color:var(--text-mute); font-size:.75rem; }
.rr-row.total dd{ font-size:1.125rem; }

.rr-insight{ margin-top:18px; border-radius:18px; padding:14px 16px; display:flex; gap:12px; align-items:flex-start; font-size:.875rem; line-height:1.55; color:var(--gray100); border:1px solid rgba(91,75,255,.35); background:linear-gradient(135deg,rgba(48,7,255,.14),rgba(80,6,49,.14)); }
.rr-insight svg{ width:18px; height:18px; flex-shrink:0; margin-top:2px; color:#9C8CFF; }
.rr-insight strong{ color:var(--white); }
.rr-note{ margin-top:auto; padding-top:16px; font-size:.75rem; color:var(--text-mute); line-height:1.5; }

/* ---------- chart card ---------- */
.chart-head{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:16px; margin-bottom:22px; }
.rr-tabs{ display:inline-flex; padding:4px; border-radius:999px; background:var(--white-100); border:1px solid var(--white-200); }
.rr-tabs button{ border:0; background:transparent; color:var(--text); font-size:.85rem; padding:8px 18px; border-radius:999px; display:inline-flex; align-items:center; gap:6px; transition:all .25s var(--ease); }
.rr-tabs button svg{ width:15px; height:15px; }
.rr-tabs button.active{ background:var(--white-200); color:var(--white); }
.rr-tabs button:focus-visible{ outline:2px solid rgba(140,120,255,.9); outline-offset:1px; }
.chart-legend{ display:flex; flex-wrap:wrap; gap:8px 20px; font-size:.8125rem; color:var(--text); margin-bottom:12px; }
.chart-legend span{ display:inline-flex; align-items:center; gap:8px; }
.chart-legend i{ width:10px; height:10px; border-radius:3px; display:inline-block; }
.chart-legend i.line{ height:3px; width:16px; border-radius:2px; }
.rr-chart-box{ position:relative; height:360px; width:100%; }
.rr-table-wrap{ max-height:440px; overflow:auto; border-radius:18px; border:1px solid var(--white-200); }
.rr-table-wrap table{ width:100%; border-collapse:collapse; font-size:.9rem; }
.rr-table-wrap th{ position:sticky; top:0; background:var(--darkgray); color:var(--white); font-weight:600; text-align:right; padding:12px 16px; white-space:nowrap; border-bottom:1px solid var(--white-200); }
.rr-table-wrap th:first-child, .rr-table-wrap td:first-child{ text-align:left; }
.rr-table-wrap td{ color:var(--gray100); text-align:right; padding:11px 16px; border-bottom:1px solid var(--white-100); font-variant-numeric:tabular-nums; white-space:nowrap; }
.rr-table-wrap tr:nth-child(even) td{ background:var(--white-100); }
.rr-table-wrap tr:hover td{ background:rgba(124,92,255,.08); }
[hidden]{ display:none !important; }

/* ---------- content ---------- */
.calc-content{ padding-top:24px; }
.calc-article h2{ font-size:1.875rem; font-weight:700; text-align:left; letter-spacing:-.5px; margin:0 0 16px; color:var(--white); }
.calc-article h3{ font-size:1.25rem; font-weight:600; color:var(--white); margin:26px 0 10px; }
.calc-article p{ line-height:1.8; margin-bottom:14px; color:var(--text); }
.calc-article p strong, .calc-article li strong{ color:var(--white); font-weight:600; }
.calc-article a{ color:#9C8CFF; text-decoration:none; border-bottom:1px solid rgba(156,140,255,.4); }
.calc-article a:hover{ color:var(--white); border-color:var(--white); }
body.light-theme .calc-article a{ color:#4F46E5; }
.content-block{ padding:40px 0; border-top:1px solid var(--white-100); }
.content-block:first-child{ border-top:0; padding-top:0; }
.rr-list{ margin:0 0 16px; }
.rr-list li{ position:relative; padding-left:26px; margin-bottom:12px; line-height:1.7; color:var(--text); }
.rr-list li::before{ content:''; position:absolute; left:4px; top:.7em; width:8px; height:8px; border-radius:50%; background:var(--accent-grad); box-shadow:0 0 8px rgba(124,92,255,.6); }
.rr-steps{ counter-reset:step; margin:0 0 16px; }
.rr-steps li{ counter-increment:step; position:relative; padding-left:48px; margin-bottom:16px; line-height:1.7; color:var(--text); min-height:32px; }
.rr-steps li::before{ content:counter(step); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.85rem; font-weight:700; color:#fff; background:linear-gradient(135deg,#3007FF,#500631); box-shadow:0 0 12px rgba(91,75,255,.4); }
.formula-box{ border-radius:20px; padding:22px 26px; margin:6px 0 18px; background:var(--white-100); border:1px solid rgba(91,75,255,.35); color:var(--white); font-size:1.125rem; font-weight:600; letter-spacing:.2px; overflow-x:auto; white-space:nowrap; }
.formula-box small{ display:block; font-weight:400; font-size:.8125rem; color:var(--text-mute); margin-top:6px; white-space:normal; }
.example-box{ border-radius:20px; padding:22px 26px; margin:6px 0 18px; background:var(--panel-bg); border:1px solid var(--panel-border); }
.example-box p:last-child{ margin-bottom:0; }
.example-box .ex-row{ display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-top:1px solid var(--white-100); color:var(--gray100); font-size:.95rem; }
.example-box .ex-row:first-of-type{ border-top:0; }
.example-box .ex-row b{ color:var(--white); font-variant-numeric:tabular-nums; }
.rr-data-table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--white-200); border-radius:18px; overflow:hidden; margin:8px 0 14px; font-size:.9rem; }
.rr-data-table th{ background:var(--white-200); color:var(--white); font-weight:600; padding:12px 14px; text-align:left; vertical-align:bottom; }
.rr-data-table td{ padding:12px 14px; border-top:1px solid var(--white-100); color:var(--gray100); vertical-align:top; line-height:1.55; }
.rr-data-table td:first-child{ color:var(--white); font-weight:500; }
.rr-data-table tr:nth-child(even) td{ background:var(--white-100); }
.table-scroll{ width:100%; overflow-x:auto; }
.table-note{ font-size:.8125rem; color:var(--text-mute); line-height:1.6; }

/* FAQ */
.faq-list{ margin-top:8px; }
.faq-item{ border:1px solid var(--white-200); border-radius:22px; background:var(--white-100); margin-bottom:12px; transition:border-color .25s var(--ease); }
.faq-item[open]{ border-color:rgba(91,75,255,.45); }
.faq-item summary{ list-style:none; cursor:pointer; position:relative; padding:18px 60px 18px 24px; color:var(--white); font-weight:600; font-size:1rem; line-height:1.5; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; position:absolute; right:22px; top:50%; transform:translateY(-50%); width:28px; height:28px; border-radius:50%; border:1px solid var(--white-200); display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:400; color:var(--text); }
.faq-item[open] summary::after{ content:'−'; color:var(--white); }
.faq-item summary:focus-visible{ outline:2px solid rgba(140,120,255,.9); outline-offset:-2px; border-radius:22px; }
.faq-body{ padding:0 24px 20px; }
.faq-body p{ margin-bottom:10px; line-height:1.75; }
.faq-body p:last-child{ margin-bottom:0; }

/* aside */
.calc-aside{ position:sticky; top:24px; display:flex; flex-direction:column; gap:20px; }
.aside-title{ font-size:1.125rem; color:var(--white); font-weight:600; margin-bottom:14px; }
.mini-calc{ display:flex; align-items:center; gap:14px; padding:14px; border-radius:18px; border:1px solid var(--white-200); background:var(--white-100); text-decoration:none; margin-bottom:10px; transition:all .3s var(--ease); }
.mini-calc:last-child{ margin-bottom:0; }
.mini-calc:hover{ border-color:rgba(91,75,255,.6); transform:translateX(3px); }
.mini-calc .ic{ width:44px; height:44px; flex-shrink:0; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--white); background:linear-gradient(0deg,rgba(255,255,255,.08),rgba(242,242,242,.10)); border:1px solid var(--white-400); }
.mini-calc .ic svg{ width:20px; height:20px; }
.mini-calc strong{ display:block; color:var(--white); font-size:.95rem; font-weight:600; }
.mini-calc small{ display:block; color:var(--text-mute); font-size:.78rem; line-height:1.4; }
.mini-calc .go{ margin-left:auto; color:var(--text); }
.mini-calc .go svg{ width:16px; height:16px; }
.aside-cta .gcard-inner{ padding:28px; }
.aside-cta h3{ font-size:1.25rem; color:var(--white); font-weight:700; margin-bottom:8px; }
.aside-cta p{ font-size:.9rem; line-height:1.6; margin-bottom:20px; }

.calc-disclaimer{ font-size:.8125rem; color:var(--text-mute); text-align:center; max-width:900px; margin:0 auto; line-height:1.6; padding:8px 0 0; }

/* ---------- hub page cards ---------- */
.hub-card.gcard{ width:100%; height:100%; }
.hub-card .gcard-inner{ padding:30px; display:flex; flex-direction:column; gap:14px; }
.hub-card .hub-ic{ width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--white); background:linear-gradient(0deg,rgba(255,255,255,.06),rgba(242,242,242,.08)); border:1px solid var(--white-200); }
.hub-card .hub-ic svg{ width:22px; height:22px; }
.hub-card h2{ font-size:1.5rem; font-weight:600; text-align:left; margin-top:12px; }
.hub-card p{ font-size:.95rem; line-height:1.55; }
.hub-card .open-link{ color:var(--white); font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:8px; margin-top:auto; }
.hub-card .open-link svg{ width:15px; height:15px; transition:transform .3s var(--ease); }
.hub-card:hover .open-link svg{ transform:translate(3px,-3px); }
.hub-card a.stretched{ position:absolute; inset:0; z-index:2; border-radius:30px; }

/* ---------- footer ---------- */
.calc-footer{ padding:96px 0 28px; margin-top:40px; }
.calc-footer .footer-logo img{ height:54px; width:auto; }
.calc-footer .footer-first-box p{ margin:22px 0 26px; line-height:1.55; font-size:1rem; max-width:300px; }
.calc-footer .social-row{ display:flex; gap:16px; }
.calc-footer .social-row a img{ width:32px; height:32px; transition:transform .3s var(--ease); }
.calc-footer .social-row a:hover img{ transform:translateY(-3px); }
.calc-footer .footer-links-box h4{ font-size:1.625rem; font-weight:500; letter-spacing:0; color:var(--white); margin-bottom:22px; }
.calc-footer .footer-links-menu li{ padding:6px 0; }
.calc-footer .footer-bottom{ margin-top:24px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.calc-footer .footer-bottom p, .calc-footer .footer-bottom a{ font-size:.9375rem; }
.calc-footer .footer-bottom .reg{ display:flex; gap:24px; }

/* floating orb — centred */
.calc-page .orb-btn{ left:50%; transform:translateX(-50%); bottom:12px; }

/* ---------- responsive ---------- */
@media (max-width:1199px){
  .calc-card > .gcard-inner{ padding:32px; }
}
@media (max-width:991px){
  .calc-hero{ padding:48px 0 28px; }
  .calc-aside{ position:static; margin-top:24px; }
  .rr-result{ margin-top:8px; }
}
@media (max-width:767px){
  .calc-header{ padding:12px 0; }
  .calc-header .navbar-brand img{ height:44px; }
  .calc-hero{ padding:36px 0 20px; }
  .calc-hero .lead-sub{ font-size:.95rem; }
  .calc-card.gcard{ border-radius:26px; }
  .calc-card > .gcard-inner{ padding:22px 18px; border-radius:24px; }
  .rr-result{ padding:22px 18px; border-radius:22px; }
  .rr-options{ grid-template-columns:1fr; }
  .rr-chart-box{ height:280px; }
  .card-title{ font-size:1.2rem; }
  .calc-article h2{ font-size:1.5rem; text-align:left; }
  .content-block{ padding:30px 0; }
  .formula-box{ font-size:1rem; padding:18px; }
  .example-box{ padding:18px; }
  .faq-item summary{ padding:16px 54px 16px 18px; font-size:.95rem; }
  .faq-body{ padding:0 18px 18px; }
  .calc-footer{ padding-top:64px; padding-bottom:100px; }
  .calc-footer .footer-links-box h4{ font-size:1.35rem; margin-bottom:12px; }
  .calc-footer .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .calc-page .orb-btn{ left:50%; }
  .hub-card h2{ font-size:1.3rem; text-align:left; }
}

/* offcanvas mobile menu */
#rrMenu{ background:var(--bg) !important; border-left:1px solid var(--white-200); }
#rrMenu .offcanvas-header{ border-bottom:1px solid var(--white-200); }
#rrMenu .offcanvas-header img{ height:42px; }
#rrMenu .btn-close{ position:static; filter:invert(1); }
body.light-theme #rrMenu .btn-close{ filter:none; }
#rrMenu .mobile-nav li a{ display:block; padding:12px 4px; color:var(--text); text-decoration:none; font-size:1.125rem; border-bottom:1px solid var(--white-100); }
#rrMenu .mobile-nav li a:hover{ color:var(--white); }

@media (prefers-reduced-motion:reduce){
  .rr-split .seg, .mini-calc, .rr-range::-webkit-slider-thumb{ transition:none; }
}
