/*
 * ASJ Calcs Engine - frontend styling for [asj_calculator_grid].
 * Colors match the site design system: #FFFFFF background, #222222 text,
 * #2563EB primary blue, ~8px border radius.
 */

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

.asj-calc-grid-wrap {
	max-width: 100%;
}

.asj-calc-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.asj-calc-controls input[type="search"],
.asj-calc-controls select {
	font: inherit;
	font-size: 0.95rem;
	padding: 10px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	color: #222222;
	background: #ffffff;
}

.asj-calc-controls input[type="search"] {
	flex: 1 1 220px;
	min-width: 0;
}

.asj-calc-apply-btn {
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #ffffff;
	cursor: pointer;
}

.asj-calc-empty {
	text-align: center;
	color: #666666;
	padding: 40px 16px;
	border: 1px dashed #d0d0d0;
	border-radius: 8px;
}

.asj-calc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.asj-calc-card {
	display: block;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 18px;
	text-decoration: none;
	color: #222222;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.asj-calc-card:hover,
.asj-calc-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	outline: none;
}

.asj-calc-card:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.asj-calc-card-icon {
	font-size: 2rem;
	margin-bottom: 8px;
}

.asj-calc-card-thumb img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 10px;
	display: block;
}

.asj-calc-card-cat {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2563eb;
	font-weight: 600;
	margin-bottom: 4px;
}

.asj-calc-card h3 {
	margin: 4px 0 6px;
	font-size: 1.05rem;
	color: #222222;
}

.asj-calc-card p {
	margin: 0;
	font-size: 0.88rem;
	color: #555555;
	line-height: 1.45;
}

.asj-calc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.asj-calc-page-link a,
.asj-calc-page-link span {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	color: #222222;
	text-decoration: none;
	font-size: 0.9rem;
}

.asj-calc-page-link .current {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.asj-calc-page-link a:hover {
	border-color: #2563eb;
}

/* ---- v1.1: single calculator page furniture ---- */

.asj-breadcrumbs {
	font-size: 0.85rem;
	color: #666666;
	margin: 0 0 10px;
}

.asj-breadcrumbs a {
	color: #2563eb;
	text-decoration: none;
}

.asj-breadcrumbs a:hover,
.asj-breadcrumbs a:focus-visible {
	text-decoration: underline;
}

.asj-calc-updated {
	font-size: 0.82rem;
	color: #666666;
	margin: 0 0 16px;
}

.asj-disclaimer {
	margin: 28px 0 0;
	padding: 12px 14px;
	border-left: 4px solid #2563eb;
	background: #f5f8ff;
	border-radius: 4px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #444444;
}

.asj-ad {
	display: block;
	clear: both;
	margin: 28px auto;
	min-height: 120px;
	max-width: 100%;
	text-align: center;
}

.asj-ad-label {
	display: block;
	font-size: 0.7rem;
	color: #888888;
	margin-bottom: 4px;
}

.asj-related {
	margin: 32px 0 0;
}

.asj-related ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.asj-related a {
	display: block;
	padding: 12px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	color: #222222;
	text-decoration: none;
	font-weight: 500;
}

.asj-related a:hover,
.asj-related a:focus-visible {
	border-color: #2563eb;
}

.asj-related-icon {
	margin-right: 4px;
}
