/**
 * Hawksbury Editorial Builder — structural / content blocks (Phase 4D).
 * Wrapper, width, spacing, theme: sections.css. Do not duplicate those here.
 */

/* ---- Shared headings in structural blocks ---- */
.hk-pair__heading,
.hk-gallery__intro,
.hk-features__heading,
.hk-compare__heading,
.hk-feed__heading,
.hk-related__heading,
.hk-faq__intro,
.hk-enquiry__heading {
	margin: 0 0 1.25rem;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.2;
	letter-spacing: var(--hk-tracking-heading);
}

.hk-gallery__intro,
.hk-compare__intro,
.hk-faq__intro {
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	letter-spacing: var(--hk-tracking-body);
	color: var(--color-text-muted);
}

.hk-compare__intro {
	margin: -0.5rem 0 1.25rem;
}

.hk-feed__status {
	margin: -0.5rem 0 1rem;
	font-size: 0.8125rem;
	color: var(--color-tan);
	font-style: italic;
}

.hk-gap--tight .hk-pair__grid,
.hk-gap--tight .hk-gallery__grid,
.hk-gap--tight .hk-features__list { gap: var(--hk-gap-tight); }

.hk-gap--standard .hk-pair__grid,
.hk-gap--standard .hk-gallery__grid,
.hk-gap--standard .hk-features__list { gap: var(--hk-gap-standard); }

.hk-gap--relaxed .hk-pair__grid,
.hk-gap--relaxed .hk-gallery__grid,
.hk-gap--relaxed .hk-features__list { gap: var(--hk-gap-relaxed); }

/* ---- Image pair ---- */
.hk-pair__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.hk-pair--40 .hk-pair__grid {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.hk-pair--60 .hk-pair__grid {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.hk-pair__item {
	margin: 0;
}

.hk-pair__item img {
	width: 100%;
	height: auto;
	display: block;
}

.hk-pair__label {
	margin: 0.65rem 0 0;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: var(--hk-tracking-label);
	text-transform: uppercase;
	color: var(--color-accent);
}

@media (max-width: 760px) {
	.hk-pair__grid {
		grid-template-columns: 1fr;
	}

	.hk-pair--mobile-ba .hk-pair__item:first-child {
		order: 2;
	}
}

/* ---- Gallery ---- */
.hk-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
}

.hk-gallery--two .hk-gallery__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hk-gallery--sequence .hk-gallery__grid {
	grid-template-columns: 1fr;
}

.hk-gallery--asymmetric .hk-gallery__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hk-gallery--asymmetric .hk-gallery__item:nth-child(4n + 1) {
	grid-column: span 2;
}

.hk-gallery__item {
	margin: 0;
}

.hk-gallery__item img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 960px) {
	.hk-gallery--three .hk-gallery__grid,
	.hk-gallery--asymmetric .hk-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hk-gallery--asymmetric .hk-gallery__item:nth-child(4n + 1) {
		grid-column: auto;
	}
}

@media (max-width: 760px) {
	.hk-gallery__grid,
	.hk-gallery--two .hk-gallery__grid,
	.hk-gallery--three .hk-gallery__grid,
	.hk-gallery--asymmetric .hk-gallery__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Features ---- */
.hk-features__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
}

.hk-features--two .hk-features__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hk-features--three .hk-features__list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hk-features__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1rem;
	align-items: start;
}

.hk-features--list .hk-features__item,
.hk-features--numbered .hk-features__item {
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--color-border);
}

.hk-features--list .hk-features__item:last-child,
.hk-features--numbered .hk-features__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.hk-features__num {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--color-accent);
}

.hk-features--strong .hk-features__title {
	font-size: 1.35rem;
}

.hk-features--quiet .hk-features__title {
	font-size: 1rem;
}

.hk-features__title {
	margin: 0 0 0.35rem;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 1.125rem;
}

.hk-features__title a {
	color: inherit;
	text-decoration: none;
}

.hk-features__title a:hover {
	text-decoration: underline;
}

.hk-features__copy p {
	margin: 0;
	color: var(--color-text-muted);
}

.hk-features__media {
	grid-column: 1;
	width: 3.5rem;
}

.hk-features__media img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 760px) {
	.hk-features--two .hk-features__list,
	.hk-features--three .hk-features__list {
		grid-template-columns: 1fr;
	}
}

/* ---- Comparison extras (legacy .hk-compare dl stays in blocks.css) ---- */
.hk-compare-wrap .hk-compare {
	margin: 0;
}

.hk-compare-split__row {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--color-border);
}

.hk-compare-split__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-tan);
}

.hk-compare-split__value {
	margin: 0;
	line-height: 1.6;
}

.hk-compare-table-wrap {
	overflow-x: auto;
}

.hk-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.hk-compare-table th,
.hk-compare-table td {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.hk-compare-table th {
	font-weight: 600;
	width: 40%;
}

.hk-compare-proscons {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--hk-gap-standard);
}

.hk-compare-proscons h3 {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 1.25rem;
}

.hk-compare-proscons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-compare-proscons li {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--color-border);
}

@media (max-width: 760px) {
	.hk-compare-split__row,
	.hk-compare-proscons {
		grid-template-columns: 1fr;
	}
}

/* ---- Feeds / related ---- */
.hk-feed__items--cards,
.hk-related--three .hk-feed__items--cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hk-gap-standard);
}

.hk-related--two .hk-feed__items--cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hk-gap-standard);
}

.hk-feed__items--list,
.hk-feed__items--compact,
.hk-feed__secondary {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hk-feed-item__link {
	display: grid;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
}

.hk-feed-item__media img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.hk-feed-item__title {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	line-height: 1.25;
}

.hk-feed-item__excerpt {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

.hk-feed-item--list,
.hk-feed-item--compact {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
}

.hk-feed-item--compact .hk-feed-item__title {
	font-size: 1rem;
}

.hk-feed__featured {
	margin-bottom: var(--hk-gap-standard);
}

.hk-feed__featured .hk-feed-item__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.hk-related--compact .hk-feed-item--compact {
	padding: 0.45rem 0;
}

.hk-theme--forest .hk-feed-item__excerpt,
.hk-theme--forest .hk-feed__status {
	color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
	.hk-feed__items--cards,
	.hk-related--three .hk-feed__items--cards,
	.hk-related--two .hk-feed__items--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.hk-feed__items--cards,
	.hk-related--three .hk-feed__items--cards,
	.hk-related--two .hk-feed__items--cards {
		grid-template-columns: 1fr;
	}
}

/* ---- FAQ ---- */
.hk-faq__item {
	border-bottom: 1px solid var(--color-border);
}

.hk-faq--strong .hk-faq__item {
	border-bottom-width: 2px;
}

.hk-faq--none .hk-faq__item {
	border-bottom: none;
}

.hk-faq__item summary {
	cursor: pointer;
	padding: 0.9rem 0;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	list-style: none;
}

.hk-faq__item summary::-webkit-details-marker {
	display: none;
}

.hk-faq__a {
	padding: 0 0 1.1rem;
	color: var(--color-text-muted);
}

.hk-faq__a > p:first-child {
	margin-top: 0;
}

.hk-faq__a > p:last-child {
	margin-bottom: 0;
}

/* ---- Enquiry ---- */
.hk-enquiry__grid {
	display: grid;
	gap: var(--hk-gap-standard);
}

.hk-enquiry--split .hk-enquiry__grid {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
}

.hk-enquiry__details {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.hk-enquiry__details a {
	color: inherit;
}

.hk-enquiry__body > p:first-child {
	margin-top: 0;
}

@media (max-width: 760px) {
	.hk-enquiry--split .hk-enquiry__grid {
		grid-template-columns: 1fr;
	}
}
