/* ==========================================================================
   Suburb pages (posts in the "Suburb" category) + their archive (HQDM standard).
   Local landing pages, not blog articles: featured-image hero with pin eyebrow,
   H1 and quote/call actions; content beside a sticky quote card; "More areas"
   cards; A–Z area grid on the archive. Restyle per project with the design system.
   ========================================================================== */
.tr-suburb { --tr-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7.5 7.5 0 0 0-7.5 7.5C4.5 15 12 22 12 22s7.5-7 7.5-12.5A7.5 7.5 0 0 0 12 2zm0 10.3a2.8 2.8 0 1 1 0-5.6 2.8 2.8 0 0 1 0 5.6z'/%3E%3C/svg%3E"); }

/* Hero: same page hero as the migrated location pages (featured image = background photo) + pin eyebrow */
.tr-suburb-hero__text { display: grid; gap: 1rem; }
.tr-suburb-hero__text > * { margin: 0 !important; }
.tr-suburb-hero__eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tr-suburb-hero__eyebrow a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.tr-suburb-hero__eyebrow a::before { content: ""; width: 15px; height: 15px; background: var(--tr-yellow); -webkit-mask: var(--tr-pin) center / contain no-repeat; mask: var(--tr-pin) center / contain no-repeat; }
.tr-suburb-hero__eyebrow a:hover { color: var(--tr-yellow); }

/* Content = full-width sections from the "Suburb page" starter pattern (same components as the location pages) */
.tr-suburb__content > * { margin-block: 0 !important; }
.tr-suburb__content .tr-icon-card__title { text-transform: uppercase; } /* starter titles are typed in title case around [Town] */

/* Body: content + sticky quote card (the aside stretches so the card can stick) */
.tr-suburb__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
	max-width: calc(var(--tr-wide) + 2 * var(--tr-gutter));
	margin: 0 auto;
	padding: var(--tr-section) var(--tr-gutter);
}
.tr-suburb__body > * { margin: 0 !important; max-width: none !important; }
.tr-suburb__aside { align-self: stretch; scroll-margin-top: 96px; }
.tr-suburb__card { position: sticky; top: 96px; display: grid; gap: 1rem; padding: clamp(22px, 2.6vw, 32px); background: #fff; border: 1px solid var(--tr-line); border-radius: var(--tr-r-card); box-shadow: 0 24px 50px -36px rgb(18 18 18 / .45); }
.tr-suburb__card > * { margin: 0 !important; }
.tr-suburb__card-title { font-size: 1.6rem; line-height: 1.1; }

/* Area cards (related on single pages, A–Z grid on the archive) */
.tr-suburb-related, .tr-suburb-list { max-width: calc(var(--tr-wide) + 2 * var(--tr-gutter)); margin: 0 auto; padding: 0 var(--tr-gutter) var(--tr-section); }
.tr-suburb-related { padding-top: var(--tr-section); }
.tr-suburb-list { padding-top: var(--tr-section); }
.tr-suburb-related:not(:has(.wp-block-post)) { display: none; }
.tr-suburb-related__title { margin-bottom: 1.5rem !important; }
.tr-suburb-cards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; list-style: none; margin: 0 !important; padding: 0 !important; }
.tr-suburb-cards > li { margin: 0 !important; }
.tr-suburb-card {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-r-card);
	transition: border-color .3s;
}
.tr-suburb-card > * { margin: 0 !important; }
.tr-suburb-card::before { content: ""; grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 36px; height: 36px; border-radius: var(--tr-r-card); background: var(--tr-paper) var(--tr-pin) center / 18px no-repeat; }
.tr-suburb-card::after { content: ""; grid-column: 3; grid-row: 1; width: 18px; height: 18px; background: var(--tr-ink); -webkit-mask: var(--tr-arrow) center / contain no-repeat; mask: var(--tr-arrow) center / contain no-repeat; transition: transform .35s var(--tr-ease), background-color .3s; }
.tr-suburb-card__title { grid-column: 2; font-size: 1.125rem !important; line-height: 1.3 !important; }
.tr-suburb-card__title a { color: inherit; text-decoration: none; }
.tr-suburb-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tr-suburb-card__excerpt { grid-column: 2 / -1; font-size: .9375rem; color: var(--tr-muted); }
.tr-suburb-card__excerpt p { margin: 0; }
.tr-suburb-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.tr-suburb-card:hover { border-color: var(--tr-ink); }
.tr-suburb-card:hover::after { transform: translateX(4px); background: var(--tr-orange); }
.tr-suburb-card:has(a:focus-visible) { outline: 2px solid var(--tr-orange); outline-offset: 2px; }
.tr-suburb-cards--archive .tr-suburb-card { align-items: start; row-gap: 8px; }

@media (max-width: 1024px) {
	.tr-suburb__body { grid-template-columns: 1fr; }
	.tr-suburb__card { position: static; }
}

/* Starter pattern parts (2026-11-18): map hides while it is still the empty placeholder; automatic area list
   (shortcode [tr_suburb_areas]) inside "Why We Love"; closing line under the FAQ that leads into the quote form. */
.tr-map-section:not(:has(iframe)) { display: none; }
.tr-areas-auto { display: grid; gap: .6rem; }
.tr-areas-auto > * { margin: 0 !important; }
.tr-areas-auto__label { font-weight: 600; color: var(--tr-ink); }
.tr-faq-cta { margin: clamp(28px, 3vw, 40px) auto 0 !important; text-align: center; font-size: var(--wp--preset--font-size--lead); line-height: 1.5; color: var(--tr-ink); text-wrap: pretty; }
/* bold pasted from a Google Doc into headings / FAQ questions: the design weights win */
.tr-suburb__content :is(h2, h3, h4) :is(strong, b),
.tr-suburb__content summary :is(strong, b) { font-weight: inherit; }
