/* Golf Sim Installer Directory: Option B, Clean Marketplace.
   Source of truth: docs/design-brief.md. Use tokens only; no new colors. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--ink: #14211A;
	--text-2: #33443A;
	--muted: #55645B;
	--muted-on-tint: #3C5446;
	--green: #0E6B45;
	--green-dark: #0A4F33;
	--mint: #E6F3EC;
	--soft: #F4F7F4;
	--border: #E3E9E4;
	--border-strong: #B9C7BE;
	--yellow: #FFC93C;
	--yellow-tint: #FFF3CC;
	--yellow-ink: #4A3A00;
	--white: #FFFFFF;

	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-pill: 999px;
	--r-input: 12px;
	--r-tile: 16px;
	--r-card: 18px;
	--r-panel: 22px;
	--r-search: 20px;
	--r-gallery: 20px;

	--shadow-card: 0 4px 16px rgba(14, 60, 40, .06);
	--shadow-panel: 0 12px 36px rgba(14, 60, 40, .12);
	--shadow-search: 0 12px 40px rgba(14, 60, 40, .14);

	--container: 1200px;
	--gutter: 48px;
	--focus: 0 0 0 3px rgba(14, 107, 69, .4);

	--fs-display: 56px;
	--fs-h1: 44px;
	--fs-h2: 28px;
	--fs-h3: 20px;
	--fs-lead: 19px;
	--fs-body: 16px;
	--fs-small: 14px;
	--fs-label: 12px;
}

@media (max-width: 899px) {
	:root { --gutter: 20px; }
}

@media (max-width: 699px) {
	:root { --fs-display: 40px; --fs-h1: 32px; --fs-h2: 24px; }
}

/* ---------- Base (overrides GeneratePress) ---------- */
body {
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: var(--font); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--font); font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid rgba(14, 107, 69, .4);
	outline-offset: 2px;
}

/* GeneratePress wraps everything in a 1200px container; we control widths per section. */
.site.grid-container { max-width: none; }
.site-content { display: block; padding: 0; }
.separate-containers .inside-article, .one-container .site-content { padding: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}

.gsd-container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.gsd-reading { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.gsd-section { padding-top: 48px; padding-bottom: 48px; }
.gsd-band { background: var(--mint); }
.gsd-band--soft { background: var(--soft); }

.gsd-display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.03em; }
.gsd-lead-text { font-size: var(--fs-lead); line-height: 1.5; font-weight: 500; color: var(--text-2); }
.gsd-band .gsd-lead-text { color: var(--muted-on-tint); }
.gsd-small { font-size: var(--fs-small); font-weight: 600; }
.gsd-muted { color: var(--muted); }
.gsd-label { font-size: var(--fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px; }

.gsd-show-mobile { display: none; }
@media (max-width: 899px) {
	.gsd-hide-mobile { display: none; }
	.gsd-show-mobile { display: inline; }
}

/* ---------- Logo ---------- */
.gsd-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.gsd-logo__mark { display: block; height: 42px; width: auto; }
.gsd-logo__word { font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.gsd-logo__golf { color: var(--ink); }
.gsd-logo__dir { color: var(--green); }
.gsd-logo--sidebar .gsd-logo__mark { height: 30px; }
.gsd-logo--sidebar .gsd-logo__word { font-size: 17px; white-space: normal; line-height: 1.1; }
.gsd-logo--sidebar .gsd-logo__golf, .gsd-logo--sidebar .gsd-logo__dir { display: block; }

/* ---------- Buttons ---------- */
.gsd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 22px;
	border: 1px solid transparent; border-radius: var(--r-pill);
	font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
	white-space: nowrap;
}
.gsd-btn--sm { padding: 10px 18px; font-size: 14px; }
.gsd-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.gsd-btn--block { display: flex; width: 100%; }
.gsd-btn--primary { background: var(--green); color: var(--white); }
.gsd-btn--primary:hover, .gsd-btn--primary:focus-visible { background: var(--green-dark); color: var(--white); }
.gsd-btn--secondary { background: var(--white); border-color: var(--border-strong); color: var(--ink); }
.gsd-btn--secondary:hover { border-color: var(--green); color: var(--ink); }
.gsd-btn--dark { background: var(--ink); color: var(--white); }
.gsd-btn--dark:hover { background: var(--text-2); color: var(--white); }
.gsd-btn:disabled, .gsd-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.gsd-link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; text-decoration: none; }
.gsd-link-arrow .gsd-icon { width: 16px; height: 16px; }

.gsd-icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }

/* ---------- Header ---------- */
.gsd-header { background: var(--white); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.gsd-header__inner {
	max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto;
	padding: 18px var(--gutter); display: flex; align-items: center; gap: 28px;
}
.gsd-nav { margin-left: auto; }
.gsd-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.gsd-nav__link { color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 0; display: inline-block; white-space: nowrap; }
/* Narrow desktops: the long name goes on two lines so the nav keeps one row. */
@media (min-width: 900px) and (max-width: 1099px) {
	.gsd-header .gsd-logo__word { white-space: normal; font-size: 18px; line-height: 1.05; }
	.gsd-header .gsd-logo__golf, .gsd-header .gsd-logo__dir { display: block; }
	.gsd-nav__list { gap: 22px; }
	.gsd-header__inner { gap: 22px; }
}
.gsd-nav__link:hover { color: var(--green); }
.gsd-nav__link[aria-current="page"], .gsd-nav__toggle.is-current { color: var(--green); font-weight: 700; }
/* Free resources dropdown */
.gsd-nav__item--menu { position: relative; }
.gsd-nav .gsd-nav__toggle, .gsd-nav .gsd-nav__toggle:hover, .gsd-nav .gsd-nav__toggle:focus { background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; line-height: inherit; }
.gsd-nav .gsd-nav__toggle:hover { color: var(--green); }
.gsd-nav .gsd-nav__toggle:focus:not(:focus-visible) { outline: 0; }
.gsd-nav__toggle .gsd-icon { width: 16px; height: 16px; transition: transform .15s; }
.gsd-nav__toggle[aria-expanded="true"] { color: var(--green); }
.gsd-nav__toggle[aria-expanded="true"] .gsd-icon { transform: rotate(180deg); }
.gsd-nav__sub {
	position: absolute; top: 100%; left: -12px; z-index: 60; min-width: 270px; margin: 6px 0 0; padding: 8px; list-style: none;
	background: var(--white); border: 1px solid var(--border); border-radius: var(--r-tile); box-shadow: var(--shadow-panel);
}
.gsd-nav__sub[hidden] { display: none; }
.gsd-nav__sublink {
	display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
	color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.gsd-nav__sublink .gsd-icon { width: 14px; height: 14px; color: var(--muted); margin-left: auto; }
.gsd-nav__sublink:hover, .gsd-nav__sublink:focus-visible { background: var(--soft); color: var(--green); }
.gsd-nav__sublink[aria-current="page"] { color: var(--green); font-weight: 700; }
.gsd-header__cta { padding: 12px 20px; }
.gsd-header__menu { display: none; }

@media (max-width: 899px) {
	.gsd-header__inner { padding: 12px var(--gutter); gap: 12px; }
	.gsd-logo__mark { height: 36px; }
	.gsd-logo__word { font-size: 18px; }
	.gsd-header__cta { margin-left: auto; padding: 10px 16px; flex-shrink: 0; }
	.gsd-logo { min-width: 0; }
	.gsd-logo__word { overflow: hidden; text-overflow: clip; }
}
/* Tablets: the nav stays on one row, so it needs tighter spacing to fit beside the button. */
@media (min-width: 768px) and (max-width: 899px) {
	.gsd-nav__list { gap: 16px; }
}
/* Phones and small tablets: menu button, and the long name on two lines: "Golf Sim Installer" / "Directory". */
@media (max-width: 767px) {
	.gsd-header .gsd-logo__word { white-space: normal; font-size: 15px; line-height: 1.1; }
	.gsd-header .gsd-logo__golf, .gsd-header .gsd-logo__dir { display: block; }
	.gsd-header__menu {
		display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
		width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
		background: var(--white); color: var(--ink); padding: 0; cursor: pointer;
	}
	.gsd-header__menu .gsd-icon { width: 22px; height: 22px; }
	.gsd-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card);
		margin: 0; padding: 8px var(--gutter) 16px;
	}
	.gsd-header.is-open .gsd-nav { display: block; }
	.gsd-nav__list { flex-direction: column; gap: 0; }
	.gsd-nav__link { display: flex; align-items: center; min-height: 48px; font-size: 16px; border-bottom: 1px solid var(--border); width: 100%; }
	.gsd-nav__list > li:last-child .gsd-nav__link { border-bottom: 0; }
	.gsd-nav__toggle { justify-content: space-between; text-align: left; }
	.gsd-nav__sub { position: static; min-width: 0; margin: 0; padding: 4px 0 8px 12px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
	.gsd-nav__sublink { min-height: 44px; font-size: 15px; white-space: normal; }
}
@media (max-width: 380px) {
	.gsd-logo__word { font-size: 16px; }
	.gsd-header__cta { padding: 10px 12px; }
}

/* ---------- Footer ---------- */
.gsd-footer { border-top: 1px solid var(--border); background: var(--white); padding: 48px 0 24px; margin-top: 56px; }
.gsd-footer__inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.gsd-footer__tag { color: var(--muted); font-size: var(--fs-small); margin-top: 12px; max-width: 280px; }
.gsd-footer__col ul { list-style: none; margin: 0; padding: 0; }
.gsd-footer__col a { color: var(--text-2); font-size: var(--fs-small); font-weight: 600; text-decoration: none; display: inline-block; padding: 6px 0; }
.gsd-footer__col a:hover { color: var(--green); }
.gsd-footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.gsd-footer__legal p { margin: 0; }
@media (max-width: 899px) {
	.gsd-footer__inner { grid-template-columns: 1fr 1fr; }
	.gsd-footer__brand { grid-column: 1 / -1; }
	.gsd-footer__col a { padding: 10px 0; }
}

/* ---------- Form fields ---------- */
.gsd-field { margin-bottom: 14px; }
.gsd-field__label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
/* input.x / select.x beats GeneratePress's input[type=text] rules. */
input.gsd-input, select.gsd-select, .gsd-input, .gsd-select {
	width: 100%; box-sizing: border-box; min-height: 48px;
	padding: 14px; border: 1px solid var(--border-strong); border-radius: var(--r-input);
	background: var(--white); color: var(--ink); font: 600 16px/1.2 var(--font);
}
.gsd-input::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
input.gsd-input:focus, select.gsd-select:focus { border-color: var(--green); outline: 3px solid rgba(14, 107, 69, .4); outline-offset: 0; }
select.gsd-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2314211A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }

/* Segmented choice */
.gsd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.gsd-seg__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gsd-seg__label {
	display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px;
	border: 1px solid var(--border-strong); border-radius: var(--r-input); background: var(--white);
	color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; text-align: center;
}
.gsd-seg__input:checked + .gsd-seg__label { background: var(--mint); border: 2px solid var(--green); color: var(--green-dark); padding: 9px 11px; }
.gsd-seg__input:focus-visible + .gsd-seg__label { outline: 3px solid rgba(14, 107, 69, .4); outline-offset: 2px; }

/* ---------- Chips and badges ---------- */
.gsd-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill);
	font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.gsd-badge--coverage { background: var(--mint); color: var(--green-dark); }
.gsd-badge--price, .gsd-badge--score { background: var(--yellow-tint); color: var(--yellow-ink); }
.gsd-badge--tier { background: var(--soft); color: var(--text-2); border: 1px solid var(--border); padding: 3px 9px; }
.gsd-badge--verified { background: var(--mint); color: var(--green-dark); }
.gsd-badge--verified .gsd-icon { width: 14px; height: 14px; background: var(--green); color: var(--white); border-radius: 50%; padding: 2px; box-sizing: border-box; }
.gsd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.gsd-chip { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
a.gsd-chip { text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; }
a.gsd-chip:hover { border-color: var(--green); color: var(--green-dark); }
.gsd-band--soft .gsd-chip, .gsd-side-card .gsd-chip { background: var(--white); }

/* Filter pills */
.gsd-filters { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.gsd-filters__scroll { display: flex; gap: 8px; flex: 1; min-width: 0; }
.gsd-pill {
	display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 8px 14px;
	background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--r-pill);
	color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none;
}
a.gsd-pill:hover { color: var(--ink); }
a.gsd-pill[aria-pressed="true"]:hover { color: var(--white); }
.gsd-pill .gsd-icon { width: 14px; height: 14px; }
.gsd-pill:hover, .gsd-pill[aria-expanded="true"] { border-color: var(--green); }
.gsd-pill[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.gsd-filters__count { margin: 0 0 0 auto; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 899px) {
	.gsd-filters { flex-wrap: wrap; gap: 8px; }
	.gsd-filters__scroll { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
	.gsd-filters__scroll::-webkit-scrollbar { display: none; }
	.gsd-pill { min-height: 44px; }
	.gsd-filters__count { margin-left: 0; }
}

/* ---------- Tiles ---------- */
.gsd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gsd-tile {
	display: block; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-tile);
	padding: 18px 20px; text-decoration: none; color: var(--ink);
}
.gsd-tile:hover { border-color: var(--green); color: var(--ink); }
.gsd-tile__title { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.gsd-tile__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.gsd-tiles--states { grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gsd-tiles--states .gsd-tile { padding: 12px 14px; }
.gsd-tiles--states .gsd-tile__title { font-size: 14px; font-weight: 700; }
@media (max-width: 899px) {
	.gsd-tiles, .gsd-tiles--states { grid-template-columns: 1fr 1fr; }
}

/* ---------- Fallback photo ---------- */
.gsd-fallback { display: flex; align-items: center; justify-content: center; background: var(--mint); width: 100%; height: 100%; }
.gsd-fallback .gsd-logo__mark { height: 56px; width: auto; opacity: .2; }

/* ---------- Installer card ---------- */
.gsd-card {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border);
	border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden;
}
.gsd-card__media { display: block; aspect-ratio: 3 / 2; background: var(--mint); }
.gsd-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gsd-fallback.gsd-card__img { display: flex; }
.gsd-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.gsd-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.gsd-card__title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.gsd-card__title a { color: var(--ink); text-decoration: none; }
.gsd-card__title a:hover { color: var(--green); }
.gsd-card__badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.gsd-card__coverage { color: var(--green); font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.gsd-card__services { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 0 14px; }
.gsd-card__claim { font-size: 13px; font-weight: 600; margin: -8px 0 14px; display: inline-block; }
.gsd-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.gsd-card--vertical .gsd-card__actions .gsd-btn--secondary { display: none; }
.gsd-card--vertical .gsd-card__actions .gsd-btn--primary { flex: 1; }

.gsd-card--horizontal { flex-direction: row; }
.gsd-card--horizontal .gsd-card__media { flex: 0 0 200px; aspect-ratio: auto; min-height: 148px; }
.gsd-card--horizontal .gsd-card__body { padding: 20px; }

.gsd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gsd-cards--list { grid-template-columns: 1fr; gap: 14px; }

@media (max-width: 899px) {
	.gsd-cards { grid-template-columns: 1fr; }
	.gsd-card--horizontal { flex-direction: column; }
	.gsd-card--horizontal .gsd-card__media { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
	.gsd-card__actions .gsd-btn { flex: 1; }
}

/* ---------- Quote panel ---------- */
.gsd-quote {
	background: var(--white); border: 1px solid var(--border); border-radius: var(--r-panel);
	box-shadow: var(--shadow-panel); padding: 26px;
}
.gsd-quote__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gsd-quote__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.gsd-quote__sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.gsd-quote__consent { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; margin: 12px 0 0; }
.gsd-quote__close { display: none; }
.gsd-quote-bar { display: none; }
.gsd-sticky { position: sticky; top: 24px; }

.gsd-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.gsd-progress__track { flex: 1; height: 6px; background: var(--mint); border-radius: var(--r-pill); overflow: hidden; }
.gsd-progress__track span { display: block; height: 100%; background: var(--green); border-radius: var(--r-pill); }
.gsd-progress__text { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }

@media (max-width: 899px) {
	.gsd-quote--sheet { display: none; }
	.gsd-quote--sheet.is-open {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
		max-height: 90vh; overflow-y: auto; border-radius: var(--r-panel) var(--r-panel) 0 0;
		padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
	}
	.gsd-quote--sheet.is-open .gsd-quote__close {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
		margin: -10px -10px 0 0; border: 0; border-radius: var(--r-pill); background: var(--soft); color: var(--ink); cursor: pointer;
	}
	.gsd-quote__close .gsd-icon { width: 20px; height: 20px; }
	.gsd-quote-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
		background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(14, 60, 40, .06);
		padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
	}
	body.has-quote-bar { padding-bottom: 76px; }
	.gsd-sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 33, 26, .45); z-index: 1000; }
	.gsd-sticky { position: static; }
}

/* ---------- Side card (soft) ---------- */
.gsd-side-card { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px; }
.gsd-side-card__title { font-size: 15px; font-weight: 800; margin: 0 0 10px; }

/* ---------- Hero search card ---------- */
.gsd-search {
	display: flex; align-items: stretch; gap: 0; max-width: 700px; margin: 0 auto; text-align: left;
	background: var(--white); border-radius: var(--r-search); box-shadow: var(--shadow-search); padding: 10px;
}
.gsd-search__field { flex: 1; padding: 6px 12px; min-width: 0; }
.gsd-search__field + .gsd-search__field { border-left: 1px solid var(--border); }
.gsd-search__field .gsd-label { font-size: 11px; margin: 0 0 2px; }
.gsd-search__field input.gsd-input, .gsd-search__field select.gsd-select { border: 0; padding: 4px 0; min-height: 32px; border-radius: 0; }
.gsd-search__field select.gsd-select { padding-right: 28px; background-position: right 2px center; }
.gsd-search__field input.gsd-input:focus, .gsd-search__field select.gsd-select:focus { outline: none; }
.gsd-search__field:focus-within { box-shadow: var(--focus); border-radius: var(--r-input); }
.gsd-search .gsd-btn { border-radius: 14px; padding: 14px 26px; }
.gsd-trust { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted-on-tint); margin: 18px 0 0; }
@media (max-width: 899px) {
	.gsd-search { flex-direction: column; gap: 4px; padding: 12px; }
	.gsd-search__field + .gsd-search__field { border-left: 0; border-top: 1px solid var(--border); }
	.gsd-search__field { padding: 8px 10px; }
	.gsd-search .gsd-btn { width: 100%; margin-top: 6px; }
}

/* ---------- Yellow CTA band ---------- */
.gsd-cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	background: var(--yellow); color: var(--ink); border-radius: var(--r-panel); padding: 32px 30px;
}
.gsd-cta-band h2 { font-size: 24px; margin: 0 0 4px; }
.gsd-cta-band p { margin: 0; font-size: 15px; color: var(--ink); }
@media (max-width: 899px) {
	.gsd-cta-band { flex-direction: column; align-items: stretch; text-align: left; padding: 24px 20px; }
	.gsd-cta-band .gsd-btn { width: 100%; }
}

/* ---------- Gallery ---------- */
.gsd-gallery { position: relative; border-radius: var(--r-gallery); overflow: hidden; }
.gsd-gallery--none .gsd-gallery__band { height: 220px; }
.gsd-gallery--one img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gsd-gallery__track {
	display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 170px 170px; gap: 10px;
}
.gsd-gallery__tile { margin: 0; background: var(--mint); overflow: hidden; }
.gsd-gallery__tile:first-child { grid-row: 1 / span 2; }
.gsd-gallery__tile:nth-child(n+5) { display: none; }
.gsd-gallery__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gsd-gallery__all {
	position: absolute; right: 0; bottom: 0;
	width: calc((100% - 20px) / 4); height: 170px;
	background: var(--ink); color: var(--white); border: 0; font: 700 15px/1.2 var(--font); cursor: pointer;
}
.gsd-gallery__all:hover { background: var(--text-2); }
.gsd-gallery__counter { display: none; }
@media (max-width: 899px) {
	.gsd-gallery { border-radius: var(--r-tile); }
	.gsd-gallery__track {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none;
		grid-template-rows: none;
	}
	.gsd-gallery__track::-webkit-scrollbar { display: none; }
	.gsd-gallery__tile, .gsd-gallery__tile:nth-child(n+5) { display: block; flex: 0 0 100%; aspect-ratio: 3 / 2; scroll-snap-align: start; }
	.gsd-gallery__tile--fill, .gsd-gallery__tile--fill:nth-child(n+5) { display: none; }
	.gsd-gallery__all {
		width: auto; height: auto; right: 12px; bottom: 12px; padding: 10px 14px; min-height: 44px;
		border-radius: var(--r-pill); font-size: 13px;
	}
	.gsd-gallery__counter {
		display: block; position: absolute; left: 12px; bottom: 12px; padding: 6px 10px;
		background: rgba(20, 33, 26, .75); color: var(--white); border-radius: var(--r-pill); font-size: 12px; font-weight: 700;
	}
}

.gsd-gallery__tile[data-gsd-photo] { cursor: zoom-in; }

/* Lightbox (on ink: the one dark surface, white text is allowed on ink) */
.gsd-lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(20, 33, 26, .96); color: var(--white);
}
.gsd-lightbox::backdrop { background: rgba(20, 33, 26, .6); }
.gsd-lightbox__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; z-index: 2; }
.gsd-lightbox__count { font-size: 14px; font-weight: 700; }
.gsd-lightbox__close, .gsd-lightbox__nav {
	display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); color: var(--white);
	font: 700 30px/1 var(--font); cursor: pointer;
}
.gsd-lightbox__close:hover, .gsd-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.gsd-lightbox__close:focus-visible, .gsd-lightbox__nav:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gsd-lightbox__stage { position: absolute; inset: 72px 80px; margin: 0; display: flex; align-items: center; justify-content: center; }
.gsd-lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.gsd-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.gsd-lightbox__nav--prev { left: 16px; }
.gsd-lightbox__nav--next { right: 16px; }
@media (max-width: 899px) {
	.gsd-lightbox__stage { inset: 64px 8px 80px; }
	.gsd-lightbox__nav { top: auto; bottom: 16px; transform: none; }
	.gsd-lightbox__nav--prev { left: calc(50% - 60px); }
	.gsd-lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------- Services checklist ---------- */
.gsd-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gsd-checklist li {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px;
	border: 1px solid var(--border); border-radius: var(--r-input); font-size: 15px; font-weight: 700;
}
.gsd-checklist__icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--white); }
.gsd-checklist__icon .gsd-icon { width: 14px; height: 14px; }
@media (max-width: 699px) { .gsd-checklist { grid-template-columns: 1fr; } }

/* ---------- Dashboard ---------- */
.gsd-dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--soft); }
.gsd-dash > * { min-width: 0; }
.gsd-dash__side { background: var(--white); border-right: 1px solid var(--border); padding: 24px 18px; }
.gsd-dash__nav { list-style: none; margin: 28px 0 0; padding: 0; }
.gsd-dash__nav a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-size: 15px; font-weight: 700; text-decoration: none; }
.gsd-dash__nav a:hover { color: var(--green); }
.gsd-dash__nav a[aria-current="page"] { background: var(--mint); color: var(--green-dark); }
.gsd-dash__main { padding: 32px 40px; }

.gsd-balance { display: inline-flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 18px; }
.gsd-balance__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.gsd-balance__amount { font-size: 26px; font-weight: 800; color: var(--green); letter-spacing: -.02em; line-height: 1.1; margin: 0; }

.gsd-lead {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px;
}
.gsd-lead + .gsd-lead { margin-top: 14px; }
.gsd-lead__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.gsd-lead__title { font-size: 19px; margin: 0; }
.gsd-lead__facts { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.gsd-lead__meta { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0; }
.gsd-lead__actions { display: flex; flex-direction: column; gap: 8px; min-width: 176px; }

@media (max-width: 899px) {
	.gsd-dash { grid-template-columns: 1fr; }
	.gsd-dash__side { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 0; }
	.gsd-dash__nav { display: flex; gap: 4px; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.gsd-dash__nav::-webkit-scrollbar { display: none; }
	.gsd-dash__nav a { white-space: nowrap; border-radius: 12px 12px 0 0; min-height: 44px; display: flex; align-items: center; }
	.gsd-dash__main { padding: 24px var(--gutter); }
	.gsd-lead { flex-direction: column; align-items: stretch; }
	.gsd-lead__actions { min-width: 0; }
}

/* Dashboard page chrome */
body.gsd-dash-body { background: var(--soft); }
.gsd-dash__side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.gsd-dash__account { margin-top: auto; padding: 16px 14px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.gsd-dash__account a { color: var(--text-2); text-decoration: none; padding: 4px 0; }
.gsd-dash__account a:hover { color: var(--green); }
.gsd-dash__listing { margin: 0; font-weight: 800; color: var(--ink); }
.gsd-dash__main { max-width: 1040px; }
.gsd-dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.gsd-dash__title { font-size: 34px; letter-spacing: -.03em; margin: 0 0 4px; }
.gsd-dash__sub { color: var(--muted); margin: 0 0 20px; }
.gsd-dash__head .gsd-dash__sub { margin: 0; }
.gsd-dash__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; margin-bottom: 16px; }
.gsd-dash__card p:last-child { margin-bottom: 0; }
.gsd-dash__h2 { font-size: 18px; margin: 20px 0 10px; }
.gsd-dash__card .gsd-dash__h2:first-child { margin-top: 0; }
.gsd-dash__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.gsd-dash__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gsd-dash__facts dd { margin: 2px 0 0; font-weight: 600; }
.gsd-dash__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.gsd-badge-opt { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; margin: 0 0 16px; }
.gsd-badge-opt .gsd-label { margin: 0 0 12px; }
.gsd-badge-opt__preview { border-radius: var(--r-tile); padding: 20px; margin: 0 0 12px; background: var(--soft); }
.gsd-badge-opt__preview--green { background: var(--mint); }
.gsd-badge-opt__preview img { display: block; max-width: 100%; height: auto; }
.gsd-badge-opt__code { display: block; width: 100%; box-sizing: border-box; font: 13px/1.5 var(--font); color: var(--text-2); background: var(--soft); border: 1px solid var(--border-strong); border-radius: var(--r-input); padding: 10px 12px; margin: 12px 0; resize: vertical; }
.gsd-dash__ledger { background: var(--white); margin-top: 0; }
.gsd-dash .gsd-empty { background: var(--white); }
.gsd-dash .gsd-filters { margin-top: 4px; }
.gsd-balance .gsd-btn:disabled { opacity: .55; }

/* Dashboard editing forms */
.gsd-dash__form { margin: 0 0 16px; }
.gsd-dash__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.gsd-dash__fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.gsd-dash__fieldset:last-child { margin-bottom: 0; }
.gsd-dash__fieldset legend { padding: 0; }
.gsd-dash__lead-in { margin: -4px 0 14px; }
.gsd-dash__actions { display: flex; gap: 12px; align-items: center; margin: 4px 0 0; }
.gsd-dash__narrow { max-width: 320px; }
.gsd-dash__seg { margin-bottom: 18px; }
.gsd-dash__panel[hidden] { display: none; }
.gsd-dash__errors { margin: 0; padding-left: 18px; }
.gsd-dash__card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gsd-dash__card-head .gsd-label { margin: 0; }
textarea.gsd-textarea { min-height: 180px; resize: vertical; font-weight: 500; line-height: 1.55; }
textarea.gsd-textarea:focus { border-color: var(--green); outline: 3px solid rgba(14, 107, 69, .4); outline-offset: 0; }
.gsd-checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; }
.gsd-checkgrid .gsd-check { margin: 0; min-height: 40px; }
.gsd-checkgrid--tight .gsd-check { min-height: 36px; }
.gsd-btn--xs { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.gsd-file { display: block; width: 100%; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--r-input); background: var(--soft); font: 600 14px/1.3 var(--font); color: var(--text-2); box-sizing: border-box; }
.gsd-file:focus-visible { outline: 3px solid rgba(14, 107, 69, .4); outline-offset: 2px; }
.gsd-photos { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gsd-photos__item { border: 1px solid var(--border); border-radius: var(--r-tile); overflow: hidden; background: var(--white); }
.gsd-photos__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gsd-photos__item:first-child { border: 2px solid var(--green); }
.gsd-photos__pos { margin: 10px 12px 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.gsd-photos__item:first-child .gsd-photos__pos { color: var(--green-dark); }
.gsd-photos__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.gsd-photos__actions form { margin: 0; }
.gsd-photos__upload { border-top: 1px solid var(--border); padding-top: 18px; }

/* Lead delivery switch and accepted leads */
.gsd-delivery.is-on { border-color: var(--green); background: var(--mint); }
.gsd-delivery.is-on .gsd-dash__lead-in { color: var(--muted-on-tint); margin-bottom: 0; }
.gsd-delivery__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.gsd-delivery form { margin: 0; }
.gsd-lead__actions form { margin: 0; }
.gsd-lead__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; font-weight: 700; }
.gsd-lead__notes { margin: 8px 0; padding: 10px 12px; background: var(--soft); border-radius: var(--r-input); font-size: 14px; color: var(--text-2); white-space: pre-line; }
.gsd-lead__outcome { display: flex; gap: 8px; align-items: center; }
.gsd-lead__outcome .gsd-select { min-height: 44px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }

/* Featured (premium) listings */
.gsd-card--featured { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), var(--shadow-card); }
.gsd-rotate__item[hidden] { display: none; }
.gsd-rotate__item { display: contents; }
.gsd-section__sub { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }

/* Lead checkout */
.gsd-dash__pricing { margin: 0 0 14px; padding: 12px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-input); font-size: 14px; color: var(--text-2); }
.gsd-lead__buy { min-width: 190px; }
.gsd-lead__buy[aria-pressed="true"] { background: var(--mint); color: var(--green-dark); box-shadow: inset 0 0 0 2px var(--green); }
.gsd-lead__pass { background: none; border: 0; padding: 8px 4px; min-height: 36px; font: 600 13px/1.2 var(--font); color: var(--muted); text-decoration: underline; cursor: pointer; }
.gsd-lead__pass:hover, .gsd-lead__pass:focus-visible { color: var(--ink); }
.gsd-lead__actions { align-items: center; }
.gsd-lead__status { margin: 0; padding: 8px 12px; border-radius: var(--r-input); background: var(--soft); font-size: 14px; font-weight: 700; color: var(--text-2); }
.gsd-lead__outcome { flex-wrap: wrap; }
input.gsd-input.gsd-lead__reason { min-height: 44px; padding: 10px 12px; font-size: 14px; flex: 1 1 180px; }
.gsd-lead__actions .gsd-dash__note { max-width: 320px; }
.gsd-paybar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0 0; padding: 14px 18px; background: var(--white); border: 2px solid var(--green); border-radius: var(--r-card); box-shadow: var(--shadow-panel); }
.gsd-paybar[hidden], .gsd-paybar [hidden] { display: none !important; }
.gsd-paybar__sum p { margin: 0; }
.gsd-paybar__count { font-weight: 800; color: var(--ink); }
.gsd-paybar__total { font-size: 14px; color: var(--text-2); }
.gsd-paybar__pay { min-width: 240px; flex: 1 1 240px; max-width: 360px; }
.gsd-paybar__error { flex-basis: 100%; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--yellow-tint); color: var(--yellow-ink); font-size: 14px; font-weight: 600; }
.gsd-paybar__error[hidden] { display: none; }

/* Quote request form (/get-quotes/) */
.gsd-qform { max-width: 640px; margin: 0 0 32px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: 26px; }
.gsd-qform__to { margin: 0 0 16px; padding: 12px 14px; background: var(--mint); border-radius: var(--r-input); color: var(--green-dark); font-weight: 600; }
.gsd-qform__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.gsd-qform__step + .gsd-qform__step { margin-top: 28px; }
.gsd-qform__step[hidden] { display: none; }
.gsd-qform__step[hidden] + .gsd-qform__step, .gsd-qform__step:not([hidden]) ~ .gsd-qform__step { margin-top: 0; }
.gsd-qform__legend { padding: 0; margin: 0 0 16px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.gsd-qform__legend .gsd-label { display: block; margin-bottom: 4px; }
.gsd-qform__zip { max-width: 220px; }
.gsd-qform__room { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.gsd-qform__room[hidden], .gsd-qform [data-gsd-for][hidden] { display: none; }
.gsd-qform__dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.gsd-qform__dims .gsd-field__hint { display: block; margin: 0 0 4px; }
.gsd-qform__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.gsd-qform__notes { min-height: 110px; }
.gsd-qform__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.gsd-qform__consent { align-items: flex-start; min-height: 0; line-height: 1.5; font-weight: 500; padding: 4px 0; }
.gsd-qform__consent input { margin-top: 3px; flex: none; }
.gsd-qform__captcha { margin: 12px 0 4px; min-height: 65px; }
.gsd-qform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gsd-qform--done h2 { font-size: 24px; margin: 0 0 10px; }
.gsd-qform__next { margin: 0 0 14px; padding-left: 20px; }
.gsd-qform__next li { margin-bottom: 6px; }
.gsd-qform__wait { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.gsd-qform__wait h3 { font-size: 18px; margin: 0 0 12px; }
.gsd-qform__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gsd-qform__links a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--soft); color: var(--ink); text-decoration: none; }
.gsd-qform__links a:hover, .gsd-qform__links a:focus-visible { border-color: var(--green); }
.gsd-qform__links strong { display: block; color: var(--green-dark); }
.gsd-qform__links span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.gsd-field__error { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--yellow-ink); background: var(--yellow-tint); border-radius: 8px; padding: 6px 10px; }
[aria-invalid="true"].gsd-input, [aria-invalid="true"].gsd-select { border-color: var(--yellow-ink); }

@media (max-width: 899px) {
	.gsd-qform { padding: 20px; border-radius: var(--r-card); }
	.gsd-qform__pair { grid-template-columns: 1fr; }
	.gsd-qform__nav .gsd-btn { flex: 1; }
	.gsd-lead__outcome { width: 100%; }
}
@media (max-width: 899px) {
	.gsd-dash__seg { grid-auto-flow: row; }
	.gsd-photos { grid-template-columns: 1fr 1fr; gap: 10px; }
	.gsd-photos__actions .gsd-btn--xs { min-height: 44px; }
}
@media (max-width: 899px) {
	.gsd-dash__side { position: static; height: auto; }
	.gsd-dash__account { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; border-top: 0; padding: 8px 0 10px; margin: 0; }
	.gsd-dash__account a { padding: 8px 0; }
	.gsd-dash__listing { flex-basis: 100%; }
	.gsd-dash__title { font-size: 28px; }
	.gsd-balance { width: 100%; justify-content: space-between; box-sizing: border-box; }
}

/* ---------- Content pages ---------- */
.gsd-prose { font-size: 17px; line-height: 1.65; color: var(--ink); }
.gsd-prose > :first-child { margin-top: 0; }
.gsd-prose h2 { font-size: 26px; margin: 1.7em 0 .5em; }
.gsd-prose h3 { font-size: 20px; margin: 1.5em 0 .4em; }
.gsd-prose h4 { font-size: 17px; margin: 1.3em 0 .3em; }
.gsd-prose p, .gsd-prose ul, .gsd-prose ol { margin: 0 0 1.05em; }
.gsd-prose ul, .gsd-prose ol { padding-left: 1.3em; }
.gsd-prose li { margin: 0 0 .4em; }
.gsd-prose li::marker { color: var(--green); }
.gsd-prose a { font-weight: 600; }
.gsd-prose strong { font-weight: 700; }
.gsd-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r-tile); }
.gsd-prose .gsd-figure, .gsd-prose figure { margin: 1.6em 0; }
.gsd-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.gsd-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--green); color: var(--text-2); }
.gsd-prose .gsd-table { display: block; overflow-x: auto; }
.gsd-prose .gsd-table td, .gsd-prose .gsd-table th { min-width: 140px; }
.gsd-toc { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 16px 20px; margin: 0 0 1.6em; font-size: 15px; }
.gsd-toc ul, .gsd-toc ol { margin: 0; }
.gsd-toc h2, .gsd-toc h3, .gsd-toc h4 { font-size: 15px; margin: 0 0 6px; }

/* Articles */
.gsd-article { padding: 32px 0 8px; }
.gsd-article__title { font-size: var(--fs-h1); margin: 0 0 10px; }
.gsd-post-meta { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.gsd-article .gsd-post-meta { margin-bottom: 24px; }
.gsd-article__hero { margin: 0 0 28px; border-radius: var(--r-gallery); overflow: hidden; background: var(--mint); }
.gsd-article__hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
/* Commercial installers by state (commercial guide shortcode) */
.gsd-prose .gsd-cinst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin: 1.2em 0 1.6em; }
.gsd-prose .gsd-cinst__group h3 { font-size: 17px; margin: 1em 0 .3em; }
.gsd-prose .gsd-cinst__group h3 a { color: var(--ink); }
.gsd-prose .gsd-cinst__group ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.gsd-prose .gsd-cinst__group li { margin: 0 0 .35em; }
.gsd-prose .gsd-cinst__also { color: var(--muted); font-size: 14px; }
.gsd-prose .gsd-cinst__group--national { grid-column: 1 / -1; }
@media (max-width: 560px) { .gsd-prose .gsd-cinst { grid-template-columns: 1fr; } }
.gsd-article__faq { margin-top: 40px; }
.gsd-article__faq h2 { font-size: 26px; margin: 0 0 14px; }
.gsd-article__related { margin-top: 24px; }
.gsd-article__related h2 { margin-bottom: 18px; }
.gsd-cta-card { background: var(--mint); border-radius: var(--r-panel); padding: 26px; margin: 40px 0 8px; }
.gsd-cta-card h2 { font-size: 22px; margin: 0 0 6px; }
.gsd-cta-card p { color: var(--muted-on-tint); margin: 0 0 16px; }
.gsd-search--compact { max-width: none; box-shadow: var(--shadow-card); }
.gsd-card--post .gsd-card__title { margin-bottom: 6px; }
.gsd-card--post .gsd-card__services { margin-bottom: 0; }
.gsd-card--post .gsd-post-meta { margin-bottom: 6px; }
.gsd-blog .gsd-filters { margin-bottom: 22px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--white); }
@media (max-width: 899px) {
	.gsd-article { padding-top: 20px; }
	.gsd-prose h2 { font-size: 22px; }
	.gsd-cta-card { padding: 20px; }
}
.gsd-callout { background: var(--mint); color: var(--muted-on-tint); border-radius: var(--r-tile); padding: 18px 20px; margin: 1.5em 0; }
.gsd-callout strong { color: var(--ink); }

/* Author box at the end of each guide */
.gsd-author { display: flex; gap: 20px; align-items: flex-start; background: var(--soft); border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: var(--r-tile); padding: 24px 26px; margin: 36px 0 28px; }
.gsd-author__photo { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--mint); }
.gsd-author .gsd-label { color: var(--green); margin: 0 0 6px; }
.gsd-author__name { font-size: var(--fs-h3); font-weight: 800; color: var(--ink); margin: 0; }
.gsd-author__role { font-size: var(--fs-small); color: var(--muted); margin: 2px 0 12px; }
.gsd-author__bio { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); margin: 0 0 10px; }
.gsd-author__links { font-size: var(--fs-small); font-weight: 700; margin: 4px 0 0; color: var(--muted); }
.gsd-author__links span { margin: 0 8px; }
@media (max-width: 560px) {
	.gsd-author { flex-direction: column; gap: 14px; padding: 20px; }
	.gsd-author__photo { width: 64px; height: 64px; }
}
.gsd-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; }
.gsd-table th, .gsd-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.gsd-table th { background: var(--soft); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.gsd-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 899px) { .gsd-two-col { grid-template-columns: 1fr; } }
.gsd-breadcrumb { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.gsd-breadcrumb a { color: var(--muted); text-decoration: none; }
.gsd-breadcrumb a:hover { color: var(--green); }
.gsd-band .gsd-breadcrumb, .gsd-band .gsd-breadcrumb a { color: var(--muted-on-tint); }
.gsd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gsd-section-head h2 { margin: 0; }

/* ---------- Home ---------- */
.gsd-hero { padding: 64px 0 56px; text-align: center; }
.gsd-hero__title { max-width: 820px; margin: 0 auto 16px; }
.gsd-hero__lead { max-width: 560px; margin: 0 auto 28px; }
.gsd-section--tight { padding-top: 20px; padding-bottom: 20px; }
.gsd-section h2 { margin-bottom: 18px; }
.gsd-subhead { font-size: 16px; margin: 24px 0 12px; }
@media (max-width: 899px) {
	.gsd-hero { padding: 40px 0 36px; }
	.gsd-hero__lead { font-size: 17px; }
}

/* ---------- Listing page ---------- */
.gsd-listing { padding-top: 20px; }
.gsd-listing__gallery { margin-bottom: 24px; }
.gsd-listing__title { margin: 0 0 12px; }
.gsd-listing__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 20px; }
.gsd-listing__about { font-size: 17px; color: var(--text-2); }
.gsd-listing__about p:last-child { margin-bottom: 0; }
.gsd-listing__block { margin-top: 32px; }
.gsd-listing__block h2 { font-size: 22px; margin-bottom: 14px; }
.gsd-listing__side { position: sticky; top: 24px; }
.gsd-listing__nearby { margin-top: 56px; }
.gsd-listing__claim { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 899px) {
	.gsd-listing__side { position: static; }
}

/* ---------- Filter menus ---------- */
.gsd-filters { position: relative; }
.gsd-filters__clear { font-size: 13px; font-weight: 700; white-space: nowrap; }
.gsd-filter-panel {
	position: absolute; top: calc(100% + 6px); z-index: 40; min-width: 220px; max-height: 320px; overflow-y: auto;
	background: var(--white); border: 1px solid var(--border); border-radius: var(--r-tile); box-shadow: var(--shadow-panel); padding: 8px;
}
.gsd-filter-panel ul { list-style: none; margin: 0; padding: 0; }
.gsd-filter-option {
	display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 10px;
	color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.gsd-filter-option:hover { background: var(--soft); color: var(--ink); }
.gsd-filter-option__box {
	display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 18px;
	border: 1px solid var(--border-strong); border-radius: 5px; background: var(--white); color: var(--white);
}
.gsd-filter-option.is-on .gsd-filter-option__box { background: var(--green); border-color: var(--green); }
.gsd-filter-option__box .gsd-icon { width: 12px; height: 12px; }
@media (max-width: 899px) {
	.gsd-filter-option { min-height: 44px; }
	.gsd-filter-panel { left: 0 !important; right: 0; min-width: 0; }
}

/* ---------- State page ---------- */
.gsd-state__band { padding: 32px 0 36px; }
.gsd-state__band h1 { margin-bottom: 10px; }
.gsd-state__intro { max-width: 720px; margin: 0; font-size: 17px; }
.gsd-state__body { padding-top: 24px; }
.gsd-state__results .gsd-card__title { font-size: 18px; }
.gsd-state__metros { margin-top: 16px; }
.gsd-state__guide { margin: 24px 0 0; font-size: var(--fs-small); color: var(--muted); }
.gsd-state__national { margin-top: 36px; }
.gsd-state__national:first-child { margin-top: 0; }
.gsd-state__national-title { font-size: 22px; margin: 0 0 4px; }
.gsd-state__national-note { color: var(--muted); font-size: var(--fs-small); margin: 0 0 14px; }
.gsd-cards--compact .gsd-card--horizontal .gsd-card__media { flex-basis: 140px; min-width: 0; min-height: 112px; overflow: hidden; }
.gsd-cards--compact .gsd-card--horizontal .gsd-card__body { padding: 16px 18px; min-width: 0; }
.gsd-cards--compact .gsd-card__title { font-size: 17px; }
@media (max-width: 899px) {
	.gsd-cards--compact .gsd-card--horizontal { flex-direction: row; }
	.gsd-cards--compact .gsd-card--horizontal .gsd-card__media { flex: 0 0 96px; width: 96px; aspect-ratio: auto; min-height: 0; }
}
.gsd-state__content { margin-top: 48px; max-width: 760px; }
.gsd-state__faq { margin-top: 48px; max-width: 760px; }
.gsd-state__faq h2 { font-size: 24px; margin-bottom: 14px; }
.gsd-empty { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.gsd-empty p:last-child { margin-bottom: 0; }

/* FAQ */
.gsd-faq { border-top: 1px solid var(--border); }
.gsd-faq__item { border-bottom: 1px solid var(--border); }
.gsd-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0;
	font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.gsd-faq__q::-webkit-details-marker { display: none; }
.gsd-faq__q .gsd-icon { width: 18px; height: 18px; transition: transform .15s; color: var(--muted); }
.gsd-faq__item[open] .gsd-faq__q .gsd-icon { transform: rotate(180deg); }
.gsd-faq__a { color: var(--text-2); padding: 0 0 16px; }
.gsd-faq__a p { margin: 0; }

/* ---------- Search page ---------- */
.gsd-search--inline { margin: 20px 0 0; max-width: 760px; }
.gsd-search__context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.gsd-search__context:empty { display: none; }
.gsd-near-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: var(--r-pill);
	background: var(--mint); color: var(--green-dark); font-size: 14px; font-weight: 700;
}
.gsd-near-pill a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--green-dark); }
.gsd-near-pill a:hover { background: var(--white); }
.gsd-near-pill .gsd-icon { width: 14px; height: 14px; }
.gsd-chip--alt { font-size: 13px; padding: 5px 12px; }
.gsd-map-toggle { margin-left: auto; }
.gsd-map { margin-bottom: 16px; }
.gsd-map__canvas { height: 320px; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--soft); }
.gsd-map__note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.gsd-map .leaflet-container { font-family: var(--font); }
.gsd-map--listing { margin: 14px 0 0; }
.gsd-map--listing .gsd-map__canvas { height: 190px; }
@media (max-width: 899px) {
	.gsd-map__canvas { height: 260px; }
	.gsd-map-toggle { margin-left: 0; }
}

/* ---------- Installer login ---------- */
.gsd-login { background: var(--soft); padding: 56px var(--gutter) 72px; }
.gsd-login__wrap { max-width: 440px; margin: 0 auto; }
.gsd-login__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: 32px; }
.gsd-login__title { font-size: 30px; letter-spacing: -.03em; margin: 0 0 6px; }
.gsd-login__sub { color: var(--muted); margin: 0 0 22px; }
.gsd-login__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gsd-login__forgot { font-size: 13px; font-weight: 700; }
.gsd-login__links { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.gsd-login__links a { font-weight: 700; }
.gsd-login__error, .gsd-login__notice { border-radius: var(--r-input); padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.gsd-login__error { background: var(--yellow-tint); color: var(--yellow-ink); }
.gsd-login__notice { background: var(--mint); color: var(--green-dark); }
.gsd-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.gsd-check input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.gsd-page-login .gsd-footer { margin-top: 0; }
/* Claim flow (shortcode on /for-installers/claim/). */
.gsd-claim { max-width: 520px; margin: 1.5em 0 2em; }
.gsd-claim__listing { margin: 0 0 16px; }
.gsd-claim .gsd-input, .gsd-claim .gsd-select { width: 100%; }
.gsd-claim .gsd-check { align-items: flex-start; min-height: 0; padding: 8px 0; line-height: 1.45; }
.gsd-claim .gsd-check input { margin-top: 2px; flex: none; }
.gsd-field__hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.gsd-claim__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 899px) {
	.gsd-login { padding: 28px var(--gutter) 48px; }
	.gsd-login__card { padding: 24px 20px; }
}

/* ---------- Style guide only ---------- */
.sg-section { padding: 40px 0; border-top: 1px solid var(--border); }
.sg-section:first-of-type { border-top: 0; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sg-swatch { border: 1px solid var(--border); border-radius: var(--r-input); overflow: hidden; font-size: 12px; }
.sg-swatch__color { height: 64px; }
.sg-swatch__meta { padding: 8px 10px; }
.sg-swatch__meta strong { display: block; font-size: 13px; }
.sg-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.sg-type > * { margin: 0 0 12px; }
.sg-demo-col { max-width: 380px; }
.sg-frame { border: 1px dashed var(--border-strong); border-radius: var(--r-tile); overflow: hidden; }
.gsd-listing__verified { margin: -4px 0 16px; font-size: 13px; color: var(--muted); }
.gsd-checklist--one { grid-template-columns: 1fr; }
.gsd-premium__plan { max-width: 420px; }
.gsd-premium__pay { max-width: 420px; }

/* ---------- Browse by location (inc/browse.php) ---------- */
.gsd-browse {
	display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 24px; align-items: start;
	padding: 24px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--white); box-shadow: var(--shadow-card);
}
.gsd-browse__form { display: flex; flex-direction: column; gap: 8px; }
.gsd-browse__country { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.gsd-browse__country[hidden] { display: none; }
.gsd-browse__toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-strong); border-radius: var(--r-input); overflow: hidden; }
.gsd-browse__opt {
	min-height: 44px; padding: 10px 12px; border: 0; background: var(--white); color: var(--ink);
	font: 700 15px/1.2 var(--font); cursor: pointer;
}
.gsd-browse__opt + .gsd-browse__opt { border-left: 1px solid var(--border-strong); }
.gsd-browse__opt[aria-pressed="true"] { background: var(--green-dark); color: var(--white); }
.gsd-browse__opt:focus-visible { outline: 3px solid rgba(14, 107, 69, .4); outline-offset: -3px; }
.gsd-browse__select { width: 100%; }
.gsd-browse__go { margin-top: 8px; align-self: flex-start; }
.gsd-browse.is-ready .gsd-browse__go { display: none; }

.gsd-browse__map { position: relative; padding: 16px; border-radius: var(--r-card); background: var(--soft); }
.gsd-browse__canvas { position: relative; max-width: 640px; margin: 0 auto; }
.gsd-map { display: block; width: 100%; height: auto; }
.gsd-map__region { fill: var(--border); stroke: var(--white); stroke-width: .8; stroke-linejoin: round; transition: fill .15s; }
.gsd-browse__map[data-country="US"] .gsd-map__region[data-country="US"],
.gsd-browse__map[data-country="CA"] .gsd-map__region[data-country="CA"] { fill: var(--green); fill-opacity: .2; cursor: pointer; }
.gsd-browse__map[data-country] .gsd-map__region[data-country]:hover { fill: var(--green); fill-opacity: .38; cursor: pointer; }
.gsd-browse__map[data-country] .gsd-map__region[data-country].is-selected { fill: var(--green); fill-opacity: .6; }
.gsd-map__pin {
	position: absolute; width: 12px; height: 12px; margin: -12px 0 0 -6px; pointer-events: none;
	border: 2px solid var(--white); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); transform-origin: 6px 12px;
	background: var(--border-strong);
}
.gsd-browse__map[data-country="US"] .gsd-map__pin[data-country="US"],
.gsd-browse__map[data-country="CA"] .gsd-map__pin[data-country="CA"],
.gsd-map__pin--key { background: var(--green-dark); }
.gsd-map__pin--key { position: relative; display: inline-block; margin: 0 10px 0 0; vertical-align: -1px; }
.gsd-browse__callout {
	position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
	padding: 10px 10px 10px 16px; border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow-card);
}
.gsd-browse__callout[hidden], .gsd-browse__view[hidden] { display: none; }
.gsd-browse__name { font-weight: 700; color: var(--ink); }
.gsd-browse__callout.is-hint .gsd-browse__name { font-weight: 500; color: var(--muted); font-size: var(--fs-small); padding: 6px 6px 6px 0; }
.gsd-browse__view { min-height: 40px; padding: 8px 16px; }
.gsd-browse__legend { display: inline-flex; align-items: center; margin: 12px 0 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); font-size: 13px; color: var(--muted); }

.gsd-browse__all { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.gsd-browse__all summary { cursor: pointer; font-weight: 700; color: var(--green-dark); min-height: 44px; display: flex; align-items: center; }
.gsd-browse__note { margin: 0 0 8px; font-size: var(--fs-small); color: var(--muted); }
.gsd-browse__country-head { font-size: 15px; margin: 16px 0 8px; }
.gsd-browse__list { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: 24px; }
.gsd-browse__list li { break-inside: avoid; }
.gsd-browse__list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--text-2); font-size: var(--fs-small); text-decoration: none; border-bottom: 1px solid var(--border); }
.gsd-browse__list a:hover span:first-child { color: var(--green-dark); text-decoration: underline; }
.gsd-browse__count { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
	.gsd-browse { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
	.gsd-browse.is-ready .gsd-browse__go { display: inline-flex; }
	.gsd-browse__go { align-self: stretch; justify-content: center; }
	.gsd-browse__callout { display: none !important; }
	.gsd-browse__map { padding: 8px; }
	.gsd-map__pin { width: 9px; height: 9px; margin: -9px 0 0 -4.5px; transform-origin: 4.5px 9px; border-width: 1.5px; }
	.gsd-map__pin--key { margin: 0 8px 0 0; }
	.gsd-browse__legend { margin-top: 8px; }
	.gsd-browse__list { columns: 2 140px; }
}
