/* Fit the calculator into the visible area: anchors clear the sticky bars, short screens get a compact layout,
   the Calculate button stays reachable and the result panel stays in view while you type. */
html { scroll-padding-top: calc(var(--hlc-stick, 96px) + 12px); }
.hlc-sound-toggle .hlc-snd-off { display: none; }
.hlc-sound-toggle.is-muted .hlc-snd-on { display: none; }
.hlc-sound-toggle.is-muted .hlc-snd-off { display: block; opacity: .7; }

/* Calculate / Reset always visible at the bottom of the form card */
.hlc-card-form .hlc-actions { position: sticky; bottom: 0; z-index: 5; margin: 8px -4px 0; padding: 12px 4px 4px; background: linear-gradient(to top, var(--neu-bg, var(--hlc-surface, #fff)) 72%, rgba(255, 255, 255, 0)); }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) .hlc-card-form .hlc-actions { background: linear-gradient(to top, var(--neu-bg, #0f1a19) 72%, rgba(0, 0, 0, 0)); }
.hlc-tool-form .hlc-tool-actions { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 2px; background: linear-gradient(to top, var(--neu-bg, #fff) 72%, rgba(255, 255, 255, 0)); }

/* Desktop: results stay in view (and scroll inside themselves if taller than the screen) */
@media (min-width: 1001px) {
	.hlc-step-first .hlc-card-results, .hlc-tool-results { position: static; max-height: none; overflow: visible; }
	.hlc-tool-grid2 { align-items: start; }
}

/* Compact layout for short screens (laptops at 125-200% zoom, landscape phones) */
@media (max-height: 860px) {
	.hlc-step { padding: 28px 0; }
	.hlc-step-first { padding-top: 6px; }
	.hlc-step-head { margin-bottom: 12px; gap: 12px; }
	.hlc-step-head h2 { font-size: 1.35rem; margin: 0 0 2px; }
	.hlc-step-head p { font-size: .9rem; }
	.hlc-step-num { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
	:is(.hlc-step, .hlc-tool-app) .hlc-card { padding: 18px 20px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-calc-grid { gap: 18px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-field { margin-bottom: 12px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-field label:not(.hlc-check), :is(.hlc-step, .hlc-tool-app) .hlc-label { font-size: .88rem; margin-bottom: 5px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-input input, :is(.hlc-step, .hlc-tool-app) .hlc-select, :is(.hlc-step, .hlc-tool-app) .hlc-plain { min-height: 42px; font-size: 1rem; }
	:is(.hlc-step, .hlc-tool-app) .hlc-chips { margin-top: 6px; gap: 6px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-chip { min-height: 32px; padding: 0 11px; font-size: .8rem; }
	:is(.hlc-step, .hlc-tool-app) .hlc-help { margin-top: 4px; font-size: .8rem; }
	:is(.hlc-step, .hlc-tool-app) .hlc-err { margin-top: 4px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-seg button, :is(.hlc-step, .hlc-tool-app) .hlc-seg span { padding-top: 5px; padding-bottom: 5px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-adv summary { padding: 8px 0; }
	:is(.hlc-step, .hlc-tool-app) .hlc-result-label { margin-bottom: 0; }
	:is(.hlc-step, .hlc-tool-app) .hlc-result-big { font-size: clamp(2rem, 4.2vw, 2.7rem); margin: 2px 0; }
	:is(.hlc-step, .hlc-tool-app) .hlc-result-sub { margin: 0 0 10px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-stats .hlc-stat, :is(.hlc-step, .hlc-tool-app) .hlc-stat { padding: 10px 12px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-chart-donut { max-width: 190px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-chart-row { gap: 14px; margin-top: 10px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-next { margin-top: 12px; }
	.hlc-stepper ol { padding-top: 5px; padding-bottom: 6px; }
	.hlc-stepper a { padding-top: 4px; padding-bottom: 4px; }
	.hlc-tool-form, .hlc-tool-card { padding: 16px; }
	.hlc-tool-form { gap: 10px; }
}
@media (max-height: 640px) and (min-width: 1001px) {
	:is(.hlc-step, .hlc-tool-app) .hlc-chip { min-height: 28px; padding: 0 9px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-input input, :is(.hlc-step, .hlc-tool-app) .hlc-select, :is(.hlc-step, .hlc-tool-app) .hlc-plain { min-height: 38px; }
	:is(.hlc-step, .hlc-tool-app) .hlc-chart-donut { max-width: 150px; }
	.hlc-step-head p { display: none; }
}
@media (max-width: 1000px) {
	.hlc-step-first .hlc-card-results, .hlc-tool-results { position: static; max-height: none; overflow: visible; }
}

/* ---------- Tables: clean, readable colours (1.5.1) ---------- */
#hlc-compare thead th:nth-child(n+2), #hlc-pp-compare thead th:nth-child(n+2), .hlc-tool-table thead th:nth-child(n+2) { text-align: right; }
#hlc-compare td, #hlc-pp-compare td { white-space: nowrap; }
#hlc-compare td.is-good, .hlc-table td.is-good { color: #166534; font-weight: 700; background: rgba(22, 163, 74, .12); }
#hlc-compare td.is-bad, .hlc-table td.is-bad { color: #991b1b; font-weight: 700; background: rgba(220, 38, 38, .10); }
html body #hlc-pp-compare tr.is-good > th, html body #hlc-pp-compare tr.is-good > td { background: transparent; }
html body #hlc-pp-compare tr.is-good > td { color: #166534; font-weight: 700; }
html body #hlc-pp-compare tr.is-good > th:first-child { box-shadow: inset 3px 0 0 #16a34a; }
html body .hlc-report .hlc-table tr.is-good > th, html body .hlc-report .hlc-table tr.is-bad > th, html body .hlc-report .hlc-table tr.is-change > th { color: var(--hlc-navy); }

/* Report tables: no full-row fills. A thin coloured edge on the row, only the changed cells tinted. */
html body .hlc-report .hlc-table tr.is-good > *, html body .hlc-report .hlc-table tr.is-bad > *, html body .hlc-report .hlc-table tr.is-change > *, html body .hlc-report .hlc-table tr.is-changed > * { background: transparent; }
html body .hlc-report .hlc-table tbody tr:not(.is-good):not(.is-bad):not(.is-change):not(.is-changed):nth-child(even) > * { background: rgba(15, 23, 42, .03); }
html body .hlc-report .hlc-table tr.is-good > :first-child { box-shadow: inset 3px 0 0 #16a34a; }
html body .hlc-report .hlc-table tr.is-bad > :first-child { box-shadow: inset 3px 0 0 #dc2626; }
html body .hlc-report .hlc-table tr.is-change > :first-child, html body .hlc-report .hlc-table tr.is-changed > :first-child { box-shadow: inset 3px 0 0 #3b6fe0; }
html body .hlc-report .hlc-table tr.is-good > .is-cell { background: rgba(22, 163, 74, .14); color: #14532d; font-weight: 700; }
html body .hlc-report .hlc-table tr.is-bad > .is-cell { background: rgba(220, 38, 38, .12); color: #991b1b; font-weight: 700; }
html body .hlc-report .hlc-table tr.is-change > .is-cell, html body .hlc-report .hlc-table tr.is-changed > .is-cell { background: rgba(59, 111, 224, .12); color: #1e3a8a; font-weight: 700; }
html body .hlc-report .hlc-table thead th { background: transparent; }
html body .hlc-report .hlc-table th.num, html body .hlc-report .hlc-table td.num { white-space: nowrap; }
html body .hlc-hl.is-good { background: rgba(22, 163, 74, .10); } html body .hlc-hl.is-bad { background: rgba(220, 38, 38, .09); } html body .hlc-hl.is-change { background: rgba(59, 111, 224, .10); }

html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body #hlc-compare td.is-good, html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-table td.is-good { color: #86efac; background: rgba(74, 222, 128, .14); }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body #hlc-compare td.is-bad, html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-table td.is-bad { color: #fca5a5; background: rgba(248, 113, 113, .14); }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body #hlc-pp-compare tr.is-good > td { color: #86efac; }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-report .hlc-table tbody tr:not(.is-good):not(.is-bad):not(.is-change):not(.is-changed):nth-child(even) > * { background: rgba(255, 255, 255, .04); }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-report .hlc-table tr.is-good > .is-cell { background: rgba(74, 222, 128, .16); color: #bbf7d0; }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-report .hlc-table tr.is-bad > .is-cell { background: rgba(248, 113, 113, .16); color: #fecaca; }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-report .hlc-table tr.is-change > .is-cell, html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-report .hlc-table tr.is-changed > .is-cell { background: rgba(96, 165, 250, .18); color: #bfdbfe; }
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-hl.is-good { background: rgba(74, 222, 128, .12); } html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-hl.is-bad { background: rgba(248, 113, 113, .12); } html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-hl.is-change { background: rgba(96, 165, 250, .14); }
html body .hlc-report .hlc-table tr.is-good > td:not(.is-cell), html body .hlc-report .hlc-table tr.is-bad > td:not(.is-cell), html body .hlc-report .hlc-table tr.is-change > td:not(.is-cell) { color: var(--hlc-text); font-weight: 400; }

/* ===== Hero fills the first screen; calculators start below it (1.5.2) ===== */
.home .hlc-hero, .hlc-hero {
	min-height: calc(100vh - 60px);
	min-height: calc(100svh - 60px);
	display: flex;
	align-items: center;
	padding-top: 40px;
	padding-bottom: 72px;
}
.hlc-hero > .hlc-container { width: 100%; }
@media (max-width: 1000px) { .hlc-hero { min-height: 0; padding-bottom: 48px; } }
@media (max-height: 640px) { .hlc-hero { min-height: 0; } }

/* ===== Footer (1.5.2) ===== */
.hlc-footer { padding: 40px 0 22px; }
.hlc-footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 22px 26px; margin-bottom: 38px; border-radius: 20px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.hlc-footer p.hlc-footer-cta-title { margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: #fff !important; }
.hlc-footer p.hlc-footer-cta-sub { margin: 0; font-size: .92rem; opacity: .9; }
.hlc-footer-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hlc-footer a.hlc-footer-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.hlc-footer a.hlc-footer-btn.is-primary { background: #fff !important; color: #1c2244 !important; box-shadow: none; }
.hlc-footer a.hlc-footer-btn:hover { text-decoration: none; filter: brightness(.94); }
.hlc-footer .hlc-footer-grid { grid-template-columns: 1.7fr 1.2fr 1fr 1fr 1fr; gap: 30px 34px; }
.hlc-footer-title { font-size: .8rem; letter-spacing: .09em; }
.hlc-footer li { margin-bottom: 8px; }
.hlc-footer ul.hlc-footer-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.hlc-footer ul.hlc-footer-trust li { margin: 0; font-size: .86rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.hlc-footer ul.hlc-footer-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hlc-footer .hlc-footer-disclaimer { margin-top: 20px; }
.hlc-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.hlc-footer-bottom .hlc-footer-copy { margin: 0; text-align: left; }
.hlc-footer a.hlc-to-top { font-weight: 700; font-size: .88rem; }
@media (max-width: 1000px) { .hlc-footer .hlc-footer-grid { grid-template-columns: 1fr 1fr 1fr; } .hlc-footer-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .hlc-footer .hlc-footer-grid { grid-template-columns: 1fr 1fr; } .hlc-footer-cta { padding: 18px; } .hlc-footer-cta-btns, .hlc-footer a.hlc-footer-btn { width: 100%; justify-content: center; } }
html:not([data-hlc-mode="dark"]):not([data-hlc-mode="oled"]) body.hlc-style-glassmorphism .hlc-footer-cta { background: rgba(15,23,42,.05); box-shadow: inset 0 0 0 1px rgba(15,23,42,.14); }
html:not([data-hlc-mode="dark"]):not([data-hlc-mode="oled"]) body.hlc-style-glassmorphism .hlc-footer p.hlc-footer-cta-title { color: #17203d !important; }
html:not([data-hlc-mode="dark"]):not([data-hlc-mode="oled"]) body.hlc-style-glassmorphism .hlc-footer a.hlc-footer-btn { color: #17203d !important; box-shadow: inset 0 0 0 1.5px rgba(15,23,42,.4); }
html:not([data-hlc-mode="dark"]):not([data-hlc-mode="oled"]) body.hlc-style-glassmorphism .hlc-footer a.hlc-footer-btn.is-primary { background: #1c2244 !important; color: #fff !important; }
html:not([data-hlc-mode="dark"]):not([data-hlc-mode="oled"]) body.hlc-style-glassmorphism .hlc-footer ul.hlc-footer-trust { border-top-color: rgba(15,23,42,.14); }

/* ===== 1.5.3: no scroll traps, calm action buttons, tidy calculator page heads ===== */
html body .hlc-card-form .hlc-actions, html body .hlc-tool-form .hlc-tool-actions { position: static; background: none; margin: 14px 0 0; padding: 0; }
html, body { overscroll-behavior-y: auto; }

.hlc-tool-head { display: block; margin: 4px 0 22px; }
.hlc-tool-head .hlc-tool-back, .hlc-tool-head .hlc-badge { display: inline-flex; align-items: center; vertical-align: middle; margin: 0 10px 16px 0; }
.hlc-tool-head h1 { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); line-height: 1.15; }
.hlc-tool-head-icon { width: 46px; height: 46px; border-radius: 14px; }
.hlc-tool-head .hlc-lead { margin: 0; max-width: 70ch; font-size: 1.05rem; }

.hlc-tool-switch { margin: 0 0 22px; padding: 0; display: block; }
.hlc-tool-switch .hlc-mini-title { margin: 0 0 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hlc-tool-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hlc-tool-switch li { margin: 0; padding: 0; }
.hlc-tool-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; line-height: 1.2; }
.hlc-tool-switch a svg { flex: none; }
@media (max-width: 700px) {
	.hlc-tool-head h1 { gap: 10px; }
	.hlc-tool-head-icon { width: 38px; height: 38px; }
	.hlc-tool-switch ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
	.hlc-tool-switch a { white-space: nowrap; }
}

/* ===== 1.5.4: download / share bar and "more calculators" tiles ===== */
.hlc-tool-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 4px; padding: 14px 18px; border-radius: 18px; background: var(--neu-bg, transparent); box-shadow: var(--neu-in-sm, inset 0 0 0 1px var(--hlc-line)); }
.hlc-share-label { margin-right: auto; font-weight: 700; font-size: .92rem; color: var(--hlc-navy); }
.hlc-tool-share .hlc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.hlc-tool-share .hlc-btn::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.hlc-tool-share .hlc-btn:nth-of-type(1) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0l-4-4m4 4l4-4M4 20h16'/%3E%3C/svg%3E"); }
.hlc-tool-share .hlc-btn:nth-of-type(2) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4v-7h16v7h-2M7 14h10v7H7z'/%3E%3C/svg%3E"); }
.hlc-tool-share .hlc-btn:nth-of-type(3) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E"); }
.hlc-share-msg { font-size: .85rem; font-weight: 600; color: var(--hlc-green, #15803d); }
@media (max-width: 600px) { .hlc-share-label { flex: 1 1 100%; } .hlc-tool-share .hlc-btn { flex: 1 1 auto; justify-content: center; } }

.hlc-tool-more { margin-top: 30px; padding: 26px 28px 28px; }
.hlc-tool-more .hlc-mini-title { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; text-transform: none; opacity: 1; color: var(--hlc-navy); }
.hlc-tool-more .hlc-tool-more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.hlc-tool-more-list li { margin: 0; }
.hlc-tool-more-list a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 16px; text-decoration: none !important; font-weight: 700; font-size: .95rem; line-height: 1.25; background: var(--neu-bg, #fff); box-shadow: var(--neu-out-sm, 0 1px 3px rgba(0,0,0,.1)); color: var(--hlc-navy) !important; transition: transform .15s ease, box-shadow .15s ease; }
.hlc-tool-more-list a:hover { transform: translateY(-2px); }
.hlc-tool-more-list a svg { flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 12px; background: var(--hlc-teal-soft, #e8ecff); color: var(--hlc-teal, #4f63e0); }
.hlc-tool-more-list a span { flex: 1; }
.hlc-tool-more-list a::after { content: "\2192"; flex: none; opacity: .5; font-weight: 700; }
.hlc-tool-more-list li.is-all a { background: var(--hlc-teal, #4f63e0); color: #fff !important; box-shadow: none; }
.hlc-tool-more-list li.is-all a svg { background: rgba(255,255,255,.2); color: #fff; }
.hlc-tool-more-list li.is-all a::after { opacity: .9; }
@media (max-width: 600px) { .hlc-tool-more { padding: 20px 16px; } .hlc-tool-more .hlc-tool-more-list { grid-template-columns: 1fr; } }
.hlc-tool-disc { margin: 22px 4px 8px; font-size: .86rem; line-height: 1.6; opacity: .85; }

/* ===== 1.5.5: author profile card ===== */
.hlc-author-card { display: flex; align-items: flex-start; gap: 24px; margin: 30px 0; padding: 26px 28px; border-radius: 24px; background: var(--neu-bg, #fff); box-shadow: var(--neu-out, 0 2px 10px rgba(0,0,0,.08)); }
.hlc-author-card.is-compact { gap: 18px; padding: 20px 22px; }
.hlc-author-photo { flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--neu-grad, linear-gradient(150deg, #7b8cf0, #4f63e0)); box-shadow: var(--neu-out-sm, 0 2px 8px rgba(0,0,0,.15)); }
.hlc-author-card.is-compact .hlc-author-photo { width: 72px; height: 72px; }
.hlc-author-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hlc-author-initial { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.hlc-author-card.is-compact .hlc-author-initial { font-size: 1.7rem; }
.hlc-author-body { min-width: 0; }
.hlc-author-eyebrow { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--hlc-teal, #4f63e0); }
.hlc-author-h { margin: 0; font-size: 1.35rem; line-height: 1.2; color: var(--hlc-navy); }
.hlc-author-role { margin: 2px 0 10px; font-weight: 600; color: var(--hlc-muted); }
.hlc-author-bio { margin: 0 0 12px; line-height: 1.65; color: var(--hlc-text); max-width: 70ch; }
.hlc-author-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.hlc-author-tags li { margin: 0; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--hlc-teal-soft, #e8ecff); color: var(--hlc-teal, #4f63e0); }
.hlc-author-card .hlc-author-linkedin { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; background: #0a66c2; color: #fff !important; }
.hlc-author-card .hlc-author-linkedin:hover { filter: brightness(1.1); text-decoration: none; }
@media (max-width: 600px) { .hlc-author-card { flex-direction: column; gap: 14px; padding: 20px 18px; } }

/* ===== 1.5.6: hero redesign (shorter heading, quick EMI card, trust line) ===== */
.hlc-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hlc-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 16px; }
.hlc-h1-sub { display: block; margin-top: 12px; font-size: .4em; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--hlc-muted); }
.hlc-hero .hlc-lead { font-size: 1.08rem; line-height: 1.65; max-width: 54ch; color: var(--hlc-text); opacity: .86; }
.hlc-hero-trust { display: flex; align-items: center; gap: 10px; margin: 22px 0 14px; font-size: .92rem; font-weight: 600; color: var(--hlc-navy); }
.hlc-hero-trust::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hlc-hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hlc-hero-chips li { margin: 0; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--hlc-teal); background: var(--hlc-teal-soft, #e8ecff); }

.hlc-hero-quick { padding: 28px; border-radius: 28px; background: var(--neu-bg, #fff); box-shadow: var(--neu-out, 0 8px 30px rgba(0,0,0,.12)); }
.hlc-quick-title { margin: 0 0 16px; font-size: 1.05rem; font-weight: 800; color: var(--hlc-navy); }
.hlc-quick-fields .hlc-field { margin: 0 0 14px; }
.hlc-quick-fields label { display: block; margin: 0 0 6px; font-size: .84rem; font-weight: 700; color: var(--hlc-navy); }
.hlc-quick-fields input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--neu-bg, #f1f3f9); box-shadow: var(--neu-in-sm, inset 0 1px 4px rgba(0,0,0,.12)); color: var(--hlc-text); font: inherit; font-weight: 700; font-size: 1.05rem; }
.hlc-quick-fields input:focus-visible { outline: 2px solid var(--hlc-teal, #4f63e0); outline-offset: 2px; }
.hlc-quick-fields .hlc-help { margin: 5px 0 0; min-height: 1.1em; font-size: .8rem; }
.hlc-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hlc-quick-result { margin: 6px 0 16px; padding: 18px 20px; border-radius: 20px; background: var(--neu-grad, linear-gradient(150deg, #7b8cf0, #4f63e0)); color: #fff; }
.hlc-quick-result p { margin: 0; color: #fff; }
.hlc-quick-label { font-size: .82rem; font-weight: 600; opacity: .9; }
.hlc-quick-emi { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hlc-quick-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.28); }
.hlc-quick-sub span { display: block; font-size: .76rem; opacity: .85; }
.hlc-quick-sub strong { font-size: 1rem; color: #fff; }
.hlc-quick-go { width: 100%; justify-content: center; text-align: center; }

@media (max-width: 1000px) { .hlc-hero-grid { grid-template-columns: 1fr; gap: 30px; } .hlc-hero-quick { padding: 22px 18px; } }

/* ===== 1.5.6: dark / OLED hover states stay readable ===== */
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-btn-soft:hover,
html:is([data-hlc-mode="dark"],[data-hlc-mode="oled"]) body .hlc-btn-soft:focus-visible { background: rgba(140, 155, 245, .24); color: #fff; }

/* ===== 1.5.8: plain, centred hero ===== */
.hlc-hero-grid.is-plain { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hlc-hero-grid.is-plain .hlc-hero-copy { max-width: 820px; }
.hlc-hero-grid.is-plain .hlc-lead { margin-left: auto; margin-right: auto; }
.hlc-hero-grid.is-plain .hlc-hero-cta, .hlc-hero-grid.is-plain .hlc-hero-chips, .hlc-hero-grid.is-plain .hlc-hero-trust { justify-content: center; }
.hlc-hero-grid.is-plain .hlc-hero-cta { margin-top: 28px; }

/* ---------- 1.7.3: shorter input panels (part payments, extra EMIs, rate changes) ---------- */
.hlc-step .hlc-card-form { padding: 20px 22px 22px; }
.hlc-step .hlc-card-form .hlc-field { margin-bottom: 12px; }
.hlc-step .hlc-card-form .hlc-field label:not(.hlc-check), .hlc-step .hlc-card-form .hlc-label { font-size: .88rem; margin-bottom: 5px; }
.hlc-step .hlc-card-form .hlc-input input, .hlc-step .hlc-card-form .hlc-select, .hlc-step .hlc-card-form .hlc-plain { min-height: 44px; font-size: 1rem; }
.hlc-step .hlc-card-form .hlc-chips { margin-top: 6px; gap: 6px; }
.hlc-step .hlc-card-form .hlc-chip { min-height: 32px; padding: 0 12px; font-size: .82rem; }
.hlc-step .hlc-card-form .hlc-help { margin: 4px 0 0; font-size: .8rem; line-height: 1.4; }
.hlc-step .hlc-card-form .hlc-help:empty { display: none; }
.hlc-step .hlc-card-form .hlc-err:empty { display: none; }
.hlc-step .hlc-card-form .hlc-subform { margin-top: 14px; padding-top: 14px; }
.hlc-step .hlc-card-form .hlc-subform-first { margin-top: 0; padding-top: 0; }
.hlc-step .hlc-card-form .hlc-subform > h3 { margin: 0 0 10px; font-size: 1.08rem; }
.hlc-step .hlc-card-form .hlc-list-head { margin: 14px 0 6px; }
.hlc-step .hlc-card-form .hlc-choice { margin-bottom: 4px; }
.hlc-step .hlc-card-form .hlc-choice legend { margin-bottom: 8px; font-size: .98rem; }
.hlc-step .hlc-card-form .hlc-choice-card { margin-bottom: 8px; padding: 10px 14px 10px 44px; }
.hlc-step .hlc-card-form .hlc-choice-card input { left: 14px; top: 13px; }
.hlc-step .hlc-card-form .hlc-choice-body small { font-size: .8rem; line-height: 1.4; margin-top: 1px; }
.hlc-step .hlc-card-form .hlc-check { margin: 2px 0; }

@media (min-width: 560px) {
	/* two choice cards side by side */
	.hlc-step .hlc-card-form .hlc-choice:not(:has(.hlc-choice-card:nth-of-type(3))) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hlc-step .hlc-card-form .hlc-choice:not(:has(.hlc-choice-card:nth-of-type(3))) legend { grid-column: 1 / -1; }
	.hlc-step .hlc-card-form .hlc-choice:not(:has(.hlc-choice-card:nth-of-type(3))) .hlc-choice-card { margin: 0; }

	/* the add forms become a two-column grid; month, year and EMI number sit on one row */
	.hlc-step .hlc-card-form .hlc-subform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; align-items: start; }
	.hlc-step .hlc-card-form .hlc-subform > * { grid-column: 1 / -1; }
	.hlc-step .hlc-card-form .hlc-subform > .hlc-err { order: 9; margin: 0; }
	.hlc-step .hlc-card-form .hlc-subform > .hlc-actions { margin: 0; align-self: end; }
	.hlc-step .hlc-card-form .hlc-subform > .hlc-actions .hlc-btn { width: 100%; justify-content: center; }
	.hlc-step .hlc-card-form .hlc-monthpicker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: center; }
	.hlc-step .hlc-card-form .hlc-monthpicker:has(.hlc-emino) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px; }
	.hlc-step .hlc-card-form .hlc-monthpicker .hlc-emino { display: flex !important; flex-direction: row; align-items: center; gap: 8px; margin: 0 !important; font-size: .78rem; white-space: nowrap; }
	.hlc-step .hlc-card-form .hlc-monthpicker .hlc-emino input { min-width: 0; width: 100%; }
	.hlc-step .hlc-card-form .hlc-monthpicker + .hlc-help { grid-column: 1 / -1; }

	/* part payment: amount, then month row, then note beside the button */
	#hlc-pp-form .hlc-field:has(#hlc-pp-note) { grid-column: 1; margin-bottom: 0; }
	#hlc-pp-form > .hlc-actions { grid-column: 2; }

	/* extra EMI: how often beside the amount; checkbox beside the button */
	#hlc-ex-form .hlc-field:has(#hlc-ex-freq) { grid-column: 1; }
	#hlc-ex-form .hlc-field:has(#hlc-ex-amount) { grid-column: 2; }
	#hlc-ex-form .hlc-field:has(#hlc-ex-until-end) { grid-column: 1; margin-bottom: 0; align-self: center; }
	#hlc-ex-form .hlc-field:has(#hlc-ex-end-wrap:not([hidden])) { grid-column: 1 / -1; margin-bottom: 12px; }
	#hlc-ex-form > .hlc-actions { grid-column: 2; align-self: center; }
	#hlc-ex-form:has(#hlc-ex-end-wrap:not([hidden])) > .hlc-actions { grid-column: 1 / -1; }

	/* rate change: the choice gets a full row, then the rate beside the button */
	#hlc-rc-form .hlc-field:has(#hlc-rc-strategy) { grid-column: 1 / -1; order: 4; }
	#hlc-rc-form .hlc-field:has(#hlc-rc-rate) { grid-column: 1; order: 5; margin-bottom: 0; }
	#hlc-rc-form > .hlc-actions { grid-column: 2; order: 5; align-self: end; }
}
@media (max-width: 559px) {
	.hlc-step .hlc-card-form { padding: 16px; }
	.hlc-step .hlc-card-form .hlc-input input, .hlc-step .hlc-card-form .hlc-select, .hlc-step .hlc-card-form .hlc-plain { min-height: 46px; }
	.hlc-step .hlc-card-form .hlc-chip { min-height: 36px; }
}
