/* CokeGas front-end chrome for GeneratePress, Awwwards edition on white: marquee, header, filter tray, listing, post detail, footer. Front end only. */

/* GeneratePress paints from these variables; point them at the palette. */
:root {
	--contrast: var(--cg-ink);
	--contrast-2: var(--cg-ink-2);
	--contrast-3: var(--cg-mute);
	--base: var(--cg-line);
	--base-2: var(--cg-soft);
	--base-3: var(--cg-bg);
	--accent: var(--cg-ink);
}

/* ── Base ───────────────────────────────────────────────────── */

body {
	background: var(--cg-bg);
	color: var(--cg-ink);
	font-family: var(--cg-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
	color: inherit;
}

button,
input,
select,
textarea {
	font-family: var(--cg-font);
}

:focus-visible {
	outline: 2px solid var(--cg-ink);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cg-font);
	font-weight: 600;
	color: var(--cg-ink);
	text-wrap: balance;
}

/* No weight, so prose headings (system.css, which loads first) keep their own tracking. */
:where(h1, h2, h3, h4, h5, h6) {
	letter-spacing: -0.025em;
}

.grid-container {
	max-width: none;
}

.separate-containers :is(.inside-article, .site-main, .page-header, .paging-navigation) {
	margin: 0;
	padding: 0;
	background: none;
}

.site-content {
	padding: 0 var(--cg-pad) clamp(64px, 8vw, 112px);
}

.cg-menu-open {
	overflow: hidden;
}

/* ── Marquee ────────────────────────────────────────────────── */

.cg-marquee {
	position: relative;
	overflow: hidden;
	background: var(--cg-soft);
}

.cg-marquee__track {
	display: flex;
	width: max-content;
	animation: cg-marquee 60s linear infinite;
}

.cg-marquee:is(:hover, :focus-within, .is-paused) .cg-marquee__track {
	animation-play-state: paused;
}

.cg-marquee__run,
.cg-marquee__copy {
	display: flex;
}

/* Pause / play, pinned to the right edge over the moving text. */
.cg-marquee__toggle {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: 48px;
	padding: 0;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--cg-soft) 30%);
	color: var(--cg-ink);
	cursor: pointer;
}

.cg-marquee__toggle:is(:hover, :focus) {
	background: var(--cg-tray);
	color: var(--cg-ink);
}

.cg-marquee__toggle .cg-icon {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.cg-marquee__toggle .cg-icon--play,
.cg-marquee.is-paused .cg-icon--pause {
	display: none;
}

.cg-marquee.is-paused .cg-icon--play {
	display: block;
	fill: currentColor;
	stroke: none;
}

html:not(.cg-js) .cg-marquee__toggle {
	display: none;
}

/* Reduced motion: a still strip, each announcement once. */
@media (prefers-reduced-motion: reduce) {
	.cg-marquee__track {
		width: auto;
		animation: none;
	}

	.cg-marquee__run {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		column-gap: 24px;
		padding-inline: var(--cg-pad);
	}

	.cg-marquee__run[aria-hidden],
	.cg-marquee__copy,
	.cg-marquee__toggle {
		display: none;
	}

	.cg-marquee__item {
		padding-block: 6px;
		white-space: normal;
	}
}

.cg-marquee__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 24px 10px 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 28px;
	white-space: nowrap;
	text-decoration: none;
	color: var(--cg-ink);
}

.cg-marquee__item strong {
	font-weight: 600;
}

.cg-marquee__item .cg-icon {
	width: 20px;
	height: 20px;
	stroke-width: 1.3;
}

@keyframes cg-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ── Header ─────────────────────────────────────────────────── */

.cg-header {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 54px;
	margin: 8px var(--cg-pad) 0;
	background: var(--cg-bg);
}

.cg-logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 44px;
	margin: 0 28px 0 10px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	text-decoration: none;
	color: var(--cg-ink);
}

.cg-logo span {
	color: var(--cg-ink);
}

.cg-nav {
	display: flex;
	flex: none;
	align-items: center;
	gap: 20px;
}

.cg-nav__list {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-nav__list li {
	margin: 0;
}

.cg-nav__list a {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 54px;
	white-space: nowrap;
	text-decoration: none;
	color: var(--cg-ink);
}

.cg-nav__list a:hover,
.cg-nav__list a[aria-current] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* The one call to action in the header: the calculator, as a yellow button in its place in the menu. */
.cg-nav__list .cg-nav__cta {
	align-self: center;
	height: var(--cg-control);
	padding: 0 18px;
	border-radius: var(--cg-radius);
	background: var(--cg-yellow);
	line-height: var(--cg-control);
	font-weight: 600;
	text-decoration: none;
}

.cg-nav__list .cg-nav__cta:hover {
	background: var(--cg-yellow-hover);
	text-decoration: none;
}

.cg-nav__list .cg-nav__cta[aria-current] {
	text-decoration: none;
	box-shadow: inset 0 0 0 2px var(--cg-ink);
}

/* Search: a labelled button in the header opens a search bar under it. */
.cg-search-toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	height: var(--cg-control);
	margin-left: auto;
	padding: 0 16px;
	border: 0;
	border-radius: var(--cg-radius);
	background: var(--cg-tray);
	font-size: 15px;
	font-weight: 500;
	color: var(--cg-ink);
	cursor: pointer;
}

.cg-search-toggle:is(:hover, :focus),
.cg-search-toggle[aria-expanded="true"] {
	background: #e2e2e2;
	color: var(--cg-ink);
}

.cg-searchbar {
	position: relative;
	z-index: 95;
	margin: 8px var(--cg-pad) 0;
	padding: 16px;
	border-radius: var(--cg-radius-lg);
	background: var(--cg-soft);
}

.cg-searchbar[hidden] {
	display: none;
}

/* Without JS the toggle can't open it, so the bar just shows. */
html:not(.cg-js) .cg-searchbar[hidden] {
	display: block;
}

html:not(.cg-js) .cg-search-toggle {
	display: none;
}

.cg-searchform {
	display: grid;
	gap: 8px;
	max-width: 760px;
	margin: 0 auto;
}

.cg-searchform__label {
	font-size: 14px;
	font-weight: 600;
}

.cg-searchform__row {
	display: flex;
	gap: 8px;
}

.cg-searchform .cg-search {
	background: var(--cg-bg);
	box-shadow: inset 0 0 0 1px #c9c9c9;
}

.cg-searchform .cg-btn {
	flex: none;
}

.cg-badge {
	display: inline-block;
	margin-left: 4px;
	padding: 0 4px;
	border-radius: 4px;
	background: var(--cg-dark);
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0;
	color: #fff;
}

.cg-search {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	min-width: 160px;
	height: var(--cg-control);
	padding: 0 16px;
	border-radius: var(--cg-radius);
	background: var(--cg-tray);
	color: var(--cg-ink);
}

.cg-search:focus-within {
	outline: 2px solid var(--cg-ink);
	outline-offset: 1px;
}

.cg-search input[type="search"] {
	flex: 1;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 14px;
	color: var(--cg-ink);
	box-shadow: none;
	outline: none;
}

.cg-search input::placeholder {
	color: var(--cg-ink);
	opacity: 0.8;
}

/* Menu button: an icon and the word "Menu" (or "Close" while open), so it's obvious on any phone. */
.cg-header .cg-burger {
	display: none;
	align-items: center;
	gap: 10px;
	height: var(--cg-control);
	margin: 0 0 0 auto;
	padding: 0 14px;
	border: 0;
	border-radius: var(--cg-radius);
	background: var(--cg-tray);
	font-size: 15px;
	font-weight: 600;
	color: var(--cg-ink);
	cursor: pointer;
}

.cg-header .cg-burger:is(:hover, :focus) {
	background: #e2e2e2;
	color: var(--cg-ink);
}

.cg-burger__icon {
	position: relative;
	display: block;
	width: 18px;
	height: 8px;
}

.cg-burger i {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.3s;
}

.cg-burger i:first-child { top: 0; }
.cg-burger i:last-child { bottom: 0; }
.cg-menu-open .cg-burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
.cg-menu-open .cg-burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Dropdowns (Explore and the filter chips) are <details>, so they work without JS. */
.cg-filter {
	position: relative;
}

.cg-filter > summary {
	list-style: none;
	cursor: pointer;
}

.cg-filter > summary::-webkit-details-marker {
	display: none;
}

.cg-filter[open] > summary .cg-icon {
	transform: rotate(180deg);
}

.cg-drop {
	position: absolute;
	z-index: 120;
	top: calc(100% + 6px);
	left: 0;
	min-width: 240px;
	max-height: 340px;
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	border-radius: var(--cg-radius);
	background: #fff;
	list-style: none;
	box-shadow: 0 12px 40px rgb(0 0 0 / 0.14), 0 0 0 1px rgb(0 0 0 / 0.04);
}

.cg-drop li {
	margin: 0;
}

.cg-drop__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	color: var(--cg-ink);
}

/* Radio circle, filled for the active option. */
.cg-drop__opt::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border: 1px solid #9a9a9a;
	border-radius: 50%;
}

.cg-drop__opt.is-active::before {
	border: 4px solid var(--cg-ink);
}

.cg-drop__opt span {
	margin-left: auto;
	font-weight: 400;
	color: var(--cg-mute);
}

.cg-drop__opt:hover {
	background: var(--cg-soft);
}

/* Full-screen white menu below 1024px. */
.cg-mobile {
	position: fixed;
	z-index: 90;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px var(--cg-pad) 32px;
	overflow-y: auto;
	background: var(--cg-bg);
}

.cg-mobile[hidden] {
	display: none;
}

.cg-mobile__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-mobile__list li {
	margin: 0;
	border-bottom: 1px solid var(--cg-line);
}

.cg-mobile__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-decoration: none;
	color: var(--cg-ink);
}

.cg-mobile__list a::after {
	content: "\2192";
	margin-left: auto;
	font-size: 20px;
	font-weight: 400;
}

.cg-mobile__list a[aria-current] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.cg-mobile .cg-searchform {
	width: 100%;
	margin: 0;
}

.cg-mobile .cg-search {
	flex: 1;
	min-width: 0;
}

/* Between the full menu and the phone layout, the nav tightens before anything wraps. */
@media (max-width: 1199px) {
	.cg-logo {
		margin-right: 8px;
	}

	.cg-nav__list {
		gap: 14px;
	}
}

@media (max-width: 1023px) {
	.cg-header {
		position: sticky;
		top: 0;
		margin: 0;
		padding: 8px var(--cg-pad);
		height: 58px;
		box-sizing: content-box;
	}

	.admin-bar .cg-header {
		top: 46px;
	}

	.cg-js .cg-nav,
	.cg-search-toggle,
	.cg-searchbar {
		display: none;
	}

	.cg-js .cg-header .cg-burger {
		display: inline-flex;
	}

	.cg-logo {
		margin-left: 0;
	}

	/* Without JS there's no menu button: the links wrap under the logo instead. */
	html:not(.cg-js) .cg-header {
		flex-wrap: wrap;
		height: auto;
	}

	html:not(.cg-js) .cg-nav__list {
		flex-wrap: wrap;
		gap: 4px 16px;
	}

	html:not(.cg-js) .cg-nav__list a {
		line-height: 40px;
	}

	/* The sticky header must never hide what Tab or an anchor link brings into view (WCAG 2.4.11). */
	html {
		scroll-padding-top: 90px;
	}
}

@media (min-width: 1024px) {
	.cg-mobile {
		display: none;
	}
}

/* Bottom bars (the article toolbar, the calculator's result bar) mustn't cover focused fields either. */
html:has(.single, .cg-wide) {
	scroll-padding-bottom: 104px;
}

/* ── Listing: blog, archives, search (Awwwards "Nominees") ──── */

.cg-filters {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin: 10px 0 40px;
	padding: 6px;
	border-radius: var(--cg-radius);
	background: var(--cg-tray);
}

.cg-filters__list,
.cg-filters__end {
	display: flex;
	gap: 6px;
}

.cg-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: var(--cg-control);
	padding: 0 24px;
	border-radius: var(--cg-radius);
	background: var(--cg-bg);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	color: var(--cg-ink);
	transition: background-color 0.2s;
}

.cg-chip:hover,
.cg-filter[open] > .cg-chip {
	background: #f8f8f8;
}

/* Active-filter count: an orange dot on a white chip. */
.cg-filters__count {
	display: grid;
	place-items: center;
	width: var(--cg-control);
	height: var(--cg-control);
	border-radius: var(--cg-radius);
	background: radial-gradient(circle, var(--cg-orange) 0 9px, transparent 9.5px), var(--cg-bg);
	font-size: 11px;
	font-weight: 600;
	color: var(--cg-ink);
}

.cg-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-bottom: 56px;
}

.cg-crumb .cg-crumb__title {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.cg-crumb__desc {
	margin: 0 0 0 auto;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
}

.cg-crumb__desc strong {
	font-weight: 600;
}

.cg-crumb__desc a {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.cg-density {
	display: flex;
	gap: 6px;
}

.cg-density__btn {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--cg-ink);
	cursor: pointer;
	opacity: 0.45;
}

.cg-density__btn:is(:hover, :focus) {
	background: transparent;
	color: var(--cg-ink);
}

.cg-density__btn[aria-pressed="true"] {
	opacity: 1;
}

.cg-density .cg-icon {
	width: 20px;
	height: 20px;
	stroke-width: 1.3;
}

.cg-density .cg-icon path {
	stroke-width: 2.6;
}

/* No JS, no toggle. */
html:not(.cg-js) .cg-density {
	display: none;
}

.paging-navigation {
	margin-top: 64px;
}

.paging-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.paging-navigation .nav-links > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--cg-control);
	height: var(--cg-control);
	padding: 0 14px;
	border: 1px solid var(--cg-line);
	border-radius: var(--cg-radius);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--cg-ink);
}

.paging-navigation .nav-links > a:hover {
	border-color: var(--cg-ink);
}

.paging-navigation .nav-links > .current {
	border-color: var(--cg-dark);
	background: var(--cg-dark);
	color: #fff;
}

.paging-navigation .gp-icon {
	display: none;
}

/* No results. */
:is(.search, .archive) .no-results {
	padding: 48px 0;
}

@media (max-width: 1023px) {
	.cg-filters {
		margin-top: 0;
	}

	/* The chips scroll sideways; dropdowns open as a bottom sheet so the scroller can't clip them. */
	.cg-filters__list {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.cg-drop {
		position: fixed;
		z-index: 130;
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		max-height: 60vh;
		padding: 12px;
		box-shadow: 0 -8px 40px rgb(0 0 0 / 0.2);
	}

	.cg-drop__opt {
		padding: 12px 10px;
		font-size: 15px;
	}

	.cg-chip {
		padding: 0 16px;
	}
}

@media (max-width: 767px) {
	.cg-crumb {
		margin-bottom: 32px;
	}

	.cg-crumb__desc {
		display: none;
	}

	.cg-density {
		margin-left: auto;
	}
}

/* One column either way, so the density toggle has nothing to do. */
@media (max-width: 639px) {
	.cg-density {
		display: none;
	}
}

/* ── Home ───────────────────────────────────────────────────── */

.home.page .entry-header {
	display: none;
}

.home.page .entry-content {
	margin: 0;
}

/* ── Post and page detail ───────────────────────────────────── */

.cg-detail {
	margin: 0 0 clamp(28px, 4vw, 40px);
	text-align: center;
}

.cg-detail p {
	margin: 0;
}

/* Breadcrumbs: Home › Section › Article, the trail Google shows from the BreadcrumbList. */
.cg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cg-ink-2);
}

.cg-breadcrumbs li {
	margin: 0;
}

.cg-breadcrumbs li + li::before {
	content: "/";
	margin: 0 10px;
	color: var(--cg-mute);
}

.cg-breadcrumbs a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	color: var(--cg-ink);
}

/* The current page is already the H1 right below; on phones the trail stops at its section. */
@media (max-width: 767px) {
	.cg-breadcrumbs li:last-child:nth-child(n + 3) {
		display: none;
	}
}

.cg-detail .cg-detail__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 18px;
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cg-ink-2);
}

.cg-detail__meta a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	color: var(--cg-ink);
}

.cg-detail__meta .cg-icon-btn {
	width: 36px;
	height: 36px;
}

.cg-detail .cg-detail__score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	margin-top: 16px;
	font-size: 13px;
	color: var(--cg-mute);
}

.cg-detail__score a {
	padding: 6px 12px;
	border: 1px solid var(--cg-ink);
	border-radius: var(--cg-radius);
	font-size: 14px;
	text-decoration: none;
	color: var(--cg-ink);
}

/* Table of contents, before the first section of longer articles. */
.cg-toc {
	margin: 32px 0 40px;
	padding: 20px 24px;
	border-radius: var(--cg-radius-lg);
	background: var(--cg-soft);
}

.cg-toc .cg-toc__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.cg-toc ol {
	margin: 0;
	padding-left: 1.25em;
	font-size: 15px;
	line-height: 1.45;
}

.cg-toc li {
	margin: 0;
	padding: 3px 0;
}

.cg-toc a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	color: var(--cg-ink);
}

/* Scrollable table frames are focusable (tabindex="0"); show it. */
.entry-content .wp-block-table:focus-visible {
	outline: 2px solid var(--cg-ink);
	outline-offset: 2px;
}

.cg-icon-btn,
.cg-detail .cg-icon-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--cg-radius);
	background: transparent;
	color: var(--cg-ink);
	cursor: pointer;
}

.cg-icon-btn:is(:hover, :focus) {
	background: var(--cg-soft);
	color: var(--cg-ink);
}

.cg-icon-btn .cg-icon {
	width: 24px;
	height: 24px;
	stroke-width: 1.4;
}

.cg-icon-btn.is-copied::after {
	content: "Link copied";
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--cg-dark);
	font-size: 12px;
	white-space: nowrap;
	color: #fff;
}

.cg-detail .cg-detail__title {
	max-width: 20ch;
	margin: 16px auto 0;
	font-size: clamp(2rem, 1rem + 3vw, 4.25rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.cg-detail .cg-detail__disclosure {
	max-width: 52ch;
	margin: 16px auto 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cg-mute);
}

.cg-detail .cg-detail__disclosure a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.cg-detail__figure {
	margin-top: clamp(40px, 5vw, 64px);
	padding: 4.3%;
	border-radius: var(--cg-radius-lg);
	background: var(--cg-dark);
}

.cg-detail__figure .cg-cover {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
}

.cg-detail--page {
	padding-top: clamp(8px, 2vw, 24px);
}

/* Posts and pages read in one centered column. */
:is(.single, .page:not(.home)) .site-content {
	display: block;
	max-width: calc(var(--cg-measure) + 2 * var(--cg-pad));
	margin-inline: auto;
	padding-top: clamp(20px, 3vw, 32px);
}

/* The floating toolbar sits over the bottom of the screen; keep the footer clear of it. */
.single {
	padding-bottom: 96px;
}

body > .cg-float {
	position: fixed;
	z-index: 80;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
}

/* ── FIRE calculator ────────────────────────────────────────── */

/* Calculator pages run wider than the reading measure; prose stays centered at 720px. */
.cg-wide.page:not(.home) .site-content {
	max-width: calc(1240px + 2 * var(--cg-pad));
}

.cg-wide .entry-content > :not(.cg-calc) {
	margin-inline: auto;
	max-width: var(--cg-measure);
}

.cg-detail .cg-detail__lede {
	max-width: 36rem;
	margin: 20px auto 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--cg-ink-2);
}

.cg-calc {
	display: grid;
	grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	margin: 0 0 64px;
}

.cg-calc__form {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 18px;
	padding: 24px;
	border-radius: var(--cg-radius-lg);
	background: var(--cg-soft);
}

.cg-calc .cg-calc__heading {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
}

.cg-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 12px;
}

.cg-field label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}

.cg-field label small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--cg-mute);
}

.cg-field__input {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 9.5rem;
	height: var(--cg-control);
	padding: 0 12px;
	border-radius: var(--cg-radius);
	background: var(--cg-bg);
	font-size: 14px;
	color: var(--cg-mute);
}

.cg-field__input:focus-within {
	outline: 2px solid var(--cg-ink);
	outline-offset: 1px;
}

.cg-field__input--suffix {
	flex-direction: row-reverse;
}

.cg-field .cg-field__input input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	text-align: right;
	color: var(--cg-ink);
	outline: none;
	box-shadow: none;
	-moz-appearance: textfield;
}

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

/* Thin Awwwards-style slider: a 2px track filled up to the thumb (--p is set by calculator.js). */
.cg-field__range {
	grid-column: 1 / -1;
	width: 100%;
	height: 22px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.cg-field__range::-webkit-slider-runnable-track {
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(var(--cg-ink), var(--cg-ink)) 0 0 / var(--p, 50%) 100% no-repeat, #d4d4d4;
}

.cg-field__range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -8px;
	border: 3px solid var(--cg-bg);
	border-radius: 50%;
	background: var(--cg-ink);
	box-shadow: 0 0 0 1px var(--cg-ink);
	-webkit-appearance: none;
}

.cg-field__range::-moz-range-track {
	height: 2px;
	background: #d4d4d4;
}

.cg-field__range::-moz-range-progress {
	height: 2px;
	background: var(--cg-ink);
}

.cg-field__range::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 3px solid var(--cg-bg);
	border-radius: 50%;
	background: var(--cg-ink);
	box-shadow: 0 0 0 1px var(--cg-ink);
}

.cg-calc__submit {
	justify-self: start;
}

.cg-js .cg-calc__submit {
	display: none;
}

.cg-calc__frame {
	padding: 4.3%;
	border-radius: var(--cg-radius-lg);
	background: var(--cg-dark);
}

.cg-calc__frame .cg-shot {
	box-shadow: none;
}

.cg-calc__kpis {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cg-calc .cg-kpi__value {
	font-size: clamp(22px, 1rem + 1vw, 32px);
	white-space: nowrap;
}

.cg-calc__chart {
	aspect-ratio: 2 / 1;
}

.cg-calc__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0 22px 18px;
	font-size: 12px;
	color: var(--cg-mute);
}

.cg-calc__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cg-calc__legend span::before {
	content: "";
	width: 16px;
	height: 0;
	border-top: 2px solid var(--cg-ink);
}

.cg-calc__legend .is-paid::before { border-top-style: dotted; border-top-color: var(--cg-mute); }
.cg-calc__legend .is-target::before { border-top-style: dashed; border-top-color: var(--cg-mute); }

.cg-calc .cg-calc__summary {
	margin: 24px 0 0;
	font-size: clamp(18px, 1rem + 0.5vw, 24px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.cg-calc__summary mark {
	padding: 0 0.2em;
	border-radius: 4px;
	background: var(--cg-yellow);
	color: inherit;
}

.cg-calc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.cg-calc__bar {
	display: none;
}

.cg-calc-table tr.is-you {
	background: #fff8bf;
}

.cg-calc-table tr.is-you td {
	font-weight: 600;
}

@media (max-width: 1023px) {
	.cg-calc {
		grid-template-columns: minmax(0, 1fr);
	}

	.cg-calc__form {
		position: static;
	}

	.cg-calc__kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cg-calc__kpis .cg-kpi:nth-child(3) {
		border-left: 0;
	}

	.cg-calc__kpis .cg-kpi:nth-child(n + 3) {
		border-top: 1px solid var(--cg-line);
	}

	/* While the reader edits the form, the headline result rides along at the bottom of the screen. */
	.cg-calc .cg-calc__bar {
		position: sticky;
		z-index: 20;
		bottom: 8px;
		display: flex;
		justify-content: space-between;
		gap: 12px;
		margin: 0;
		padding: 14px 16px;
		border-radius: 12px;
		background: var(--cg-dark);
		font-size: 14px;
		color: #dedede;
		box-shadow: 0 12px 32px rgb(0 0 0 / 0.22);
	}

	.cg-calc__bar b {
		font-weight: 600;
		color: var(--cg-yellow);
	}
}

@media (max-width: 479px) {
	.cg-calc__form {
		padding: 18px;
	}

	.cg-field__input {
		width: 8.5rem;
	}

	.cg-calc__frame {
		padding: 10px;
	}

	.cg-calc .cg-kpi {
		padding: 12px 14px;
	}

	.cg-calc__legend {
		padding: 0 14px 14px;
	}
}

.single footer.entry-meta {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--cg-line);
	font-size: 14px;
	color: var(--cg-mute);
}

.single footer.entry-meta .gp-icon {
	display: none;
}

.single footer.entry-meta a {
	display: inline-block;
	padding-block: 4px;
}

.single .post-navigation {
	display: none;
}

/* Comments: aligned to the text column, same controls as the rest of the site. */
.separate-containers .comments-area {
	margin: 56px 0 0;
	padding: 0;
	background: none;
}

.comments-area :is(.comments-title, .comment-reply-title) {
	margin: 0 0 16px;
	font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.comments-area .comment-reply-title small a {
	margin-left: 8px;
	font-size: 14px;
	font-weight: 500;
}

.comments-area :is(.comment-notes, .logged-in-as, .comment-form label) {
	font-size: 14px;
	color: var(--cg-mute);
}

.comments-area .comment-form :is(textarea, input:not([type="submit"], [type="checkbox"])) {
	width: 100%;
}

.comments-area .comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comments-area .comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--cg-line);
	font-size: 16px;
}

.comments-area .comment-meta {
	font-size: 13px;
	color: var(--cg-mute);
}

.comments-area .comment-author .avatar {
	border-radius: 50%;
}

/* "More research" cards under a post, full width. */
.cg-more {
	margin: 0 var(--cg-pad) clamp(64px, 8vw, 112px);
}

.cg-more .cg-head__title {
	font-size: clamp(24px, 1rem + 1.2vw, 32px);
}

@media (max-width: 767px) {
	body > .cg-float {
		right: 8px;
		bottom: 8px;
		left: 8px;
		width: auto;
		max-width: none;
		transform: none;
	}

	body > .cg-float .cg-float__logo {
		width: 48px;
		height: 48px;
	}

	body > .cg-float .cg-float__nav {
		flex: 1;
	}

	body > .cg-float .cg-float__cta {
		height: 48px;
		margin-left: auto;
	}

	/* Narrow phones: logo, Verdict, Contents and the call to action fit without scrolling. */
	body > .cg-float .cg-float__nav li:nth-child(n + 3) {
		display: none;
	}

	body > .cg-float .cg-float__cta {
		padding: 0 12px;
	}

	.cg-detail__figure {
		padding: 10px;
	}
}

/* ── 404 ────────────────────────────────────────────────────── */

.error404 .site-content {
	max-width: calc(var(--cg-measure) + 2 * var(--cg-pad));
	margin-inline: auto;
	padding-top: clamp(64px, 10vw, 140px);
	text-align: center;
}

.error404 .cg-404__code {
	margin: 0 auto 28px;
}

/* The 404 actions sit together after the title rather than pushed to the far edge. */
.error404 .cg-more .cg-head > :last-child:not(:first-child) {
	margin-left: 0;
}

.error404 .cg-more .cg-head__title {
	margin-right: auto;
}

.error404 .entry-title {
	font-size: clamp(2.25rem, 1rem + 3.6vw, 5rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

.error404 .search-form {
	display: flex;
	gap: 6px;
	max-width: 480px;
	margin: 32px auto 0;
}

.error404 .search-form label {
	flex: 1;
}

.error404 .search-form .search-field {
	width: 100%;
}

/* ── Forms ──────────────────────────────────────────────────── */

input:is([type="text"], [type="email"], [type="url"], [type="password"], [type="tel"], [type="number"]),
.entry-content input[type="search"],
.search-form input[type="search"],
textarea,
select {
	height: var(--cg-control);
	padding: 0 14px;
	border: 0;
	border-radius: var(--cg-radius);
	background: var(--cg-tray);
	font-size: 14px;
	color: var(--cg-ink);
}

textarea {
	height: auto;
	padding: 12px 14px;
}

input:is([type="text"], [type="email"], [type="url"], [type="password"], [type="tel"], [type="number"]):focus,
.entry-content input[type="search"]:focus,
.search-form input[type="search"]:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--cg-ink);
	outline-offset: 1px;
	background: var(--cg-tray);
	color: var(--cg-ink);
}

button:not([class*="cg-"]),
input:is([type="submit"], [type="button"], [type="reset"]),
a.button {
	height: var(--cg-control);
	padding: 0 20px;
	border: 0;
	border-radius: var(--cg-radius);
	background: var(--cg-dark);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
}

button:not([class*="cg-"]):is(:hover, :focus-visible),
input:is([type="submit"], [type="button"], [type="reset"]):is(:hover, :focus-visible),
a.button:is(:hover, :focus-visible) {
	background: #000;
	color: #fff;
}

/* Sponsorship request form ([cokegas_ad_form] on /advertise/). */
.cg-form {
	display: grid;
	gap: 16px;
	margin-block: 32px;
	padding: clamp(20px, 3vw, 32px);
	border-radius: var(--cg-radius-lg);
	background: var(--cg-soft);
	font-size: 15px;
	line-height: 1.5;
}

.cg-form p {
	margin: 0;
}

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

.cg-form__field {
	display: grid;
	gap: 6px;
}

.cg-form__field label {
	font-size: 13px;
	font-weight: 600;
}

.cg-form__field label span {
	font-weight: 400;
	color: var(--cg-mute);
}

.cg-form :is(input:not([type="checkbox"]), select, textarea) {
	width: 100%;
	background: var(--cg-bg);
}

.cg-form__check label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 24px;
	cursor: pointer;
}

.cg-form__check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--cg-ink);
}

.cg-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.cg-form__submit span {
	flex: 1 1 16rem;
	font-size: 12px;
	color: var(--cg-mute);
}

.cg-form__submit span a {
	color: inherit;
	text-decoration: underline;
}

.cg-form__notice {
	padding: 12px 16px;
	border-radius: var(--cg-radius);
	font-weight: 500;
}

.cg-form__notice.is-ok {
	background: var(--cg-yellow);
}

.cg-form__notice.is-error {
	background: #fde2e1;
	color: #8a1c17;
}

/* The honeypot: invisible to people, irresistible to bots. */
.cg-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cg-sponsored {
	display: inline-flex;
	align-items: center;
	padding: 0 8px;
	border-radius: 4px;
	background: var(--cg-yellow);
	font-size: 12px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
	background: var(--cg-bg);
	color: var(--cg-ink);
}

.cg-footer {
	margin: 0 var(--cg-pad);
	padding: 64px 0 32px;
	border-top: 1px solid var(--cg-line);
}

.cg-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.cg-footer__brand p {
	max-width: 26rem;
	margin: 16px 0 24px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--cg-ink-2);
}

.cg-footer__brand .cg-logo {
	margin: 0;
	font-size: 28px;
}

.cg-footer__col h2 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--cg-mute);
}

.cg-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-footer__list li {
	margin: 0;
}

.cg-footer__list a {
	display: inline-block;
	padding: 4px 0;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	color: var(--cg-ink);
}

.cg-footer__list a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.cg-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 64px;
	padding-top: 20px;
	border-top: 1px solid var(--cg-line);
	font-size: 13px;
	color: var(--cg-mute);
}

.cg-footer__bottom p {
	margin: 0;
}

.cg-footer__bottom a {
	color: var(--cg-ink);
}

/* Awwwards' black back-to-top square; site.js shows it after one screen. */
.cg-totop {
	position: fixed;
	z-index: 70;
	bottom: 16px;
	left: 16px;
	display: grid;
	place-items: center;
	width: var(--cg-control);
	height: var(--cg-control);
	border-radius: var(--cg-radius);
	background: var(--cg-dark);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.cg-totop.is-visible {
	opacity: 1;
	visibility: visible;
}

.cg-totop:hover {
	background: #000;
	color: #fff;
}

@media (max-width: 1023px) {
	.cg-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cg-footer__brand {
		grid-column: 1 / -1;
	}

	/* The post toolbar owns the bottom of small screens. */
	.single .cg-totop {
		display: none;
	}
}

/* Phones scroll to top natively (tap the status bar); the square would only cover content. */
@media (max-width: 767px) {
	.cg-totop {
		display: none;
	}
}

/* ── Phones ─────────────────────────────────────────────────── */

@media (max-width: 1023px) {
	/* iOS Safari zooms the page into any field under 16px; !important because each component sets its own size. */
	input:not([type="range"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"]),
	select,
	textarea {
		font-size: 16px !important;
	}

	.cg-card__title sup {
		font-size: 11px;
	}
}

/* ── Motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*,
	::before,
	::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ── Calculator messages ────────────────────────────────────── */

.cg-field .cg-field__msg {
	grid-column: 1 / -1;
	margin: 0;
	padding: 8px 10px;
	border-left: 3px solid #b3261e;
	border-radius: 0 6px 6px 0;
	background: #fdecea;
	font-size: 13px;
	line-height: 1.4;
	color: #7a1712;
}

.cg-field .cg-field__msg--warn {
	border-left-color: #8a6100;
	background: #fff6d6;
	color: #5c4100;
}

.cg-field__msg[hidden] {
	display: none;
}

.cg-field__input:has(input[aria-invalid="true"]) {
	box-shadow: inset 0 0 0 2px #b3261e;
}

.cg-calc .cg-calc__note {
	max-width: 46rem;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cg-mute);
}

.cg-calc__note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ── Search: helpful pages and no results ───────────────────── */

/* Matching pages (Start Here, the calculator, About…) after the article results: a plain list, no card furniture. */
.cg-helpful {
	max-width: 880px;
	margin-top: clamp(48px, 6vw, 72px);
}

.cg-helpful .cg-helpful__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 1rem + 0.8vw, 28px);
	line-height: 1.2;
}

.cg-helpful__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-helpful__list li {
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--cg-line);
}

.cg-helpful__list a {
	font-size: 18px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	color: var(--cg-ink);
}

.cg-helpful__list p {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cg-ink-2);
}

.cg-noresults {
	display: grid;
	gap: 24px;
	max-width: 760px;
}

.cg-noresults .cg-noresults__lede {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--cg-ink-2);
}

.cg-noresults__lede a {
	color: var(--cg-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.cg-noresults .cg-searchform {
	max-width: none;
	margin: 0;
}

.cg-noresults__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-noresults__links li {
	margin: 0;
}

.cg-noresults .cg-helpful {
	margin-top: 16px;
}
