/*
 * Gizmojack: tokens, typography and component styles (homepage version 3).
 *
 * Layout (columns, widths, spacing between rows) is set in the block editor,
 * mostly with Kadence Row Layout. This file styles what sits inside it.
 * Apply the gj-* classes through each block's "Additional CSS class(es)" field.
 * The class reference is in README.md.
 */

/* --------------------------------------------------------------------------
   Tokens
   Colours 1–9 follow the Kadence global palette, so changing the palette in
   the Customizer flows through. The rest have no palette slot.
   -------------------------------------------------------------------------- */

:root {
	--gj-blue: var(--global-palette1, #2b44e6);
	--gj-blue-dark: var(--global-palette2, #1a2fb8);
	--gj-ink: var(--global-palette3, #0e1d24);
	--gj-text-strong: var(--global-palette4, #1d2c33);
	--gj-text: var(--global-palette5, #3b4b52);
	--gj-muted: var(--global-palette6, #4a5a61);
	--gj-line: var(--global-palette7, #dde2de);
	--gj-ground: var(--global-palette8, #f5f6f2);
	--gj-white: var(--global-palette9, #ffffff);

	--gj-mint: #5fd4b0;
	--gj-ink-2: #15292f;
	--gj-ink-line: #2a3f46;
	--gj-on-ink: #c3d0d4;
	--gj-on-ink-muted: #a9bac0;

	--gj-font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
	--gj-font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gj-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gj-radius: 14px;
	--gj-radius-panel: 12px;
	--gj-radius-button: 6px;
	--gj-section-y: clamp(64px, 8vw, 96px);

	/* Point Kadence's own font variables at the site fonts. */
	--global-body-font-family: var(--gj-font-body);
	--global-heading-font-family: var(--gj-font-display);
}

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */

body {
	font-family: var(--gj-font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--gj-text);
}

h1,
h2,
h3,
h4 {
	font-family: var(--gj-font-display);
	font-weight: 700;
	color: var(--gj-ink);
}

h5,
h6 {
	font-family: var(--gj-font-body);
	font-weight: 600;
	color: var(--gj-ink);
}

h1 {
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

h3 {
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.15;
}

h4 {
	font-size: 22px;
	line-height: 1.2;
}

a {
	color: var(--gj-blue);
}

a:hover,
a:focus {
	color: var(--gj-blue-dark);
}

/* Kadence puts a bottom margin on every Group (".single-content .wp-block-group"),
   which beats WordPress's zero margin for items in a flex Row and pushes
   neighbours out of line (e.g. the "All posts →" link next to a heading). */
.wp-block-group.is-layout-flex > .wp-block-group {
	margin-top: 0;
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Small text styles
   -------------------------------------------------------------------------- */

/* Section label: "SERVICES", "HOW I WORK" */
.gj-eyebrow {
	font-family: var(--gj-font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gj-muted);
	margin-bottom: 12px;
}

/* Label in mint, used in the hero */
.gj-eyebrow--accent {
	color: var(--gj-mint);
}

/* Dates and small metadata */
.gj-meta,
.gj-meta a {
	font-family: var(--gj-font-mono);
	font-size: 12px;
	color: var(--gj-muted);
	text-decoration: none;
}

/* Larger intro paragraph under a heading */
.gj-lead {
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.6;
	color: var(--gj-text);
	max-width: 640px;
}

/* Two intro paragraphs in a row sit closer together */
.gj-lead:has(+ .gj-lead) {
	margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Dark surfaces (hero, footer, featured card)
   Put gj-dark on the Row Layout or group; everything inside turns light.
   -------------------------------------------------------------------------- */

.gj-dark {
	background-color: var(--gj-ink);
	color: var(--gj-on-ink);
}

/* Kadence Row Layout paints its own (transparent) background with a rule that
   prints after this file, so a single class loses. Two classes win. */
.wp-block-kadence-rowlayout.gj-dark {
	--kb-row-bg: var(--gj-ink);
	background-color: var(--gj-ink);
}

.gj-dark h1,
.gj-dark h2,
.gj-dark h3,
.gj-dark h4,
.gj-dark h5,
.gj-dark h6 {
	color: #fff;
}

.gj-dark p {
	color: var(--gj-on-ink);
}

/* :where() keeps this rule weak, so accent links inside a dark area
   (gj-accent-link, "Read the post", gj-text-link) can override the white. */
.gj-dark a:where(:not(.wp-block-button__link):not(.kb-button)) {
	color: #fff;
}

.gj-dark .gj-eyebrow,
.gj-dark .gj-meta,
.gj-dark .gj-meta a {
	color: var(--gj-on-ink-muted);
}

.gj-dark .gj-eyebrow--accent {
	color: var(--gj-mint);
}

/* --------------------------------------------------------------------------
   Header: site title and tagline next to the logo
   The Site Title block is a paragraph, so it doesn't get the heading font on
   its own. Colour and size are set in the block; the rest is here.
   -------------------------------------------------------------------------- */

.wp-block-kadence-header .kb-identity .wp-block-site-logo {
	margin-right: 12px !important;
}

.wp-block-kadence-header .kb-identity .wp-block-site-title {
	margin: 0;
	font-family: var(--gj-font-display);
	line-height: 1.1;
	/* The block carries an inline letter-spacing, so this needs !important.
	   Clearing the Letter spacing field on the block makes this line unnecessary. */
	letter-spacing: normal !important;
}

.wp-block-kadence-header .kb-identity .wp-block-site-tagline {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--gj-muted);
}

/* --------------------------------------------------------------------------
   Sticky header
   The header stays at the top of the screen while the page scrolls. Done in
   CSS on the header itself, so nothing needs to be set in the header editor.
   The scroll padding keeps anchor links (#included, #what) from landing under it.
   -------------------------------------------------------------------------- */

.wp-block-kadence-header {
	position: sticky;
	top: 0;
	z-index: 999;
	/* A line under the header, so it never melts into a section of the same colour */
	border-bottom: 1px solid var(--gj-line);
	transition: box-shadow 0.2s;
}

/* Once the page has scrolled, a soft shadow as well (class set by assets/js/header.js) */
.wp-block-kadence-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(14, 29, 36, 0.1);
}

.admin-bar .wp-block-kadence-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

html {
	scroll-padding-top: 96px;
}

/* --------------------------------------------------------------------------
   Scroll to top
   Kadence's own button (turned on in functions.php): a dark rounded square with
   a white arrow, blue on hover, in the bottom right corner.
   -------------------------------------------------------------------------- */

#kt-scroll-up.kadence-scroll-to-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--gj-ink);
	color: var(--gj-white);
	box-shadow: 0 8px 24px rgba(14, 29, 36, 0.25);
	transition: background-color 0.15s;
}

#kt-scroll-up.kadence-scroll-to-top:hover,
#kt-scroll-up.kadence-scroll-to-top:focus-visible {
	background: var(--gj-blue);
	color: var(--gj-white);
}

#kt-scroll-up.kadence-scroll-to-top:focus-visible {
	outline: 2px solid var(--gj-mint);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header menu: current page
   Colours, size and hover are set in the Kadence Navigation block. The block
   has no underline option, so the current page's mint underline is here.
   Anchor links (/#about) are left out so nothing is marked on the homepage.
   Blog posts, category pages and search results don't mark the Blog item as
   current, so it is matched by the Blog page URL (/blog/) there. A parent item
   (Services) is marked while one of its pages is open.
   -------------------------------------------------------------------------- */

.wp-block-kadence-header .wp-block-kadence-navigation-link.current-menu-item > .kb-link-wrap > .kb-nav-link-content:not([href*="#"]),
.wp-block-kadence-header .wp-block-kadence-navigation-link.current-menu-ancestor > .kb-link-wrap > .kb-nav-link-content,
.single-post .wp-block-kadence-header .wp-block-kadence-navigation-link > .kb-link-wrap > .kb-nav-link-content[href$="/blog/"],
.category .wp-block-kadence-header .wp-block-kadence-navigation-link > .kb-link-wrap > .kb-nav-link-content[href$="/blog/"],
.search .wp-block-kadence-header .wp-block-kadence-navigation-link > .kb-link-wrap > .kb-nav-link-content[href$="/blog/"] {
	font-weight: 600;
	color: var(--gj-ink);
	text-decoration: underline;
	text-decoration-color: var(--gj-mint);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}

/* --------------------------------------------------------------------------
   Header menu: Contact me and LinkedIn
   Two extra items in the Navigation menu for the tablet and phone menu. On
   desktop the header already has a Contact me button, so both are hidden
   there. On tablet and phone, Contact me is a button like the desktop one and
   LinkedIn is an icon. They are found by their link (/contact-me/ and
   linkedin.com), so no class is needed on the menu items.
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	.wp-block-kadence-header .menu-container .menu > .wp-block-kadence-navigation-link:has(> .kb-link-wrap > a[href$="/contact-me/"]),
	.wp-block-kadence-header .menu-container .menu > .wp-block-kadence-navigation-link:has(> .kb-link-wrap > a[href*="linkedin.com"]) {
		display: none;
	}
}

/* The long selector is needed: the Navigation block makes every item 100% wide
   in a vertical menu (tablet and phone), and these two should only be as wide
   as their content. */
.wp-block-kadence-header .menu-container .menu > .wp-block-kadence-navigation-link:has(> .kb-link-wrap > a[href$="/contact-me/"]),
.wp-block-kadence-header .menu-container .menu > .wp-block-kadence-navigation-link:has(> .kb-link-wrap > a[href*="linkedin.com"]) {
	align-self: flex-start;
	width: fit-content;
	margin-top: 16px;
	/* in line with the text of the other items, which have 12px of padding */
	margin-left: 12px;
}

.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href$="/contact-me/"] {
	display: inline-flex;
	padding: 12px 18px;
	border-radius: var(--gj-radius-button);
	background: var(--gj-ink);
	color: var(--gj-white);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.15s;
}

.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href$="/contact-me/"]:hover,
.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href$="/contact-me/"]:focus-visible {
	background: var(--gj-blue);
	color: var(--gj-white);
}

/* The LinkedIn word stays in the page for screen readers; the icon is drawn over it. */
.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href*="linkedin.com"] {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--gj-line);
	border-radius: 8px;
	color: var(--gj-ink);
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}

.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href*="linkedin.com"]::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	background: currentColor;
	transform: translate(-50%, -50%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href*="linkedin.com"]:hover,
.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content[href*="linkedin.com"]:focus-visible {
	border-color: var(--gj-blue);
	color: var(--gj-blue);
}

/* --------------------------------------------------------------------------
   Header menu: Services dropdown (desktop)
   A white panel under the item with rounded corners and a soft shadow. Items
   are 15px, with a light grey pill on hover; the open page is blue and bold
   (not underlined: the mint underline is for the top level only).
   On tablet and phone the same items sit inside the off-canvas menu.
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	/* The panel is drawn with the Navigation block's own dropdown variables;
	   its rules for the open menu are too specific to override directly. */
	.wp-block-kadence-header .wp-block-kadence-navigation {
		--kb-nav-dropdown-width: 300px;
		--kb-nav-dropdown-link-width: 100%;
		--kb-nav-dropdown-margin-top: 4px;
		--kb-nav-dropdown-padding-top: 8px;
		--kb-nav-dropdown-padding-right: 8px;
		--kb-nav-dropdown-padding-bottom: 8px;
		--kb-nav-dropdown-padding-left: 8px;
		--kb-nav-dropdown-border-top: 1px solid var(--gj-line);
		--kb-nav-dropdown-border-right: 1px solid var(--gj-line);
		--kb-nav-dropdown-border-bottom: 1px solid var(--gj-line);
		--kb-nav-dropdown-border-left: 1px solid var(--gj-line);
		--kb-nav-dropdown-border-top-left-radius: 12px;
		--kb-nav-dropdown-border-top-right-radius: 12px;
		--kb-nav-dropdown-border-bottom-right-radius: 12px;
		--kb-nav-dropdown-border-bottom-left-radius: 12px;
		--kb-nav-dropdown-box-shadow: 0 16px 40px rgba(14, 29, 36, 0.14);
	}

	/* Keeps the pointer inside the menu while it crosses the 4px gap */
	.wp-block-kadence-header .kb-nav-sub-menu::before {
		content: "";
		position: absolute;
		top: -6px;
		right: 0;
		left: 0;
		height: 6px;
	}
}

/* The parent stays blue while its menu is open */
.wp-block-kadence-header .menu-item-has-children:hover > .kb-link-wrap > .kb-nav-link-content,
.wp-block-kadence-header .menu-item-has-children:focus-within > .kb-link-wrap > .kb-nav-link-content {
	color: var(--gj-blue);
}

.wp-block-kadence-header .kb-nav-sub-menu .kb-nav-link-content {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--gj-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.wp-block-kadence-header .kb-nav-sub-menu .kb-nav-link-content:hover,
.wp-block-kadence-header .kb-nav-sub-menu .kb-nav-link-content:focus-visible {
	background: var(--gj-ground);
	color: var(--gj-blue);
}

.wp-block-kadence-header .kb-nav-sub-menu .wp-block-kadence-navigation-link.current-menu-item > .kb-link-wrap > .kb-nav-link-content:not([href*="#"]) {
	color: var(--gj-blue);
	font-weight: 600;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.gj-hero h1 {
	font-size: clamp(40px, 5.2vw, 72px);
	line-height: 1.03;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
}

.gj-hero .gj-lead {
	max-width: 620px;
}

.gj-dark .gj-lead {
	color: var(--gj-on-ink);
}

/* "Reply within 24 hours · European hours · 20+ years" */
.gj-facts {
	font-family: var(--gj-font-mono);
	font-size: 13px;
	color: var(--gj-on-ink-muted);
}

/* --------------------------------------------------------------------------
   Latest post panel (hero, right column)
   Intended for a core Query Loop showing 1 post: featured image, date,
   title, excerpt, read more.
   -------------------------------------------------------------------------- */

.gj-latest {
	background-color: var(--gj-ink-2);
	color: var(--gj-on-ink);
	border-radius: var(--gj-radius-panel);
	padding: 28px;
}

.gj-latest .wp-block-post-featured-image {
	margin: 0 0 18px;
}

.gj-latest .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
}

.gj-latest .wp-block-post-date,
.gj-latest .wp-block-post-terms {
	font-family: var(--gj-font-mono);
	font-size: 12px;
	color: var(--gj-on-ink-muted);
}

.gj-latest .wp-block-post-title {
	font-family: var(--gj-font-display);
	font-size: 26px;
	line-height: 1.15;
	margin: 10px 0 12px;
}

.gj-latest .wp-block-post-title a {
	color: #fff;
	text-decoration: none;
}

.gj-latest .wp-block-post-excerpt {
	font-size: 15px;
	color: var(--gj-on-ink);
}

.gj-latest .wp-block-post-excerpt__more-link,
.gj-latest .gj-accent-link {
	font-weight: 600;
	color: var(--gj-mint);
	text-decoration: none;
}

.gj-latest .gj-latest__footer {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--gj-ink-line);
	font-size: 14px;
	color: var(--gj-on-ink-muted);
}

/* --------------------------------------------------------------------------
   Service cards
   gj-card on the column or group; add gj-card--dark for the featured one.
   -------------------------------------------------------------------------- */

/* Kadence has no theme.json, so WordPress wraps every Group's content in a
   .wp-block-group__inner-container. The stacking has to happen on that
   wrapper, otherwise "Related reading" can't sit at the bottom of the card.
   Needs "Inner Column Height 100%" on the Row Layout so cards match heights. */
.gj-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 32px;
	border-radius: var(--gj-radius);
	background-color: var(--gj-ground);
	color: var(--gj-text);
}

.gj-card,
.gj-card > .wp-block-group__inner-container {
	gap: 18px;
}

.gj-card > .wp-block-group__inner-container {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.gj-card > *,
.gj-card > .wp-block-group__inner-container > * {
	margin-top: 0;
	margin-bottom: 0;
}

.gj-card h3 {
	font-size: 28px;
	line-height: 1.1;
}

.gj-card--dark {
	background-color: var(--gj-ink);
	color: var(--gj-on-ink);
}

.gj-card--dark h3 {
	color: #fff;
}

.gj-card--dark p {
	color: var(--gj-on-ink);
}

.gj-card--dark .gj-text-link {
	color: var(--gj-mint);
}

/* "Learn more →" (class on the paragraph, the link inside is styled here) */
.gj-text-link,
.gj-text-link a {
	font-weight: 600;
	text-decoration: none;
}

/* Blue even before the text is linked, so it already reads as a link. */
.gj-text-link {
	color: var(--gj-blue);
}

.gj-card--dark .gj-text-link a {
	color: var(--gj-mint);
}

/* Small rounded label: "New" */
.gj-pill {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	background-color: var(--gj-mint);
	color: var(--gj-ink);
	font-family: var(--gj-font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Related reading (bottom of each service card)
   gj-related on a group holding a gj-eyebrow paragraph and a list of links.
   -------------------------------------------------------------------------- */

.gj-related,
.gj-card .gj-related.wp-block-group {
	margin-top: auto; /* Kadence sets margin-top: 0 on groups, the second selector outweighs it */
}

.gj-related .gj-eyebrow {
	font-size: 12px;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.gj-related ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gj-related li {
	margin: 0;
	border-top: 1px solid var(--gj-line);
}

.gj-related li a {
	display: block;
	padding: 12px 0;
	font-weight: 500;
	color: var(--gj-ink);
	text-decoration: none;
}

.gj-related li a:hover,
.gj-related li a:focus {
	color: var(--gj-blue);
}

.gj-card--dark .gj-related .gj-eyebrow {
	color: var(--gj-on-ink-muted);
}

.gj-card--dark .gj-related li {
	border-top-color: var(--gj-ink-line);
}

.gj-card--dark .gj-related li a {
	color: #fff;
}

.gj-card--dark .gj-related li a:hover,
.gj-card--dark .gj-related li a:focus {
	color: var(--gj-mint);
}

/* --------------------------------------------------------------------------
   Homepage service cards
   A gj-eyebrow tag above the title, gj-chips under the text, and a small
   gj-related__kind label above each related post.
   -------------------------------------------------------------------------- */

/* Title sits closer to its tag than the rest of the card's content */
.gj-card > .gj-eyebrow,
.gj-card > .wp-block-group__inner-container > .gj-eyebrow {
	margin-bottom: -6px;
}

/* Short facts: gj-chips on a List block */
ul.gj-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.gj-chips li {
	margin: 0;
	padding: 5px 10px;
	border: 1px solid #cbd2cd;
	border-radius: 999px;
	background-color: var(--gj-white);
	font-family: var(--gj-font-mono);
	font-size: 12px;
	line-height: 1.3;
	color: var(--gj-text-strong);
}

.gj-card--dark ul.gj-chips li {
	border-color: var(--gj-ink-line);
	background-color: transparent;
	color: var(--gj-on-ink);
}

/* Kind of post ("Hands-on guide") above its title, inside a related link */
.gj-related__kind {
	display: block;
	margin-bottom: 3px;
	font-family: var(--gj-font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gj-muted);
}

.gj-card--dark .gj-related__kind {
	color: var(--gj-on-ink-muted);
}

/* Icon tile before a card's tag: gj-icon plus gj-icon--ai, --cloud, --shield
   or --globe on the gj-eyebrow paragraph. The icons are drawn in CSS. */
.gj-card > .gj-eyebrow.gj-icon,
.gj-card > .wp-block-group__inner-container > .gj-eyebrow.gj-icon {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 0;
}

.gj-icon::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background-color: var(--gj-ink);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}

.gj-icon--ai::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FD4B0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='14' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3Cpath d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/%3E%3C/svg%3E");
}

.gj-icon--cloud::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FD4B0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z'/%3E%3C/svg%3E");
}

.gj-icon--shield::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FD4B0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.gj-icon--globe::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FD4B0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

/* On a heading (the Services page cards): the tile sits above the title.
   gj-icon plus gj-icon--ai, --cloud, --shield or --globe on the Heading block. */
.gj-card h3.gj-icon::before {
	display: block;
	margin-bottom: 18px;
}

/* "All services →" beside the section title; under it on phones and tablets */
@media (min-width: 1025px) {
	p.gj-services-all {
		text-align: right;
	}
}

/* --------------------------------------------------------------------------
   Stats row (benchmark numbers in the AI card)
   gj-stats on a group (row layout) of gj-stat groups, each with a value
   paragraph and a label paragraph.
   -------------------------------------------------------------------------- */

.gj-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	/* The Row layout centres its items; top-aligned keeps all numbers on one line. */
	align-items: flex-start;
	padding: 16px 0;
	border-top: 1px solid var(--gj-ink-line);
	border-bottom: 1px solid var(--gj-ink-line);
}

/* Group content sits one level deeper (see the card note above), so the
   paragraphs are reached with a descendant selector. The first paragraph is
   the value and the last is the label, so the classes are optional. */
.gj-stats .gj-stat p {
	margin: 0;
}

.gj-stats .gj-stat__value,
.gj-stats .gj-stat p:first-of-type {
	font-family: var(--gj-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.gj-stats .gj-stat__label,
.gj-stats .gj-stat p:last-of-type:not(:first-of-type) {
	margin-top: 4px;
	font-family: var(--gj-font-mono);
	font-size: 12px;
	line-height: 1.55;
	color: var(--gj-on-ink-muted);
}

/* --------------------------------------------------------------------------
   How I work (numbered steps)
   gj-step on each column: a gj-step__num paragraph, an h3 and a paragraph.
   -------------------------------------------------------------------------- */

.gj-step {
	padding-top: 20px;
	border-top: 2px solid var(--gj-ink);
}

.gj-step__num {
	margin: 0;
	font-family: var(--gj-font-mono);
	font-size: 13px;
	color: var(--gj-blue);
}

.gj-step h3 {
	margin: 0 0 10px;
	font-size: 24px;
}

/* Only when a number sits above the heading */
.gj-step__num + h3 {
	margin-top: 8px;
}

.gj-step p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Portrait (About section)
   gj-portrait on an Image block. Any photo shape is cropped to 4:5 with the
   same rounded corners as the cards.
   -------------------------------------------------------------------------- */

.gj-portrait {
	max-width: 400px;
	margin: 0;
}

.gj-portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--gj-radius);
}

/* --------------------------------------------------------------------------
   Testimonials
   gj-quote on a group or core Quote block: quote text, then a caption.
   -------------------------------------------------------------------------- */

.gj-quote {
	display: flex;
	flex-direction: column;
	gap: 24px;
	height: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 32px;
	border: 0;
	border-radius: var(--gj-radius);
	background-color: var(--gj-ground);
	font-size: 18px;
	line-height: 1.55;
	color: var(--gj-ink);
}

.gj-quote::before {
	content: "\201C";
	display: block;
	height: 28px;
	font-family: var(--gj-font-display);
	font-size: 64px;
	font-weight: 700;
	line-height: 0.6;
	color: var(--gj-ink);
}

/* Kadence adds a bottom margin under quote blocks, which made the cards
   taller than their content. */
blockquote.wp-block-quote.gj-quote {
	margin: 0;
}

/* The second selector outweighs Kadence's ".single-content .wp-block-quote p" spacing. */
.gj-quote p,
blockquote.wp-block-quote.gj-quote p {
	margin: 0;
	font-style: normal;
	color: var(--gj-ink);
}

.gj-quote cite,
.gj-quote .wp-block-quote__citation,
.gj-quote .gj-quote__by {
	margin-top: auto;
	font-size: 14px;
	font-style: normal;
	color: var(--gj-text);
}

.gj-quote cite strong,
.gj-quote .gj-quote__by strong {
	display: block;
	font-weight: 600;
	color: var(--gj-ink);
}

/* --------------------------------------------------------------------------
   Recent posts (core Query Loop, grid view)
   gj-post-cards on the Query Loop block.
   -------------------------------------------------------------------------- */

.gj-post-cards .wp-block-post-template {
	gap: 20px;
}

.gj-post-cards .wp-block-post {
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
	border-radius: var(--gj-radius);
	background-color: var(--gj-white);
}

.gj-post-cards .wp-block-post > * {
	margin: 0;
	padding: 0 28px;
}

.gj-post-cards .wp-block-post > .wp-block-post-featured-image {
	padding: 0;
}

.gj-post-cards .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.gj-post-cards .wp-block-post-date,
.gj-post-cards .wp-block-post-terms {
	font-family: var(--gj-font-mono);
	font-size: 12px;
	color: var(--gj-muted);
}

.gj-post-cards .wp-block-post-title {
	font-family: var(--gj-font-display);
	font-size: 22px;
	line-height: 1.2;
}

.gj-post-cards .wp-block-post-title a {
	color: var(--gj-ink);
	text-decoration: none;
}

.gj-post-cards .wp-block-post-excerpt {
	font-size: 15px;
	color: var(--gj-text);
}

/* The excerpt fills the rest of the card, and its "Read →" link sits at the bottom. */
.gj-post-cards .wp-block-post-excerpt {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding-bottom: 28px;
}

.gj-post-cards .wp-block-post-excerpt__more-text {
	margin-top: auto;
	padding-top: 6px;
}

.gj-post-cards .wp-block-post-excerpt__more-link {
	font-weight: 600;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Closing call to action (blue band)
   -------------------------------------------------------------------------- */

.gj-cta {
	background-color: var(--gj-blue);
	color: #fff;
}

.wp-block-kadence-rowlayout.gj-cta {
	--kb-row-bg: var(--gj-blue);
	background-color: var(--gj-blue);
}

/* Kadence only adds side padding on small screens to rows that have a background
   set in the block. These rows get theirs from the class, so add it here. */
.wp-block-kadence-rowlayout.gj-cta > .kt-row-column-wrap,
.wp-block-kadence-rowlayout.gj-dark > .kt-row-column-wrap {
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}

.gj-cta h2,
.gj-cta p {
	color: #fff;
}

.gj-cta h2 {
	font-size: clamp(30px, 3.6vw, 50px);
	line-height: 1.08;
}

/* --------------------------------------------------------------------------
   Buttons
   Add the class to a core Button block.
   gj-btn-mint: mint fill, on dark backgrounds
   gj-btn-outline-light: outline, on dark backgrounds
   gj-btn-white: white fill, on the blue band
   -------------------------------------------------------------------------- */

.wp-block-button.gj-btn-mint .wp-block-button__link,
.wp-block-button.gj-btn-outline-light .wp-block-button__link,
.wp-block-button.gj-btn-white .wp-block-button__link {
	padding: 14px 22px;
	border-radius: var(--gj-radius-button);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.wp-block-button.gj-btn-mint .wp-block-button__link {
	background-color: var(--gj-mint);
	color: var(--gj-ink);
}

.wp-block-button.gj-btn-mint .wp-block-button__link:hover,
.wp-block-button.gj-btn-mint .wp-block-button__link:focus {
	background-color: #7be0c3;
	color: var(--gj-ink);
}

.wp-block-button.gj-btn-outline-light .wp-block-button__link {
	border: 1px solid #5a7078;
	background-color: transparent;
	color: #fff;
}

.wp-block-button.gj-btn-outline-light .wp-block-button__link:hover,
.wp-block-button.gj-btn-outline-light .wp-block-button__link:focus {
	border-color: #fff;
	color: #fff;
}

.wp-block-button.gj-btn-white .wp-block-button__link {
	padding: 16px 26px;
	background-color: #fff;
	color: var(--gj-ink);
	font-size: 17px;
}

.wp-block-button.gj-btn-white .wp-block-button__link:hover,
.wp-block-button.gj-btn-white .wp-block-button__link:focus {
	background-color: var(--gj-ground);
	color: var(--gj-ink);
}

/* --------------------------------------------------------------------------
   Footer
   Built in the Kadence footer builder (Customizer › Footer). Row colours and
   spacing are set here, so the builder only needs the elements and the column
   layouts. Middle row: Widget 1 (brand), Widget 2 and 3 (link lists).
   Bottom row: the HTML element (copyright) and Widget 4 (other sites).
   -------------------------------------------------------------------------- */

.site-footer {
	font-size: 15px;
	line-height: 1.55;
	color: var(--gj-on-ink);
}

.site-footer .site-footer-row-container-inner {
	background-color: var(--gj-ink);
	color: var(--gj-on-ink);
}

.site-footer .site-middle-footer-inner-wrap {
	padding-top: 64px;
	padding-bottom: 48px;
	grid-column-gap: 56px;
	grid-row-gap: 40px;
}

.site-footer .site-bottom-footer-inner-wrap {
	padding-top: 24px;
	padding-bottom: 32px;
	border-top: 1px solid var(--gj-ink-line);
	font-size: 14px;
	color: var(--gj-on-ink-muted);
}

.site-footer .widget,
.site-footer .footer-html {
	margin: 0;
}

.site-footer .footer-widget-area p {
	margin: 0;
}

.site-footer-wrap .footer-widget-area a,
.site-footer-wrap .footer-html a {
	color: #fff;
	text-decoration: none;
}

.site-footer-wrap .footer-widget-area a:hover,
.site-footer-wrap .footer-widget-area a:focus,
.site-footer-wrap .footer-html a:hover,
.site-footer-wrap .footer-html a:focus {
	color: var(--gj-mint);
}

/* Brand block: logo, name, one line about what you do */
.gj-footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.gj-footer-brand .wp-block-image {
	flex: none;
	margin: 0;
}

.gj-footer-brand img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

.site-footer .gj-footer-name {
	font-family: var(--gj-font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}

.site-footer .gj-footer-about {
	max-width: 320px;
}

/* Column label ("Services", "Gizmojack") */
.site-footer .gj-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--gj-on-ink-muted);
}

/* Link list under a label */
.site-footer .gj-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .gj-footer-links li {
	margin: 0;
}

.site-footer .gj-footer-links a {
	display: block;
	padding: 6px 0;
}

/* "Visit our other groups' websites": right aligned on desktop, left below */
.site-footer .gj-footer-sites {
	text-align: left;
}

@media screen and (min-width: 1025px) {
	.site-footer .gj-footer-sites {
		text-align: right;
	}
}

/* --------------------------------------------------------------------------
   Inner pages (Services and the service pages)
   -------------------------------------------------------------------------- */

/* Dark band at the top of an inner page: gj-dark gj-page-header on the Row Layout,
   with a gj-eyebrow--accent label, an H1 and a gj-lead paragraph. */
.wp-block-kadence-rowlayout.gj-page-header h1 {
	max-width: 900px;
	margin: 20px 0 24px;
}

/* "Includes" list inside a service card: the same rows as "Related reading",
   but plain text. gj-includes on a Group holding a gj-eyebrow label and a List. */
.gj-includes .gj-eyebrow {
	margin-bottom: 4px;
	font-size: 12px;
	letter-spacing: 0.06em;
}

.gj-includes ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gj-includes li {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--gj-line);
	font-size: 15px;
	color: var(--gj-text-strong);
}

/* "Learn more →" sits at the bottom of the card when nothing follows it */
.gj-card .gj-text-link:last-child {
	margin-top: auto;
}

/* --------------------------------------------------------------------------
   AI Infrastructure page
   -------------------------------------------------------------------------- */

/* White card, for use on a light grey section */
.gj-card.gj-card--white {
	background-color: var(--gj-white);
}

/* Light version of the stats row, for a white or light card.
   gj-stats gj-stats--light on the Group. */
.gj-stats.gj-stats--light {
	border-color: var(--gj-line);
}

.gj-stats.gj-stats--light .gj-stat p:first-of-type {
	color: var(--gj-ink);
}

.gj-stats.gj-stats--light .gj-stat p:last-of-type:not(:first-of-type) {
	color: var(--gj-muted);
}

/* "Read before you decide" panel in the page header.
   gj-panel on a Group: a gj-eyebrow label, several gj-panel-item Groups
   (a gj-meta paragraph with the kind, then a paragraph with the linked title)
   and a paragraph with gj-accent-link. */
.gj-panel {
	padding: 28px 28px 20px;
	border-radius: var(--gj-radius-panel);
	background-color: var(--gj-ink-2);
}

.gj-panel .gj-eyebrow {
	margin-bottom: 4px;
	font-size: 12px;
	letter-spacing: 0.08em;
	/* The panel is dark, also on a light section where nothing else turns the label light */
	color: var(--gj-mint);
}

.gj-panel .gj-panel-item {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--gj-ink-line);
}

.gj-panel .gj-panel-item p {
	margin: 0;
}

.gj-panel .gj-panel-item .gj-meta {
	margin-bottom: 6px;
	color: var(--gj-on-ink-muted);
}

.gj-panel .gj-panel-item p:last-child,
.gj-panel .gj-panel-item p:last-child a {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	color: #fff;
}

.gj-panel .gj-accent-link,
.gj-panel .gj-accent-link a {
	padding-top: 16px;
	font-weight: 600;
	color: var(--gj-mint);
}

/* A label above a heading sits 12px from it, as in the designs. Kadence gives
   paragraphs a large bottom margin and headings a 1.5em top margin, which left a
   gap of about 70px. Margins set on the block in the editor still win over this. */
.single-content p.gj-eyebrow {
	margin-bottom: 12px;
}

.single-content .gj-panel p.gj-eyebrow,
.single-content .gj-includes p.gj-eyebrow,
.single-content .gj-related p.gj-eyebrow {
	margin-bottom: 4px;
}

.single-content .gj-eyebrow + h2,
.single-content .gj-eyebrow + h3 {
	margin-top: 0;
}

/* Title of a post inside a card: gj-post-title on a Heading level 3 holding a link */
.gj-card h3.gj-post-title {
	font-size: 22px;
	line-height: 1.2;
}

.gj-post-title a {
	color: var(--gj-ink);
	text-decoration: none;
}

/* Large figure inside a dark panel: gj-figure on a paragraph ("€40", "09:00 – 21:00 CEST"),
   gj-figure--md for a longer value, gj-figure-note on the small line under it. */
.gj-panel .gj-figure {
	margin: 12px 0 0;
	font-family: var(--gj-font-display);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
}

.gj-panel .gj-figure--md {
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.gj-panel .gj-figure-note {
	margin: 10px 0 12px;
	font-size: 15px;
	color: var(--gj-on-ink);
}

.gj-panel .gj-figure-note.gj-meta {
	font-size: 14px;
	color: var(--gj-on-ink-muted);
}

/* Comparison table: gj-table on a Table block (3 columns, the third highlighted) */
.wp-block-table.gj-table {
	margin: 0;
	overflow-x: auto;
	border-radius: var(--gj-radius);
	background-color: var(--gj-ground);
}

.wp-block-table.gj-table table {
	width: 100%;
	min-width: 620px;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
}

.wp-block-table.gj-table th,
.wp-block-table.gj-table td {
	padding: 14px 24px;
	border: 0;
	border-bottom: 1px solid var(--gj-line);
	text-align: left;
	vertical-align: top;
}

.wp-block-table.gj-table thead th {
	font-size: 14px;
	font-weight: 600;
	color: var(--gj-muted);
}

.wp-block-table.gj-table tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.gj-table tbody td:first-child {
	font-weight: 500;
}

.wp-block-table.gj-table th:nth-child(3),
.wp-block-table.gj-table td:nth-child(3) {
	background-color: #eef1fd;
	font-weight: 600;
	color: var(--gj-ink);
}

/* Numbered rows: gj-numbered on an ordered List */
.gj-numbered {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: gj-n;
	border-bottom: 1px solid var(--gj-line);
}

.gj-numbered li {
	position: relative;
	margin: 0;
	padding: 16px 0 16px 44px;
	border-top: 1px solid var(--gj-line);
	counter-increment: gj-n;
}

.gj-numbered li::before {
	content: counter(gj-n);
	position: absolute;
	top: 16px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: var(--gj-ink);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

/* Panel links have no underline, and the outlined button keeps the same height
   as the filled one (its 1px border is taken out of the padding). */
.gj-panel a {
	text-decoration: none;
}

.wp-block-button.gj-btn-outline-light .wp-block-button__link {
	padding: 13px 21px;
}

/* Limits the width of a section intro (label, heading, paragraphs) that sits
   above full width content such as a table or a row of cards.
   gj-narrow on a Group, or on a single Paragraph. */
.gj-narrow {
	max-width: 760px;
}

/* Short paragraph under a table or a row of cards ("Self-hosting makes sense...",
   "Measured with...").
   gj-note on a Paragraph. gj-note--small for the smaller grey footnote. */
p.gj-note,
.single-content p.gj-note {
	max-width: 760px;
	margin-top: 20px;
	margin-bottom: 0;
	font-size: 16px;
	color: var(--gj-text);
}

p.gj-note.gj-note--small,
.single-content p.gj-note.gj-note--small {
	margin-top: 24px;
	font-size: 14px;
	color: var(--gj-muted);
}

/* A list right under the light stats row: the stats row already draws the line
   under itself, so the list's first row loses its top line and closes the gap. */
.gj-card .gj-stats--light + .gj-includes {
	/* !important: a Group made in the editor carries its own inline margin-top: 0 */
	margin-top: -18px !important;
}

.gj-card .gj-stats--light + .gj-includes li:first-child {
	border-top: 0;
}

/* --------------------------------------------------------------------------
   Contact page lists
   gj-checks on a List block: rows with a check mark ("What to expect").
   gj-rows on a List block: plain rows ("Why me").
   Both close with a line at the bottom.
   -------------------------------------------------------------------------- */

ul.gj-checks,
ul.gj-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--gj-line);
}

ul.gj-checks li,
ul.gj-rows li {
	position: relative;
	margin: 0;
	border-top: 1px solid var(--gj-line);
	color: var(--gj-text-strong);
}

ul.gj-rows li {
	padding: 12px 0;
	font-size: 15px;
}

ul.gj-checks li {
	padding: 14px 0 14px 32px;
	font-size: 16px;
}

ul.gj-checks li::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 0;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1D24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Space between the check list and the label of the next block */
ul.gj-checks {
	margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Search (Kadence "Search (Adv)" block, Search Style: Modal)
   gj-search on the block: the trigger is a quiet icon in the header, the modal
   is a dark full-screen layer with one large field.
   -------------------------------------------------------------------------- */

.gj-search .kb-buttons-wrap .kb-button.wp-block-kadence-singlebtn {
	padding: 10px;
	border-radius: var(--gj-radius-button);
	background: transparent;
	color: var(--gj-ink);
	box-shadow: none;
	cursor: pointer;
	transition: color 0.15s;
}

.gj-search .kb-buttons-wrap .kb-button.wp-block-kadence-singlebtn:hover,
.gj-search .kb-buttons-wrap .kb-button.wp-block-kadence-singlebtn:focus-visible {
	background: transparent;
	color: var(--gj-blue);
}

.gj-search .kb-buttons-wrap .kb-button.wp-block-kadence-singlebtn:focus-visible {
	outline: 2px solid var(--gj-blue);
	outline-offset: 2px;
}

.gj-search .kb-search-modal {
	--kb-search-modal-background: rgba(14, 29, 36, 0.94);
}

.gj-search .kb-search-modal-content form {
	max-width: min(760px, calc(100% - 32px));
}

.kb-search.gj-search .kb-search-input[type="text"] {
	padding: 22px 64px 22px 20px;
	border: 0;
	border-bottom: 3px solid var(--gj-mint);
	border-radius: 8px;
	background: var(--gj-white);
	color: var(--gj-ink);
	font-family: var(--gj-font-body);
	font-size: 22px;
	line-height: 1.3;
}

.gj-search .kb-search-input::placeholder {
	color: var(--gj-muted);
}

.gj-search .kb-search-input:focus {
	outline: 2px solid var(--gj-mint);
	outline-offset: 2px;
}

.gj-search .kb-search-icon-submit {
	right: 20px;
}

.gj-search .kb-search-icon svg {
	stroke: var(--gj-ink);
}

.gj-search .kb-search-close-btn {
	top: 24px;
	right: 24px;
	color: var(--gj-white);
}

.gj-search .kb-search-close-btn svg {
	width: 28px;
	height: 28px;
}

/* --------------------------------------------------------------------------
   Blog page
   -------------------------------------------------------------------------- */

/* Search field in a dark page header: gj-search-bar on a core Search block
   (label hidden, button outside the field). */
.wp-block-search.gj-search-bar {
	max-width: 560px;
	margin: 0;
}

.gj-search-bar .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	border: 0;
}

.gj-search-bar .wp-block-search__input {
	flex: 1 1 180px;
	min-width: 0;
	margin: 0;
	padding: 14px 14px 14px 44px;
	border: 1px solid #5a7078;
	border-radius: var(--gj-radius-button);
	background: var(--gj-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 20px;
	color: var(--gj-ink);
	font-family: var(--gj-font-body);
	font-size: 16px;
}

.gj-search-bar .wp-block-search__input:focus {
	outline: 2px solid var(--gj-mint);
	outline-offset: 2px;
}

.wp-block-search.gj-search-bar .wp-block-search__button {
	margin: 0;
	padding: 14px 22px;
	border: 0;
	border-radius: var(--gj-radius-button);
	background: var(--gj-mint);
	color: var(--gj-ink);
	font-family: var(--gj-font-body);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.wp-block-search.gj-search-bar .wp-block-search__button:hover {
	background: #7be0c3;
	color: var(--gj-ink);
}

/* Topic chips: the [gj_topics] shortcode. */
.gj-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 56px;
}

.gj-topics__link {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--gj-line);
	border-radius: 999px;
	background: var(--gj-white);
	color: var(--gj-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 0.15s;
}

.gj-topics__link span {
	font-family: var(--gj-font-mono);
	font-size: 12px;
	color: var(--gj-muted);
}

.gj-topics__link:hover {
	border-color: var(--gj-ink);
	color: var(--gj-ink);
}

.gj-topics__link.is-active {
	border-color: var(--gj-ink);
	background: var(--gj-ink);
	color: var(--gj-white);
}

.gj-topics__link.is-active span {
	color: var(--gj-on-ink-muted);
}

/* --------------------------------------------------------------------------
   Category and search results pages (Kadence archive templates)
   The page header, topic chips and closing band come from inc/archives.php.
   -------------------------------------------------------------------------- */

/* Dark page header */
.category .entry-hero-container-inner,
.search .entry-hero-container-inner {
	background: var(--gj-ink);
}

.category .entry-hero .hero-container,
.search .entry-hero .hero-container {
	min-height: 0;
	padding-top: 72px;
	padding-bottom: 72px;
	text-align: left;
}

.gj-archive-hero {
	text-align: left;
}

.gj-archive-hero .archive-title {
	max-width: 900px;
	margin: 20px 0;
	color: var(--gj-white);
	font-size: clamp(38px, 4.8vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.gj-archive-hero .gj-lead {
	max-width: 640px;
	margin: 0 0 20px;
	color: var(--gj-on-ink);
}

.gj-archive-hero .gj-lead p {
	margin: 0;
}

.gj-archive-hero .gj-lead a {
	color: var(--gj-mint);
	font-weight: 600;
	text-decoration: none;
}

.gj-archive-count {
	margin: 0 0 24px;
	font-family: var(--gj-font-mono);
	font-size: 13px;
	color: var(--gj-on-ink-muted);
}

/* Topic chips above the posts */
.gj-archive-topics {
	margin-bottom: 40px;
}

.gj-archive-topics .gj-eyebrow {
	margin-bottom: 14px;
}

.gj-archive-topics .gj-topics {
	margin-bottom: 0;
}

/* Post cards */
.category .kadence-posts-list.grid-cols,
.search .kadence-posts-list.grid-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 1024px) {
	.category .kadence-posts-list.grid-cols,
	.search .kadence-posts-list.grid-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.category .kadence-posts-list.grid-cols,
	.search .kadence-posts-list.grid-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

.category .loop-entry,
.search .loop-entry,
.single-post .entry-related .loop-entry {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--gj-radius);
	background: var(--gj-white);
	box-shadow: none;
}

.category .loop-entry .post-thumbnail,
.search .loop-entry .post-thumbnail,
.single-post .entry-related .loop-entry .post-thumbnail {
	margin: 0;
}

/* 16:9 images; Kadence sets the shape with padding on the thumbnail link */
.category .loop-entry .post-thumbnail[class*="kadence-thumbnail-ratio"],
.search .loop-entry .post-thumbnail[class*="kadence-thumbnail-ratio"],
.single-post .entry-related .loop-entry .post-thumbnail[class*="kadence-thumbnail-ratio"] {
	padding-bottom: 56.25%;
}

.category .loop-entry .entry-content-wrap,
.search .loop-entry .entry-content-wrap,
.single-post .entry-related .loop-entry .entry-content-wrap {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 24px 28px 28px;
}

.category .loop-entry .entry-header,
.search .loop-entry .entry-header,
.single-post .entry-related .loop-entry .entry-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

/* Date first, as a small mono line; author, categories and comments are left out. */
.category .loop-entry .entry-meta,
.search .loop-entry .entry-meta,
.single-post .entry-related .loop-entry .entry-meta {
	order: -1;
	margin: 0;
	font-family: var(--gj-font-mono);
	font-size: 12px;
	color: var(--gj-muted);
}

.category .loop-entry .entry-meta .posted-by,
.search .loop-entry .entry-meta .posted-by,
.single-post .entry-related .loop-entry .entry-meta .posted-by,
.category .loop-entry .entry-taxonomies,
.search .loop-entry .entry-taxonomies,
.single-post .entry-related .loop-entry .entry-taxonomies,
.category .loop-entry .entry-meta .meta-comments,
.search .loop-entry .entry-meta .meta-comments,
.single-post .entry-related .loop-entry .entry-meta .meta-comments {
	display: none;
}

.category .loop-entry .entry-title,
.search .loop-entry .entry-title,
.single-post .entry-related .loop-entry .entry-title {
	margin: 0;
	font-family: var(--gj-font-display);
	font-size: 22px;
	line-height: 1.2;
}

.category .loop-entry .entry-title a,
.search .loop-entry .entry-title a,
.single-post .entry-related .loop-entry .entry-title a {
	color: var(--gj-ink);
	text-decoration: none;
}

.category .loop-entry .entry-summary,
.search .loop-entry .entry-summary,
.single-post .entry-related .loop-entry .entry-summary {
	font-size: 15px;
	color: var(--gj-text);
}

.category .loop-entry .entry-summary p,
.search .loop-entry .entry-summary p,
.single-post .entry-related .loop-entry .entry-summary p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

/* "Read →" pinned to the bottom of the card */
.category .loop-entry .entry-footer,
.search .loop-entry .entry-footer,
.single-post .entry-related .loop-entry .entry-footer {
	margin-top: auto;
}

.category .loop-entry .more-link-wrap,
.search .loop-entry .more-link-wrap,
.single-post .entry-related .loop-entry .more-link-wrap {
	margin: 0;
}

.category .loop-entry .post-more-link,
.search .loop-entry .post-more-link,
.single-post .entry-related .loop-entry .post-more-link {
	color: var(--gj-blue);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
}

.category .loop-entry .post-more-link .kadence-svg-iconset,
.search .loop-entry .post-more-link .kadence-svg-iconset,
.single-post .entry-related .loop-entry .post-more-link .kadence-svg-iconset {
	display: none;
}

/* Search results are rows: a small image on the left, text on the right. */
.search .kadence-posts-list.grid-cols {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	border-bottom: 1px solid var(--gj-line);
}

.search .loop-entry {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	height: auto;
	padding: 28px 0;
	border-top: 1px solid var(--gj-line);
	border-radius: 0;
	background: transparent;
}

.search .loop-entry .post-thumbnail {
	overflow: hidden;
	border-radius: 10px;
}

.search .loop-entry .entry-content-wrap {
	padding: 0;
}

.search .loop-entry .entry-title {
	font-size: 24px;
}

.search .loop-entry .entry-summary {
	font-size: 16px;
}

@media (max-width: 640px) {
	.search .loop-entry {
		grid-template-columns: minmax(0, 1fr);
	}
}

.search mark {
	padding: 0 2px;
	border-radius: 3px;
	background: #dce3ff;
	color: var(--gj-ink);
}

/* Nothing found: the page header explains it, so Kadence's own message is hidden. */
.search-no-results .error {
	display: none;
}

.gj-archive-latest ul {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--gj-line);
}

.gj-archive-latest li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	margin: 0;
	padding: 18px 0;
	border-top: 1px solid var(--gj-line);
}

.gj-archive-latest li a {
	flex: 1 1 360px;
	font-family: var(--gj-font-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gj-ink);
	text-decoration: none;
}

/* Page numbers (Kadence pagination) */
.category .pagination,
.search .pagination {
	margin-top: 48px;
}

.category .pagination .nav-links,
.search .pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
}

.category .pagination .page-numbers,
.search .pagination .page-numbers {
	min-width: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--gj-line);
	border-radius: var(--gj-radius-button);
	background: var(--gj-white);
	color: var(--gj-ink);
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.category .pagination .page-numbers.current,
.search .pagination .page-numbers.current {
	border-color: var(--gj-ink);
	background: var(--gj-ink);
	color: var(--gj-white);
}

.category .pagination .page-numbers.dots,
.search .pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* Blue closing band, after the content */
.gj-archive-cta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
	max-width: 1240px;
	margin: 0 auto;
	padding: 88px var(--global-content-edge-padding, 1.5rem);
}

.gj-archive-cta__inner h2 {
	flex: 999 1 560px;
	margin: 0;
}

/* Page numbers under the post cards (core Query Pagination). */
.gj-post-cards .wp-block-query-pagination {
	margin-top: 48px;
	gap: 8px;
}

.gj-post-cards .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gj-post-cards .wp-block-query-pagination .page-numbers,
.gj-post-cards .wp-block-query-pagination-next,
.gj-post-cards .wp-block-query-pagination-previous {
	min-width: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--gj-line);
	border-radius: var(--gj-radius-button);
	background: var(--gj-white);
	color: var(--gj-ink);
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.gj-post-cards .wp-block-query-pagination .page-numbers.current {
	border-color: var(--gj-ink);
	background: var(--gj-ink);
	color: var(--gj-white);
}

.gj-post-cards .wp-block-query-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.gj-post-cards .wp-block-query-pagination-next,
.gj-post-cards .wp-block-query-pagination-previous {
	border-color: transparent;
	background: transparent;
	color: var(--gj-blue);
}

/* --------------------------------------------------------------------------
   Blog post
   The title band, author card and related-service link come from
   inc/posts.php. Everything else is Kadence's markup, styled here.
   -------------------------------------------------------------------------- */

/* Title band: dark, full width, with the featured image overlapping its lower edge */
.single-post .entry-hero-container-inner {
	background: transparent;
}

.single-post .entry-hero .hero-container.site-container {
	min-height: 0;
	max-width: 1048px;
	padding-top: 0;
	padding-bottom: 0;
}

.single-post .entry-hero .entry-header {
	min-height: 0;
	margin: 0;
	text-align: left;
}

.gj-post-hero__band {
	/* 1px of overlap each side hides a hairline between the band and its shadow */
	margin: 0 -1px;
	padding: 56px 1px 128px;
	background: var(--gj-ink);
	box-shadow: 0 0 0 100vmax var(--gj-ink);
	clip-path: inset(0 -100vmax);
	color: var(--gj-white);
}

.gj-post-hero__crumbs.gj-eyebrow {
	margin: 0;
	font-size: 13px;
	color: var(--gj-on-ink-muted);
}

.gj-post-hero__crumbs a {
	color: var(--gj-on-ink-muted);
	text-decoration: none;
}

.gj-post-hero__crumbs a.gj-post-hero__topic,
.gj-post-hero__crumbs a:hover {
	color: var(--gj-mint);
}

.gj-post-hero .entry-title {
	max-width: 900px;
	margin: 20px 0;
	color: var(--gj-white);
	font-size: clamp(34px, 4.6vw, 60px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.gj-post-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.gj-post-hero__chips a {
	padding: 5px 12px;
	border: 1px solid #3a525a;
	border-radius: 999px;
	font-family: var(--gj-font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #d6e0e3;
	text-decoration: none;
}

.gj-post-hero__chips a:hover {
	border-color: var(--gj-mint);
	color: var(--gj-mint);
}

.gj-post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.gj-post-hero__meta img {
	width: 44px;
	height: 44px;
	margin-right: 2px;
	border-radius: 50%;
	background: var(--gj-ink-2);
}

.gj-post-hero__author {
	font-weight: 600;
}

.gj-post-hero__meta .gj-meta {
	color: var(--gj-on-ink-muted);
}

.gj-post-hero__figure {
	position: relative;
	margin: -88px 0 0;
}

.gj-post-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--gj-radius);
	box-shadow: 0 24px 60px rgba(14, 29, 36, 0.25);
}

/* The image has no band behind it on a post without a featured image */
.gj-post-hero__band:last-child {
	padding-bottom: 56px;
}

/* Reading column */
.single-post .content-area {
	margin-top: 48px;
	margin-bottom: 0;
}

.single-post .content-container.site-container {
	max-width: 768px;
}

.single-post .entry-content.single-content {
	margin-top: 0;
	font-size: 19px;
	line-height: 1.75;
	color: var(--gj-text-strong);
}

.single-post .single-content > p:first-child {
	font-size: 21px;
	line-height: 1.6;
	color: var(--gj-ink);
}

.single-post .single-content p {
	margin-bottom: 24px;
}

/* Most posts use h3 (Kadence Advanced Heading) for their section headings, a few use h2 */
.single-post .single-content h2,
.single-post .single-content h3 {
	margin-top: 56px;
	margin-bottom: 20px;
	font-size: clamp(26px, 3vw, 32px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.single-post .single-content h4 {
	margin-top: 40px;
	margin-bottom: 14px;
	font-size: 22px;
	line-height: 1.25;
}

.single-post .single-content ul,
.single-post .single-content ol {
	margin-bottom: 24px;
	padding-left: 28px;
}

.single-post .single-content li {
	margin-bottom: 10px;
	padding-left: 6px;
}

.single-post .single-content li::marker {
	color: var(--gj-blue);
	font-weight: 600;
}

.single-post .single-content a {
	color: var(--gj-blue);
	text-underline-offset: 3px;
}

/* Tables: light header row, soft lines, rounded corners */
.single-post .single-content .kb-table-container,
.single-post .single-content .wp-block-table {
	margin-bottom: 8px;
}

.single-post .single-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--gj-line);
	border-radius: 10px;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.5;
}

.single-post .single-content table th,
.single-post .single-content table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--gj-line);
	text-align: left;
	vertical-align: top;
}

/* Paragraphs inside cells (Kadence tables) must not keep the article's spacing */
.single-post .single-content table p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.single-post .single-content table tr:last-child > td,
.single-post .single-content table tr:last-child > th {
	border-bottom: 0;
}

.single-post .single-content table thead th,
.single-post .single-content table tr:first-child > th {
	background: var(--gj-ground);
	font-family: var(--gj-font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gj-muted);
}

@media (max-width: 640px) {
	.single-post .single-content .kb-table-container,
	.single-post .single-content .wp-block-table {
		overflow-x: auto;
	}

	.single-post .single-content table {
		min-width: 520px;
	}
}

/* The call to action at the end of many posts (an older plugin block) */
.single-post .single-content .wp-block-call-to-action-block {
	margin: 48px 0 0;
	padding: 36px !important;
	border: 0 !important;
	border-radius: var(--gj-radius);
	background: var(--gj-ink) !important;
	color: var(--gj-white) !important;
	text-align: left !important;
}

.single-post .single-content .wp-block-call-to-action-block::before {
	content: "Let’s talk";
	display: block;
	margin-bottom: 12px;
	font-family: var(--gj-font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gj-mint);
}

.single-post .single-content .callToAction {
	font-family: var(--gj-font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gj-white);
}

/* Some of these blocks force a line break in the sentence; let it wrap naturally */
.single-post .single-content .callToAction br {
	display: none;
}

.single-post .single-content .callToActionButton {
	display: inline-block;
	margin-top: 24px;
	padding: 14px 22px;
	border: 0 !important;
	border-radius: var(--gj-radius-button);
	background: var(--gj-mint) !important;
	color: var(--gj-ink) !important;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.single-post .single-content .callToActionButton:hover {
	background: #fff !important;
}

/* Author card and related service */
.gj-author-card {
	margin: 48px 0 24px;
}

.gj-author-card__who {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	padding: 28px;
	border-radius: var(--gj-radius);
	background: var(--gj-ground);
}

.gj-author-card__who img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--gj-ink);
}

.gj-author-card__who > div {
	flex: 1 1 320px;
	min-width: 0;
}

.gj-author-card .gj-eyebrow {
	margin: 0;
	font-size: 12px;
}

.gj-author-card__name {
	margin: 4px 0 8px;
	font-family: var(--gj-font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gj-ink);
}

.gj-author-card__bio {
	margin: 0 0 12px;
	font-size: 16px;
	color: var(--gj-text);
}

.gj-author-card .gj-text-link {
	margin: 0;
}

.gj-author-card .gj-text-link a {
	color: var(--gj-blue);
}

.gj-author-card__service {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-top: 12px;
	padding: 20px 28px;
	border: 1px solid var(--gj-line);
	border-radius: var(--gj-radius);
	color: var(--gj-ink);
	text-decoration: none;
}

.gj-author-card__service:hover {
	border-color: var(--gj-blue);
}

.gj-author-card__service-title {
	display: block;
	font-family: var(--gj-font-display);
	font-size: 20px;
	font-weight: 700;
}

.gj-author-card__service-link {
	font-weight: 600;
	color: var(--gj-blue);
}

/* Keep reading: the related posts as three cards, no carousel */
.single-post .entry-related {
	margin-top: 0;
	padding: 72px 0 96px;
	background: var(--gj-ground);
}

.single-post .entry-related-inner-content {
	padding-top: 0;
	padding-bottom: 0;
}

.single-post .entry-related-title {
	margin: 0 0 32px;
	font-size: clamp(28px, 3vw, 40px);
}

.single-post .entry-related .splide__arrows,
.single-post .entry-related .splide__pagination {
	display: none;
}

.single-post .entry-related .splide__list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	transform: none !important;
}

.single-post .entry-related .splide__slide {
	width: auto !important;
	margin: 0 !important;
}

@media (max-width: 1024px) {
	.single-post .entry-related .splide__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.single-post .entry-related .splide__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------------------
   FAQ
   gj-faq-list on a Group holding Details blocks, each with the class gj-faq
   (first answer in the open, then a longer line if needed). inc/schema.php
   turns these items into FAQ markup for search engines.
   -------------------------------------------------------------------------- */

.gj-faq-list {
	max-width: 900px;
	border-bottom: 1px solid var(--gj-line);
}

.gj-faq-list > .wp-block-group__inner-container > * {
	margin-top: 0;
	margin-bottom: 0;
}

.gj-faq-list .gj-faq {
	padding: 22px 0;
	border-top: 1px solid var(--gj-line);
}

.gj-faq-list .gj-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	font-family: var(--gj-font-display);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gj-ink);
}

.gj-faq-list .gj-faq summary::-webkit-details-marker {
	display: none;
}

.gj-faq-list .gj-faq summary::after {
	content: "+";
	flex: none;
	font-family: var(--gj-font-mono);
	font-size: 22px;
	font-weight: 400;
	color: var(--gj-blue);
}

.gj-faq-list .gj-faq[open] summary::after {
	content: "\2212";
}

.gj-faq-list .gj-faq summary:hover,
.gj-faq-list .gj-faq summary:focus-visible {
	color: var(--gj-blue);
}

.gj-faq-list .gj-faq p {
	max-width: 760px;
	margin: 14px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--gj-text-strong);
}

.gj-faq-list .gj-faq p + p {
	margin-top: 10px;
	font-size: 16px;
	color: var(--gj-text);
}

/* --------------------------------------------------------------------------
   Legal text (Privacy Policy)
   gj-legal on a Group around the policy's headings and paragraphs.
   -------------------------------------------------------------------------- */

.gj-legal {
	max-width: 760px;
}

.entry-content .gj-legal h2 {
	margin: 48px 0 14px;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.entry-content .gj-legal > h2:first-child,
.entry-content .gj-legal > .wp-block-group__inner-container > h2:first-child {
	margin-top: 0;
}

.entry-content .gj-legal p {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.7;
	color: var(--gj-text-strong);
}

.gj-legal a {
	color: var(--gj-blue);
	text-underline-offset: 3px;
}
