/*
Theme Name: Galveston
Theme URI: https://galveston.se
Author: Johan Jonsson
Description: Typographic block theme for galveston.se. Label column grid, Manrope, case pages and a blog.
Version: 1.0.8
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: galveston
*/

/* Label column grid: 25% label, content from the fourth column */
.wp-block-columns.is-style-labeled {
	column-gap: 24px;
	row-gap: 8px;
}
.wp-block-columns.is-style-labeled > .wp-block-column:first-child {
	flex-basis: var(--wp--custom--label-column) !important;
	flex-grow: 0;
}
.wp-block-columns.is-style-labeled > .wp-block-column:not(:first-child) {
	flex-basis: 0 !important;
	flex-grow: 1;
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-labeled > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}
}

/* Small muted labels: "Intro", "About me", "IKEA" */
.is-style-label,
.gv-label,
.wp-block-post-date.is-style-label,
.wp-block-post-terms.is-style-label a {
	color: var(--wp--preset--color--subtle);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	margin-top: 0.4em;
}

/* Arrow links: "More about me →", "View case →" */
.is-style-arrow a,
.wp-block-read-more.gv-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
}
.is-style-arrow a::after,
.wp-block-read-more.gv-arrow::after {
	content: "\2192";
	transition: transform 0.3s ease;
}
.is-style-arrow a:hover::after,
.wp-block-read-more.gv-arrow:hover::after,
.gv-row:hover .wp-block-read-more.gv-arrow::after {
	transform: translateX(6px);
}

/* Header */
.gv-header .wp-block-site-logo img {
	height: 41px;
	width: auto;
}
.gv-header .alignwide > .wp-block-group:last-child {
	margin-left: auto;
}
.gv-header .wp-block-navigation a {
	text-decoration: none;
}
.gv-header .wp-block-navigation a:hover {
	text-decoration: underline;
}

/* List rows on the front page, Writing and archives */
.gv-list .wp-block-post-template {
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0;
}
.gv-list .wp-block-post-template > li {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0;
}
.gv-row {
	padding-top: 24px;
	padding-bottom: 24px;
	}
/* Keep the first column at exactly 25% so titles line up with section headings */
@media (min-width: 782px) {
	.gv-row > .wp-block-column:first-child {
		flex: 0 0 var(--wp--custom--label-column) !important;
	}
}
.gv-row .wp-block-post-title a {
	text-decoration: none;
}
.gv-row .gv-thumb img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Hero */
.gv-display {
	line-height: 0.87 !important;
	letter-spacing: -0.02em;
}

/* Quote band on case pages */
.gv-quote-band .wp-block-quote {
	text-align: center;
	margin: 0 auto;
}
.gv-quote-band .wp-block-quote cite {
	display: block;
	margin-top: 36px;
	padding-top: 176px;
	background: linear-gradient(var(--wp--preset--color--ink), var(--wp--preset--color--ink)) center top / 1px 176px no-repeat;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	font-style: normal;
	color: var(--wp--preset--color--ink);
}

/* Result list */
.gv-results {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--muted);
	padding-left: 1em;
}

/* Footer */
.gv-footer a {
	text-decoration: none;
}
.gv-footer a:hover {
	text-decoration: underline;
}
.gv-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Long text column inside the content area */
.gv-prose > * {
	max-width: 866px;
}

/* Motion: reveal on scroll where supported */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.is-style-reveal,
		.gv-list .wp-block-post-template > li {
			animation: gv-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
	}
	.gv-hero-title {
		animation: gv-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}
@keyframes gv-reveal {
	from { opacity: 0; transform: translateY(32px); }
	to { opacity: 1; transform: none; }
}
@keyframes gv-rise {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: none; }
}

/* Logo from the theme */
.gv-logo { margin: 0; }
.gv-logo img { display: block; border-radius: 0; }

/* About: what I do rows */
.gv-services > .gv-service {
	padding-top: 32px;
	padding-bottom: 32px;
	margin: 0;
}
.gv-services > .gv-service + .gv-service {
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Black pill button with arrow */
.gv-arrow-button .wp-block-button__link::after {
	content: " \2192";
}

/* Placeholder images (local and staging only) */
.gv-placeholder img,
.wp-block-image img[src*="placeholder.jpg"] {
	width: 100%;
	object-fit: cover;
}

/* Hand-made lists (Writing page) share the row look of query lists */
.gv-manual-list {
	border-top: 1px solid var(--wp--preset--color--line);
}
.gv-manual-list > .gv-row {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0;
}
.gv-manual-list h3 a {
	text-decoration: none;
}
.is-style-arrow.is-external a::after {
	content: "";
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-arrow.is-external a:hover::after {
	transform: none;
}

/* Footer reveal: the footer arrives in place, then stays pinned while the content
   scrolls away above it. The extra scroll room is the padding on the wrapper.
   Colours follow --gv-p (0 to 1), set by assets/js/footer.js. */
.wp-site-blocks > footer {
	--gv-p: 0;
	--gv-bg: clamp(0, (var(--gv-p) - 0.15) / 0.5, 1);
	--gv-fg: clamp(0, (var(--gv-p) - 0.5) / 0.4, 1);
	background: color-mix(in srgb, #000 calc(var(--gv-bg) * 100%), var(--wp--preset--color--base));
}
.wp-site-blocks > footer::before {
	content: "";
	display: block;
	height: 70vh;
}
.wp-site-blocks > footer > .gv-footer {
	position: sticky;
	bottom: 0;
	background: transparent;
	color: color-mix(in srgb, #fff calc(var(--gv-fg) * 100%), var(--wp--preset--color--ink));
}
.gv-footer a {
	color: inherit;
}
.gv-footer .is-style-label {
	color: color-mix(in srgb, #b5b5b5 calc(var(--gv-fg) * 100%), var(--wp--preset--color--subtle));
}
.gv-footer .wp-block-separator {
	background-color: color-mix(in srgb, #333 calc(var(--gv-bg) * 100%), var(--wp--preset--color--line)) !important;
	color: transparent;
}

/* Header: sticky, hides on scroll down and comes back on scroll up (assets/js/site.js) */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--wp--preset--color--base);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.wp-site-blocks > header.is-hidden {
	transform: translateY(-100%);
}
.wp-site-blocks > header.is-scrolled {
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
}
.gv-header {
	transition: padding 0.35s ease;
}
.wp-site-blocks > header.is-scrolled .gv-header {
	padding-top: 20px !important;
	padding-bottom: 20px !important;
}

/* Dark mode toggle: the sun turns down out of the button and the moon comes up */
.gv-theme {
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(102, 102, 102, 0.33);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	overflow: hidden;
	flex: none;
}
.gv-theme:hover {
	background: var(--wp--preset--color--surface);
}
.gv-theme:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}
.gv-theme svg {
	width: 27px;
	height: 27px;
	overflow: visible;
}
.gv-theme .gv-wheel {
	transform-box: view-box;
	transform-origin: 16px 42px;
	transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
	.gv-theme .gv-wheel,
	.wp-site-blocks > header {
		transition: none;
	}
}

/* Dark mode colours */
:root[data-theme="dark"] {
	--wp--preset--color--base: #000000;
	--wp--preset--color--ink: #ffffff;
	--wp--preset--color--muted: #a1a1a6;
	--wp--preset--color--subtle: #8e8e93;
	--wp--preset--color--line: #2c2c2e;
	--wp--preset--color--surface: #1c1c1e;
	color-scheme: dark;
}
:root[data-theme="dark"] .gv-logo img {
	filter: invert(1);
}
:root[data-theme="dark"] .gv-quote-band .wp-block-quote cite {
	background-image: linear-gradient(#fff, #fff);
}

/* Whole rows in the case and project lists are clickable */
.gv-list .gv-row:has(a) {
	cursor: pointer;
}

/* Project lists (Building page, start page, "Other things I built") */
.gv-list .gv-row:has(.gv-thumb) {
	display: grid;
	grid-template-columns: var(--wp--custom--label-column) minmax(0, 644px) minmax(160px, 1fr);
	align-items: start;
	column-gap: 24px;
}
.gv-list .gv-row:has(.gv-thumb) > .wp-block-column {
	flex-basis: auto !important;
	width: auto;
	min-width: 0;
}
.gv-list .gv-row:has(.gv-thumb) > .wp-block-column:last-child {
	justify-self: end;
	width: 199px;
	max-width: 100%;
}
.gv-list .gv-row:has(.gv-thumb) .wp-block-post-excerpt {
	margin-bottom: 0;
}
.gv-projects .wp-block-post-template {
	border-top-color: rgba(102, 102, 102, 0.33);
}
.gv-projects .wp-block-post-template > li {
	border-bottom-color: rgba(102, 102, 102, 0.33);
}
.gv-roomy .gv-row {
	padding-top: 40px;
	padding-bottom: 40px;
}
@media (max-width: 781px) {
	.gv-list .gv-row:has(.gv-thumb) {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 12px;
	}
	.gv-list .gv-row:has(.gv-thumb) .gv-thumb {
		max-width: 240px;
	}
}

/* Building intro under the page title */
.gv-intro,
.gv-intro .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--ink);
	line-height: 1.3;
	max-width: 973px;
}

/* Multi-line field values (Built with, Tech stack) */
.gv-lines {
	white-space: pre-line;
}

/* "Visit page" button with an open-in-new icon */
.gv-visit .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.gv-visit .wp-block-button__link::after {
	content: "";
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Vertical rhythm from the Figma start page */
:root {
	--gv-space-56: clamp(32px, 3.9vw, 56px);
	--gv-space-64: clamp(40px, 4.45vw, 64px);
	--gv-space-80: clamp(48px, 5.55vw, 80px);
	--gv-space-96: clamp(56px, 6.67vw, 96px);
	--gv-space-176: clamp(96px, 12.2vw, 176px);
}
.gv-section-header {
	padding-bottom: var(--gv-space-64);
	margin-bottom: 0;
}
.gv-label-pad {
	padding: 8px 0;
	margin-top: 0;
}
.gv-section-header + .wp-block-query {
	margin-top: 0;
}
/* 96px above section headers (Selected work, Building), as in Figma */
/* Generous air between front page sections, as in Profoliox */
.gv-section-header,
.gv-list + .gv-section-header,
.gv-hero + .wp-block-columns {
	margin-top: var(--gv-space-176) !important;
}
main > .gv-list:last-child,
main > .wp-block-group > .gv-list:last-child {
	margin-bottom: var(--gv-space-80);
}
.gv-cases .wp-block-post-template,
.gv-cases .wp-block-post-template > li {
	border-color: rgba(102, 102, 102, 0.33);
}
.gv-cases .wp-block-post-template > li:last-child,
.gv-projects .wp-block-post-template > li:last-child {
	border-bottom: 0;
}

/* Intro row: text starts 161px in, as in the design */
.gv-intro-row > .wp-block-column:first-child {
	flex: 0 0 137px !important;
}
.gv-intro-row > .wp-block-column:last-child {
	flex: 0 1 866px !important;
}
.gv-intro-row .is-style-label {
	margin-top: 4px;
}

/* Hero skills row: What I do, Based in, Listening to right now */
.gv-skill {
	width: 199px;
}
.gv-skill > * + * {
	margin-top: 8px;
}
.gv-listening {
	width: auto;
	min-width: 199px;
	max-width: 431px;
}

/* Now playing (now-playing-lastfm plugin) in the hero.
   The plugin's own label (now / last played, set in its settings) is the eyebrow,
   so it changes with the playing state. The static eyebrow is hidden when the plugin renders. */
.gv-listening:has(.nplfm) > .is-style-label {
	display: none;
}
.gv-listening:has(.nplfm) > * + * {
	margin-top: 0;
}
.gv-listening .nplfm {
	--gv-np-label: 25px;
	--gv-np-line: 22px;
	display: block;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--base);
}
.gv-listening .nplfm-cover {
	display: none;
}
.gv-listening .nplfm-text {
	display: block;
	position: relative;
	padding-left: 16px;
}
.gv-listening .nplfm-label {
	display: block;
	margin-left: -16px;
	margin-bottom: 8px;
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--gv-np-label);
	font-weight: 500;
	color: var(--wp--preset--color--subtle);
}
.gv-listening .nplfm-dot {
	position: absolute;
	left: 0;
	top: calc(var(--gv-np-label) + 8px + (var(--gv-np-line) - 8px) / 2);
	width: 8px;
	height: 8px;
}
/* Track and artist on one row: "Track, Artist" */
.gv-listening .nplfm-track,
.gv-listening .nplfm-artist {
	display: inline;
	line-height: var(--gv-np-line);
	font-weight: 500;
	opacity: 1;
}
.gv-listening .nplfm-artist:not(:empty)::before {
	content: ", ";
}
.gv-listening .nplfm:hover .nplfm-track {
	text-decoration: underline;
}
@media (max-width: 781px) {
	.gv-listening .nplfm {
		--gv-np-label: 22px;
		--gv-np-line: 20px;
	}
}

/* Hero proportions: image column 421px wide on desktop */
@media (min-width: 782px) {
	.gv-hero > .gv-hero-text {
		flex: 1 1 0 !important;
		min-width: 0;
	}
	.gv-hero > .gv-hero-image {
		flex: 0 0 min(421px, 32%) !important;
	}
}
.gv-logo a,
.gv-logo img {
	display: block;
	line-height: 0;
}

/* Footer menus */
.gv-footer-nav {
	font-weight: 400;
	line-height: 1.6;
}
.gv-footer-nav a {
	text-decoration: none;
}
.gv-footer-nav a:hover {
	text-decoration: underline;
}

/* Writing page */
.gv-page-intro,
.gv-page-intro .wp-block-post-excerpt__excerpt {
	line-height: 1.3;
}
.gv-post {
	margin-top: 0;
	margin-bottom: 0;
	padding: 40px 0 56px;
	border-top: 1px solid #ccc;
}
.gv-post + .gv-post,
.gv-posts + .gv-post,
.gv-post + .gv-posts {
	margin-top: 0 !important;
}
/* No line above the very first post on the page */
.wp-block-post-content > .gv-post:first-child,
.wp-block-post-content > .gv-posts:first-child > .gv-post:first-child {
	border-top: 0;
	padding-top: 0;
}
.gv-post .wp-block-image {
	margin: 0;
}
.gv-post .wp-block-image img {
	width: 100%;
	height: auto;
}
.gv-post-text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
}
.gv-post-body > * + * {
	margin-top: 30px;
}
.gv-post-body h2 {
	line-height: 1.3;
}
.gv-post-body h2 a {
	text-decoration: none;
}
.gv-post-body h2 a:hover {
	text-decoration: underline;
}
.is-style-source-linkedin,
.is-style-source-medium {
	font-weight: 600;
	margin: 0;
}
.is-style-source-linkedin {
	color: #006bbf;
}
:root[data-theme="dark"] .is-style-source-linkedin {
	color: #4da3ff;
}

/* Table sections on About: What I do, Certificates and licenses */
.gv-table {
	border-top: 1px solid rgba(204, 204, 204, 0.33);
	padding-top: 0;
}
.gv-table > .wp-block-column:last-child > * {
	margin: 0;
	border-bottom: 1px solid rgba(102, 102, 102, 0.33);
}
.gv-skill-row {
	padding: 32px 0;
}
.gv-skill-row > .wp-block-column:first-child {
	flex: 0 0 420px !important;
	max-width: 100%;
}
.gv-skill-row > .wp-block-column:last-child {
	flex: 0 1 523px !important;
}
.gv-cert-row {
	padding: 32px 0 24px;
}
.gv-page-header .gv-hero-title {
	max-width: 977px;
}

/* Mobile refinements */
@media (max-width: 781px) {
	/* List rows: everything left-aligned when stacked */
	.gv-row > .wp-block-column {
		justify-content: flex-start !important;
	}
	.gv-list .gv-row:has(.gv-thumb) > .wp-block-column:last-child {
		justify-self: start;
	}
	/* Case facts two by two */
	.wp-block-post-title + .wp-block-post-excerpt + .wp-block-columns:not(.is-not-stacked-on-mobile) {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	/* Spacing in the case fact row */
	.wp-block-post-title + .wp-block-post-excerpt + .wp-block-columns > .wp-block-column {
		flex-basis: auto !important;
	}
}

/* Mobile menu overlay: large type, left-aligned, same side margins as the page */
.gv-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 40px clamp(20px, 4.5vw, 64px);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}
.gv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
	align-items: flex-start;
}
.gv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 16px;
}
.gv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}
.gv-header .wp-block-navigation__responsive-container-close {
	top: 8px;
	right: 0;
}

/* ---------- Mobile, round two ---------- */
@media (max-width: 781px) {
	/* Smaller type on phones so pages get shorter */
	body {
		--wp--preset--font-size--base: 16px;
		--wp--preset--font-size--small: 14px;
		--wp--preset--font-size--lead: 18px;
		--wp--preset--font-size--heading: 22px;
		--wp--preset--font-size--large: 24px;
		--wp--preset--font-size--xl: 36px;
		--wp--preset--font-size--display: 48px;
	}
	.gv-listening .nplfm {
		font-size: var(--wp--preset--font-size--base);
	}

	/* Smaller logo */
	.gv-logo img {
		width: 132px !important;
		height: auto !important;
	}

	/* List rows: link after the image */
	.gv-list .gv-row:has(.gv-thumb) > .wp-block-column:nth-child(2) {
		display: contents;
	}
	.gv-list .gv-row:has(.gv-thumb) .wp-block-read-more {
		order: 2;
		margin-top: 4px !important;
	}
	.gv-list .gv-row:has(.gv-thumb) > .wp-block-column:last-child {
		order: 1;
	}
	.gv-list .gv-row:has(.gv-thumb) .wp-block-post-title,
	.gv-list .gv-row:has(.gv-thumb) .wp-block-post-excerpt {
		margin: 0;
	}

	/* Writing: source label close to the title */
	.gv-post-text {
		justify-content: flex-start;
		gap: 8px;
	}
	.gv-post-text > *,
	.gv-post-body > h2 {
		margin-top: 0 !important;
	}
	.gv-post-body > * + * {
		margin-top: 16px;
	}
	.gv-post {
		padding: 32px 0 40px;
	}

	/* Project facts: three equal columns */
	.wp-block-post-excerpt + .wp-block-columns.is-not-stacked-on-mobile {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
	.wp-block-post-excerpt + .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
		flex-basis: auto !important;
		min-width: 0;
	}
}

/* Footer on phones: tight gap between column headings and their content */
@media (max-width: 781px) {
	.gv-footer .wp-block-column > .is-style-label + * {
		margin-top: 8px !important;
	}
}

/* Phones: project thumbnails use the full content width */
@media (max-width: 781px) {
	.gv-list .gv-row:has(.gv-thumb) > .wp-block-column:last-child {
		width: 100%;
		justify-self: stretch;
	}
	.gv-list .gv-row:has(.gv-thumb) .gv-thumb {
		max-width: none;
		width: 100%;
	}
}

/* Phones: hero skills use the full width instead of 199px columns */
@media (max-width: 781px) {
	.gv-skills > .gv-skill {
		width: 100%;
		max-width: none;
	}
}

/* Phones: project facts sized to their content, and a shorter way down to the footer */
@media (max-width: 781px) {
	.wp-block-post-excerpt + .wp-block-columns.is-not-stacked-on-mobile {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 16px 32px;
	}
	.wp-block-post-excerpt + .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
		flex: 0 0 auto !important;
		width: auto;
	}

	main.wp-block-group {
		padding-bottom: 0 !important;
	}
	main.wp-block-group > :last-child,
	main.wp-block-group > .wp-block-post-content > :last-child,
	main.wp-block-group > .wp-block-group:last-child > :last-child {
		margin-bottom: 0 !important;
	}
	.wp-block-post-content > .gv-post:last-child,
	.wp-block-post-content > .gv-posts:last-child > .gv-post:last-child {
		padding-bottom: 0;
	}
	.gv-footer {
		padding-top: 32px !important;
	}
}

/* Menu items only shown in the mobile menu (add the CSS class gv-mobile-only to a menu link) */
@media (min-width: 600px) {
	.gv-header .wp-block-navigation .gv-mobile-only {
		display: none !important;
	}
}
.gv-header .wp-block-navigation__responsive-container:not(.is-menu-open) .gv-mobile-only {
	display: none !important;
}

/* Phones: menu button furthest to the right, after the light/dark toggle */
@media (max-width: 599px) {
	.gv-header .gv-theme {
		order: -1;
	}
}

/* About: section labels (What I do, Certificates) stay in view while their rows scroll */
@media (min-width: 782px) {
	.gv-table > .wp-block-column:first-child {
		align-self: stretch;
	}
	.gv-table > .wp-block-column:first-child > .is-style-label {
		position: sticky;
		top: 24px;
		transition: top 0.35s ease;
	}
	body:has(.wp-site-blocks > header.is-scrolled:not(.is-hidden)) .gv-table > .wp-block-column:first-child > .is-style-label {
		top: 96px;
	}
}

/* Hide the "Listening to right now" column when the plugin has nothing to show */
.gv-listening:not(:has(.nplfm)) {
	display: none;
}

/* Space between consecutive paragraphs, one blank line as in the Figma case page */
:is(.is-layout-flow, .is-layout-constrained) > p:not(.is-style-label) + p {
	margin-block-start: max(28px, 1.4em);
}

/* Space before a new heading after body text, so each section reads as its own block */
:is(.is-layout-flow, .is-layout-constrained) > :is(p, ul, ol) + :is(h2, h3, h4) {
	margin-block-start: var(--gv-space-64);
}

/* List titles semibold, also for lists already saved in page content */
.gv-list .wp-block-post-title {
	font-weight: 600 !important;
}
