/* EXCEL4HOUSING 4.0 Guidance tool
   Every button rule also lists its :focus state (specificity 0,3,0) so theme resets such as
   Hello Elementor's "[type=button]:focus { background:#c36 }" (0,2,0) can't win on load order.
   Colour tokens are injected inline: --gd-brand/--gd-btn (site accent) and --gd-accent/--gd-ink/--gd-on/--gd-tint (per area). */

.e4h-gd,
.e4h-gd-cta {
	--gd-line: #d5ddd8;
	--gd-soft: #f4f7f5;
	--gd-muted: #53625a;
	--gd-radius: 10px;
	--gd-focus: #1d4ed8;
}

.e4h-gd {
	max-width: 1180px;
	margin: 0 auto;
	scroll-margin-top: 120px;
	line-height: 1.55;
}

.e4h-gd *,
.e4h-gd *::before,
.e4h-gd *::after { box-sizing: border-box; }

.e4h-gd [hidden] { display: none !important; }

.e4h-gd h2, .e4h-gd h3, .e4h-gd h4, .e4h-gd h5, .e4h-gd h6 {
	margin: 0;
	padding: 0;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.25;
}
.e4h-gd p { margin: 0; }
.e4h-gd ul, .e4h-gd ol { list-style: none; margin: 0; padding: 0; }
.e4h-gd li { margin: 0; }
.e4h-gd li::before, .e4h-gd li::marker { content: none; }

.e4h-gd-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.e4h-gd :focus-visible {
	outline: 3px solid var(--gd-focus);
	outline-offset: 2px;
}
.e4h-gd [tabindex="-1"]:focus,
.e4h-gd button:focus:not(:focus-visible),
.e4h-gd a:focus:not(:focus-visible) { outline: none; }

/* ---------------------------------------------------------------- buttons */

.e4h-gd .e4h-gd-btn,
.e4h-gd .e4h-gd-btn:focus,
.e4h-gd-cta .e4h-gd-btn,
.e4h-gd-cta .e4h-gd-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-height: 44px;
	margin: 0;
	padding: .65em 1.3em;
	border: 2px solid var(--gd-btn);
	border-radius: 6px;
	background: var(--gd-btn);
	color: var(--gd-btn-on);
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: box-shadow .15s ease;
}
.e4h-gd .e4h-gd-btn:hover,
.e4h-gd-cta .e4h-gd-btn:hover {
	background: var(--gd-btn);
	color: var(--gd-btn-on);
	box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .12);
	text-decoration: none;
}
.e4h-gd .e4h-gd-btn--ghost,
.e4h-gd .e4h-gd-btn--ghost:focus,
.e4h-gd-cta .e4h-gd-btn--ghost,
.e4h-gd-cta .e4h-gd-btn--ghost:focus,
.e4h-gd .e4h-gd-btn--ghost:hover,
.e4h-gd-cta .e4h-gd-btn--ghost:hover {
	background: transparent;
	color: var(--gd-btn);
}
.e4h-gd .e4h-gd-btn--ghost:hover,
.e4h-gd-cta .e4h-gd-btn--ghost:hover { box-shadow: inset 0 0 0 999px var(--gd-brand-tint); }

.e4h-gd .e4h-gd-btn--text,
.e4h-gd .e4h-gd-btn--text:focus,
.e4h-gd .e4h-gd-btn--text:hover {
	border-color: transparent;
	background: transparent;
	color: var(--gd-btn);
	padding-left: .5em;
	padding-right: .5em;
	box-shadow: none;
}
.e4h-gd .e4h-gd-btn--text:hover { text-decoration: underline; text-underline-offset: 3px; }

.e4h-gd .e4h-gd-btn--sm {
	min-height: 36px;
	padding: .4em .9em;
	font-size: .85rem;
}

.e4h-gd .e4h-gd-link {
	color: var(--gd-btn);
	font-size: .88rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.e4h-gd .e4h-gd-link:hover { text-decoration-thickness: 2px; }

.e4h-gd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 1em 0; }
.e4h-gd-cta__text { margin: 0; }

/* ---------------------------------------------------------------- header + steps */

.e4h-gd__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 28px;
}
.e4h-gd__headtext { flex: 1 1 520px; }
.e4h-gd .e4h-gd__title {
	font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem);
	font-weight: 700;
	margin-bottom: .35em;
}
.e4h-gd__intro { max-width: 68ch; color: var(--gd-muted); font-size: 1.05rem; }
.e4h-gd .e4h-gd__toolbox { flex: 0 0 auto; }

.e4h-gd-steps { margin: 0 0 32px; }
.e4h-gd-steps ol {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	counter-reset: none;
}
.e4h-gd-steps__item { position: relative; }
.e4h-gd-steps__item + .e4h-gd-steps__item::after {
	/* connector line between steps */
	content: "";
	position: absolute;
	top: 18px;
	left: calc(-50% + 26px);
	right: calc(50% + 26px);
	height: 2px;
	background: var(--gd-line);
}
.e4h-gd-steps__item.is-done + .e4h-gd-steps__item::after,
.e4h-gd-steps__item.is-done + .e4h-gd-steps__item.is-current::after { background: var(--gd-brand); }

.e4h-gd .e4h-gd-steps__btn,
.e4h-gd .e4h-gd-steps__btn:focus {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0 6px;
	border: 0;
	background: none;
	color: var(--gd-muted);
	font: inherit;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.e4h-gd .e4h-gd-steps__btn:hover { background: none; color: inherit; }
.e4h-gd .e4h-gd-steps__item.is-current .e4h-gd-steps__btn:focus,
.e4h-gd .e4h-gd-steps__item.is-done .e4h-gd-steps__btn:focus { color: inherit; }
.e4h-gd .e4h-gd-steps__btn:disabled { cursor: default; opacity: 1; }
.e4h-gd-steps__num {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 2px solid var(--gd-line);
	border-radius: 50%;
	background: #fff;
	color: var(--gd-muted);
	font-weight: 700;
	font-size: 1rem;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.e4h-gd-steps__item.is-done .e4h-gd-steps__num {
	border-color: var(--gd-brand);
	background: var(--gd-brand-tint);
	color: var(--gd-btn);
}
.e4h-gd-steps__item.is-current .e4h-gd-steps__num {
	border-color: var(--gd-btn);
	background: var(--gd-btn);
	color: var(--gd-btn-on);
}
.e4h-gd-steps__item.is-current .e4h-gd-steps__btn,
.e4h-gd-steps__item.is-done .e4h-gd-steps__btn { color: inherit; }
.e4h-gd-steps__item.is-current .e4h-gd-steps__label { font-weight: 700; }

/* ---------------------------------------------------------------- panels */

.e4h-gd-panel__head { margin-bottom: 24px; }
.e4h-gd .e4h-gd-panel__title {
	font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
	font-weight: 700;
	margin-bottom: .4em;
}
.e4h-gd-panel__head p { color: var(--gd-muted); }

.e4h-gd-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 28px;
}

.e4h-gd-note {
	max-width: 72ch;
	margin-top: 22px !important;
	color: var(--gd-muted);
	font-size: .85rem;
}

.e4h-gd fieldset {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.e4h-gd .e4h-gd-legend {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-weight: 700;
	color: inherit;
}
.e4h-gd-hint { color: var(--gd-muted); font-weight: 400; font-size: .9rem; margin-left: .4em; }

/* ---------------------------------------------------------------- step 1: roles */

.e4h-gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.e4h-gd .e4h-gd-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--gd-line);
	border-radius: 999px;
	background: #fff;
	font-size: .92rem;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.e4h-gd .e4h-gd-chip:hover { border-color: var(--gd-brand); }
.e4h-gd .e4h-gd-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.e4h-gd .e4h-gd-chip:focus-within { outline: 3px solid var(--gd-focus); outline-offset: 2px; }
.e4h-gd .e4h-gd-chip.is-checked {
	border-color: var(--gd-btn);
	background: var(--gd-brand-tint);
	color: var(--gd-btn);
	font-weight: 600;
}
.e4h-gd .e4h-gd-chip.is-checked::before {
	content: "";
	width: 10px;
	height: 6px;
	margin: -3px 2px 0 -2px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

.e4h-gd-other { margin-top: 14px; max-width: 420px; }
.e4h-gd-other label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.e4h-gd .e4h-gd-other input {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--gd-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

/* ---------------------------------------------------------------- step 1: statement */

.e4h-gd-sentence {
	padding: 22px 28px;
	border-radius: var(--gd-radius);
	background: var(--gd-soft);
	font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
	line-height: 2.3;
}
.e4h-gd-who {
	display: inline-flex;
	vertical-align: baseline;
	margin-right: .25em;
	padding: 3px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--gd-line);
	line-height: 1.2;
}
.e4h-gd-who label {
	position: relative;
	margin: 0;
	cursor: pointer;
}
.e4h-gd-who input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.e4h-gd-who span {
	display: inline-block;
	padding: .3em .8em;
	border-radius: 999px;
	font-weight: 600;
	transition: background-color .15s ease, color .15s ease;
}
.e4h-gd-who input:checked + span { background: var(--gd-btn); color: var(--gd-btn-on); }
.e4h-gd-who input:focus-visible + span { outline: 3px solid var(--gd-focus); outline-offset: 1px; }

.e4h-gd .e4h-gd-blank {
	display: inline-block;
	width: auto;
	min-width: 10ch;
	max-width: 100%;
	height: auto;
	margin: 0 .2em;
	padding: 0 .25em;
	border: 0;
	border-bottom: 2px solid #9aa9a1;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--gd-btn);
	font: inherit;
	font-weight: 600;
	line-height: 1.5;
	vertical-align: baseline;
}
.e4h-gd .e4h-gd-blank::placeholder { color: #8a978f; font-weight: 400; opacity: 1; }
.e4h-gd .e4h-gd-blank:focus {
	outline: none;
	border-bottom-color: var(--gd-btn);
	box-shadow: 0 2px 0 0 var(--gd-btn);
}

/* ---------------------------------------------------------------- step 2: areas */

.e4h-gd-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
.e4h-gd-cats li { display: flex; }
.e4h-gd .e4h-gd-cat,
.e4h-gd .e4h-gd-cat:focus {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 20px 22px 18px;
	border: 1px solid var(--gd-line);
	border-top: 6px solid var(--gd-accent);
	border-radius: var(--gd-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.e4h-gd .e4h-gd-cat:hover {
	background: #fff;
	color: inherit;
	border-color: var(--gd-accent);
	box-shadow: 0 0 0 1px var(--gd-accent);
}
.e4h-gd-cat__top { display: flex; align-items: center; gap: 12px; }
.e4h-gd-cat__num {
	display: grid;
	place-items: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--gd-accent);
	color: var(--gd-on);
	font-weight: 700;
}
.e4h-gd-cat__name { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.e4h-gd-cat__label { color: var(--gd-ink); font-weight: 700; font-size: .98rem; }
.e4h-gd-cat__intro { color: var(--gd-muted); font-size: .88rem; }
.e4h-gd-cat__count {
	margin-top: auto;
	padding-top: 6px;
	color: var(--gd-ink);
	font-size: .85rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------- steps 3–4 */

.e4h-gd-switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}
.e4h-gd-switch__label { color: var(--gd-muted); font-size: .88rem; font-weight: 600; margin-right: 4px; }
.e4h-gd .e4h-gd-pill,
.e4h-gd .e4h-gd-pill:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid var(--gd-line);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.e4h-gd .e4h-gd-pill::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gd-accent);
}
.e4h-gd .e4h-gd-pill:hover { background: var(--gd-tint); color: inherit; border-color: var(--gd-accent); }
.e4h-gd .e4h-gd-pill[aria-pressed="true"] {
	border-color: var(--gd-accent);
	background: var(--gd-accent);
	color: var(--gd-on);
}
.e4h-gd .e4h-gd-pill[aria-pressed="true"]::before { background: var(--gd-on); }

.e4h-gd-area__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
	padding: 20px 22px;
	border-left: 6px solid var(--gd-accent);
	border-radius: var(--gd-radius);
	background: var(--gd-tint);
}
.e4h-gd-area__num {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gd-accent);
	color: var(--gd-on);
	font-size: 1.2rem;
	font-weight: 700;
}
.e4h-gd .e4h-gd-area__title { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 700; margin-bottom: .3em; }
.e4h-gd-area__head p { color: var(--gd-muted); font-size: .95rem; }

/* needs accordion */

.e4h-gd-need {
	margin: 0 0 10px !important;
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius);
	background: #fff;
	scroll-margin-top: 120px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.e4h-gd-need.is-open {
	border-color: var(--gd-accent);
	box-shadow: 0 0 0 1px var(--gd-accent);
}
.e4h-gd .e4h-gd-need__h { font-size: 1rem; font-weight: inherit; }
.e4h-gd .e4h-gd-need__btn,
.e4h-gd .e4h-gd-need__btn:focus {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: start;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-radius: var(--gd-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	box-shadow: none;
	cursor: pointer;
}
.e4h-gd .e4h-gd-need__btn:hover { background: var(--gd-tint); color: inherit; }
.e4h-gd-need.is-open .e4h-gd-need__btn { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.e4h-gd-need__mark {
	position: relative;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid var(--gd-ink);
	border-radius: 50%;
	background: #fff;
}
.e4h-gd-need.is-open .e4h-gd-need__mark { border-color: var(--gd-accent); background: var(--gd-accent); }
.e4h-gd-need.is-open .e4h-gd-need__mark::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: var(--gd-on);
}
.e4h-gd-need__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.e4h-gd-need__title { font-size: 1.02rem; font-weight: 700; }
.e4h-gd-need__desc { color: var(--gd-muted); font-size: .92rem; }
.e4h-gd-need__count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gd-ink);
	font-size: .82rem;
	font-weight: 700;
	white-space: nowrap;
}
.e4h-gd-need__count::after {
	content: "";
	width: 9px;
	height: 9px;
	margin: -4px 4px 0 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.e4h-gd-need.is-open .e4h-gd-need__count::after { transform: rotate(-135deg); margin-top: 4px; }

.e4h-gd-need__panel { padding: 4px 20px 20px 56px; }
.e4h-gd-need.is-open .e4h-gd-need__panel { animation: e4h-gd-reveal .18s ease-out; }
@keyframes e4h-gd-reveal {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

/* recommendations */

.e4h-gd-recs__head,
.e4h-gd-rec {
	display: grid;
	grid-template-columns: minmax(220px, 1.05fr) minmax(0, 1.3fr) minmax(0, 1.6fr);
	gap: 24px;
}
.e4h-gd-recs__head {
	padding: 10px 0;
	border-bottom: 2px solid var(--gd-accent);
	color: var(--gd-ink);
	font-size: .82rem;
	font-weight: 700;
}
.e4h-gd-rec { padding: 18px 0; border-top: 1px solid var(--gd-line); }
.e4h-gd-recs__head + .e4h-gd-rec { border-top: 0; }

.e4h-gd-rec__tool { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.e4h-gd-rec__thumb {
	display: grid;
	place-items: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--gd-tint);
	color: var(--gd-ink);
	font-size: 1.3rem;
	font-weight: 700;
}
.e4h-gd-rec__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e4h-gd-rec__id { min-width: 0; }
.e4h-gd .e4h-gd-rec__name { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere; }
.e4h-gd .e4h-gd-rec__name a { color: inherit; text-decoration: none; }
.e4h-gd .e4h-gd-rec__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.e4h-gd-rec__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.e4h-gd-rec__cell p { font-size: .93rem; }
.e4h-gd-rec__label { display: none; }
.e4h-gd-muted { color: var(--gd-muted); }
.e4h-gd-rec--other .e4h-gd-rec__thumb { background: var(--gd-soft); color: var(--gd-muted); }

.e4h-gd-soon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 16px 18px;
	border-radius: 8px;
	background: var(--gd-soft);
}
.e4h-gd-soon p { flex: 1 1 320px; color: var(--gd-muted); font-size: .93rem; }

.e4h-gd-empty { padding: 18px; border-radius: 8px; background: var(--gd-soft); }

/* ---------------------------------------------------------------- prose (intro texts) */

.e4h-gd-prose { max-width: none; }
.e4h-gd-prose p,
.e4h-gd-panel__head p { margin: 0 0 .9em; color: var(--gd-muted); }
.e4h-gd-prose p:last-child,
.e4h-gd-panel__head p:last-child { margin-bottom: 0; }
.e4h-gd .e4h-gd-prose__h {
	margin: 1.4em 0 .5em;
	color: inherit;
	font-size: 1.05rem;
	font-weight: 700;
}
.e4h-gd .e4h-gd-prose__note {
	padding-left: 14px;
	border-left: 3px solid var(--gd-line);
	font-size: .88rem;
}

/* ---------------------------------------------------------------- step 5: booklets */

.e4h-gd-files {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.e4h-gd-file {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.e4h-gd-file.is-selected {
	border-color: var(--gd-accent);
	box-shadow: 0 0 0 2px var(--gd-accent);
}
.e4h-gd-file__cover {
	display: block;
	aspect-ratio: 1960 / 1380;
	background: var(--gd-tint);
	line-height: 0;
}
.e4h-gd-file__cover img { width: 100%; height: 100%; object-fit: cover; }
.e4h-gd-file__ext {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--gd-ink);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
}
.e4h-gd-file__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 16px 18px 18px;
	border-top: 4px solid var(--gd-accent);
}
.e4h-gd-file__area {
	color: var(--gd-ink);
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.e4h-gd .e4h-gd-file__name { font-size: 1rem; font-weight: 700; }
.e4h-gd-file__meta { color: var(--gd-muted); font-size: .8rem; }
.e4h-gd-file__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 10px;
}

/* DearFlip lightbox button, restyled to match the card. */
.e4h-gd-flip { display: inline-flex; line-height: 0; }
.e4h-gd-flip ._df_button,
.e4h-gd-flip .df-button,
.e4h-gd-flip ._df_button-container a,
.e4h-gd-flip a._df_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 0 !important;
	padding: .4em .9em !important;
	border: 2px solid var(--gd-btn) !important;
	border-radius: 6px !important;
	background: var(--gd-btn) !important;
	background-image: none !important;
	color: var(--gd-btn-on) !important;
	font: inherit !important;
	font-size: .85rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	cursor: pointer;
}
.e4h-gd-flip ._df_button:hover,
.e4h-gd-flip .df-button:hover,
.e4h-gd-flip a._df_button:hover { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .12) !important; }
.e4h-gd-flip ._df_button .ti-book,
.e4h-gd-flip .df-button .ti-book { margin-right: 6px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
	.e4h-gd-recs__head { display: none; }
	.e4h-gd-rec { grid-template-columns: 1fr; gap: 12px; }
	.e4h-gd-recs__head + .e4h-gd-rec { border-top: 1px solid var(--gd-line); }
	.e4h-gd-rec:first-child { border-top: 0; }
	.e4h-gd-rec__label {
		display: block;
		margin-bottom: 2px;
		color: var(--gd-ink);
		font-size: .8rem;
		font-weight: 700;
	}
	.e4h-gd-need__panel { padding: 0 16px 16px; }
}

@media (max-width: 720px) {
	.e4h-gd-steps__num { width: 32px; height: 32px; font-size: .9rem; }
	.e4h-gd-steps__item + .e4h-gd-steps__item::after { top: 15px; left: calc(-50% + 21px); right: calc(50% + 21px); }
}

@media (max-width: 640px) {
	.e4h-gd-steps__label { display: none; }
	.e4h-gd-steps__item.is-current .e4h-gd-steps__label {
		display: block;
		position: absolute;
		top: 40px;
		left: 50%;
		transform: translateX(-50%);
		width: max-content;
		max-width: 60vw;
	}
	.e4h-gd-steps { margin-bottom: 52px; }
	.e4h-gd-steps__item:first-child.is-current .e4h-gd-steps__label { left: 0; transform: none; }
	.e4h-gd-steps__item:last-child.is-current .e4h-gd-steps__label { left: auto; right: 0; transform: none; }
	.e4h-gd-sentence { padding: 16px; }
	.e4h-gd-switch { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; margin-right: -4px; padding: 4px; scrollbar-width: thin; }
	.e4h-gd .e4h-gd-pill { flex: 0 0 auto; }
	.e4h-gd .e4h-gd-need__btn { grid-template-columns: 20px minmax(0, 1fr); padding: 14px; gap: 12px; }
	.e4h-gd-need__count { grid-column: 2; }
	.e4h-gd-need__mark { width: 20px; height: 20px; }
	.e4h-gd-area__head { padding: 16px; }
	.e4h-gd-cats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.e4h-gd *, .e4h-gd *::before, .e4h-gd *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
