/* ==========================================================================
   HindiSpark Calculators
   Uses the HindiSpark theme variables (--hs-blue, --hs-saffron …) with fallbacks,
   so it also looks fine without the theme.
   ========================================================================== */

.hsc-calc, .hsc-listing, .hsc-single {
	--hsc-blue: var(--hs-blue, #1d4ed8);
	--hsc-blue-dark: var(--hs-blue-dark, #1e3a8a);
	--hsc-blue-soft: var(--hs-blue-soft, #eef2ff);
	--hsc-saffron: var(--hs-saffron, #c2410c);
	--hsc-saffron-dark: var(--hs-saffron-dark, #9a3412);
	--hsc-saffron-soft: var(--hs-saffron-soft, #fff4e6);
	--hsc-ink: var(--hs-ink, #111827);
	--hsc-body: var(--hs-body, #374151);
	--hsc-muted: var(--hs-muted, #4b5563);
	--hsc-line: var(--hs-line, #e5e7eb);
	--hsc-mist: var(--hs-mist, #f5f7fb);
	--hsc-green: var(--hs-green, #15803d);
	--hsc-radius: var(--hs-radius, 18px);
	--hsc-head: var(--hs-font-head, 'Poppins', system-ui, sans-serif);
	--hsc-font: var(--hs-font-body, 'Mukta', system-ui, sans-serif);
}

/* --------------------------------------------------------------------------
   Calculator card
   ----------------------------------------------------------------------- */
.hsc-calc {
	box-sizing: border-box; max-width: 880px; margin: 0 0 8px; padding: clamp(20px, 3.5vw, 32px);
	background: #fff; border: 1px solid var(--hsc-line); border-radius: 22px;
	box-shadow: 0 18px 40px rgba(17, 24, 39, .08);
	font-family: var(--hsc-font); font-size: 17px; line-height: 1.6; color: var(--hsc-ink);
}
.hsc-calc *, .hsc-calc *::before, .hsc-calc *::after { box-sizing: border-box; }
.hsc-calc [hidden] { display: none !important; }
.hsc-calc p { margin: 0; }

.hsc-calc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hsc-calc .hs-icon-box { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--hsc-blue); color: #fff; }
.hsc-calc .hsc-calc__title { font-family: var(--hsc-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--hsc-ink); }
.hsc-calc .hsc-calc__sub { margin-top: 2px; font-size: 15px; color: var(--hsc-muted); }

/* Tabs – !important so theme button styles (Twenty Twenty-One makes buttons black) can't override them */
.hsc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 14px; background: var(--hsc-mist); }
.hsc-calc .hsc-tab, .hsc-calc button.hsc-tab {
	flex: 1 1 auto !important; min-height: 42px !important; height: auto !important; margin: 0 !important; padding: 0 14px !important;
	border: 0 !important; border-radius: 10px !important; outline: none;
	background: transparent !important; background-color: transparent !important; background-image: none !important;
	color: var(--hsc-muted) !important; box-shadow: none !important; text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
	font-family: var(--hsc-head) !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important;
	cursor: pointer; transition: background-color .15s, color .15s;
}
.hsc-calc .hsc-tab:hover, .hsc-calc .hsc-tab:focus, .hsc-calc button.hsc-tab:hover, .hsc-calc button.hsc-tab:focus { background: #fff !important; background-color: #fff !important; color: var(--hsc-ink) !important; }
.hsc-calc .hsc-tab.is-active, .hsc-calc button.hsc-tab.is-active, .hsc-calc .hsc-tab.is-active:hover, .hsc-calc .hsc-tab.is-active:focus {
	background: #fff !important; background-color: #fff !important; color: var(--hsc-blue) !important; box-shadow: 0 1px 3px rgba(17, 24, 39, .12) !important;
}
.hsc-calc .hsc-tab:focus-visible { outline: 3px solid #93c5fd !important; outline-offset: 1px; }

/* Fields */
.hsc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 18px; }
.hsc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.hsc-field--wide { grid-column: 1 / -1; }
.hsc-calc .hsc-label { padding: 0; font-family: var(--hsc-head); font-size: 14px; font-weight: 600; color: var(--hsc-ink); }
.hsc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hsc-inline { display: inline-flex; align-items: center; gap: 8px; }
.hsc-inline span, .hsc-unit { font-weight: 600; color: var(--hsc-muted); }

.hsc-calc .hsc-input {
	width: 100%; min-width: 0; max-width: none; height: 48px; margin: 0; padding: 0 14px;
	border: 1.5px solid #d1d5db; border-radius: 12px; background: #fff; box-shadow: none;
	font-family: var(--hsc-font); font-size: 17px; line-height: 1.2; color: var(--hsc-ink);
	transition: border-color .15s, box-shadow .15s;
}
.hsc-calc .hsc-input:focus { outline: none; border-color: var(--hsc-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
.hsc-calc .hsc-row .hsc-input, .hsc-calc .hsc-inline .hsc-input { width: 110px; flex: 0 0 auto; }
.hsc-calc .hsc-row .hsc-input[name="weight"] { flex: 1 1 120px; width: auto; }
.hsc-calc .hsc-input--unit { width: 92px !important; flex: 0 0 92px !important; padding: 0 26px 0 12px; }
.hsc-calc select.hsc-input:not(.hsc-input--unit) { padding-right: 34px; }

/* Segmented radio (ft/cm, male/female) */
.hsc-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--hsc-mist); align-self: flex-start; }
.hsc-seg label { position: relative; margin: 0; cursor: pointer; }
.hsc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hsc-seg span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 9px; font-family: var(--hsc-head); font-size: 14px; font-weight: 600; color: var(--hsc-muted); }
.hsc-seg input:checked + span { background: #fff; color: var(--hsc-blue); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }
.hsc-seg input:focus-visible + span { outline: 3px solid #93c5fd; }

.hsc-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 16px; color: var(--hsc-body); cursor: pointer; }
.hsc-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--hsc-blue); }

.hsc-calc .hsc-input--sm { width: 84px !important; }
.hsc-calc .hsc-input--auto { width: auto !important; padding-right: 30px; }
.hsc-tabs--many .hsc-tab, .hsc-calc .hsc-tabs--many button.hsc-tab { flex: 1 1 140px !important; }

/* Percentage: sentence-style inputs */
.hsc-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 18px; font-weight: 500; color: var(--hsc-body); }
.hsc-calc .hsc-sentence .hsc-input { width: 140px; }

.hsc-actions { margin-top: 20px; }
.hsc-calc .hsc-submit, .hsc-calc button.hsc-submit {
	display: inline-flex !important; align-items: center; justify-content: center; min-height: 52px !important; padding: 0 28px !important; margin: 0 !important;
	border: 0 !important; border-radius: 12px !important; background: var(--hsc-blue) !important; background-color: var(--hsc-blue) !important; background-image: none !important; color: #fff !important;
	font-family: var(--hsc-head) !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1 !important; text-transform: none !important; text-decoration: none !important; box-shadow: none !important; cursor: pointer;
}
.hsc-calc .hsc-submit:hover, .hsc-calc .hsc-submit:focus, .hsc-calc button.hsc-submit:hover { background: var(--hsc-blue-dark) !important; background-color: var(--hsc-blue-dark) !important; color: #fff !important; }
.hsc-calc .hsc-submit:focus-visible { outline: 3px solid #93c5fd !important; outline-offset: 2px; }

/* dd/mm/yyyy date box + calendar button */
.hsc-date { position: relative; display: flex; align-items: center; }
.hsc-calc .hsc-date__text { padding-right: 52px !important; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.hsc-calc .hsc-date__native { position: absolute !important; right: 8px; bottom: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none; }
.hsc-calc .hsc-date__btn, .hsc-calc button.hsc-date__btn {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	display: inline-flex !important; align-items: center; justify-content: center; width: 40px !important; height: 38px !important; min-height: 0 !important;
	padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 9px !important;
	background: transparent !important; background-color: transparent !important; color: var(--hsc-muted) !important; box-shadow: none !important; cursor: pointer;
}
.hsc-calc .hsc-date__btn:hover, .hsc-calc .hsc-date__btn:focus { background: var(--hsc-blue-soft) !important; background-color: var(--hsc-blue-soft) !important; color: var(--hsc-blue) !important; }
@media (max-width: 520px) { .hsc-calc .hsc-submit { width: 100%; } }

.hsc-calc .hsc-error { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 16px; font-weight: 500; }

/* --------------------------------------------------------------------------
   Results
   ----------------------------------------------------------------------- */
.hsc-result { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--hsc-line); display: flex; flex-direction: column; gap: 12px; animation: hsc-in .35s ease; }
.hsc-result > div[data-for] { display: flex; flex-direction: column; gap: 12px; }
@keyframes hsc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hsc-result { animation: none; } }

.hsc-calc .hsc-result__label { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--hsc-muted); }
.hsc-calc .hsc-big {
	padding: 18px 20px; border-radius: 16px; background: var(--hsc-blue-soft);
	font-family: var(--hsc-head); font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.3; color: var(--hsc-blue-dark);
}
.hsc-calc .hsc-sub { font-size: 16px; color: var(--hsc-muted); }
.hsc-calc .hsc-note { font-size: 16px; color: var(--hsc-body); }
.hsc-calc .hsc-note--saffron { padding: 12px 16px; border-radius: 12px; background: var(--hsc-saffron-soft); color: var(--hsc-saffron-dark); font-weight: 500; }
.hsc-calc .hsc-formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; padding: 10px 14px; border-radius: 10px; background: var(--hsc-mist); }

.hsc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hsc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hsc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hsc-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border: 1px solid var(--hsc-line); border-radius: 14px; background: #fff; text-align: center; }
.hsc-box__num { font-family: var(--hsc-head); font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: var(--hsc-blue); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hsc-box__num--sm { font-size: 17px; line-height: 1.35; }
.hsc-box__label { font-size: 14px; color: var(--hsc-muted); }
.hsc-box--hero { background: var(--hsc-blue); border-color: var(--hsc-blue); }
.hsc-box--hero .hsc-box__num { color: #fff; font-size: 28px; }
.hsc-box--hero .hsc-box__label { color: #dbeafe; }

.hsc-live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hsc-muted); }
.hsc-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: hsc-pulse 1.2s infinite; }
@keyframes hsc-pulse { 50% { opacity: .3; } }

/* Countdown clock */
.hsc-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hsc-clock__unit { display: flex; flex-direction: column; align-items: center; padding: 16px 6px; border-radius: 16px; background: var(--hsc-night, #0f172a); background: var(--hs-night, #0f172a); color: #fff; }
.hsc-clock__unit span { font-family: var(--hsc-head); font-size: clamp(26px, 5vw, 42px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hsc-clock__unit small { margin-top: 4px; font-size: 13px; color: #cbd5e1; }

/* Tables inside results */
.hsc-calc .hsc-table { width: 100%; margin: 4px 0 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hsc-line); border-radius: 14px; overflow: hidden; font-size: 16px; }
.hsc-calc .hsc-table :is(th, td) { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--hsc-line); text-align: left; }
.hsc-calc .hsc-table tr:last-child td { border-bottom: 0; }
.hsc-calc .hsc-table th { background: var(--hsc-blue-soft); color: var(--hsc-blue-dark); font-family: var(--hsc-head); font-size: 14px; font-weight: 600; }
.hsc-calc .hsc-table td:last-child { font-weight: 700; color: var(--hsc-ink); white-space: nowrap; text-align: right; }
.hsc-calc .hsc-table th:last-child { text-align: right; }

/* BMI */
.hsc-bmi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: end; }
@media (max-width: 560px) { .hsc-bmi { grid-template-columns: minmax(0, 1fr); } }
.hsc-bmi__value { display: flex; flex-direction: column; gap: 8px; }
.hsc-bmi__cls { display: grid; gap: 8px; margin: 0; }
.hsc-bmi__cls div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--hsc-line); border-radius: 12px; }
.hsc-bmi__cls dt { font-size: 15px; color: var(--hsc-muted); }
.hsc-bmi__cls dd { margin: 0; font-family: var(--hsc-head); font-weight: 700; }
[data-cls="normal"] .hsc-bmi__cls div:first-child dd { color: var(--hsc-green); }
[data-cls="underweight"] .hsc-bmi__cls div:first-child dd { color: #b45309; }
[data-cls="overweight"] .hsc-bmi__cls div:first-child dd { color: var(--hsc-saffron); }
[data-cls="obese"] .hsc-bmi__cls div:first-child dd { color: #b91c1c; }


/* BMI meter */
.hsc-bmi { align-items: center; }
.hsc-gauge { max-width: 340px; width: 100%; margin: 0 auto; }
.hsc-gauge__svg { display: block; width: 100%; height: auto; overflow: visible; }
.hsc-gauge__tick { font-family: var(--hsc-font); font-size: 12px; fill: var(--hsc-muted); }
.hsc-gauge__value { font-family: var(--hsc-head); font-size: 44px; font-weight: 700; fill: var(--hsc-ink); }
.hsc-gauge__label { font-family: var(--hsc-font); font-size: 14px; fill: var(--hsc-muted); }
.hsc-gauge__marker { fill: #fff; stroke: var(--hsc-ink); stroke-width: 5; transition: cx .6s ease, cy .6s ease; }
@media (prefers-reduced-motion: reduce) { .hsc-gauge__marker { transition: none; } }
.hsc-bmi__side { display: flex; flex-direction: column; gap: 10px; }
.hsc-calc .hsc-gauge__key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--hsc-muted); }
.hsc-gauge__key .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.k--u { background: #fbbf24; } .k--n { background: #22c55e; } .k--o { background: #fb923c; } .k--b { background: #ef4444; }

/* Calorie goal slider */
.hsc-goal { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid #c7d2fe; border-radius: 16px; background: var(--hsc-blue-soft); }
.hsc-goal__text { color: var(--hsc-blue-dark); }
.hsc-calc .hsc-range {
	--fill: 25%; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.hsc-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0 50%, #fb923c 50% 100%); }
.hsc-range::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0 50%, #fb923c 50% 100%); }
.hsc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--hsc-blue); box-shadow: 0 2px 6px rgba(17, 24, 39, .25); }
.hsc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--hsc-blue); box-shadow: 0 2px 6px rgba(17, 24, 39, .25); }
.hsc-range:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; border-radius: 8px; }
.hsc-range__ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--hsc-muted); }
.hsc-calc .hsc-goal__out { font-size: 17px; color: var(--hsc-body); }
.hsc-goal__num { font-family: var(--hsc-head); font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: var(--hsc-blue-dark); font-variant-numeric: tabular-nums; }
.hsc-calc .hsc-goal__note { font-size: 15px; color: var(--hsc-body); }
.hsc-calc .hsc-goal__warn { padding: 10px 14px; border-radius: 10px; background: var(--hsc-saffron-soft); color: var(--hsc-saffron-dark); font-size: 15px; font-weight: 500; }

/* Field errors */
.hsc-calc .hsc-input.is-invalid { border-color: #dc2626; background: #fffafa; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.hsc-calc .hsc-field-error { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; line-height: 1.4; color: #b91c1c; }
.hsc-calc .hsc-field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; }
.hsc-sentence .hsc-field-error { flex-basis: 100%; }

/* Finance: ₹ / % inside the box, sliders, donut, summary */
.hsc-panel { display: contents; }
.hsc-fields--fin { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hsc-affix { position: relative; display: flex; align-items: center; }
.hsc-affix__pre, .hsc-affix__suf { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--hsc-muted); pointer-events: none; }
.hsc-affix__pre { left: 14px; }
.hsc-affix__suf { right: 14px; }
.hsc-calc .hsc-affix.has-prefix .hsc-input { padding-left: 32px; }
.hsc-calc .hsc-affix.has-suffix .hsc-input { padding-right: 60px; }
.hsc-calc .hsc-input--grow { flex: 1 1 70px !important; width: auto !important; }
.hsc-row--nowrap { flex-wrap: nowrap; }
.hsc-row--nowrap .hsc-seg span { padding: 0 12px; }
.hsc-calc .hsc-hint { font-size: 14px; font-weight: 500; color: var(--hsc-blue-dark); font-variant-numeric: tabular-nums; min-height: 1em; }
.hsc-calc .hsc-range--fill { height: 22px; }
.hsc-range--fill::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--hsc-blue) var(--fill, 0%), #dbe3f0 var(--fill, 0%)); }
.hsc-range--fill::-moz-range-track { height: 6px; border-radius: 999px; background: #dbe3f0; }
.hsc-range--fill::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--hsc-blue); }
.hsc-range--fill::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; border-width: 3px; }

.hsc-fin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 600px) { .hsc-fin { grid-template-columns: minmax(0, 1fr); } }
.hsc-fin__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.hsc-fin__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border: 1px solid var(--hsc-line); border-radius: 12px; }
.hsc-fin__rows dt { font-size: 15px; color: var(--hsc-muted); }
.hsc-fin__rows dd { margin: 0; font-family: var(--hsc-head); font-size: 18px; font-weight: 700; color: var(--hsc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hsc-fin__rows .is-main { background: var(--hsc-blue); border-color: var(--hsc-blue); padding: 16px 18px; }
.hsc-fin__rows .is-main dt { color: #dbeafe; font-weight: 600; }
.hsc-fin__rows .is-main dd { color: #fff; font-size: clamp(22px, 3vw, 28px); }

.hsc-donut { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hsc-donut__svg { width: 100%; max-width: 200px; height: auto; display: block; }
.hsc-donut__arc { transition: stroke-dasharray .5s ease; }
@media (prefers-reduced-motion: reduce) { .hsc-donut__arc { transition: none; } }
.hsc-donut__pct { font-family: var(--hsc-head); font-size: 20px; font-weight: 700; fill: var(--hsc-ink); }
.hsc-donut__cap { font-family: var(--hsc-font); font-size: 10px; fill: var(--hsc-muted); }
.hsc-calc .hsc-donut__key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--hsc-muted); }
.hsc-donut__key .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
.k--a { background: #c7d2fe; } .k--b2 { background: #c2410c; }

/* Year-by-year table (collapsible) */
.hsc-years { border: 1px solid var(--hsc-line); border-radius: 14px; }
.hsc-years summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; font-family: var(--hsc-head); font-size: 15px; font-weight: 600; color: var(--hsc-ink); }
.hsc-years summary::-webkit-details-marker { display: none; }
.hsc-years[open] summary .hsc-icon { transform: rotate(180deg); }
.hsc-years__scroll { max-height: 420px; overflow: auto; padding: 0 12px 12px; }
.hsc-calc .hsc-table--num td, .hsc-calc .hsc-table--num th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hsc-calc .hsc-table--num td:first-child, .hsc-calc .hsc-table--num th:first-child { text-align: left; }
.hsc-calc .hsc-table--num td:last-child { font-weight: 600; }
@media (max-width: 520px) { .hsc-calc .hsc-table--num { font-size: 14px; } .hsc-calc .hsc-table--num :is(th, td) { padding: 9px 10px; } }

/* Pregnancy progress */
.hsc-progress { height: 12px; border-radius: 999px; background: var(--hsc-mist); overflow: hidden; }
.hsc-progress__bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f472b6, var(--hsc-saffron)); transition: width .5s ease; }

/* --------------------------------------------------------------------------
   Single calculator page (uses the theme's article layout + these extras)
   ----------------------------------------------------------------------- */
.hsc-single .hsc-head { background: var(--hsc-mist); padding: 32px 0 8px; border-bottom: 1px solid var(--hsc-line); }
/* Calculator sits at the top of the main column, so the sidebar starts level with it. */
.hsc-layout { padding-top: 32px; }
.hsc-layout .hsc-calc { max-width: none; margin-bottom: 40px; }
.hsc-single .hs-article__main { max-width: 800px; }
#hs-main .hsc-head__title, .hsc-head__title {
	margin: 0 0 8px; font-family: var(--hsc-head); font-size: clamp(28px, 4.2vw, 42px); font-weight: 700;
	line-height: 1.25; letter-spacing: -.4px; color: var(--hsc-ink);
}
#hs-main .hsc-head__intro, .hsc-head__intro { max-width: 820px; margin: 0 0 24px; font-size: 18px; color: var(--hsc-body); }
.hsc-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; font-size: 14px; color: var(--hsc-muted); }
.hsc-head__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* FAQ */
.hsc-faq { margin-top: 8px; }
#hs-main .hsc-faq h2 { font-family: var(--hsc-head); }
.hsc-faq__item { border: 1px solid var(--hsc-line); border-radius: 14px; background: #fff; margin: 0 0 10px; }
.hsc-faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none;
	font-family: var(--hsc-head); font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--hsc-ink);
}
.hsc-faq__item summary::-webkit-details-marker { display: none; }
.hsc-faq__item summary .hsc-icon { transition: transform .2s; color: var(--hsc-muted); }
.hsc-faq__item[open] summary .hsc-icon { transform: rotate(180deg); }
.hsc-faq__item[open] { border-color: #c7d2fe; }
.hsc-faq__answer { padding: 0 18px 16px; font-size: 17px; line-height: 1.75; color: var(--hsc-body); }
.hsc-faq__answer p { margin: 0; }

/* Disclaimer (health pages) */
.hsc-disclaimer { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--hsc-mist); font-size: 15px; line-height: 1.6; color: var(--hsc-body); }
.hsc-disclaimer .hsc-icon { color: var(--hsc-blue); margin-top: 2px; }

/* Related calculators (cards) */
.hsc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.hsc-card {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff;
	border: 1px solid var(--hsc-line); border-radius: var(--hsc-radius); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.hsc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(17, 24, 39, .10); border-color: #c7d2fe; }
.hsc-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--hsc-blue-soft); color: var(--hsc-blue); }
#hs-main .hsc-card__title, .hsc-card__title { margin: 0; font-family: var(--hsc-head); font-size: 18px; font-weight: 600; line-height: 1.35; }
#hs-main .hsc-card__title a, .hsc-card__title a { color: var(--hsc-ink); text-decoration: none; }
.hsc-card__title a::after { content: ""; position: absolute; inset: 0; }
#hs-main .hsc-card__title a:hover { color: var(--hsc-blue); }
#hs-main .hsc-card__text, .hsc-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hsc-muted); flex: 1; }
.hsc-card__cat { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--hsc-saffron-soft); color: var(--hsc-saffron-dark); font-size: 12px; font-weight: 600; }

/* Sidebar list */
.hsc-aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#hs-main .hsc-aside-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--hsc-ink); font-weight: 500; text-decoration: none; }
#hs-main .hsc-aside-list a:hover { background: var(--hsc-blue-soft); color: var(--hsc-blue); }
.hsc-aside-list .hsc-icon { color: var(--hsc-blue); }

/* --------------------------------------------------------------------------
   Listing page (/calculators/)
   ----------------------------------------------------------------------- */
.hsc-listing .hsc-group { margin-bottom: 44px; }
#hs-main .hsc-group__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--hsc-head); font-size: 24px; font-weight: 700; color: var(--hsc-ink); }
#hs-main .hsc-group__title a { color: inherit; text-decoration: none; }
#hs-main .hsc-group__title a:hover { color: var(--hsc-blue); }
.hsc-group__count { font-size: 14px; font-weight: 500; color: var(--hsc-muted); }

/* --------------------------------------------------------------------------
   "Try our calculator" box in posts (category boxes and [calc_link])
   ----------------------------------------------------------------------- */
.hsc-cta {
	display: flex; align-items: center; gap: 14px; margin: 1.6em 0; padding: 16px 18px;
	border: 1px solid #c7d2fe; border-radius: 16px; background: var(--hs-blue-soft, #eef2ff);
	font-family: var(--hs-font-body, inherit); font-size: 17px; line-height: 1.5;
}
.hsc-cta__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--hs-blue, #1d4ed8); color: #fff; }
.hsc-cta__text { flex: 1; min-width: 0; color: var(--hs-ink, #111827); }
.hsc-cta__text strong { display: block; font-family: var(--hs-font-head, inherit); font-size: 16px; }
.hsc-cta .hsc-cta__btn, #hs-main .hs-prose .hsc-cta .hsc-cta__btn {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 42px; padding: 0 16px; border-radius: 10px;
	background: var(--hs-blue, #1d4ed8); color: #fff; font-family: var(--hs-font-head, inherit); font-size: 14px; font-weight: 600; text-decoration: none;
}
.hsc-cta .hsc-cta__btn:hover, #hs-main .hs-prose .hsc-cta .hsc-cta__btn:hover { background: var(--hs-blue-dark, #1e3a8a); color: #fff; }
@media (max-width: 560px) { .hsc-cta { flex-wrap: wrap; } .hsc-cta .hsc-cta__btn { width: 100%; justify-content: center; } }
