/* Gastro Guide — component styles. Colours and fonts come from theme.json. */

:root {
	--gg-r-sm: var(--wp--custom--radius--small, 10px);
	--gg-r-md: var(--wp--custom--radius--medium, 16px);
	--gg-r-lg: var(--wp--custom--radius--large, 22px);
	--gg-shadow: 0 16px 36px -18px rgba(19, 38, 47, 0.28);
	--gg-shadow-soft: 0 8px 22px -14px rgba(19, 38, 47, 0.25);
	--gg-input-line: #7D8C92;
}

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--highlight);
	outline-offset: 2px;
}

img {
	height: auto;
	max-width: 100%;
}

.gg-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--highlight);
	margin-bottom: 10px !important;
}

.gg-lead {
	font-size: clamp(19px, 2vw, 21px);
	line-height: 1.6;
	color: #33444C;
}

.gg-small {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.gg-arrow-link a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-decoration: none;
}

.gg-arrow-link a::after {
	content: " →";
}

.gg-admin-hint {
	padding: 12px 16px;
	border: 2px dashed var(--wp--preset--color--soft-line);
	border-radius: var(--gg-r-sm);
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.gg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Buttons and fields ---------- */

.gg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 24px;
	font: 600 17px/1.3 var(--wp--preset--font-family--display);
	border-radius: 12px;
	border: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface) !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.gg-btn:hover,
.gg-btn:focus-visible {
	background: var(--wp--preset--color--accent-dark);
	border-color: var(--wp--preset--color--accent-dark);
}

.gg-btn--block {
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.gg-product__cover .gg-wb__cover-fallback {
	max-width: 320px;
	font-size: 22px;
	padding: 24px;
}

.gg-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gg-field label {
	font-weight: 700;
	font-size: 16px;
}

.gg-field :is(input, textarea, select) {
	font: inherit;
	font-size: 18px;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--gg-input-line);
	border-radius: var(--gg-r-sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.gg-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.5;
}

.gg-consent input {
	width: 22px;
	height: 22px;
	margin-top: 1px;
	flex: none;
}

.gg-error {
	color: #9B2C1F;
	font-weight: 700;
}

:where(pre, p):has(> :is(.gg-signup, .gg-contact, .gg-wb, .gg-wb-grid, .gg-byline, .gg-author-box, .gg-disclaimer, .gg-profile, .gg-buybox, .gg-author-mini)) {
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	white-space: normal;
	font: inherit;
}

/* ---------- Header ---------- */

.gg-topbar {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--on-dark);
	font-size: 14px;
}

.gg-topbar p {
	margin: 0;
}

.gg-site-header {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.gg-site-header .wp-block-site-title a,
.gg-site-footer .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.gg-site-header .wp-block-site-title a::before,
.gg-site-footer .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background:
		var(--wp--preset--color--accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3c3.5 0 6 2.5 6 6 0 3-2 4.5-2 7.5 0 2 1.2 3.5 1.2 3.5'/%3E%3Cpath d='M13 3c-2.8 0-4.5 1.8-4.5 4 0 3 3 3.5 3 6.5S8.5 18 5 18'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.gg-site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

.gg-site-header .wp-block-navigation .wp-block-navigation-item.gg-nav-cta > a {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
	padding: 10px 18px;
	border-radius: 12px;
}

.gg-site-header .wp-block-navigation .wp-block-navigation-item.gg-nav-cta > a:hover {
	background: var(--wp--preset--color--accent-dark);
	color: var(--wp--preset--color--surface);
}

/* ---------- Footer ---------- */

.gg-site-footer {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--on-dark);
	font-size: 16px;
}

.gg-site-footer .wp-block-site-title a,
.gg-site-footer strong {
	color: #FFFFFF;
}

.gg-site-footer a {
	color: var(--wp--preset--color--on-dark);
}

.gg-site-footer a:hover {
	color: #FFFFFF;
}

.gg-footer-heading {
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase;
	color: #8FD0C6 !important;
	margin-bottom: 12px !important;
}

.gg-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gg-footer-links li {
	margin: 0 0 8px;
}

.gg-footer-links a {
	text-decoration: none;
}

.gg-footer-urgent {
	margin-top: 36px !important;
	padding: 14px 18px;
	border: 1px solid rgba(205, 226, 223, 0.3);
	border-radius: var(--gg-r-sm);
	font-size: 15px;
}

.gg-footer-urgent p {
	margin: 0;
}

.gg-footer-small {
	margin-top: 20px !important;
	font-size: 14px;
	gap: 8px 32px;
}

.gg-footer-small p {
	margin: 0;
	max-width: 640px;
}

/* ---------- Bands and section heads ---------- */

.gg-band-soft {
	background: var(--wp--preset--color--soft);
}

.gg-band-warm {
	background: var(--wp--preset--color--warm);
}

.gg-section-head h2 {
	margin-bottom: 8px;
}

.gg-section-head p {
	margin-top: 0;
	color: var(--wp--preset--color--muted);
}

/* ---------- Homepage hero ---------- */

.gg-hero {
	background:
		radial-gradient(circle at 100% 0%, rgba(227, 241, 239, 0.95), transparent 55%),
		var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.gg-hero-title {
	margin-top: 0;
	max-width: 15em;
}

.gg-hero-search {
	max-width: 560px;
	margin-top: 28px !important;
}

.gg-hero-search .wp-block-search__input {
	padding: 14px 18px;
	font-size: 18px;
}

.gg-popular {
	background: var(--wp--preset--color--ground);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-lg);
	padding: 26px 28px;
	box-shadow: var(--gg-shadow);
}

.gg-popular__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 18px;
	margin: 0 0 8px !important;
}

.gg-popular__list {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: pop;
}

.gg-popular__list li {
	counter-increment: pop;
	position: relative;
	padding: 14px 0 14px 46px;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0;
}

.gg-popular__list li::before {
	content: counter(pop);
	position: absolute;
	left: 0;
	top: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--accent);
	font: 600 15px/32px var(--wp--preset--font-family--display);
	text-align: center;
}

.gg-popular__list a {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	text-decoration: none;
}

.gg-popular__list a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.gg-author-mini {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
}

.gg-author-mini:hover strong {
	color: var(--wp--preset--color--accent);
}

.gg-author-mini__photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	box-shadow: 0 0 0 3px var(--wp--preset--color--soft);
}

.gg-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent);
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.gg-author-mini__photo.gg-initials {
	font-size: 20px;
}

/* ---------- Tiles (conditions and tests) ---------- */

.gg-tile,
.gg-test {
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	padding: 22px 22px 22px 86px;
	min-height: 120px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gg-tile::before,
.gg-test::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 22px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--soft);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px;
}

.gg-test::before {
	border-radius: 14px;
	background-color: var(--wp--preset--color--warm);
}

.gg-tile:hover,
.gg-test:hover {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--gg-shadow-soft);
	transform: translateY(-2px);
}

:is(.gg-tile, .gg-test) h3 {
	margin: 0 0 4px;
	font-size: 20px;
}

:is(.gg-tile, .gg-test) h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

:is(.gg-tile, .gg-test) h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

:is(.gg-tile, .gg-test) p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.gg-tile--gastritis::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v4c0 2-3 3-3 7a6 6 0 0 0 11 3.3c1.3-2 1.6-4.6.5-6.6C16.4 8.5 14 9 13 7V3'/%3E%3C/svg%3E"); }
.gg-tile--ibs::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14v4H8v4h11v6H5'/%3E%3Cpath d='M5 9v2M19 13v-2'/%3E%3C/svg%3E"); }
.gg-tile--reflux::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-4 0-7-3-7-6.5C5 10 9 9 9 5c0 0 4 1.5 4 6 1-1 1.5-2.5 1.5-2.5S19 11 19 15c0 3.5-3 6-7 6z'/%3E%3C/svg%3E"); }
.gg-tile--ida::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z'/%3E%3Cpath d='M9.5 15h5'/%3E%3C/svg%3E"); }
.gg-tile--coeliac::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V8'/%3E%3Cpath d='M12 8c-2-1-3-3-3-5 2 0 3 2 3 5zM12 8c2-1 3-3 3-5-2 0-3 2-3 5zM12 13c-2.5-.5-4-2.5-4-4.5 2.5.5 4 2.5 4 4.5zM12 13c2.5-.5 4-2.5 4-4.5-2.5.5-4 2.5-4 4.5z'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E"); }
.gg-tile--liver::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c0-3 3-4 7-4 5 0 11 0 11 3 0 4-6 9-11 11-2 .8-3-.5-3-2.5 0-3-4-3.5-4-7.5z'/%3E%3C/svg%3E"); }
.gg-test::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C4A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Cpath d='M14.8 9.2C10 14 12 20 6 20H3'/%3E%3Cpath d='M17 6.2v1.6M16.2 7h1.6'/%3E%3C/svg%3E"); }
.gg-test--capsule::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C4A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8.5' width='18' height='7' rx='3.5' transform='rotate(-35 12 12)'/%3E%3Cpath d='M9.6 8.6l4.8 6.8'/%3E%3C/svg%3E"); }
.gg-test--fibroscan::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C4A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h3l2-5 3 10 3-8 2 3h5'/%3E%3C/svg%3E"); }
.gg-test--hpylori::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C4A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E"); }

/* ---------- Trust strip ---------- */

.gg-trust {
	gap: 18px !important;
}

.gg-trust__item {
	position: relative;
	padding-top: 46px;
}

.gg-trust__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background:
		var(--wp--preset--color--accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.gg-trust__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 18px;
	margin: 0 0 4px !important;
}

.gg-trust__item p:not(.gg-trust__title) {
	margin: 0;
	font-size: 16px;
	color: #33444C;
}

/* ---------- Signup ---------- */

.gg-signup {
	display: grid;
	gap: 18px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--soft-line);
	border-top: 5px solid var(--wp--preset--color--accent);
	border-radius: var(--gg-r-md);
	padding: clamp(22px, 3.5vw, 32px);
}

.gg-signup--band {
	grid-template-columns: 1fr;
	background:
		radial-gradient(circle at 0% 100%, rgba(143, 208, 198, 0.25), transparent 50%),
		var(--wp--preset--color--deep);
	color: var(--wp--preset--color--on-dark);
	border: 0;
	border-radius: var(--gg-r-lg);
	padding: clamp(28px, 5vw, 48px);
}

@media (min-width: 860px) {
	.gg-signup--band {
		grid-template-columns: 1fr 1.1fr;
		gap: 40px;
		align-items: center;
	}
}

.gg-signup p {
	margin: 0;
}

.gg-signup__eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--highlight);
	margin-bottom: 6px !important;
}

.gg-signup--band .gg-signup__eyebrow {
	color: #F2C27A;
}

.gg-signup__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
	margin-bottom: 8px !important;
}

.gg-signup--band .gg-signup__title {
	color: #FFFFFF;
}

.gg-signup__text {
	font-size: 17px;
}

.gg-signup form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gg-signup__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.gg-signup--band a {
	color: #FFFFFF;
}

.gg-signup--band .gg-btn {
	background: #F2C27A;
	border-color: #F2C27A;
	color: var(--wp--preset--color--deep) !important;
}

.gg-signup--band .gg-btn:hover {
	background: #FFFFFF;
	border-color: #FFFFFF;
}

.gg-signup .gg-btn {
	align-self: flex-start;
}

.gg-signup__done-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 22px;
	margin-bottom: 6px !important;
}

.gg-signup__done p + p {
	margin-top: 10px;
}

/* ---------- Workbooks ---------- */

.gg-wb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 20px;
}

.gg-wb {
	display: grid;
	gap: 18px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	padding: 20px;
}

.gg-wb--card {
	grid-template-columns: 110px 1fr;
	align-items: start;
}

.gg-wb--wide {
	grid-template-columns: 140px 1fr;
	align-items: center;
	background: var(--wp--preset--color--warm);
	border-color: var(--wp--preset--color--warm-line);
	padding: 24px;
}

.gg-wb__cover img,
.gg-wb__cover-fallback {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 6px 8px 0 -2px rgba(19, 38, 47, 0.12), 0 2px 6px rgba(19, 38, 47, 0.18);
}

.gg-wb__cover-fallback {
	display: flex;
	align-items: flex-end;
	padding: 10px;
	box-sizing: border-box;
	background: linear-gradient(160deg, var(--wp--preset--color--accent), var(--wp--preset--color--deep));
	color: #FFFFFF;
	font: 600 13px/1.25 var(--wp--preset--font-family--display);
}

.gg-wb__body p {
	margin: 0 0 6px;
}

.gg-wb__eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--highlight);
}

.gg-wb__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
}

.gg-wb__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.gg-wb__meta {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.gg-wb__text {
	font-size: 16px;
	line-height: 1.5;
}

.gg-wb__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 12px;
}

.gg-wb__more {
	font-weight: 700;
	font-size: 15px;
}

.gg-product__cover img {
	border-radius: 8px;
	box-shadow: 12px 14px 0 -4px rgba(19, 38, 47, 0.1), 0 6px 18px rgba(19, 38, 47, 0.2);
}

.gg-buybox {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	padding: 22px;
	max-width: 420px;
}

.gg-buybox p {
	margin: 0 0 10px;
}

.gg-buybox__price {
	font: 600 32px/1 var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--ink);
}

.gg-buybox__meta,
.gg-buybox__note {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.gg-buybox__note {
	margin: 12px 0 0 !important;
}

/* ---------- Guides: byline, contents, boxes ---------- */

.gg-terms {
	margin-bottom: 4px !important;
}

.gg-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-block: 1px solid var(--wp--preset--color--line);
}

.gg-byline p {
	margin: 0;
}

.gg-byline__photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.gg-byline__photo--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent);
	color: #FFFFFF;
	font: 600 17px var(--wp--preset--font-family--display);
}

.gg-byline__who {
	font-size: 16px;
}

.gg-byline__who a {
	font-weight: 700;
}

.gg-byline__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.gg-byline__dates span:first-child {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}

.gg-featured img {
	border-radius: var(--gg-r-lg);
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.gg-content > :where(h2) {
	margin-top: 1.8em;
	scroll-margin-top: 20px;
}

.gg-content > :where(h3) {
	margin-top: 1.4em;
}

.gg-content :where(ul, ol):not([class*="is-style-gg-"]) li {
	margin-bottom: 6px;
}

.gg-content .wp-block-image img {
	border-radius: var(--gg-r-md);
}

.gg-toc {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	padding: 18px 22px;
}

.gg-toc__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	margin: 0 0 6px;
}

.gg-toc ol {
	margin: 0;
	padding-left: 22px;
	columns: 2 260px;
	column-gap: 32px;
	font-size: 17px;
}

.gg-toc li {
	margin: 0 0 6px;
	break-inside: avoid;
}

/* Group block styles. */
.wp-block-group:is(.is-style-gg-card, .is-style-gg-keypoints, .is-style-gg-redflag, .is-style-gg-clinical, .is-style-gg-info) > * {
	margin-block: 0;
}

.wp-block-group:is(.is-style-gg-card, .is-style-gg-keypoints, .is-style-gg-redflag, .is-style-gg-clinical, .is-style-gg-info) > * + * {
	margin-top: 10px;
}

.wp-block-group.is-style-gg-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	padding: clamp(20px, 3vw, 28px);
}

.gg-box-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 19px;
}

.wp-block-group.is-style-gg-keypoints {
	background: var(--wp--preset--color--warm);
	border: 1px solid var(--wp--preset--color--warm-line);
	border-radius: var(--gg-r-md);
	padding: 22px 26px;
}

.wp-block-group.is-style-gg-keypoints ul {
	padding-left: 22px;
}

.wp-block-group.is-style-gg-keypoints li {
	margin-bottom: 6px;
}

.wp-block-group.is-style-gg-keypoints li::marker {
	color: var(--wp--preset--color--highlight);
}

.wp-block-group.is-style-gg-redflag {
	position: relative;
	background: var(--wp--preset--color--red-bg);
	border: 2px solid var(--wp--preset--color--red-line);
	border-radius: var(--gg-r-md);
	padding: 22px 26px 22px 72px;
	color: var(--wp--preset--color--red-ink);
}

.wp-block-group.is-style-gg-redflag::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 22px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background:
		var(--wp--preset--color--red-line)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 17.5v.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.wp-block-group.is-style-gg-redflag :where(p, li, strong) {
	color: var(--wp--preset--color--red-ink);
}

.wp-block-group.is-style-gg-redflag ul {
	padding-left: 20px;
}

.wp-block-group.is-style-gg-redflag li {
	margin-bottom: 4px;
}

.wp-block-group.is-style-gg-clinical {
	position: relative;
	background: var(--wp--preset--color--soft);
	border-left: 5px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--gg-r-md) var(--gg-r-md) 0;
	padding: 22px 26px;
}

.wp-block-group.is-style-gg-clinical .gg-box-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--accent-dark);
}

.wp-block-group.is-style-gg-clinical .gg-box-title::before {
	content: "";
	width: 26px;
	height: 26px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075252' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v6a4 4 0 0 0 8 0V3'/%3E%3Cpath d='M10 13v2a5 5 0 0 0 10 0v-2'/%3E%3Ccircle cx='20' cy='11' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-group.is-style-gg-clinical p:not(.gg-box-title) {
	font-style: italic;
}

.wp-block-group.is-style-gg-info {
	background: var(--wp--preset--color--soft);
	border: 1px solid var(--wp--preset--color--soft-line);
	border-radius: var(--gg-r-md);
	padding: 18px 22px;
}

.wp-block-group.is-style-gg-dark {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--on-dark);
	border-radius: var(--gg-r-lg);
	padding: clamp(26px, 4vw, 42px);
}

.wp-block-group.is-style-gg-dark :where(h1, h2, h3) {
	color: #FFFFFF;
}

ul.is-style-gg-checklist {
	list-style: none;
	padding-left: 0;
}

ul.is-style-gg-checklist li {
	position: relative;
	padding-left: 34px;
	margin-bottom: 10px;
}

ul.is-style-gg-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background:
		var(--wp--preset--color--accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

ol.is-style-gg-refs {
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	padding-left: 24px;
}

ol.is-style-gg-refs li {
	margin-bottom: 8px;
	overflow-wrap: anywhere;
}

.wp-block-table.is-style-gg-table table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	overflow: hidden;
	font-size: 17px;
}

.wp-block-table.is-style-gg-table :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}

.wp-block-table.is-style-gg-table thead th {
	background: var(--wp--preset--color--soft);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.wp-block-table.is-style-gg-table tbody tr:last-child td {
	border-bottom: 0;
}

.gg-faq {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-sm);
	padding: 0 20px;
	margin-block: 10px !important;
}

.gg-faq summary {
	cursor: pointer;
	padding: 16px 30px 16px 0;
	font-weight: 700;
	list-style: none;
	position: relative;
}

.gg-faq summary::-webkit-details-marker {
	display: none;
}

.gg-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 12px;
	font: 400 26px/1 var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--accent);
}

.gg-faq[open] summary::after {
	content: "−";
}

.gg-faq > :not(summary) {
	margin-top: 0;
	padding-bottom: 16px;
}

/* End of guide: workbook, signup, author, disclaimer. */
.gg-guide-end {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.gg-guide-end > * + * {
	margin-top: 22px;
}

.gg-author-box {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 20px;
	align-items: start;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	padding: 24px;
}

.gg-author-box__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	font-size: 30px;
}

.gg-author-box p {
	margin: 0;
}

.gg-author-box__eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--highlight);
}

.gg-author-box__name {
	font: 600 22px/1.2 var(--wp--preset--font-family--display);
	margin-top: 2px !important;
}

.gg-author-box__title {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 8px !important;
}

.gg-author-box__bio {
	font-size: 16px;
	line-height: 1.6;
}

.gg-author-box__creds {
	margin: 10px 0;
	padding-left: 18px;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.gg-author-box__creds li {
	margin-bottom: 2px;
}

.gg-author-box__links {
	font-size: 15px;
	font-weight: 700;
}

.gg-disclaimer {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 16px;
}

.gg-disclaimer p {
	margin: 0 0 8px;
}

/* ---------- About profile ---------- */

.gg-profile {
	display: grid;
	gap: 22px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-lg);
	padding: clamp(20px, 3vw, 28px);
	box-shadow: var(--gg-shadow-soft);
}

@media (min-width: 640px) {
	.gg-about-top .gg-profile {
		grid-template-columns: 220px 1fr;
		align-items: center;
	}
}

.gg-profile__photo {
	display: flex;
	width: 100%;
	max-width: 320px;
	aspect-ratio: 1;
	border-radius: var(--gg-r-md);
	object-fit: cover;
	font-size: 64px;
}

.gg-profile p {
	margin: 0;
}

.gg-profile__name {
	font: 600 26px/1.2 var(--wp--preset--font-family--display);
}

.gg-profile__title {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	margin-bottom: 12px !important;
}

.gg-profile__label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--highlight);
	margin-top: 12px !important;
}

.gg-profile__creds {
	margin: 6px 0 0;
	padding-left: 18px;
	font-size: 16px;
}

.gg-profile__creds li {
	margin-bottom: 4px;
}

.gg-profile__links {
	font-size: 16px;
	margin-top: 4px !important;
}

/* ---------- Post cards ---------- */

.gg-post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-md);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.gg-post-card:hover {
	box-shadow: var(--gg-shadow-soft);
	transform: translateY(-2px);
}

.gg-post-card .wp-block-post-featured-image {
	margin: 0;
}

.gg-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.gg-post-card-body {
	padding: 18px 22px 24px;
	flex: 1;
}

.gg-post-card-body > * {
	margin-block: 0;
}

.gg-post-card-body > * + * {
	margin-top: 8px;
}

.gg-post-card .wp-block-post-title {
	font-size: 21px;
}

.gg-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.gg-post-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 16px;
}

.gg-post-card .wp-block-post-excerpt__more-text {
	margin-top: 10px;
	font-weight: 700;
}

.wp-block-post-template.is-layout-grid > li {
	margin: 0;
}

.gg-thumb-placeholder {
	margin: 0;
}

.gg-thumb-placeholder a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--soft-line);
}

.gg-thumb-placeholder svg {
	width: 30%;
	max-width: 110px;
	height: auto;
}

/* ---------- Archives, search, pagination ---------- */

.gg-archive-header {
	margin-bottom: var(--wp--preset--spacing--50);
}

.gg-archive-header .wp-block-query-title {
	margin: 0 0 10px;
}

.wp-block-query-pagination {
	gap: 8px;
	margin-top: var(--wp--preset--spacing--50);
	font-weight: 700;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-sm);
	background: var(--wp--preset--color--surface);
	text-align: center;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: #FFFFFF;
}

.wp-block-search__input {
	font-size: 18px;
	padding: 12px 16px;
	border: 1px solid var(--gg-input-line);
	border-radius: 12px;
	font-family: inherit;
	background: var(--wp--preset--color--surface);
}

.wp-block-search__button {
	margin-left: 8px;
}

/* ---------- Contact form ---------- */

.gg-contact {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gg-r-lg);
	padding: clamp(22px, 4vw, 32px);
	max-width: 720px;
}

.gg-contact__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gg-contact__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.gg-contact__small {
	margin: 0;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.gg-contact .gg-btn {
	align-self: flex-start;
}

.gg-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gg-contact__notice {
	border-radius: var(--gg-r-md);
	padding: 16px 18px;
	margin-bottom: 16px;
}

.gg-contact__notice p {
	margin: 0;
}

.gg-contact__notice--ok {
	background: var(--wp--preset--color--soft);
	border: 1px solid var(--wp--preset--color--soft-line);
	margin-bottom: 0;
}

.gg-contact__notice-title {
	font: 600 22px var(--wp--preset--font-family--display);
	margin-bottom: 6px !important;
}

.gg-contact__notice--error {
	background: var(--wp--preset--color--red-bg);
	border: 1px solid var(--wp--preset--color--red-line);
	color: var(--wp--preset--color--red-ink);
}

/* ---------- AdSense ---------- */

.gg-ad {
	clear: both;
	margin: 32px auto !important;
	padding-top: 6px;
	text-align: center;
	border-top: 1px solid var(--wp--preset--color--line);
	min-height: 120px;
}

.gg-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.gg-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
	display: none !important;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
	.gg-tile,
	.gg-test {
		padding-left: 80px;
	}

	.wp-block-group.is-style-gg-redflag {
		padding: 64px 20px 20px;
	}

	.gg-author-box {
		grid-template-columns: 1fr;
	}

	.gg-wb--card,
	.gg-wb--wide {
		grid-template-columns: 90px 1fr;
		gap: 14px;
	}

	.gg-signup .gg-btn,
	.gg-contact .gg-btn {
		width: 100%;
	}

	.gg-topbar {
		font-size: 13px;
	}
}

/* ---------- About: career timeline and LinkedIn button ---------- */

ul.gg-timeline {
	list-style: none;
	padding: 0 0 0 28px;
	margin-left: 8px;
	border-left: 3px solid var(--wp--preset--color--soft-line);
}

ul.gg-timeline li {
	position: relative;
	margin: 0 0 18px;
	line-height: 1.55;
}

ul.gg-timeline li::before {
	content: "";
	position: absolute;
	left: -38px;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	border: 3px solid var(--wp--preset--color--accent);
}

ul.gg-timeline li:last-child::before {
	background: var(--wp--preset--color--accent);
}

ul.gg-timeline li strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--highlight);
}

.gg-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 12px;
	color: var(--wp--preset--color--accent);
	font: 600 17px/1.2 var(--wp--preset--font-family--display);
	text-decoration: none;
}

.gg-linkedin:hover,
.gg-linkedin:focus-visible {
	background: var(--wp--preset--color--accent);
	color: #FFFFFF;
}

/* Ben's view: the personal, first-person section in each guide. */
.wp-block-group.is-style-gg-perspective {
	background: var(--wp--preset--color--warm);
	border: 1px solid var(--wp--preset--color--warm-line);
	border-radius: var(--gg-r-md);
	padding: 26px 28px 22px;
	margin-block: 2.2em;
}
.wp-block-group.is-style-gg-perspective > * { margin-block: 0; }
.wp-block-group.is-style-gg-perspective > * + * { margin-block-start: 0.9em; }
.wp-block-group.is-style-gg-perspective .gg-box-title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--deep);
	display: flex;
	align-items: center;
	gap: 10px;
}
.wp-block-group.is-style-gg-perspective .gg-box-title::before {
	content: "\201C";
	font-size: 2.6rem;
	line-height: 0.6;
	color: var(--wp--preset--color--highlight);
	padding-top: 10px;
}
.wp-block-group.is-style-gg-perspective .gg-author-mini {
	margin-top: 1.2em;
	padding-top: 1em;
	border-top: 1px solid var(--wp--preset--color--warm-line);
	display: flex;
}
/* Numbered citations linking to the reference list. */
.gg-cite { font-size: 0.68em; line-height: 0; vertical-align: super; white-space: nowrap; }
.gg-cite a { text-decoration: none; font-weight: 600; color: var(--wp--preset--color--accent); }
.gg-cite a:hover, .gg-cite a:focus { text-decoration: underline; }
.is-style-gg-refs li[id], h2#references { scroll-margin-top: 90px; }
.is-style-gg-refs li:target { background: var(--wp--preset--color--soft); border-radius: 4px; }

/* Workbook sample pages */
.gg-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-block: 1.5em 2em; }
.gg-sample { margin: 0; }
.gg-sample__link { display: block; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(14,46,51,.10); transition: transform .15s ease, box-shadow .15s ease; background: #fff; }
.gg-sample__link:hover, .gg-sample__link:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(14,46,51,.16); }
.gg-sample img { display: block; width: 100%; height: auto; }
.gg-sample figcaption { font-size: .85rem; color: var(--wp--preset--color--muted); margin-top: 8px; text-align: center; line-height: 1.35; }
.gg-zoom { position: fixed; inset: 0; background: rgba(14,46,51,.86); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 24px; cursor: zoom-out; }
.gg-zoom img { max-width: min(860px, 100%); max-height: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.4); border-radius: 4px; background: #fff; }
.gg-zoom__close { position: absolute; top: 14px; right: 18px; font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.gg-product__cover img { border-radius: 8px; box-shadow: 0 14px 34px rgba(14,46,51,.18); width: 100%; height: auto; }
.gg-wb__cover img { width: 100%; height: auto; display: block; }
.gg-cta-band { text-align: center; }
.gg-sample img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }

/* Tagline under the site title in the header */
.gg-site-header .gg-brand { gap: 0; }
.gg-site-header .gg-brand-tagline {
	margin: -4px 0 0 46px;
	font-size: 0.8rem;
	line-height: 1.25;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.01em;
}
.gg-site-header .gg-brand .wp-block-site-title { margin: 0; line-height: 1.15; }
@media (max-width: 600px) {
	.gg-site-header .gg-brand-tagline { font-size: 0.7rem; max-width: 250px; }
}
