/* StoneCalc calculator, cards, FAQ — cream page, white cards, navy + cyan accents (matches reference design). */

.sc-app { margin: 1.5rem 0 2.5rem; }
.sc-app *, .sc-app *::before, .sc-app *::after { box-sizing: border-box; }
/* Any element toggled via the `hidden` attribute must actually disappear —
   author rules that set `display` on the same selector (flex/grid cards,
   etc.) otherwise tie the UA stylesheet's [hidden]{display:none} on
   specificity and silently win by source order. */
.sc-app [hidden] { display: none !important; }

/* Quick answer box (featured-snippet target) */
.sc-quick-answer {
	background: #ffffff;
	border: 1px solid #e2ddd1;
	border-left: 4px solid #06b6d4;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.sc-qa-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f68056;
	margin-bottom: 0.35rem;
}
.sc-quick-answer p { margin: 0; color: #1e293b; line-height: 1.6; }

/* Layout — form on top, full-width results dashboard below. A narrow side
   column made the results panel wrap and look like an afterthought; a full
   width band lets it breathe and reads as a proper summary, not a sidebar. */
.sc-calc {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sc-form {
	background: #ffffff;
	border: 1px solid #e2ddd1;
	border-radius: 14px;
	padding: 1.6rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.sc-step {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #475569;
	margin: 1.6rem 0 0.85rem;
	padding-top: 1.2rem;
	border-top: 1px solid #f0ece2;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}
.sc-step:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sc-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	background: #0f172a;
	color: #67e8f9;
	font-size: 0.8rem;
	flex: none;
}
.sc-optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: #94a3b8; }

/* Shape selector — segmented control */
.sc-shape {
	display: inline-flex;
	margin-bottom: 1rem;
	border: 1px solid #d9d3c5;
	border-radius: 10px;
	overflow: hidden;
	background: #f8f6f1;
}
.sc-shape-opt {
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	cursor: pointer;
	user-select: none;
	color: #475569;
	border-right: 1px solid #e5dfd2;
	display: inline-flex;
	align-items: center;
	transition: background 0.12s ease, color 0.12s ease;
}
.sc-shape-opt:last-child { border-right: 0; }
.sc-shape-opt:hover { color: #0f172a; }
.sc-shape-opt:has(input:checked) { background: #0f172a; color: #67e8f9; font-weight: 600; }
.sc-shape-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sc-shape-opt:has(input:focus-visible) { outline: 3px solid #06b6d4; outline-offset: -3px; }

.sc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.sc-field-wide { grid-column: 1 / -1; }
.sc-field label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin-bottom: 0.35rem; }
.sc-field[hidden] { display: none; }

.sc-input-row {
	display: flex;
	align-items: stretch;
	border: 1px solid #d9d3c5;
	border-radius: 9px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.sc-input-row:focus-within { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16); }
.sc-input-row input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0.65rem 0.8rem;
	min-height: 46px;
	font-size: 1rem;
	outline: none;
	background: transparent;
	font-family: inherit;
	color: #0f172a;
}
.sc-unit, .sc-unit-fixed {
	border: 0;
	border-left: 1px solid #eee9de;
	background: #f8f6f1;
	color: #475569;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0 0.65rem;
	outline-offset: -2px;
	display: flex;
	align-items: center;
	font-family: inherit;
}
.sc-input-row .sc-unit-fixed:first-child { border-left: 0; border-right: 1px solid #eee9de; }
select.sc-unit { appearance: auto; cursor: pointer; }
.sc-field > select, .sc-field .sc-input-row { width: 100%; }
.sc-field > select {
	border: 1px solid #d9d3c5;
	border-radius: 9px;
	padding: 0.65rem 0.8rem;
	min-height: 46px;
	font-size: 0.95rem;
	background: #fff;
	font-family: inherit;
	color: #0f172a;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.sc-field > select:focus { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16); outline: none; }

.sc-calculate {
	margin-top: 1.5rem;
	width: 100%;
	background: #06b6d4;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	font-family: inherit;
	border: 0;
	border-radius: 10px;
	padding: 0.9rem 1rem;
	min-height: 50px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	box-shadow: 0 2px 6px rgba(6, 182, 212, 0.35);
}
.sc-calculate:hover { background: #0891b2; }
.sc-calculate:active { transform: translateY(1px); }
.sc-calculate:focus-visible { outline: 3px solid #155e75; outline-offset: 2px; }

/* Results — full-width dashboard band, dark navy like the reference */
.sc-results {
	background: linear-gradient(135deg, #14213d 0%, #0f172a 65%);
	color: #e2e8f0;
	border-radius: 16px;
	padding: 1.75rem 2rem;
	border-top: 4px solid #06b6d4;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
.sc-results-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.sc-results-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.sc-results-title::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: #67e8f9;
	box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.18);
}
.sc-copy {
	background: rgba(103, 232, 249, 0.12);
	color: #67e8f9;
	border: 1px solid rgba(103, 232, 249, 0.35);
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	font-family: inherit;
	padding: 0.35rem 0.75rem;
	cursor: pointer;
	transition: background 0.12s ease;
	white-space: nowrap;
}
.sc-copy:hover { background: rgba(103, 232, 249, 0.22); }
.sc-copy:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
.sc-copy[hidden] { display: none; }
.sc-results-empty {
	color: #94a3b8;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
	padding: 1.75rem 0.5rem;
	text-align: center;
	border: 1.5px dashed rgba(255, 255, 255, 0.14);
	border-radius: 12px;
}
.sc-results-empty strong { color: #67e8f9; }

.sc-result-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.sc-result-big {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	padding: 1.35rem 1.1rem;
	text-align: center;
}
.sc-result-big [data-out] {
	display: block;
	font-size: clamp(1.9rem, 3.2vw, 2.5rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.sc-result-unit { font-size: 0.75rem; color: #7dd3ea; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; display: block; margin-top: 0.4rem; }
.sc-result-big-alt { background: rgba(103, 232, 249, 0.1); border-color: rgba(103, 232, 249, 0.3); }
.sc-result-big-alt [data-out] { color: #67e8f9; }

/* Detail grid — cards, not a table, so nothing has to wrap into a cramped column */
.sc-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.75rem;
}
.sc-detail-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.sc-detail-label { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.sc-detail-value { font-size: 1.15rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.sc-detail-secondary { font-size: 0.82rem; color: #8ea3c2; font-variant-numeric: tabular-nums; }
.sc-detail-card.sc-cost-row { background: rgba(103, 232, 249, 0.08); border-color: rgba(103, 232, 249, 0.28); }
.sc-detail-card.sc-cost-row .sc-detail-value { color: #67e8f9; }

.sc-order-note {
	margin: 1.25rem 0 0;
	font-size: 0.95rem;
	color: #dbeafe;
	line-height: 1.6;
	background: rgba(103, 232, 249, 0.08);
	border-left: 4px solid #06b6d4;
	border-radius: 0 10px 10px 0;
	padding: 0.85rem 1.1rem;
}
.sc-order-note strong { color: #67e8f9; }

/* Breadcrumbs */
.sc-breadcrumbs { font-size: 0.85rem; color: #64748b; margin: 0 0 1rem; }
.sc-breadcrumbs a { color: #64748b; text-decoration: none; }
.sc-breadcrumbs a:hover { color: #0e7490; }
.sc-crumb-sep { margin: 0 0.45rem; color: #c6bfae; }
.sc-breadcrumbs [aria-current] { color: #0f172a; font-weight: 600; }

/* Card grids (tools hub + categories) */
.sc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}
.sc-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: #ffffff;
	border: 1px solid #e2ddd1;
	border-radius: 10px;
	padding: 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.sc-card:hover { border-color: #06b6d4; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1); transform: translateY(-2px); }
.sc-card h3 { margin: 0; font-size: 1.02rem; color: #0f172a; letter-spacing: -0.01em; }
.sc-card p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.55; flex: 1; }
.sc-card-cta { font-size: 0.85rem; font-weight: 700; color: #0e7490; margin-top: 0.35rem; }
.sc-card-cat { border-top: 3px solid #06b6d4; }

/* Category card icons */
.sc-card-cat { text-align: center; align-items: center; padding: 1.75rem 1.25rem; }
.sc-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 999px;
	background: rgba(6, 182, 212, 0.12);
	color: #0e7490;
	margin-bottom: 0.85rem;
	transition: background 0.15s ease, color 0.15s ease;
}
.sc-card-icon svg { width: 1.75rem; height: 1.75rem; }
.sc-card-cat:hover .sc-card-icon { background: #06b6d4; color: #fff; }

/* ---- Blog: article head, tool CTA, related cards ---- */

/* These render inside post content, outside .sc-app, so they need their own
   box-sizing reset — otherwise width:100% + padding overflows the container. */
.sc-tool-cta, .sc-tool-cta *,
.sc-related, .sc-related *,
.sc-toolindex, .sc-toolindex *,
.sc-article-head, .sc-article-head * { box-sizing: border-box; }

.sc-article-head { margin: 0 0 1.5rem; }
.sc-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #0e7490;
	text-decoration: none;
	margin-bottom: 0.9rem;
}
.sc-back-link:hover { color: #06b6d4; }
.sc-article-date { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }

/* Mid-article calculator call-to-action */
.sc-tool-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	background: linear-gradient(135deg, #14213d 0%, #0f172a 65%);
	border-top: 4px solid #06b6d4;
	border-radius: 14px;
	padding: 1.5rem 1.75rem;
	margin: 2.25rem 0;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
.sc-tool-cta-body { flex: 1 1 18rem; }
.sc-tool-cta-eyebrow {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #67e8f9;
	margin-bottom: 0.4rem;
}
.sc-tool-cta h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.sc-tool-cta p { margin: 0; color: #cbd5e1; font-size: 0.95rem; line-height: 1.55; }
.sc-tool-cta-btn {
	flex: none;
	background: #06b6d4;
	color: #fff;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	padding: 0.8rem 1.4rem;
	border-radius: 10px;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease;
	box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}
.sc-tool-cta-btn:hover { background: #0891b2; color: #fff; }
.sc-tool-cta-btn:active { transform: translateY(1px); }
.sc-tool-cta-btn:focus-visible { outline: 3px solid #67e8f9; outline-offset: 3px; }

/* Related articles / related guides */
.sc-related { margin: 2.75rem 0 0; padding-top: 1.75rem; border-top: 1px solid #e2ddd1; }
.sc-related > h2 { margin: 0 0 1.1rem; font-size: 1.35rem; }
.sc-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.sc-related-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	background: #fff;
	border: 1px solid #e2ddd1;
	border-radius: 12px;
	padding: 1.1rem 1.2rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sc-related-card:hover { border-color: #06b6d4; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09); transform: translateY(-2px); }
.sc-related-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #0e7490; }
.sc-related-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; color: #0f172a; }
.sc-related-card p { margin: 0; font-size: 0.86rem; color: #64748b; line-height: 1.5; }

/* ---- Tools page: searchable index ---- */

.sc-toolindex { margin: 1.5rem 0 2rem; }
.sc-toolsearch { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.sc-toolsearch input {
	flex: 1 1 20rem;
	border: 1px solid #d9d3c5;
	border-radius: 10px;
	background: #fff;
	padding: 0.8rem 1rem;
	min-height: 50px;
	font-size: 1rem;
	font-family: inherit;
	color: #0f172a;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.sc-toolsearch input:focus { outline: none; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16); }
.sc-toolsearch-count { font-size: 0.85rem; font-weight: 600; color: #64748b; white-space: nowrap; }

.sc-toolindex-group { margin-bottom: 1.75rem; }
.sc-toolindex-group[hidden] { display: none; }
.sc-toolindex-group h3 {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #475569;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.sc-toolindex-count {
	background: #0f172a;
	color: #67e8f9;
	border-radius: 999px;
	font-size: 0.72rem;
	padding: 0.1rem 0.55rem;
	letter-spacing: 0;
}
.sc-toolindex-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 0.4rem;
}
.sc-toolindex-list li[hidden] { display: none; }
.sc-toolindex-list a {
	display: block;
	background: #fff;
	border: 1px solid #e2ddd1;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font-size: 0.92rem;
	color: #0f172a;
	text-decoration: none;
	transition: border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.sc-toolindex-list a:hover { border-color: #06b6d4; color: #0e7490; transform: translateX(2px); }
.sc-toolindex-empty { color: #64748b; background: #fff; border: 1px dashed #d9d3c5; border-radius: 10px; padding: 1.25rem; text-align: center; }

/* FAQ */
.sc-faq { margin: 2.5rem 0; }
.sc-faq-item {
	border: 1px solid #e2ddd1;
	border-radius: 10px;
	margin-bottom: 0.6rem;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.sc-faq-item summary {
	cursor: pointer;
	padding: 0.95rem 1.1rem;
	font-weight: 600;
	color: #0f172a;
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
}
.sc-faq-item summary::-webkit-details-marker { display: none; }
.sc-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #06b6d4;
	font-size: 1.2rem;
	font-weight: 700;
}
.sc-faq-item[open] summary::after { content: "–"; }
.sc-faq-item summary:focus-visible { outline: 3px solid #06b6d4; outline-offset: -3px; }
.sc-faq-a { padding: 0 1.1rem 1rem; color: #475569; line-height: 1.65; }
.sc-faq-a p { margin: 0; }

/* ---- Responsive ---- */

@media (max-width: 480px) {
	.sc-form, .sc-results { padding: 1.1rem; border-radius: 12px; }
	.sc-fields { grid-template-columns: 1fr; gap: 0.8rem; }
	.sc-shape { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; }
	.sc-shape-opt { justify-content: center; text-align: center; padding: 0.6rem 0.4rem; }
	.sc-field > select, .sc-input-row input { font-size: 16px; } /* prevents iOS focus zoom */
	.sc-results-head { flex-wrap: wrap; }
	.sc-result-hero { grid-template-columns: 1fr; }
	.sc-result-big [data-out] { font-size: 1.7rem; }
	.sc-detail-grid { grid-template-columns: 1fr 1fr; }
	.sc-quick-answer { padding: 0.9rem 1rem; }
	.sc-grid { grid-template-columns: 1fr; }
	.sc-tool-cta { padding: 1.25rem; }
	.sc-tool-cta-btn { width: 100%; text-align: center; }
	.sc-related-grid, .sc-toolindex-list { grid-template-columns: 1fr; }
	.sc-toolsearch-count { width: 100%; }
}
