/**
 * HostingTags Calculator System Styles
 *
 * @package HostingTags
 * @since   3.6.0
 */

/* ====================================================================
 * PAGE WRAPPER & LAYOUT
 * ==================================================================== */

.htcalc-page-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 40px;
}

.htcalc-breadcrumbs-wrap {
	margin: 16px 0 20px;
}

/* Two-column: main + sidebar */
.htcalc-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

.htcalc-main {
	min-width: 0;
}


/* ====================================================================
 * HERO SECTION
 * ==================================================================== */

.htcalc-hero {
	position: relative;
	text-align: center;
	padding: 52px 24px 36px;
	margin-bottom: 28px;
	overflow: hidden;
	border-radius: var(--ht-radius-lg, 14px);
}

.htcalc-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--ht-gray-900) 0%, var(--ht-primary-dark) 50%, var(--ht-primary) 100%);
	z-index: 0;
}

.htcalc-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='15' y='15' width='30' height='30' rx='4' fill='none' stroke='rgba(255,255,255,.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
	pointer-events: none;
}

.htcalc-hero__content {
	position: relative;
	z-index: 1;
}

.htcalc-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	border: 2px solid rgba(255,255,255,.2);
	color: #fff;
	margin-bottom: 14px;
}

.htcalc-hero__title {
	font-size: calc(var(--ht-body-size, 14px) * 2.3);
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.2;
}

.htcalc-hero__subtitle {
	font-size: calc(var(--ht-body-size, 14px) * 1.07);
	color: rgba(255,255,255,.75);
	max-width: 600px;
	margin: 0 auto 18px;
	line-height: 1.6;
}

.htcalc-hero__badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.htcalc-hero__badges .ht-badge--outline {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	backdrop-filter: blur(4px);
}


/* ====================================================================
 * HORIZONTAL CALCULATOR CARDS (Index)
 * ==================================================================== */

.htcalc-hcard {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
	text-decoration: none !important;
	color: inherit;
	transition: box-shadow var(--ht-transition, .2s ease), transform var(--ht-transition, .2s ease), border-color var(--ht-transition, .2s ease);
	margin-bottom: 16px;
}

.htcalc-hcard:hover {
	border-color: var(--ht-primary, #124187);
	box-shadow: var(--ht-shadow-md, 0 4px 12px rgba(0,0,0,.1));
	transform: translateY(-2px);
}

.htcalc-hcard__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.htcalc-hcard__body {
	flex: 1;
	min-width: 0;
}

.htcalc-hcard__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.htcalc-hcard__title {
	font-size: calc(var(--ht-body-size, 14px) * 1.21);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
	margin: 0;
	line-height: 1.3;
}

.htcalc-hcard__num {
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	font-weight: 700;
	color: var(--ht-gray-400, #9ca3af);
	flex-shrink: 0;
}

.htcalc-hcard__desc {
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	color: var(--ht-gray-500, #6b7280);
	line-height: 1.6;
	margin: 0 0 10px;
}

.htcalc-hcard__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.htcalc-hcard__feat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	background: var(--ht-success-light, #dcfce7);
	color: var(--ht-success-dark, #15803d);
	border-radius: 20px;
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	font-weight: 600;
}

.htcalc-hcard__feat svg {
	flex-shrink: 0;
}

.htcalc-hcard__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 600;
	color: var(--ht-primary, #124187);
	transition: gap var(--ht-transition, .2s ease);
}

.htcalc-hcard:hover .htcalc-hcard__cta {
	gap: 10px;
}


/* ====================================================================
 * SIDEBAR
 * ==================================================================== */

.htcalc-sidebar {
	position: sticky;
	top: 80px;
	align-self: flex-start;
}

.htcalc-sidebar-card {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
}

.htcalc-sidebar-card--tip {
	background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
	border-color: #fde68a;
}

.htcalc-sidebar-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.htcalc-sidebar-card__title svg {
	color: var(--ht-primary, #124187);
	flex-shrink: 0;
}

.htcalc-sidebar-card--tip .htcalc-sidebar-card__title svg {
	color: var(--ht-warning-dark, #d97706);
}

/* Nav list */
.htcalc-sidebar-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.htcalc-sidebar-nav li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 500;
	color: var(--ht-gray-700, #374151) !important;
	text-decoration: none !important;
	transition: color var(--ht-transition, .2s ease);
}

.htcalc-sidebar-nav li:last-child a {
	border-bottom: none;
}

.htcalc-sidebar-nav li a:hover {
	color: var(--ht-primary, #124187) !important;
}

.htcalc-sidebar-nav li.active a {
	color: var(--ht-primary, #124187) !important;
	font-weight: 700;
}

.htcalc-sidebar-nav__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.htcalc-sidebar-nav__active {
	margin-left: auto;
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 600;
	color: #fff;
	background: var(--ht-primary, #124187);
	padding: 1px 8px;
	border-radius: 10px;
}

/* Steps */
.htcalc-sidebar-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.htcalc-sidebar-step {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	color: var(--ht-gray-700, #374151);
	font-weight: 500;
}

.htcalc-sidebar-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ht-primary, #124187);
	color: #fff;
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	font-weight: 700;
	flex-shrink: 0;
}

/* Tips */
.htcalc-sidebar-tips {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.htcalc-sidebar-tip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	color: var(--ht-gray-600, #4b5563);
	line-height: 1.5;
}

.htcalc-sidebar-tip svg {
	flex-shrink: 0;
	color: var(--ht-warning-dark, #d97706);
	margin-top: 2px;
}

/* Links */
.htcalc-sidebar-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.htcalc-sidebar-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--ht-gray-50, #f9fafb);
	border-radius: var(--ht-radius-sm, 8px);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 500;
	color: var(--ht-primary, #124187) !important;
	text-decoration: none !important;
	transition: background var(--ht-transition, .2s ease);
}

.htcalc-sidebar-link:hover {
	background: var(--ht-primary-lighter, rgba(18,65,135,.06));
}

.htcalc-sidebar-link svg {
	flex-shrink: 0;
}


/* ====================================================================
 * RELATED CALCULATORS (single page)
 * ==================================================================== */

.htcalc-related-section {
	margin-top: 32px;
}

.htcalc-related-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 1.14);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ht-gray-200, #e5e7eb);
}

.htcalc-related-section__title svg {
	color: var(--ht-primary, #124187);
}

.htcalc-related-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.htcalc-related-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	text-decoration: none !important;
	color: inherit;
	transition: border-color var(--ht-transition, .2s ease), box-shadow var(--ht-transition, .2s ease);
}

.htcalc-related-card:hover {
	border-color: var(--ht-primary, #124187);
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
}

.htcalc-related-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.htcalc-related-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.htcalc-related-card__body strong {
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
}

.htcalc-related-card__body span:last-child {
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	color: var(--ht-gray-400, #9ca3af);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.htcalc-related-card > .ht-icon {
	color: var(--ht-gray-400);
	flex-shrink: 0;
	transition: color var(--ht-transition, .2s ease);
}

.htcalc-related-card:hover > .ht-icon {
	color: var(--ht-primary, #124187);
}


/* ====================================================================
 * INDIVIDUAL CALCULATOR
 * ==================================================================== */

.htcalc {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
	overflow: hidden;
	margin-bottom: 30px;
}

.htcalc__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	border-bottom: 1px solid var(--ht-gray-200, #e5e7eb);
	background: var(--ht-gray-50, #f9fafb);
}

.htcalc__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.htcalc__title {
	font-size: 22px;
	font-weight: var(--ht-heading-weight, 700);
	color: var(--ht-heading, #1a1a2e);
	margin: 0 0 4px;
}

.htcalc__desc {
	font-size: 14px;
	color: var(--ht-gray-500, #6b7280);
	margin: 0;
	line-height: 1.4;
}

.htcalc__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.htcalc__form {
	padding: 24px;
	border-right: 1px solid var(--ht-gray-200, #e5e7eb);
}

.htcalc__results {
	padding: 24px;
	background: var(--ht-gray-50, #f9fafb);
	min-height: 300px;
}


/* ====================================================================
 * FORM ELEMENTS
 * ==================================================================== */

.htcalc__field {
	margin-bottom: 18px;
}

.htcalc__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ht-gray-700, #374151);
	margin-bottom: 6px;
}

.htcalc__input,
.htcalc__select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ht-gray-300, #d1d5db);
	border-radius: var(--ht-radius-sm, 8px);
	font-size: 14px;
	color: var(--ht-gray-700, #374151);
	background: #fff;
	transition: border-color .2s;
	box-sizing: border-box;
}

.htcalc__input:focus,
.htcalc__select:focus {
	outline: none;
	border-color: var(--ht-primary, #124187);
	box-shadow: 0 0 0 3px rgba(18,65,135,.1);
}

.htcalc__range {
	width: 100%;
	margin: 4px 0;
	accent-color: var(--ht-primary, #124187);
}

.htcalc__range-val {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ht-primary, #124187);
	min-width: 40px;
}

.htcalc__hint {
	display: block;
	font-size: 12px;
	color: var(--ht-gray-400, #9ca3af);
	margin-top: 4px;
}

.htcalc__checkgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.htcalc__check {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--ht-gray-600, #4b5563);
	cursor: pointer;
}

.htcalc__check input {
	accent-color: var(--ht-primary, #124187);
}

.htcalc__submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	margin-top: 8px;
	cursor: pointer;
}


/* ====================================================================
 * RESULTS AREA
 * ==================================================================== */

.htcalc__results-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 250px;
	color: var(--ht-gray-400, #9ca3af);
	text-align: center;
	gap: 12px;
}

.htcalc__results-placeholder .ht-icon {
	opacity: .4;
}

.htcalc__results-placeholder p {
	margin: 0;
	font-size: 14px;
}

/* Result cards */
.htcalc-result {
	animation: htcalcFadeIn .3s ease;
}

@keyframes htcalcFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.htcalc-result__stat {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	padding: 16px;
	margin-bottom: 12px;
	text-align: center;
}

.htcalc-result__stat-label {
	display: block;
	font-size: 12px;
	color: var(--ht-gray-500, #6b7280);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.htcalc-result__stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: var(--ht-primary, #124187);
}

.htcalc-result__stat-value small {
	font-size: 14px;
	font-weight: 400;
	color: var(--ht-gray-500, #6b7280);
}

.htcalc-result__stat--highlight {
	border-color: var(--ht-primary, #124187);
	background: linear-gradient(135deg, rgba(18,65,135,.04), rgba(18,65,135,.01));
}

.htcalc-result__breakdown {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	overflow: hidden;
	margin-bottom: 12px;
}

.htcalc-result__breakdown-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--ht-gray-600, #4b5563);
	padding: 10px 14px;
	background: var(--ht-gray-50, #f9fafb);
	border-bottom: 1px solid var(--ht-gray-200, #e5e7eb);
	margin: 0;
}

.htcalc-result__row {
	display: flex;
	justify-content: space-between;
	padding: 8px 14px;
	font-size: 13px;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
}

.htcalc-result__row:last-child {
	border-bottom: 0;
}

.htcalc-result__row-label {
	color: var(--ht-gray-600, #4b5563);
}

.htcalc-result__row-value {
	font-weight: 600;
	color: var(--ht-gray-800, #1f2937);
}

.htcalc-result__row--total {
	background: var(--ht-gray-50, #f9fafb);
	font-weight: 600;
}

.htcalc-result__row--total .htcalc-result__row-value {
	color: var(--ht-primary, #124187);
	font-size: 15px;
}

.htcalc-result__note {
	font-size: 12px;
	color: var(--ht-gray-500, #6b7280);
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: var(--ht-radius-sm, 8px);
	padding: 10px 14px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
}

.htcalc-result__note .ht-icon {
	flex-shrink: 0;
	color: #d97706;
}

/* Comparison table for uptime */
.htcalc-result__compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 12px;
}

.htcalc-result__compare-table th,
.htcalc-result__compare-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
}

.htcalc-result__compare-table th {
	font-weight: 600;
	color: var(--ht-gray-600, #4b5563);
	background: var(--ht-gray-50, #f9fafb);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.htcalc-result__compare-table tr.htcalc-result__compare-active {
	background: rgba(18,65,135,.05);
	font-weight: 600;
}

.htcalc-result__compare-table .htcalc-result__compare-loss {
	color: #dc2626;
	font-weight: 600;
}


/* ====================================================================
 * PROVIDER RECOMMENDATIONS
 * ==================================================================== */

.htcalc__providers {
	border-top: 1px solid var(--ht-gray-200, #e5e7eb);
	padding: 24px;
	display: none;
}

.htcalc__providers.htcalc__providers--visible {
	display: block;
}

.htcalc__providers-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--ht-heading, #1a1a2e);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.htcalc-prov-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

.htcalc-prov-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	text-decoration: none;
	color: inherit;
	transition: var(--ht-transition, all .2s ease);
}

.htcalc-prov-card:hover {
	border-color: var(--ht-primary, #124187);
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.htcalc-prov-card__logo {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: contain;
	background: var(--ht-gray-50, #f9fafb);
	flex-shrink: 0;
}

.htcalc-prov-card__info {
	flex: 1;
	min-width: 0;
}

.htcalc-prov-card__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ht-heading, #1a1a2e);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.htcalc-prov-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--ht-gray-500, #6b7280);
	margin-top: 2px;
}

.htcalc-prov-card__score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.htcalc-prov-card__score--excellent { background: #059669; }
.htcalc-prov-card__score--good { background: #3b82f6; }
.htcalc-prov-card__score--average { background: #f59e0b; }
.htcalc-prov-card__score--poor { background: #ef4444; }


/* ====================================================================
 * SIDEBAR WIDGETS
 * ==================================================================== */

.htcalc-sidebar-widgets .widget {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
}


/* ====================================================================
 * RESPONSIVE
 * ==================================================================== */

@media (max-width: 1024px) {
	.htcalc-layout {
		grid-template-columns: 1fr 260px;
		gap: 20px;
	}

	.htcalc-hcard {
		padding: 20px;
	}
}

@media (max-width: 768px) {
	.htcalc-layout {
		grid-template-columns: 1fr;
	}

	.htcalc-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 16px;
	}

	.htcalc-sidebar-card {
		margin-bottom: 0;
	}

	.htcalc-hero {
		padding: 36px 16px 28px;
		margin-bottom: 20px;
	}

	.htcalc-hero__title {
		font-size: calc(var(--ht-body-size, 14px) * 1.7);
	}

	.htcalc-hero__icon {
		width: 48px;
		height: 48px;
	}

	.htcalc-hcard {
		padding: 18px;
		gap: 14px;
	}

	.htcalc-hcard__icon {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.htcalc__body {
		grid-template-columns: 1fr;
	}

	.htcalc__form {
		border-right: none;
		border-bottom: 1px solid var(--ht-gray-200, #e5e7eb);
	}

	.htcalc__results {
		min-height: auto;
	}

	.htcalc__title {
		font-size: 18px;
	}

	.htcalc-prov-grid {
		grid-template-columns: 1fr;
	}

	.htcalc-result__compare-table {
		font-size: 11px;
	}

	.htcalc-result__compare-table th,
	.htcalc-result__compare-table td {
		padding: 6px 8px;
	}
}

@media (max-width: 480px) {
	.htcalc-page-wrap {
		padding: 0 0 24px;
	}

	.htcalc-hero {
		padding: 28px 14px 22px;
		border-radius: var(--ht-radius, 12px);
	}

	.htcalc-hero__badges {
		gap: 6px;
	}

	.htcalc-hcard {
		flex-direction: column;
		gap: 12px;
		padding: 16px;
	}

	.htcalc-hcard__icon {
		width: 42px;
		height: 42px;
	}

	.htcalc-hcard__features {
		gap: 6px;
	}

	.htcalc__header {
		flex-direction: column;
		text-align: center;
		gap: 10px;
		padding: 20px 16px;
	}

	.htcalc__form,
	.htcalc__results {
		padding: 16px;
	}

	.htcalc-result__stat-value {
		font-size: 22px;
	}

	.htcalc-sidebar {
		grid-template-columns: 1fr;
	}

	.htcalc-related-card {
		padding: 12px 14px;
	}
}
