/*
Theme Name: GableGreens Core
Theme URI: https://gablegreens.com/
Author: GableGreens
Description: Lightweight custom theme for GableGreens. Home and garden DIY guides with client-side calculators in imperial and metric units. No jQuery, no CSS framework, no page builder.
Version: 2.13.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gablegreens-core
*/

/* ---------- 1. Design tokens ---------- */
:root {
	--gg-bg: #ffffff;
	--gg-surface: #f5f8f4;
	--gg-text: #202820;
	--gg-muted: #56635b;
	--gg-brand: #1f5d42;
	--gg-brand-strong: #164531;
	--gg-on-brand: #ffffff;
	--gg-accent: #a34a12;
	--gg-line: #d6ded8;
	--gg-focus: #0b57d0;
	--gg-tint: #e6f0e3;
	--gg-hero: #f5f8f4;
	--gg-leaf: #3d8f4f;

	--gg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gg-font-num: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

	--gg-step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.89rem);
	--gg-step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
	--gg-step-1: clamp(1.2rem, 1.14rem + 0.3vw, 1.38rem);
	--gg-step-2: clamp(1.44rem, 1.33rem + 0.55vw, 1.78rem);
	--gg-step-3: clamp(1.73rem, 1.54rem + 0.95vw, 2.4rem);

	--gg-s1: 0.25rem;
	--gg-s2: 0.5rem;
	--gg-s3: 0.75rem;
	--gg-s4: 1rem;
	--gg-s5: 1.5rem;
	--gg-s6: 2rem;
	--gg-s7: 3rem;

	--gg-radius: 8px;
	--gg-wrap: 72rem;
	--gg-measure: 44rem;
}

:root {
	color-scheme: light;
}

/* Light is the default for every visitor. Dark applies only when the visitor
   picks it with the header button (saved in their browser as gg_theme). */
:root[data-theme="dark"] {
	color-scheme: dark;
	--gg-bg: #111613;
	--gg-surface: #1a211d;
	--gg-text: #e8eee9;
	--gg-muted: #a6b3ab;
	--gg-brand: #74d19c;
	--gg-brand-strong: #93dfb3;
	--gg-on-brand: #0c1a12;
	--gg-accent: #f0a36b;
	--gg-line: #2e3933;
	--gg-focus: #8ab4f8;
	--gg-tint: #1f3a2b;
	--gg-hero: #17201a;
	--gg-leaf: #5fc27d;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--gg-bg);
	color: var(--gg-text);
	font-family: var(--gg-font);
	font-size: var(--gg-step-0);
	line-height: 1.6;
	overflow-wrap: break-word;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	margin: 0 0 var(--gg-s3);
	text-wrap: balance;
}

h1 {
	font-size: var(--gg-step-3);
}

h2 {
	font-size: var(--gg-step-2);
	margin-top: var(--gg-s6);
}

h3 {
	font-size: var(--gg-step-1);
	margin-top: var(--gg-s5);
}

p,
ul,
ol,
table,
figure {
	margin: 0 0 var(--gg-s4);
}

ul,
ol {
	padding-left: 1.25rem;
}

a {
	color: var(--gg-brand);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--gg-brand-strong);
}

:focus-visible {
	outline: 3px solid var(--gg-focus);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.gg-skip {
	position: absolute;
	left: var(--gg-s3);
	top: -4rem;
	z-index: 10;
	padding: var(--gg-s2) var(--gg-s4);
	background: var(--gg-brand);
	color: var(--gg-on-brand);
	border-radius: var(--gg-radius);
}

.gg-skip:focus {
	top: var(--gg-s3);
	color: var(--gg-on-brand);
}

/* ---------- 3. Layout ---------- */
.gg-wrap {
	width: 100%;
	max-width: var(--gg-wrap);
	margin-inline: auto;
	padding-inline: var(--gg-s4);
}

.gg-main {
	padding-block: var(--gg-s5) var(--gg-s7);
}

.gg-prose {
	max-width: var(--gg-measure);
}

.gg-prose > * + h2 {
	margin-top: var(--gg-s6);
}

/* ---------- 4. Header and navigation ---------- */
.gg-header {
	border-bottom: 1px solid var(--gg-line);
	background: var(--gg-bg);
}

.gg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--gg-s3);
	min-height: 3.75rem;
}

.gg-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--gg-s2);
	font-size: var(--gg-step-1);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--gg-text);
	text-decoration: none;
}

.gg-brand__green {
	color: var(--gg-brand);
}

.gg-brand__mark {
	display: inline-flex;
	align-items: center;
}

.gg-brand__mark .gg-logo {
	width: auto;
	height: 2.5rem;
}

.gg-nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--gg-s2);
	min-height: 2.75rem;
	padding: 0 var(--gg-s3);
	background: none;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	cursor: pointer;
}

.gg-header__tools {
	display: inline-flex;
	align-items: center;
	gap: var(--gg-s2);
}

.gg-theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: none;
	color: var(--gg-text);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	cursor: pointer;
}

.gg-theme-toggle:hover {
	color: var(--gg-brand);
	border-color: var(--gg-brand);
}

.gg-theme-toggle .gg-icon {
	width: 1.3rem;
	height: 1.3rem;
}

.gg-theme-toggle .gg-icon--sun,
:root[data-theme="dark"] .gg-theme-toggle .gg-icon--moon {
	display: none;
}

:root[data-theme="dark"] .gg-theme-toggle .gg-icon--sun {
	display: block;
}

.gg-nav {
	flex-basis: 100%;
}

.gg-nav[data-open="false"] {
	display: none;
}

.gg-nav ul {
	list-style: none;
	margin: 0;
	padding: 0 0 var(--gg-s3);
}

.gg-nav a {
	display: block;
	padding: var(--gg-s3) 0;
	color: var(--gg-text);
	text-decoration: none;
	font-weight: 600;
}

.gg-nav a:hover,
.gg-nav .current-menu-item > a {
	color: var(--gg-brand);
}

@media (min-width: 75rem) {
	.gg-nav-toggle {
		display: none;
	}

	.gg-header__tools {
		order: 3;
	}

	.gg-nav {
		order: 2;
		margin-left: auto;
	}

	.gg-nav,
	.gg-nav[data-open="false"] {
		display: block;
		flex-basis: auto;
	}

	.gg-nav ul {
		display: flex;
		gap: var(--gg-s5);
		padding: 0;
	}
}

/* Calculators drop-down */
.gg-has-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	position: relative;
}

.gg-has-sub > a {
	flex: 1 1 auto;
}

.gg-sub-toggle {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gg-text);
	cursor: pointer;
}

.gg-sub-toggle svg {
	transition: transform 0.2s ease;
}

.gg-has-sub.is-open .gg-sub-toggle svg {
	transform: rotate(180deg);
}

.gg-nav .gg-sub {
	display: none;
	flex-basis: 100%;
	list-style: none;
	margin: 0 0 var(--gg-s2);
	padding: 0 0 0 var(--gg-s3);
}

.gg-has-sub.is-open > .gg-sub {
	display: block;
}

.gg-nav .gg-sub a {
	display: flex;
	align-items: center;
	gap: var(--gg-s3);
	padding: var(--gg-s2) var(--gg-s2);
	border-radius: 6px;
	font-weight: 600;
}

.gg-nav .gg-sub a:hover,
.gg-nav .gg-sub a[aria-current="page"] {
	background: var(--gg-tint);
	color: var(--gg-brand-strong);
}

.gg-sub .gg-icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0.2rem;
	border-radius: 6px;
	background: var(--gg-tint);
	color: var(--gg-brand);
}

.gg-nav .gg-sub__all a {
	color: var(--gg-brand);
}

@media (min-width: 75rem) {
	.gg-has-sub > a {
		flex: none;
	}

	.gg-sub-toggle {
		width: 1.75rem;
		margin-left: -0.35rem;
	}

	.gg-nav .gg-sub {
		position: absolute;
		top: 100%;
		left: -1rem;
		z-index: 60;
		flex-basis: auto;
		width: min(34rem, 92vw);
		margin: 0;
		padding: var(--gg-s3);
		gap: 2px var(--gg-s2);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border: 1px solid var(--gg-line);
		border-radius: var(--gg-radius);
		background: var(--gg-bg);
		box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
	}

	.gg-has-sub:hover > .gg-sub,
	.gg-has-sub:focus-within > .gg-sub,
	.gg-has-sub.is-open > .gg-sub {
		display: grid;
	}

	.gg-nav .gg-sub__all {
		grid-column: 1 / -1;
		margin-top: var(--gg-s2);
		padding-top: var(--gg-s2);
		border-top: 1px solid var(--gg-line);
	}
}

@media (min-width: 75rem) and (max-width: 89.99rem) {
	.gg-nav ul {
		gap: var(--gg-s4);
	}

	.gg-nav a {
		font-size: 0.9375rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg-sub-toggle svg {
		transition: none;
	}
}

/* ---------- 5. Posts and archives ---------- */
.gg-list {
	display: grid;
	gap: var(--gg-s5);
	list-style: none;
	padding: 0;
}

@media (min-width: 40rem) {
	.gg-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.gg-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.gg-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	overflow: hidden;
	background: var(--gg-bg);
}

.gg-card--tool {
	position: relative;
	flex-direction: row;
	align-items: flex-start;
	gap: var(--gg-s4);
	padding: var(--gg-s4);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gg-card--tool .gg-card__body {
	padding: 0;
}

.gg-card--tool .gg-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gg-card--tool:hover,
.gg-card--tool:focus-within {
	border-color: var(--gg-brand);
	box-shadow: 0 2px 0 var(--gg-brand);
}

.gg-card--tool p {
	margin: 0;
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-card__icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--gg-radius);
	background: var(--gg-tint);
	color: var(--gg-brand);
}

.gg-card__icon .gg-icon {
	width: 1.5rem;
	height: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.gg-card--tool {
		transition: none;
	}
}

/* Illustrated calculator cards and page headers (flat drawings, WebP). */
.gg-illus {
	display: block;
	width: 100%;
	height: auto;
	background: var(--gg-surface);
	border-radius: var(--gg-radius);
}

.gg-card--illus {
	flex-wrap: wrap;
}

.gg-card--illus .gg-illus--card {
	flex: 0 0 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin: calc(var(--gg-s4) * -1) calc(var(--gg-s4) * -1) 0;
	width: calc(100% + var(--gg-s4) * 2);
	max-width: none;
	border-radius: 0;
	transition: transform 0.35s ease;
}

.gg-card--illus:hover .gg-illus--card {
	transform: scale(1.03);
}

.gg-card--illus {
	overflow: hidden;
}

.gg-calc-head__units {
	margin-top: var(--gg-s4);
}

.gg-calc-head {
	align-items: center;
}

.gg-illus--head {
	display: none;
	width: 16rem;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

@media (min-width: 48rem) {
	.gg-illus--head {
		display: block;
		order: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg-card--illus .gg-illus--card {
		transition: none;
	}

	.gg-card--illus:hover .gg-illus--card {
		transform: none;
	}
}


.gg-card__media {
	aspect-ratio: 16 / 9;
	background: var(--gg-surface);
}

.gg-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gg-card__body {
	padding: var(--gg-s4);
}

.gg-card__title {
	font-size: var(--gg-step-1);
	margin: 0 0 var(--gg-s2);
}

.gg-card__title a {
	color: var(--gg-text);
	text-decoration: none;
}

.gg-card__title a:hover {
	color: var(--gg-brand);
	text-decoration: underline;
}

.gg-meta {
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-article__header {
	max-width: var(--gg-measure);
	margin-bottom: var(--gg-s5);
}

.gg-article__thumb {
	max-width: var(--gg-measure);
	aspect-ratio: 16 / 9;
	margin-bottom: var(--gg-s5);
	border-radius: var(--gg-radius);
	overflow: hidden;
	background: var(--gg-surface);
}

.gg-article__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gg-pagination {
	margin-top: var(--gg-s6);
}

.gg-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s2);
}

.gg-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 var(--gg-s3);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	text-decoration: none;
}

.gg-pagination .current {
	background: var(--gg-brand);
	border-color: var(--gg-brand);
	color: var(--gg-on-brand);
}

/* ---------- 6. Tables ---------- */
.gg-table-wrap {
	overflow-x: auto;
	margin-bottom: var(--gg-s4);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
}

.gg-table-wrap table {
	margin: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--gg-step--1);
}

caption {
	padding: var(--gg-s3);
	text-align: left;
	font-weight: 700;
	font-size: var(--gg-step-0);
}

th,
td {
	padding: var(--gg-s2) var(--gg-s3);
	text-align: left;
	border-top: 1px solid var(--gg-line);
	vertical-align: top;
}

thead th {
	background: var(--gg-surface);
	border-top: 0;
}

td.num,
th.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ---------- 7. Ad reservation slots (CLS-safe) ---------- */
.gg-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	margin: var(--gg-s5) 0;
	overflow: hidden;
	text-align: center;
}

.gg-ad::before {
	content: "Advertisement";
	display: block;
	margin-bottom: var(--gg-s1);
	color: var(--gg-muted);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gg-ad--rect {
	min-height: calc(250px + 1.25rem);
}

.gg-ad--tall {
	min-height: calc(600px + 1.25rem);
}

.gg-ad--wide {
	min-height: calc(280px + 1.25rem);
}

/* ---------- 8. Calculator ---------- */
.gg-calc-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--gg-s4);
	margin-bottom: var(--gg-s5);
}

.gg-calc-head h1 {
	margin: 0;
}

.gg-calc-head p {
	margin: var(--gg-s2) 0 0;
	max-width: var(--gg-measure);
	color: var(--gg-muted);
}

.gg-calc {
	display: grid;
	gap: var(--gg-s5);
	align-items: start;
}

@media (min-width: 60rem) {
	.gg-calc {
		grid-template-columns: minmax(0, 1fr) 21.25rem;
	}
}

.gg-panel {
	padding: var(--gg-s5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
}

.gg-panel > h2 {
	margin-top: 0;
	font-size: var(--gg-step-1);
}

.gg-fields {
	display: grid;
	gap: var(--gg-s4);
}

@media (min-width: 34rem) {
	.gg-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gg-field--full {
		grid-column: 1 / -1;
	}
}

.gg-field label,
.gg-field legend {
	display: block;
	margin-bottom: var(--gg-s1);
	padding: 0;
	font-weight: 600;
	font-size: var(--gg-step--1);
}

.gg-field fieldset,
fieldset.gg-field {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.gg-unit {
	color: var(--gg-muted);
	font-weight: 400;
}

.gg-input,
.gg-select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0 var(--gg-s3);
	border: 1px solid var(--gg-muted);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
	font-variant-numeric: tabular-nums;
}

.gg-hint {
	margin: var(--gg-s1) 0 0;
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-check {
	display: flex;
	align-items: center;
	gap: var(--gg-s2);
	min-height: 2.75rem;
	font-weight: 600;
	font-size: var(--gg-step--1);
}

.gg-check input {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--gg-brand);
}

.gg-field output {
	display: inline-block;
	min-width: 3ch;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.gg-range {
	width: 100%;
	min-height: 2.75rem;
	accent-color: var(--gg-brand);
}

/* Segmented control: unit switch, shape and mode pickers */
.gg-seg {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-seg button,
.gg-seg label {
	display: inline-grid;
	place-items: center;
	min-height: 2.5rem;
	margin: 0;
	padding: 0 var(--gg-s4);
	border: 0;
	border-radius: 6px;
	background: none;
	font-weight: 600;
	font-size: var(--gg-step--1);
	cursor: pointer;
}

.gg-seg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gg-seg button[aria-pressed="true"],
.gg-seg label:has(input:checked) {
	background: var(--gg-brand);
	color: var(--gg-on-brand);
}

.gg-seg label:has(input:focus-visible) {
	outline: 3px solid var(--gg-focus);
	outline-offset: 2px;
}

/* Results */
.gg-aside {
	display: grid;
	gap: var(--gg-s4);
}

@media (min-width: 60rem) and (min-height: 46rem) {
	.gg-aside {
		position: sticky;
		top: var(--gg-s4);
	}
}

.gg-aside .gg-ad {
	margin: 0;
}

.gg-results {
	background: var(--gg-surface);
}

.gg-headline {
	margin: 0 0 var(--gg-s4);
	padding-bottom: var(--gg-s4);
	border-bottom: 1px solid var(--gg-line);
}

.gg-headline__label {
	display: block;
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-headline__value {
	display: block;
	min-height: 1.2em;
	font-size: var(--gg-step-3);
	font-weight: 700;
	line-height: 1.2;
	color: var(--gg-brand);
	font-variant-numeric: tabular-nums;
}

/* Longer text results (can lists) use a smaller size so they stay on one line. */
.gg-headline__value--text {
	font-size: var(--gg-step-2);
	min-height: 1.5em;
	padding-block: 0.15em;
}

.gg-headline__sub {
	display: block;
	min-height: 1.6em;
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
	font-variant-numeric: tabular-nums;
}

.gg-out {
	margin: 0;
}

.gg-out div {
	display: flex;
	align-items: center;
	min-height: 2.875rem;
	justify-content: space-between;
	gap: var(--gg-s3);
	padding: var(--gg-s2) 0;
	border-top: 1px solid var(--gg-line);
}

.gg-out div:first-child {
	border-top: 0;
}

.gg-out dt {
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-out dd {
	margin: 0;
	min-width: 4ch;
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.gg-note {
	margin: var(--gg-s4) 0 0;
	padding: var(--gg-s3);
	border-left: 3px solid var(--gg-accent);
	background: var(--gg-bg);
	font-size: var(--gg-step--1);
}

/* Unit labels and the pressed unit button come from CSS, keyed on the
   data-units attribute that an inline head script sets before first paint. */
[data-units="imperial"] [data-unit="len"]::after { content: "ft"; }
[data-units="metric"] [data-unit="len"]::after { content: "m"; }
[data-units="imperial"] [data-unit="small"]::after { content: "in"; }
[data-units="metric"] [data-unit="small"]::after { content: "cm"; }
[data-units="imperial"] [data-unit="mm"]::after { content: "in"; }
[data-units="metric"] [data-unit="mm"]::after { content: "mm"; }
[data-units="imperial"] [data-unit="area"]::after { content: "sq ft"; }
[data-units="metric"] [data-unit="area"]::after { content: "m\B2"; }
[data-units="imperial"] [data-unit="cov"]::after { content: "sq ft per gallon"; }
[data-units="metric"] [data-unit="cov"]::after { content: "m\B2  per litre"; }

[data-units="imperial"] [data-units-set="imperial"],
[data-units="metric"] [data-units-set="metric"] {
	background: var(--gg-brand);
	color: var(--gg-on-brand);
}

/* Regional blocks: only one measurement system is visible */
[data-units="imperial"] [data-show="metric"],
[data-units="metric"] [data-show="imperial"] {
	display: none !important;
}

.gg-reference {
	margin-top: var(--gg-s6);
}

.gg-formula {
	padding: var(--gg-s3) var(--gg-s4);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
	font-family: var(--gg-font-num);
	font-size: var(--gg-step--1);
	overflow-x: auto;
}

.gg-faq details {
	border-top: 1px solid var(--gg-line);
}

.gg-faq details:last-child {
	border-bottom: 1px solid var(--gg-line);
}

.gg-faq summary {
	padding: var(--gg-s3) 0;
	font-weight: 600;
	cursor: pointer;
}

.gg-faq details p {
	margin-bottom: var(--gg-s3);
}

/* ---------- 8a. Home hero ---------- */
.gg-hero {
	display: grid;
	gap: var(--gg-s5);
	align-items: center;
}

@media (min-width: 60rem) {
	.gg-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: var(--gg-s6);
	}
}

.gg-hero__art .gg-art {
	border-radius: var(--gg-radius);
	width: 100%;
	max-height: 24rem;
	height: auto;
}

.gg-art__plant {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: gg-sway 4.5s ease-in-out infinite;
}

.gg-art__plant--2 {
	animation-delay: -1.5s;
}

.gg-art__plant--3 {
	animation-delay: -3s;
}

.gg-art__tape {
	transform-box: fill-box;
	transform-origin: 0 50%;
	animation: gg-tape 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.gg-art__sun {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: gg-sun 6s ease-in-out infinite;
}

@keyframes gg-sway {
	50% {
		transform: rotate(3deg);
	}
}

@keyframes gg-tape {
	from {
		transform: scaleX(0);
	}
}

@keyframes gg-sun {
	50% {
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg-art__plant,
	.gg-art__tape,
	.gg-art__sun {
		animation: none;
	}
}

.gg-hero {
	margin-bottom: var(--gg-s6);
	padding: var(--gg-s6) var(--gg-s5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-hero);
}

.gg-hero h1 {
	max-width: 22ch;
	margin-bottom: var(--gg-s3);
	letter-spacing: -0.02em;
}

.gg-hero__lead {
	max-width: 40rem;
	margin-bottom: var(--gg-s5);
	color: var(--gg-muted);
	font-size: var(--gg-step-1);
	line-height: 1.5;
}

.gg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s3);
	margin-bottom: var(--gg-s5);
}

a.gg-button.gg-button--ghost {
	background: transparent;
	color: var(--gg-brand);
	border: 2px solid var(--gg-brand);
}

a.gg-button.gg-button--ghost:hover {
	background: var(--gg-tint);
	color: var(--gg-brand-strong);
}

.gg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s2) var(--gg-s5);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--gg-step--1);
	font-weight: 600;
}

.gg-chips li {
	display: inline-flex;
	align-items: center;
	gap: var(--gg-s2);
}

.gg-chips li::before {
	content: "";
	width: 0.9rem;
	height: 0.9rem;
	background: var(--gg-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gg-group-title {
	margin: var(--gg-s5) 0 var(--gg-s3);
	font-size: var(--gg-step-0);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gg-muted);
}

/* Results panel gets a brand accent so the answer is the first thing seen. */
.gg-results {
	border-top: 3px solid var(--gg-brand);
}

/* ---------- 8c. Calculator polish: bigger controls, filled result panel, animation ---------- */
.gg-panel {
	box-shadow: none;
}

.gg-calc .gg-input,
.gg-calc .gg-select {
	min-height: 3rem;
	font-size: var(--gg-step-0);
	font-weight: 600;
	border-color: var(--gg-line);
	background: var(--gg-bg);
}

.gg-calc .gg-input:focus,
.gg-calc .gg-select:focus {
	border-color: var(--gg-brand);
	outline: 3px solid var(--gg-tint);
	outline-offset: 0;
}

/* Plus and minus buttons are added by calc-fx.js. Without it the field is a plain input. */
.gg-step {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.gg-step .gg-input {
	min-width: 0;
	border-radius: 0;
	text-align: center;
	border-inline-width: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.gg-step .gg-input::-webkit-outer-spin-button,
.gg-step .gg-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gg-step__btn {
	flex: 0 0 3rem;
	min-height: 3rem;
	border: 1px solid var(--gg-line);
	background: var(--gg-tint);
	color: var(--gg-brand-strong);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.gg-step__btn:first-child {
	border-radius: var(--gg-radius) 0 0 var(--gg-radius);
}

.gg-step__btn:last-child {
	border-radius: 0 var(--gg-radius) var(--gg-radius) 0;
}

.gg-step__btn:hover {
	background: var(--gg-brand);
	color: var(--gg-on-brand);
}

.gg-step__btn:active {
	transform: scale(0.94);
}

/* The result panel is a solid block of brand colour so the answer is seen first. */
.gg-calc .gg-results {
	background: var(--gg-brand);
	color: var(--gg-on-brand);
	border: 0;
	border-radius: var(--gg-radius);
}

.gg-calc .gg-results > h2 {
	color: inherit;
}

.gg-calc .gg-headline {
	border-bottom-color: color-mix(in srgb, var(--gg-on-brand) 28%, transparent);
}

.gg-calc .gg-headline__label,
.gg-calc .gg-headline__sub,
.gg-calc .gg-out dt {
	color: inherit;
	opacity: 0.86;
}

:root[data-theme="dark"] .gg-calc .gg-headline__label,
:root[data-theme="dark"] .gg-calc .gg-headline__sub,
:root[data-theme="dark"] .gg-calc .gg-out dt {
	opacity: 1;
}

.gg-calc .gg-headline__value {
	color: inherit;
	font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem);
	transform-origin: left center;
}

.gg-calc .gg-out div {
	border-top-color: color-mix(in srgb, var(--gg-on-brand) 22%, transparent);
}

.gg-calc .gg-note {
	background: color-mix(in srgb, var(--gg-on-brand) 14%, transparent);
	border-left-color: var(--gg-on-brand);
	color: inherit;
	text-transform: none;
}

/* A row of pictures for what to buy. */
.gg-pict-wrap {
	margin: 0 0 var(--gg-s4);
}

.gg-pict {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	min-height: 1.75rem;
}

.gg-pict__icon {
	width: 1.75rem;
	height: 1.75rem;
	fill: color-mix(in srgb, currentColor 22%, transparent);
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	animation: gg-pop 0.38s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.gg-pict__caption,
.gg-pict__more {
	display: inline;
	margin: var(--gg-s2) var(--gg-s2) 0 0;
	font-size: var(--gg-step--1);
	font-weight: 600;
}

.gg-pict__caption:empty,
.gg-pict__more:empty {
	display: none;
}

@keyframes gg-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.4);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.gg-headline.is-pulse .gg-headline__value {
	animation: gg-bump 0.4s ease;
}

@keyframes gg-bump {
	40% {
		transform: scale(1.05);
	}
}

/* Result bar on phones, shown while the real results are off screen. */
.gg-bar {
	position: fixed;
	inset: auto var(--gg-s3) calc(var(--gg-s3) + env(safe-area-inset-bottom, 0px)) var(--gg-s3);
	z-index: 40;
	display: none;
	align-items: center;
	gap: var(--gg-s3);
	min-height: 3.25rem;
	padding: 0 var(--gg-s4);
	border: 0;
	border-radius: var(--gg-radius);
	background: var(--gg-brand);
	color: var(--gg-on-brand);
	font: inherit;
	text-align: left;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transform: translateY(150%);
	transition: transform 0.28s ease;
}

.gg-bar.is-on {
	transform: none;
}

.gg-bar__label {
	font-size: var(--gg-step--1);
	opacity: 0.86;
}

.gg-bar__value {
	flex: 1;
	font-weight: 700;
	font-size: var(--gg-step-1);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 59.99rem) {
	.gg-bar {
		display: flex;
	}
}

@media print {
	.gg-bar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg-pict__icon,
	.gg-headline.is-pulse .gg-headline__value {
		animation: none;
	}

	.gg-bar {
		transition: none;
	}
}

/* ---------- 8b. Breadcrumbs, related links, call to action ---------- */
.gg-crumbs {
	margin-bottom: var(--gg-s4);
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s1) var(--gg-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.gg-crumbs li + li::before {
	content: "/";
	margin-right: var(--gg-s2);
	color: var(--gg-muted);
}

.gg-crumbs li {
	padding-block: var(--gg-s1);
}

.gg-related ul {
	display: grid;
	gap: var(--gg-s2);
	list-style: none;
	padding: 0;
}

.gg-related a {
	display: block;
	padding: var(--gg-s3) var(--gg-s4);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	font-weight: 600;
	text-decoration: none;
}

.gg-related a:hover {
	border-color: var(--gg-brand);
	text-decoration: underline;
}

.gg-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gg-s3) var(--gg-s5);
	margin: var(--gg-s5) 0;
	padding: var(--gg-s4) var(--gg-s5);
	border: 1px solid var(--gg-line);
	border-left: 3px solid var(--gg-brand);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-cta p {
	flex: 1 1 16rem;
	margin: 0;
}

.gg-button {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 var(--gg-s4);
	border-radius: var(--gg-radius);
	background: var(--gg-brand);
	color: var(--gg-on-brand);
	font-weight: 700;
	text-decoration: none;
}

.gg-button:hover {
	background: var(--gg-brand-strong);
	color: var(--gg-on-brand);
}

.gg-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--gg-s2) var(--gg-s4);
	margin-top: var(--gg-s6);
}

.gg-section-head h2 {
	margin-top: 0;
}

/* ---------- 8a. Newsletter box ---------- */
.gg-news {
	margin-block: var(--gg-s5);
	padding: var(--gg-s4);
	border: 1px solid var(--gg-line);
	border-left: 4px solid var(--gg-brand);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-news .gg-news__title {
	margin-top: 0;
	font-size: var(--gg-step-1);
}

.gg-news__slot {
	margin-block: var(--gg-s3);
}

.gg-news__slot iframe {
	min-height: 220px;
	border-radius: var(--gg-radius);
	background: #fff;
}

.gg-news .gg-news__note {
	margin-bottom: 0;
	font-size: var(--gg-step--1);
	color: var(--gg-muted);
}

/* ---------- 8b. Calculator embeds ---------- */
.gg-embed-box {
	margin-block: var(--gg-s5);
	padding: var(--gg-s3) var(--gg-s4);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-embed-box summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--gg-brand);
}

.gg-embed-code {
	width: 100%;
	box-sizing: border-box;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: var(--gg-step--1);
	padding: var(--gg-s2);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
	color: var(--gg-text);
	resize: vertical;
}

.gg-embed-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gg-s3);
}

.gg-embed-body {
	margin: 0;
	background: var(--gg-bg);
}

.gg-embed-main {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--gg-s3);
}

.gg-embed-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gg-s2);
	margin-bottom: var(--gg-s3);
}

.gg-embed-title {
	margin: 0;
	font-weight: 700;
	font-size: var(--gg-step-1, 1.15rem);
}

.gg-embed .gg-calc {
	margin-block: 0;
}

.gg-embed-credit {
	margin: var(--gg-s3) 0 0;
	font-size: var(--gg-step--1);
	color: var(--gg-muted);
	text-align: right;
}

/* ---------- 9. Footer ---------- */
.gg-footer {
	border-top: 1px solid var(--gg-line);
	background: var(--gg-surface);
	padding-block: var(--gg-s6);
	font-size: var(--gg-step--1);
}

.gg-footer__grid {
	display: grid;
	gap: var(--gg-s5);
}

@media (min-width: 48rem) {
	.gg-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
	}
}

.gg-footer__title {
	margin: 0 0 var(--gg-s2);
	font-size: var(--gg-step--1);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gg-muted);
}

.gg-footer .gg-footer__stack {
	flex-direction: column;
	gap: 0;
}

.gg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s2) var(--gg-s5);
}

.gg-footer a {
	display: inline-block;
	padding-block: var(--gg-s2);
}

.gg-footer .gg-social {
	gap: var(--gg-s2);
	margin-top: var(--gg-s3);
}

.gg-footer .gg-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	color: var(--gg-brand);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.gg-footer .gg-social__link:hover {
	background: var(--gg-brand);
	color: var(--gg-surface);
}

.gg-footer .gg-social__link:focus-visible {
	outline: 2px solid var(--gg-focus);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.gg-footer .gg-social__link {
		transition: none;
	}
}

.gg-footer__legal {
	margin-top: var(--gg-s5);
	padding-top: var(--gg-s4);
	border-top: 1px solid var(--gg-line);
	color: var(--gg-muted);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--gg-s3);
}

.gg-footer__legal p {
	margin: 0;
	max-width: var(--gg-measure);
}

/* ---------- 10. WordPress content helpers ---------- */
.alignwide,
.alignfull {
	max-width: 100%;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

@media print {
	.gg-header,
	.gg-footer,
	.gg-ad,
	.gg-nav-toggle {
		display: none !important;
	}
}


/* ---------- 11. Product profiles, guides and comparisons ---------- */
.gg-eyebrow {
	margin: 0 0 var(--gg-s1);
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gg-eyebrow a {
	color: inherit;
}

.gg-eyebrow:empty {
	display: none;
}

.gg-review__summary {
	max-width: var(--gg-measure);
	color: var(--gg-muted);
	font-size: var(--gg-step-1);
	line-height: 1.5;
}

.gg-section {
	margin-bottom: var(--gg-s6);
}

.gg-section > h2:first-child {
	margin-top: 0;
}

.gg-badge {
	display: inline-block;
	margin: 0 0 var(--gg-s3);
	padding: var(--gg-s1) var(--gg-s3);
	border: 1px solid var(--gg-brand);
	border-radius: var(--gg-radius);
	background: var(--gg-tint);
	color: var(--gg-brand-strong);
	font-size: var(--gg-step--1);
	font-weight: 700;
}

.gg-disclosure,
.gg-method,
.gg-banner {
	margin: 0 0 var(--gg-s4);
	padding: var(--gg-s3) var(--gg-s4);
	border-left: 3px solid var(--gg-muted);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
	font-size: var(--gg-step--1);
}

.gg-disclosure {
	border-left-color: var(--gg-accent);
}

.gg-banner {
	border-left-color: var(--gg-accent);
	background: var(--gg-tint);
}

.gg-disclosure p,
.gg-method p,
.gg-banner p {
	margin: 0;
}

.gg-cta-row {
	margin: var(--gg-s4) 0;
}

.gg-cta-row:empty {
	display: none;
}

/* The Amazon button is plainly labelled and never looks like a calculator or
   navigation control: dark outline style with an "Amazon" tag. */
a.gg-button.gg-button--amazon {
	flex-wrap: wrap;
	background: #ffd96b;
	color: #1b1b1b;
	border: 2px solid #1b1b1b;
}

a.gg-button.gg-button--amazon:hover {
	background: #ffcb2f;
	color: #1b1b1b;
}

.gg-card--product {
	height: 100%;
}

.gg-card--product .gg-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--gg-s2);
	flex: 1;
}

.gg-card--product .gg-card__title {
	margin: 0;
}

.gg-card--product p {
	margin: 0;
}

.gg-card__media--square {
	aspect-ratio: 1 / 1;
}

.gg-card__point {
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s2);
	margin-top: auto;
	padding-top: var(--gg-s3);
}

.gg-twocol {
	display: grid;
	gap: var(--gg-s5);
}

@media (min-width: 40rem) {
	.gg-twocol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gg-list-plain {
	margin: 0 0 var(--gg-s4);
	padding-left: 1.25rem;
}

.gg-list-plain--pro,
.gg-list-plain--con,
.gg-list-plain--check {
	list-style: none;
	padding-left: 0;
}

.gg-list-plain--pro li,
.gg-list-plain--con li,
.gg-list-plain--check li {
	position: relative;
	padding-left: 1.6rem;
}

.gg-list-plain--pro li::before,
.gg-list-plain--check li::before {
	content: "+";
	position: absolute;
	left: 0;
	color: var(--gg-brand);
	font-weight: 700;
}

.gg-list-plain--con li::before {
	content: "\2212";
	position: absolute;
	left: 0;
	color: var(--gg-accent);
	font-weight: 700;
}

.gg-conclusion {
	padding: var(--gg-s4) var(--gg-s5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-sources ol {
	padding-left: 1.25rem;
}

table.gg-compare {
	min-width: 36rem;
}

table.gg-compare thead th {
	vertical-align: bottom;
}

.gg-tools {
	margin-top: var(--gg-s6);
	padding-top: var(--gg-s5);
	border-top: 1px solid var(--gg-line);
}

.gg-hero .gg-eyebrow {
	color: var(--gg-brand);
}

@media (min-width: 48rem) {
	.gg-hero {
		padding: var(--gg-s7) var(--gg-s6);
	}

	.gg-hero h1 {
		max-width: 18ch;
		font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem);
	}
}


/* ---------- 12. Pinterest link and consent banner ---------- */
.gg-pin {
	margin: var(--gg-s3) 0 0;
}

a.gg-pin-button {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 var(--gg-s4);
	border: 2px solid var(--gg-line);
	border-radius: var(--gg-radius);
	color: var(--gg-text);
	font-weight: 600;
	text-decoration: none;
}

a.gg-pin-button:hover {
	border-color: var(--gg-brand);
	color: var(--gg-brand);
}

.gg-consent {
	position: fixed;
	right: var(--gg-s4);
	bottom: var(--gg-s4);
	left: var(--gg-s4);
	z-index: 50;
	max-width: 36rem;
	padding: var(--gg-s4);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
	font-size: var(--gg-step--1);
}

@media (min-width: 40rem) {
	.gg-consent {
		left: auto;
	}
}

.gg-consent p {
	margin: 0 0 var(--gg-s3);
}

.gg-consent__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s2);
}

/* ---------- 13. Editorial system (pillars, article, category, components) ---------- */

/* Header search */
.gg-search {
	display: flex;
	align-items: center;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
}

.gg-search:focus-within {
	border-color: var(--gg-brand);
	outline: 3px solid var(--gg-tint);
}

.gg-search__input {
	width: 10rem;
	min-height: 2.5rem;
	padding: 0 var(--gg-s3);
	border: 0;
	background: none;
	color: var(--gg-text);
	font: inherit;
	font-size: var(--gg-step--1);
}

.gg-search__input:focus {
	outline: none;
}

.gg-search__btn {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	background: none;
	color: var(--gg-text);
	cursor: pointer;
}

.gg-search--bar {
	display: none;
}

.gg-search--menu {
	margin: var(--gg-s3) 0;
}

.gg-search--menu .gg-search__input {
	flex: 1;
	width: auto;
}

@media (min-width: 75rem) {
	.gg-search--bar {
		display: flex;
	}

	.gg-search--menu {
		display: none;
	}
}

/* Hero with featured article */
.gg-hero--editorial h1 {
	max-width: 14ch;
	font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
	line-height: 1.05;
}

.gg-hero__feature {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
}

.gg-hero__feature-media img,
.gg-hero__feature-art .gg-art {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
}

.gg-hero__feature-body {
	padding: var(--gg-s4) var(--gg-s5) var(--gg-s5);
}

.gg-hero__feature-title {
	margin: 0 0 var(--gg-s2);
	font-size: var(--gg-step-2);
}

.gg-hero__feature-title a {
	color: var(--gg-text);
	text-decoration: none;
}

.gg-hero__feature-title a:hover {
	color: var(--gg-brand);
	text-decoration: underline;
}

.gg-hero__feature-body p {
	margin: 0;
	color: var(--gg-muted);
}

/* Pillar cards */
.gg-pillars {
	display: grid;
	gap: var(--gg-s4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.gg-pillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.gg-pillars {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gg-pillar {
	display: grid;
	align-content: start;
	gap: var(--gg-s2);
	height: 100%;
	padding: var(--gg-s5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
	color: var(--gg-text);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.gg-pillar:hover,
.gg-pillar:focus-visible {
	border-color: var(--gg-brand);
	transform: translateY(-2px);
}

.gg-pillar__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--gg-radius);
	background: var(--gg-brand);
	color: var(--gg-on-brand);
}

.gg-pillar__icon .gg-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.gg-pillar__name {
	font-size: var(--gg-step-1);
	font-weight: 700;
}

.gg-pillar__desc {
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

/* Article cards */
.gg-card__label {
	margin: 0 0 var(--gg-s1);
	color: var(--gg-brand);
	font-size: var(--gg-step--1);
	font-weight: 700;
}

.gg-card__meta {
	margin: var(--gg-s2) 0 0;
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-card__media .gg-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
}

.gg-list--feature .gg-list__feature {
	grid-column: 1 / -1;
}

@media (min-width: 48rem) {
	.gg-card--wide {
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: center;
	}

	.gg-card--wide .gg-card__title {
		font-size: var(--gg-step-2);
	}
}

/* Category landing */
.gg-cat-head {
	display: flex;
	gap: var(--gg-s4);
	align-items: flex-start;
	margin-bottom: var(--gg-s6);
	padding: var(--gg-s6) var(--gg-s5);
	border-radius: var(--gg-radius);
	background: var(--gg-hero);
}

.gg-cat-head h1 {
	margin: 0 0 var(--gg-s2);
}

.gg-cat-head__desc,
.gg-cat-head__desc p {
	max-width: var(--gg-measure);
	margin: 0;
	color: var(--gg-muted);
	font-size: var(--gg-step-1);
	line-height: 1.5;
}

.gg-cat-head__icon {
	display: none;
	flex: none;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--gg-radius);
	background: var(--gg-brand);
	color: var(--gg-on-brand);
}

.gg-cat-head__icon .gg-icon {
	width: 2rem;
	height: 2rem;
}

@media (min-width: 40rem) {
	.gg-cat-head__icon {
		display: grid;
	}
}

.gg-chiplinks {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-s2);
	margin: var(--gg-s4) 0 0;
	padding: 0;
	list-style: none;
}

.gg-chiplinks a {
	display: inline-block;
	padding: var(--gg-s1) var(--gg-s3);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
	font-weight: 600;
	font-size: var(--gg-step--1);
	text-decoration: none;
}

/* Article page */
.gg-pillar-label {
	margin: 0 0 var(--gg-s2);
	font-weight: 700;
	font-size: var(--gg-step--1);
}

.gg-pillar-label a {
	color: var(--gg-brand);
	text-decoration: none;
}

.gg-standfirst {
	max-width: var(--gg-measure);
	margin: 0 0 var(--gg-s3);
	color: var(--gg-muted);
	font-size: var(--gg-step-1);
	line-height: 1.5;
}

.gg-byline {
	margin: 0 0 var(--gg-s3);
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-toc {
	margin: var(--gg-s5) 0;
	padding: var(--gg-s4) var(--gg-s5);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-toc__title {
	margin: 0 0 var(--gg-s2);
	font-weight: 700;
}

.gg-toc ol {
	margin: 0;
	padding-left: 1.25rem;
}

.gg-toc li {
	margin: var(--gg-s1) 0;
}

.gg-editorial .gg-prose h2 {
	scroll-margin-top: var(--gg-s5);
}

.gg-authorbox {
	display: flex;
	gap: var(--gg-s4);
	align-items: flex-start;
	margin: var(--gg-s6) 0 var(--gg-s4);
	padding: var(--gg-s5);
	border-radius: var(--gg-radius);
	background: var(--gg-surface);
}

.gg-authorbox__mark .gg-logo {
	width: auto;
	height: 2.75rem;
}

.gg-authorbox__name {
	margin: 0;
	font-weight: 700;
}

.gg-authorbox__name a {
	color: inherit;
}

.gg-authorbox__role {
	margin: 0 0 var(--gg-s2);
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

.gg-authorbox p:last-child {
	margin: 0;
	color: var(--gg-muted);
	font-size: var(--gg-step--1);
}

/* Product components inside articles */
.gg-pbox {
	display: grid;
	gap: var(--gg-s4);
	margin: var(--gg-s5) 0;
	padding: var(--gg-s5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	background: var(--gg-bg);
}

@media (min-width: 40rem) {
	.gg-pbox {
		grid-template-columns: 12rem minmax(0, 1fr);
	}
}

.gg-pbox__img img {
	width: 100%;
	height: auto;
	border-radius: var(--gg-radius);
}

.gg-pbox__title,
.gg-pcard__title {
	margin: 0 0 var(--gg-s2);
	font-size: var(--gg-step-1);
	font-weight: 700;
}

.gg-pcard {
	margin: var(--gg-s4) 0;
	padding: var(--gg-s4);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
}

.gg-pcard__best {
	margin: 0 0 var(--gg-s3);
	color: var(--gg-muted);
}

.gg-proscons__title {
	margin: 0 0 var(--gg-s2);
	font-weight: 700;
}

/* Solar calculator appliance rows */
.gg-applrow {
	padding: var(--gg-s3) 0;
	border-top: 1px solid var(--gg-line);
}

.gg-applrow legend {
	font-weight: 700;
}

.gg-applrow__grid {
	display: grid;
	gap: var(--gg-s3);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gg-applrow__name {
	grid-column: 1 / -1;
}

@media (min-width: 60rem) {
	.gg-applrow__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
	}

	.gg-applrow__name {
		grid-column: auto;
	}
}

.gg-applrow label {
	display: block;
	margin-bottom: var(--gg-s1);
	font-size: var(--gg-step--1);
	font-weight: 600;
}

.gg-calc .gg-input--text {
	text-align: left;
}

@media (prefers-reduced-motion: reduce) {
	.gg-pillar {
		transition: none;
	}

	.gg-pillar:hover {
		transform: none;
	}
}
