.wells-calc {
	--wells-accent: #1d6f42;
	max-width: 860px;
	margin: 0 auto;
	line-height: 1.55;
}

.wells-calc .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.wells-calc-form {
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	padding: 1.25rem;
	margin: 1.5rem 0;
	background: #fafafa;
}

.wells-calc-repeater {
	border: 1px dashed #c9c9c9;
	border-radius: 6px;
	padding: 0.75rem 1rem 1rem;
	margin: 0 0 1rem;
}

.wells-calc-repeater legend {
	font-weight: 600;
	padding: 0 0.25rem;
}

.wells-calc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.wells-calc-row select,
.wells-calc-row input[type="number"] {
	min-width: 0;
}

.wells-calc-row__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wells-calc-row__fields input {
	width: 7rem;
}

.wells-calc-row__area {
	font-weight: 600;
	white-space: nowrap;
}

.wells-calc input,
.wells-calc select {
	padding: 0.4rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
}

.wells-calc input:focus-visible,
.wells-calc select:focus-visible,
.wells-calc button:focus-visible {
	outline: 2px solid var(--wells-accent);
	outline-offset: 1px;
}

.wells-calc-btn {
	display: inline-block;
	border: 1px solid var(--wells-accent);
	background: var(--wells-accent);
	color: #fff;
	border-radius: 4px;
	padding: 0.5rem 0.9rem;
	cursor: pointer;
	font-size: 0.95rem;
}

.wells-calc-btn--add {
	background: #fff;
	color: var(--wells-accent);
}

.wells-calc-btn--remove {
	background: #fff;
	color: #b3261e;
	border-color: #b3261e;
	line-height: 1;
	padding: 0.25rem 0.6rem;
}

.wells-calc-btn--secondary {
	background: #fff;
	color: var(--wells-accent);
}

.wells-calc-net-area {
	font-weight: 600;
	margin: 0.5rem 0 0;
}

.wells-calc-columns {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 1.5rem;
	align-items: start;
}

.wells-calc-col {
	min-width: 0;
}

.wells-calc-pattern {
	margin-top: 0;
}

.wells-calc-pkg-mode {
	gap: 0.35rem;
}

.wells-calc-pkg-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.wells-calc-pkg-option input[type="radio"] {
	margin: 0;
	cursor: pointer;
	accent-color: var(--wells-accent);
	flex-shrink: 0;
}

.wells-calc-pkg-label {
	font-weight: 600;
	font-size: 0.9rem;
	min-width: 10rem;
	cursor: pointer;
}

.wells-calc-pkg-option select,
.wells-calc-pkg-option input[type="number"] {
	transition: opacity 0.15s;
}

.wells-calc-field {
	margin-bottom: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-width: 22rem;
}

.wells-calc-field label {
	font-weight: 600;
	font-size: 0.9rem;
}

.wells-calc-result {
	background: #fff;
	border: 2px solid var(--wells-accent);
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
}

.wells-calc-result p {
	margin: 0.25rem 0;
}

.wells-calc-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.wells-calc-toast {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.85rem;
	color: var(--wells-accent);
}

.wells-calc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.wells-calc-table th,
.wells-calc-table td {
	border: 1px solid #ddd;
	padding: 0.5rem 0.65rem;
	text-align: left;
	vertical-align: top;
}

.wells-calc-table th {
	background: #f3f3f3;
}

.wells-calc-example {
	color: #555;
}

.wells-calc-faq__item {
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	padding: 0.6rem 0.9rem;
	margin-bottom: 0.5rem;
}

.wells-calc-faq__item summary {
	font-weight: 600;
	cursor: pointer;
}

.wells-calc-related {
	margin-top: 0.5rem;
}

@media (max-width: 680px) {
	.wells-calc-columns {
		grid-template-columns: 1fr;
	}

	.wells-calc-row__fields input {
		width: 5.5rem;
	}
}

/* Catalog */
.wells-catalog {
	--wells-accent: #1d6f42;
	max-width: 860px;
	margin: 0 auto;
}

.wells-catalog__group {
	margin-bottom: 2.5rem;
}

.wells-catalog__group-title {
	font-size: 1.25rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--wells-accent);
	color: var(--wells-accent);
}

.wells-catalog__grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 0.65rem;
}

.wells-catalog__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	background: #fafafa;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
}

.wells-catalog__card:hover {
	border-color: var(--wells-accent);
	background: #fff;
}

.wells-catalog__card-icon {
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	color: var(--wells-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.wells-catalog__card-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wells-catalog__cat-icon {
	display: inline-flex;
	width: 1.3em;
	height: 1.3em;
	vertical-align: middle;
	margin-right: 0.35em;
	margin-bottom: 0.1em;
	color: var(--wells-accent);
}

.wells-catalog__cat-icon svg {
	width: 100%;
	height: 100%;
}

.wells-catalog__card-title {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	flex: 1;
}

.wells-catalog__card-arrow {
	color: var(--wells-accent);
	font-size: 1.1rem;
	flex-shrink: 0;
}

.wells-catalog__card--soon {
	opacity: 0.5;
	cursor: default;
}

.wells-catalog__card-badge {
	font-size: 0.75rem;
	color: #888;
	white-space: nowrap;
}

@media (max-width: 500px) {
	.wells-catalog__grid {
		grid-template-columns: 1fr;
	}
}

/* Category landing page */
.wells-category-page {
	--wells-accent: #1d6f42;
	max-width: 860px;
	margin: 0 auto;
	line-height: 1.6;
}

.wells-category-page__title {
	margin: 0;
}

.wells-category-page__lead {
	font-size: 1.05rem;
	color: #555;
	margin: 0 0 1.25rem;
	max-width: 62ch;
}

/* Calculator cards — featured variant (1–3 cards): wider, more prominent */
.wells-catalog__grid--featured {
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
}

.wells-catalog__grid--featured .wells-catalog__card {
	padding: 1rem 1.25rem;
	font-size: 1rem;
}

/* SEO body text — appears after the cards */
.wells-category-page__body {
	margin-top: 2.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e8e8e8;
	color: #333;
}

.wells-category-page__body p {
	margin: 0 0 0.85em;
}

.wells-category-page__h2 {
	margin: 1.75rem 0 0.75rem;
	font-size: 1.15rem;
	color: var(--wells-accent);
}

.wells-category-page__soon {
	color: #666;
	font-style: italic;
	margin-top: 0.5rem;
}

/* Category page: H1 with large icon */
.wells-category-page__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.3em;
}

.wells-category-page__cat-icon {
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	color: var(--wells-accent);
}

.wells-category-page__cat-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Calculator page: H1 with icon */
.wells-calc__header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.25rem;
}

.wells-calc__icon {
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	color: var(--wells-accent);
}

.wells-calc__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wells-calc__title {
	margin: 0;
}

/* Admin screen */
.wells-calc-admin .wells-calc-preset-table input[type="text"],
.wells-calc-admin .wells-calc-preset-table input[type="number"] {
	width: 100%;
}

.wells-calc-color-field {
	width: 6rem;
}
