/*
Theme Name: DeviceGuidely
Author: Device Guidely
Description: A clean, fast, SEO-friendly theme for device and gadget reviews and buying guides.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deviceguidely
Tags: blog, one-column, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ---------- Variables ---------- */
:root {
	/* Brand colours, matching the deviceguidely logo */
	--gp-dark: #17181b;          /* logo "device" */
	--gp-accent: #ff5a1f;        /* decoration only, too light for small text on white */
	--gp-accent-text: #b83300;   /* readable orange for text on white */
	--gp-accent-soft: #ffece4;
	--gp-steel-soft: #f1f0ec;

	--gp-primary: #b83300;       /* links */
	--gp-primary-dark: var(--gp-dark);
	--gp-text: #1f2430;
	--gp-muted: #5b5c60;
	--gp-bg: #faf9f6;
	--gp-card: #ffffff;
	--gp-border: #e6e4de;
	--gp-radius: 8px;
	--gp-width: 1140px;
	--gp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Hind Siliguri", Arial, sans-serif;
	--gp-font-display: "Segoe UI", system-ui, -apple-system, Roboto, "Hind Siliguri", Arial, sans-serif; /* big headings */
	--gp-accent-btn: #c93800; /* white text on it passes contrast at button size */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--gp-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--gp-text);
	background: var(--gp-bg);
}
a { color: var(--gp-primary); text-decoration: none; }
a:hover { color: var(--gp-primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.3; margin: 1.4em 0 .6em; }

.gp-container { max-width: var(--gp-width); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: static; width: auto; height: auto; clip: auto;
	display: inline-block; padding: 8px 14px; background: #fff; z-index: 999;
}

/* ---------- Header ---------- */
.site-header {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--gp-border);
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .site-header { top: 32px; }
.site-header::before { /* thin brand stripe on top */
	content: ""; display: block; height: 3px;
	background: linear-gradient(90deg, var(--gp-dark) 0 55%, var(--gp-accent) 55% 100%);
}
.header-inner {
	display: flex; align-items: center;
	gap: 20px; min-height: 76px; flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; cursor: pointer;
	background: none; color: var(--gp-text);
	border: 1px solid var(--gp-border); border-radius: 8px;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--gp-accent-text); border-color: var(--gp-accent); }
.header-search { border-top: 1px solid var(--gp-border); background: var(--gp-card); padding: 14px 0; }
.header-search[hidden] { display: none; }
.header-search .search-form { max-width: 640px; margin: 0 auto; }
.custom-logo-link { display: block; line-height: 0; }
.site-branding .custom-logo { height: 60px; width: auto; max-width: none; }
.site-title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.site-title a { color: var(--gp-text); }
.site-title a:hover { text-decoration: none; color: var(--gp-primary); }
.site-description { margin: 0; font-size: .85rem; color: var(--gp-muted); }

/* ---------- Main menu (shared) ---------- */
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a { position: relative; display: block; color: var(--gp-dark); font-weight: 600; }
.main-navigation a:hover { color: var(--gp-dark); text-decoration: none; }
.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	padding: 0; color: var(--gp-dark); background: none; border: 0; cursor: pointer;
}
.submenu-toggle svg { transition: transform .25s ease; }
.menu-item-desc { display: block; margin-top: 2px; font-size: .8rem; font-weight: 400; line-height: 1.35; color: var(--gp-muted); }

.menu-toggle {
	display: none; align-items: center; gap: 8px; padding: 8px 12px;
	font-size: 1rem; font-weight: 600; color: var(--gp-dark);
	background: none; border: 1px solid var(--gp-border); border-radius: 10px; cursor: pointer;
}
.menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: width .25s ease; }
.menu-toggle-bars span:nth-child(2) { width: 70%; }
.menu-toggle:hover .menu-toggle-bars span:nth-child(2) { width: 100%; }

.drawer-head, .drawer-foot, .drawer-overlay { display: none; }

/* ---------- Desktop: menu in the header row, animated dropdowns ---------- */
@media (min-width: 1025px) {
	.header-inner { flex-wrap: nowrap; gap: 16px; }
	.nav-drawer { display: flex; align-items: center; }
	#primary-menu { display: flex; align-items: center; gap: 2px; }
	#primary-menu > li { position: relative; display: flex; align-items: center; }
	.nav-drawer { margin-left: auto; }
	#primary-menu > li > a { padding: 10px 12px; white-space: nowrap; } /* never break onto two lines */
	#primary-menu > .menu-item-has-children > a { padding-right: 4px; }
	#primary-menu > li > a::after { /* red underline, grows on hover */
		content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
		background: var(--gp-accent); border-radius: 2px;
		transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
	}
	#primary-menu > .menu-item-has-children > a::after { right: 4px; }
	#primary-menu > li:hover > a::after,
	#primary-menu > li.is-open > a::after,
	#primary-menu > .current-menu-item > a::after,
	#primary-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
	#primary-menu > li > .submenu-toggle { width: 24px; height: 28px; margin-right: 6px; border-radius: 6px; }
	#primary-menu > li:hover > .submenu-toggle svg,
	#primary-menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }

	/* Dropdown panel */
	.main-navigation .sub-menu {
		position: absolute; top: calc(100% + 14px); left: -6px; z-index: 30;
		min-width: 280px; padding: 10px;
		background: #fff; border: 1px solid var(--gp-border); border-radius: 16px;
		box-shadow: 0 24px 50px rgba(23, 24, 27, .16), 0 4px 12px rgba(23, 24, 27, .06);
		opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: top left;
		transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
	}
	.main-navigation .sub-menu::before { /* invisible bridge so the mouse can reach the panel */
		content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
	}
	.main-navigation .sub-menu::after { /* little arrow */
		content: ""; position: absolute; top: -7px; left: 30px; width: 12px; height: 12px;
		background: #fff; border-top: 1px solid var(--gp-border); border-left: 1px solid var(--gp-border);
		transform: rotate(45deg);
	}
	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu,
	.main-navigation li.is-open > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity .22s ease, transform .22s ease, visibility 0s;
	}
	/* Items slide in one after another */
	.main-navigation .sub-menu li { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
	.main-navigation li:hover > .sub-menu li,
	.main-navigation li:focus-within > .sub-menu li,
	.main-navigation li.is-open > .sub-menu li { opacity: 1; transform: none; }
	.main-navigation .sub-menu li:nth-child(2) { transition-delay: .04s; }
	.main-navigation .sub-menu li:nth-child(3) { transition-delay: .08s; }
	.main-navigation .sub-menu li:nth-child(4) { transition-delay: .12s; }
	.main-navigation .sub-menu li:nth-child(5) { transition-delay: .16s; }
	.main-navigation .sub-menu li:nth-child(n+6) { transition-delay: .2s; }

	.main-navigation .sub-menu a {
		padding: 10px 14px 10px 16px; border-radius: 10px; font-size: .95rem;
		transition: background-color .2s ease, padding-left .2s ease;
	}
	.main-navigation .sub-menu a::before { /* red bar grows on hover */
		content: ""; position: absolute; left: 6px; top: 50%; width: 3px; height: 0;
		background: var(--gp-accent); border-radius: 2px; transform: translateY(-50%); transition: height .2s ease;
	}
	.main-navigation .sub-menu a:hover,
	.main-navigation .sub-menu .current-menu-item > a { padding-left: 22px; background: #f3f4f7; }
	.main-navigation .sub-menu a:hover::before,
	.main-navigation .sub-menu .current-menu-item > a::before { height: 60%; }
	.main-navigation .sub-menu a:hover .menu-item-title { color: var(--gp-accent-text); }
}
/* Laptops: a little tighter so logo + 6 items + search fit on one row */
@media (min-width: 1025px) and (max-width: 1300px) {
	.site-branding .custom-logo, .header-logo-light img { height: 50px; }
	#primary-menu > li > a { padding: 10px 9px; font-size: .96rem; }
	#primary-menu > li > a::after { left: 9px; right: 9px; }
	#primary-menu > li > .submenu-toggle { margin-right: 2px; }
}

/* Transparent header over the home hero; turns white on scroll (assets/js/navigation.js). */
.has-hero .site-header {
	position: fixed; top: 0; left: 0; right: 0;
	background: transparent; border-bottom-color: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.admin-bar.has-hero .site-header { top: 32px; }
.has-hero .site-header.is-scrolled,
.has-hero .site-header.menu-open,
.has-hero .site-header.search-open {
	background: rgba(255, 255, 255, .96); border-bottom-color: var(--gp-border);
	box-shadow: 0 8px 28px rgba(23, 24, 27, .08);
	-webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
}
.has-hero .site-header.is-scrolled .header-inner { min-height: 68px; }
.header-inner { transition: min-height .3s ease; }
.header-logo-light { display: none; line-height: 0; }
.header-logo-light img { height: 60px; width: auto; max-width: none; }

.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .custom-logo-link { display: none; }
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .header-logo-light { display: block; }
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .site-title a { color: #fff; }
@media (min-width: 1025px) { /* only the top row turns white; dropdowns and the mobile drawer stay dark-on-white */
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > li > a,
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > li > .submenu-toggle { color: #fff; }
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > .current-menu-item > a,
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > .current-menu-ancestor > a { color: var(--gp-accent); }
}
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .search-toggle,
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .menu-toggle {
	color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35);
}
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .search-toggle:hover { border-color: var(--gp-accent); color: var(--gp-accent); }

/* ---------- Buttons ---------- */
.gp-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
	font-size: 1.1875rem; font-weight: 700; line-height: 1.2; border-radius: 12px;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.gp-btn:hover { text-decoration: none; transform: translateY(-2px); }
.gp-btn svg { transition: transform .2s ease; }
.gp-btn:hover svg { transform: translateX(3px); }
.gp-btn--primary { color: #fff; background: var(--gp-accent-btn); box-shadow: 0 10px 28px rgba(201, 56, 0, .35); }
.gp-btn--primary:hover { color: #fff; background: #a82f00; box-shadow: 0 14px 34px rgba(201, 56, 0, .45); }
.gp-btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .55); }
.gp-btn--ghost:hover { color: var(--gp-dark); background: #fff; border-color: #fff; }

/* ---------- Home hero ---------- */
.gp-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; justify-content: center;
	min-height: clamp(600px, 92vh, 820px); padding: 140px 0 150px;
	text-align: center; color: #fff;
	background:
		radial-gradient(55% 65% at 88% 92%, rgba(201, 56, 0, .42) 0%, rgba(201, 56, 0, 0) 62%),
		radial-gradient(50% 60% at 8% 8%, rgba(120, 120, 124, .5) 0%, rgba(120, 120, 124, 0) 62%),
		linear-gradient(135deg, #17181b 0%, #25272c 52%, #0c0d0f 100%);
}
.gp-hero::before { /* dotted grid that fades out toward the edges */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
	mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}
.gp-hero.has-photo::before { display: none; }
.gp-hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.gp-hero-overlay { position: absolute; inset: 0; z-index: -2; }
.gp-hero.has-photo .gp-hero-overlay {
	background: linear-gradient(180deg, rgba(23, 24, 27, .82) 0%, rgba(23, 24, 27, .58) 45%, rgba(12, 13, 15, .88) 100%);
}
.gp-hero-inner { position: relative; max-width: 900px; }
.gp-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 16px;
	font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: #fff; background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
}
.gp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gp-accent); animation: gp-pulse 2s infinite; }
.gp-hero-title {
	margin: 0 0 22px; font-family: var(--gp-font-display); font-weight: 700;
	font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.12; letter-spacing: -.01em;
	color: #fff; text-wrap: balance;
}
.gp-hero-text {
	margin: 0 auto 36px; max-width: 640px;
	font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .86);
}
.gp-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gp-hero-topics {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 10px; margin-top: 34px;
}
.gp-hero-topics-label { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.gp-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gp-topic {
	display: inline-block; padding: 6px 14px; font-size: .88rem; font-weight: 500;
	color: #fff; background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
}
.gp-topic:hover { color: var(--gp-dark); background: #fff; text-decoration: none; }

.gp-scroll-cue { position: absolute; left: 50%; bottom: 96px; z-index: 1; transform: translateX(-50%); }
.gp-scroll-mouse {
	position: relative; display: block; width: 26px; height: 42px;
	border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px;
}
.gp-scroll-mouse::after {
	content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: #fff; animation: gp-scroll 1.8s infinite;
}
.gp-hero-wave { position: absolute; left: 0; bottom: -1px; z-index: 0; width: 100%; height: 72px; color: var(--gp-bg); }

@keyframes gp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(201, 56, 0, .6); }
	70% { box-shadow: 0 0 0 10px rgba(201, 56, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 56, 0, 0); }
}
@keyframes gp-scroll {
	0% { opacity: 0; transform: translateY(0); }
	30% { opacity: 1; }
	100% { opacity: 0; transform: translateY(12px); }
}
@keyframes gp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Gentle entrance. The H1 is not animated, so it paints at once (good for page-speed scores). */
@media (prefers-reduced-motion: no-preference) {
	.gp-hero-eyebrow { animation: gp-rise .6s ease both; }
	.gp-hero-actions { animation: gp-rise .7s .15s ease both; }
	.gp-hero-topics { animation: gp-rise .7s .25s ease both; }
}
@media (prefers-reduced-motion: reduce) {
	.gp-pulse, .gp-scroll-mouse::after { animation: none; }
	.gp-btn, .gp-btn:hover, .gp-feature:hover { transform: none; }
}

/* ---------- Home sections ---------- */
.gp-section { padding: 84px 0; }
.gp-latest { padding-top: 48px; scroll-margin-top: 40px; } /* "Explore Guides" lands below the fixed header */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
.gp-section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.gp-kicker {
	margin: 0 0 12px; font-size: .8rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--gp-accent-text);
}
.gp-section-title {
	margin: 0; font-family: var(--gp-font-display); font-weight: 700;
	font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.2; color: var(--gp-dark);
}
.gp-section-title span { /* marker-style highlight */
	padding: 0 4px;
	background: linear-gradient(transparent 62%, rgba(201, 56, 0, .3) 62%, rgba(201, 56, 0, .3) 92%, transparent 92%);
}
.gp-section-sub { margin: 14px 0 0; font-size: 1.08rem; color: var(--gp-muted); }

.gp-home .gp-featured { margin-bottom: 28px; border-radius: 16px; box-shadow: 0 18px 44px rgba(23, 24, 27, .07); }
.gp-home .gp-featured-body { padding: 40px 44px; }
.gp-home .gp-featured .entry-title { font-family: var(--gp-font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.gp-home .gp-card { border-radius: 14px; }

/* Why us */
.gp-features { background: #fff; border-top: 1px solid var(--gp-border); border-bottom: 1px solid var(--gp-border); }
.gp-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gp-feature {
	padding: 34px 30px; background: var(--gp-bg);
	border: 1px solid var(--gp-border); border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gp-feature:hover { transform: translateY(-4px); border-color: rgba(201, 56, 0, .35); box-shadow: 0 18px 40px rgba(23, 24, 27, .08); }
.gp-feature-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
	color: #fff; border-radius: 16px;
	background: linear-gradient(135deg, var(--gp-dark), var(--gp-primary));
	box-shadow: 0 10px 22px rgba(23, 24, 27, .25);
}
.gp-feature:nth-child(2) .gp-feature-icon {
	background: linear-gradient(135deg, var(--gp-accent-btn), #f0703f);
	box-shadow: 0 10px 22px rgba(201, 56, 0, .3);
}
.gp-feature-title { margin: 22px 0 8px; font-size: 1.22rem; color: var(--gp-dark); }
.gp-feature-text { margin: 0; color: var(--gp-muted); }

/* Call to action */
.gp-cta-section { padding-bottom: 0; }
.gp-cta {
	position: relative; overflow: hidden;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
	padding: 52px 56px; color: #fff; border-radius: 24px;
	background:
		radial-gradient(60% 140% at 100% 0%, rgba(201, 56, 0, .5) 0%, rgba(201, 56, 0, 0) 60%),
		linear-gradient(135deg, var(--gp-dark) 0%, #2d3036 100%);
	box-shadow: 0 26px 60px rgba(23, 24, 27, .25);
}
.gp-cta::before { /* faint dots, like the hero */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.6px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000);
	mask-image: linear-gradient(90deg, transparent, #000);
}
.gp-cta-copy, .gp-cta .gp-btn { position: relative; }
.gp-cta-title { margin: 0 0 8px; font-family: var(--gp-font-display); font-size: clamp(1.5rem, 3vw, 2.15rem); color: #fff; }
.gp-cta-text { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .84); }
.gp-home + .site-footer { margin-top: 84px; }

/* ---------- Layout ---------- */
.site-content { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 32px 20px; }
.site-content.no-sidebar { grid-template-columns: 1fr; max-width: 860px; }
.site-content > * { min-width: 0; } /* wide content (forms, tables, code) can't push the layout past the screen */

/* ---------- Posts ---------- */
/* min(…, 100%) lets a card shrink below the minimum on very small phones instead of overflowing */
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.gp-card {
	background: var(--gp-card); border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius); overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.gp-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.gp-card .post-thumbnail { display: block; }
.gp-card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Featured (newest) post */
.gp-featured {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 24px;
	background: var(--gp-card); border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius); overflow: hidden;
}
/* Side-by-side: the image fills the card's full height. Covers keep their text on the left,
   so anchor the crop there; on narrow screens the card stacks and the image is a plain 16:9. */
.gp-featured .post-thumbnail { display: flex; min-height: 300px; background: var(--gp-dark); }
.gp-featured .post-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.gp-featured-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.gp-featured .entry-title { font-size: 1.65rem; margin: 10px 0 8px; }
.gp-featured .entry-title a { color: var(--gp-text); }
.gp-featured .entry-title a:hover { color: var(--gp-primary); }
.gp-featured .entry-summary { color: var(--gp-muted); }
.gp-featured .entry-summary p { margin: 10px 0 0; }
.gp-featured-button { align-self: flex-start; margin-top: 18px; }
a.button:hover { color: #fff; text-decoration: none; }

/* Stand-in when a post has no featured image */
.gp-thumb-placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--gp-dark) 0%, var(--gp-primary) 55%, var(--gp-accent) 130%);
	color: rgba(255, 255, 255, .9); font-size: 3.5rem; font-weight: 800;
}
.gp-featured .gp-thumb-placeholder { flex: 1; align-self: stretch; min-height: 280px; aspect-ratio: auto; font-size: 5.5rem; }
.gp-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.gp-card .entry-title { font-size: 1.2rem; margin: 6px 0 8px; }
.gp-card .entry-title a { color: var(--gp-text); }
.gp-card .entry-title a:hover { color: var(--gp-primary); }
.gp-card .entry-summary { color: var(--gp-muted); font-size: .95rem; flex: 1; }
.gp-card .entry-summary p { margin: 0; }
.gp-read-more { margin-top: 14px; font-weight: 600; }

.cat-badge {
	display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
	letter-spacing: .04em; background: var(--gp-accent-soft); color: var(--gp-accent-text);
	padding: 3px 10px; border-radius: 999px;
}
.entry-meta { display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--gp-muted); }
.entry-meta .meta-item { white-space: nowrap; }
.entry-meta .meta-item + .meta-item::before { content: "·"; margin: 0 6px; }
.entry-meta a { color: var(--gp-muted); }

.gp-article {
	background: var(--gp-card); border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius); padding: 36px 40px;
}
.gp-article .entry-title { font-size: 2.1rem; margin-top: 10px; }
.gp-article .post-thumbnail { margin: 20px 0; }
.gp-article .post-thumbnail figcaption { margin-top: 6px; }
.gp-article .post-thumbnail img { border-radius: 8px; width: 100%; }
.entry-content > * { max-width: 100%; }
.entry-content blockquote {
	margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--gp-primary);
	background: #f3f4f6; border-radius: 0 6px 6px 0;
}
.entry-content pre, .entry-content code {
	font-family: Consolas, Monaco, monospace; background: #f3f4f6; border-radius: 6px;
}
.entry-content code { padding: 2px 6px; font-size: .9em; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--gp-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: #f3f4f6; }
.entry-content .wp-block-table { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* wide tables scroll on phones */
.entry-content .wp-block-table table { margin: 0; min-width: 480px; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th { color: #fff; background: var(--gp-dark); border-color: var(--gp-dark); }
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: #f8fafc; }
.tags-links { margin-top: 28px; font-size: .9rem; }

.page-header { margin-bottom: 24px; }
.page-title { margin: 0 0 6px; font-size: 1.8rem; }
.archive-description { color: var(--gp-muted); }

/* Post navigation & pagination */
.post-navigation .nav-links, .pagination .nav-links {
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px;
}
.pagination .nav-links { justify-content: center; }
.pagination .page-numbers {
	padding: 8px 14px; border: 1px solid var(--gp-border);
	border-radius: 6px; background: var(--gp-card);
}
.pagination .page-numbers.current { background: var(--gp-primary); color: #fff; border-color: var(--gp-primary); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--gp-muted); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--gp-border); }
.breadcrumbs a { color: var(--gp-muted); }
.breadcrumbs [aria-current="page"] { color: var(--gp-text); }

/* ---------- Table of contents ---------- */
.gp-toc {
	margin: 0 0 1.8em; padding: 16px 22px; background: var(--gp-bg);
	border: 1px solid var(--gp-border); border-left: 4px solid var(--gp-accent); border-radius: 12px;
}
.gp-toc summary { font-weight: 700; color: var(--gp-dark); cursor: pointer; }
/* Bullets instead of numbers: headings often start with their own number ("1. …") */
.gp-toc ol { margin: 10px 0 0; padding: 0; list-style: none; }
.gp-toc li { position: relative; margin: 6px 0; padding-left: 18px; line-height: 1.5; }
.gp-toc li::before {
	content: ""; position: absolute; left: 2px; top: .62em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--gp-accent);
}
.gp-toc .toc-level-3 { margin-left: 18px; }
.gp-toc .toc-level-3::before { background: transparent; border: 1.5px solid var(--gp-accent); }
.entry-content [id] { scroll-margin-top: 90px; } /* headings clear the sticky header */

/* ---------- Author box ---------- */
.gp-author-box {
	display: flex; gap: 18px; align-items: flex-start; margin-top: 28px;
	background: var(--gp-card); border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius); padding: 22px 24px;
}
.gp-author-box img { border-radius: 50%; flex-shrink: 0; }
.gp-author-box .author-name { margin: 0 0 6px; font-size: 1.15rem; }
.gp-author-box h1.author-name { font-size: 1.8rem; }
.gp-author-box .author-bio { margin: 0 0 8px; color: var(--gp-muted); }
.gp-author-box .author-links { margin: 0; display: flex; gap: 16px; font-weight: 600; font-size: .9rem; }
.author .gp-author-box { margin: 0 0 24px; }

/* ---------- Related posts ---------- */
.gp-related { margin-top: 36px; }
.gp-related .related-title { margin: 0 0 16px; font-size: 1.4rem; }
.gp-related .gp-card .entry-title { font-size: 1.05rem; }

/* ---------- Sidebar / Widgets ---------- */
.widget-area .widget {
	background: var(--gp-card); border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius); padding: 20px 22px; margin-bottom: 24px;
}
.widget-title, .widget .wp-block-heading { font-size: 1.05rem; margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--gp-border); }
.widget li:last-child { border-bottom: 0; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; display: flex; }
.search-field { width: 100%; }
.search-field {
	flex: 1; padding: 10px 12px; border: 1px solid var(--gp-border);
	border-radius: 6px; font-size: 1rem;
}
.search-submit, .button, button[type="submit"], input[type="submit"] {
	background: var(--gp-primary); color: #fff; border: 0; border-radius: 6px;
	padding: 10px 18px; font-size: .95rem; cursor: pointer;
}
.search-submit:hover, .button:hover, input[type="submit"]:hover { background: var(--gp-primary-dark); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body {
	background: var(--gp-card); border: 1px solid var(--gp-border);
	border-radius: 8px; padding: 16px 18px; margin-bottom: 14px;
}
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: .8rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--gp-border);
	border-radius: 6px; font: inherit;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; color: #c9c9c6; background: var(--gp-dark); }
.gp-related + .site-footer { margin-top: 0; }

/* Newsletter */
.dg-news { padding: 52px 0; color: #fff; background: var(--gp-accent-btn); scroll-margin-top: 72px; }
.dg-news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: center; }
.dg-news h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; color: #fff; }
.dg-news p { margin: 10px 0 0; }
.dg-news-row { display: flex; gap: 10px; }
.dg-news-row input {
	flex: 1; min-width: 0; height: 54px; padding: 0 18px; font: inherit; font-size: 1rem;
	color: var(--gp-text); background: #fff; border: 0; border-radius: 6px;
}
.dg-news-row input::placeholder { color: #5c6470; opacity: 1; }
.dg-news-row input:focus { outline: 3px solid var(--gp-dark); outline-offset: 0; }
.dg-news-row button {
	height: 54px; padding: 0 30px; font: inherit; font-size: 1rem; font-weight: 700; white-space: nowrap;
	color: #fff; background: var(--gp-dark); border: 0; border-radius: 6px; cursor: pointer; transition: background-color .2s ease;
}
.dg-news-row button:hover { background: #2d3036; }
.dg-news-row button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dg-news-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.dg-news-consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gp-dark); }
.site-footer .dg-news a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dg-news .dg-news-error { margin: 0 0 12px; padding: 10px 14px; font-weight: 600; color: #8f0f1a; background: #fff; border-radius: 6px; }
.dg-news .dg-news-done { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1.15rem; font-weight: 700; }
.dg-news-done svg { flex-shrink: 0; width: 46px; height: 46px; padding: 10px; color: var(--gp-accent-text); background: #fff; border-radius: 50%; }

/* Columns */
.site-footer a { color: #fff; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.footer-main {
	display: grid; grid-template-columns: minmax(0, 1.3fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	gap: 40px 56px; padding-top: 60px; padding-bottom: 48px;
}
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: 210px; height: auto; }
.footer-title { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.3; }
.footer-tagline { margin: 18px 0 0; max-width: 300px; }
.site-footer .widget { background: none; border: 0; padding: 0; margin: 0; }
.site-footer .widget-title { margin: 0 0 14px; font-size: 1.06rem; font-weight: 700; color: #fff; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: 0; border: 0; }
.site-footer .widget a { display: inline-block; padding: 5px 0; line-height: 1.45; color: #c9c9c6; }
.site-footer .widget a:hover { color: #fff; }

/* Social icons */
.footer-social .widget-title { margin-bottom: 18px; }
.footer-social ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-social a {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	color: #fff; background: #2d3036; border-radius: 6px; transition: background-color .2s ease;
}
.footer-social a:hover { background: var(--gp-accent-btn); }
.social-hint { margin: 14px 0 0; font-size: .86rem; line-height: 1.5; color: #a5a6a8; }
.footer-social:empty { display: none; }
.footer-note { margin: 0; padding: 20px 0; font-size: .9rem; border-top: 1px solid #3d4048; }
.footer-note a { text-decoration: underline; text-underline-offset: 3px; }
.site-info {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-bottom: 28px; font-size: .9rem;
}
.footer-copy { margin-right: auto; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer .footer-navigation a { display: inline-block; padding: 6px 0; color: #c9c9c6; }
.site-footer .footer-navigation a:hover { color: #fff; }
.footer-top { display: inline-block; padding: 6px 0; font-weight: 700; }

@media (max-width: 1000px) {
	.footer-main { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 48px; }
	.dg-news-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.dg-news { padding: 40px 0; }
	.dg-news-row { flex-direction: column; }
	.dg-news-row input, .dg-news-row button { flex: none; width: 100%; }
	.footer-main { gap: 34px 24px; padding-top: 40px; padding-bottom: 34px; }
	.footer-brand, .footer-social, .footer-main.has-widgets > * { grid-column: 1 / -1; }
	.site-footer .widget a { padding: 8px 0; }
	.footer-copy { flex-basis: 100%; }
	.site-footer .footer-navigation a, .footer-top { padding: 8px 0; }
}

/* ---------- Page header band (contact page) ---------- */
.gp-page-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 34px 0 110px; color: #fff;
	background:
		radial-gradient(45% 90% at 92% 100%, rgba(201, 56, 0, .4) 0%, rgba(201, 56, 0, 0) 62%),
		radial-gradient(40% 80% at 5% 0%, rgba(120, 120, 124, .45) 0%, rgba(120, 120, 124, 0) 62%),
		linear-gradient(135deg, #17181b 0%, #25272c 55%, #0c0d0f 100%);
}
.gp-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.6px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.gp-page-hero .breadcrumbs, .gp-page-hero .breadcrumbs a { color: rgba(255, 255, 255, .72); }
.gp-page-hero .breadcrumbs a:hover { color: #fff; }
.gp-page-hero .breadcrumbs [aria-current="page"] { color: #fff; }
.gp-page-hero .breadcrumbs li + li::before { color: rgba(255, 255, 255, .35); }
.gp-page-hero-title {
	margin: 22px 0 12px; font-family: var(--gp-font-display);
	font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.15; color: #fff;
}
.gp-page-hero-text { margin: 0; max-width: 640px; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }

/* ---------- Contact page ---------- */
.gp-contact-layout {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start;
	margin-top: -72px;
}
.gp-contact-card, .gp-contact-info {
	background: #fff; border: 1px solid var(--gp-border); border-radius: 22px;
	box-shadow: 0 24px 60px rgba(23, 24, 27, .1);
}
.gp-contact-card { padding: 40px 42px; }
#contact-form { scroll-margin-top: 110px; }

.gp-form-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.gp-form-badge {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px; color: #fff;
	background: linear-gradient(135deg, var(--gp-accent-btn), #f0703f);
	box-shadow: 0 10px 22px rgba(201, 56, 0, .3);
}
.gp-form-head h2 { margin: 0 0 4px; font-family: var(--gp-font-display); font-size: 1.7rem; line-height: 1.25; color: var(--gp-dark); }
.gp-form-head p { margin: 0; color: var(--gp-muted); }

.gp-form-alert {
	margin-bottom: 24px; padding: 14px 18px; font-size: .95rem;
	color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px;
}
.gp-form-alert ul { margin: 6px 0 0; padding-left: 20px; }

.gp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.gp-field--full { grid-column: 1 / -1; }
.gp-field > label:not(.gp-consent) { display: block; margin-bottom: 7px; font-size: .92rem; font-weight: 600; color: var(--gp-dark); }
.gp-field .req { color: var(--gp-accent-text); }
.gp-optional { font-weight: 400; color: var(--gp-muted); }
.gp-input-wrap { position: relative; }
.gp-input-wrap > svg {
	position: absolute; top: 50%; left: 15px; transform: translateY(-50%);
	color: #94a3b8; pointer-events: none; transition: color .2s ease;
}
.gp-input-wrap:focus-within > svg { color: var(--gp-primary); }
.gp-contact-form input[type="text"],
.gp-contact-form input[type="email"],
.gp-contact-form input[type="url"],
.gp-contact-form select,
.gp-contact-form textarea {
	display: block; width: 100%; padding: 13px 14px 13px 44px;
	font: inherit; font-size: 1rem; line-height: 1.5; color: var(--gp-text);
	background-color: #f8fafc; border: 1.5px solid var(--gp-border); border-radius: 12px;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.gp-contact-form textarea { min-height: 170px; padding-left: 16px; resize: vertical; }
.gp-contact-form select {
	-webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.gp-contact-form ::placeholder { color: #9aa4b2; }
.gp-contact-form input:hover, .gp-contact-form select:hover, .gp-contact-form textarea:hover { border-color: #cbd5e1; }
.gp-contact-form input:focus, .gp-contact-form select:focus, .gp-contact-form textarea:focus {
	outline: none; background-color: #fff; border-color: var(--gp-primary);
	box-shadow: 0 0 0 4px rgba(184, 51, 0, .12);
}
.gp-contact-form [aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.gp-field-error { margin: 7px 0 0; font-size: .85rem; color: #b91c1c; }
.gp-field-meta { display: flex; justify-content: space-between; gap: 12px; }
.gp-counter { white-space: nowrap; flex-shrink: 0; margin: 7px 0 0 auto; font-size: .8rem; color: var(--gp-muted); }

.gp-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; line-height: 1.55; cursor: pointer; }
.gp-consent input { flex-shrink: 0; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--gp-dark); cursor: pointer; }

.gp-form-footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gp-border);
}
.gp-contact-form .gp-submit { /* beats the generic button[type="submit"] style */
	padding: 14px 30px; font-family: inherit; font-size: 1.1875rem; border: 0; border-radius: 12px;
	background: var(--gp-accent-btn); cursor: pointer;
}
.gp-contact-form .gp-submit:hover { background: #a82f00; }
.gp-submit.is-loading { opacity: .75; cursor: progress; transform: none; }
.gp-secure-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .86rem; color: var(--gp-muted); }
.gp-secure-note svg { color: #16a34a; }
.gp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gp-form-success { padding: 30px 10px; text-align: center; }
.gp-success-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 76px; height: 76px; border-radius: 50%; color: #fff;
	background: linear-gradient(135deg, #16a34a, #22c55e);
	box-shadow: 0 14px 30px rgba(22, 163, 74, .3);
}
@media (prefers-reduced-motion: no-preference) {
	.gp-success-icon { animation: gp-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
}
@keyframes gp-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.gp-form-success h2 { margin: 22px 0 8px; font-family: var(--gp-font-display); font-size: 1.7rem; color: var(--gp-dark); }
.gp-form-success p { margin: 0 auto; max-width: 440px; color: var(--gp-muted); }
.gp-btn-outline {
	display: inline-block; margin-top: 22px; padding: 11px 22px; font-weight: 700;
	color: var(--gp-dark); border: 1.5px solid var(--gp-dark); border-radius: 10px;
	transition: background-color .2s ease, color .2s ease;
}
.gp-btn-outline:hover { color: #fff; background: var(--gp-dark); text-decoration: none; }

/* Info card: the page content from the editor */
.gp-contact-info { padding: 32px 30px; }
.gp-contact-info > :first-child { margin-top: 0; }
.gp-contact-info > :last-child { margin-bottom: 0; }
.gp-contact-info h2 {
	display: flex; align-items: center; gap: 10px;
	margin: 28px 0 10px; font-size: 1.06rem; color: var(--gp-dark);
}
.gp-contact-info h2::before { content: ""; flex-shrink: 0; width: 4px; height: 18px; border-radius: 2px; background: var(--gp-accent); }
.gp-contact-info p, .gp-contact-info li { font-size: .95rem; }
.gp-contact-info p { margin: 0 0 10px; }
.gp-contact-info ul { list-style: none; margin: 0 0 10px; padding: 0; }
.gp-contact-info li { position: relative; padding: 3px 0 3px 28px; }
.gp-contact-info li::before {
	content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--gp-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b83300' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.gp-contact-info a[href^="mailto:"] {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 9px 14px;
	font-weight: 700; color: var(--gp-dark); background: var(--gp-steel-soft); border-radius: 10px; word-break: break-all;
}
.gp-contact-info a[href^="mailto:"]:hover { color: #fff; background: var(--gp-dark); text-decoration: none; }
.gp-contact-info .gp-note { padding: 12px 14px; font-size: .88rem; color: var(--gp-muted); background: var(--gp-bg); border-radius: 10px; }

/* ---------- Blog page & category pages ---------- */
.gp-blog-hero { padding-bottom: 104px; }
.gp-hero-kicker {
	margin: 22px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: #ffb899;
}
.gp-blog-hero .gp-page-hero-title { margin-top: 10px; }
.gp-page-hero-text p { margin: 0; }
.gp-hero-meta {
	display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; padding: 6px 14px;
	font-size: .88rem; color: #fff; background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
}
.gp-blog-layout { position: relative; z-index: 1; margin-top: -60px; }
.gp-cat-nav {
	margin-bottom: 36px; padding: 12px; background: #fff;
	border: 1px solid var(--gp-border); border-radius: 18px;
	box-shadow: 0 20px 50px rgba(23, 24, 27, .1);
}
.gp-chips {
	display: flex; gap: 8px; margin: 0; padding: 2px; list-style: none;
	overflow-x: auto; scrollbar-width: none; /* swipe sideways on phones */
}
.gp-chips::-webkit-scrollbar { display: none; }
.gp-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; white-space: nowrap;
	font-weight: 600; color: var(--gp-dark); background: var(--gp-bg);
	border: 1px solid transparent; border-radius: 12px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.gp-chip:hover { color: var(--gp-dark); background: var(--gp-steel-soft); text-decoration: none; }
.gp-chip.is-active { color: #fff; background: var(--gp-dark); box-shadow: 0 8px 18px rgba(23, 24, 27, .25); }
.gp-chip-count {
	min-width: 24px; padding: 1px 8px; font-size: .75rem; font-weight: 700; text-align: center;
	color: var(--gp-muted); background: #fff; border-radius: 999px;
}
.gp-chip.is-active .gp-chip-count { color: #fff; background: rgba(255, 255, 255, .18); }
.gp-chips--sub { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--gp-border); }
.gp-chips--sub .gp-chip { padding: 7px 13px; font-size: .9rem; font-weight: 500; background: transparent; border-color: var(--gp-border); box-shadow: none; }
.gp-chips--sub .gp-chip:hover { border-color: var(--gp-accent); background: var(--gp-accent-soft); }
.gp-chips--sub .gp-chip.is-active { color: var(--gp-accent-text); background: var(--gp-accent-soft); border-color: rgba(201, 56, 0, .4); }
.gp-chips--sub .gp-chip-count { background: var(--gp-bg); }
.gp-chips--sub .gp-chip.is-active .gp-chip-count { color: #fff; background: var(--gp-accent-text); }

.gp-blog-main .gp-grid,
.gp-home .gp-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.gp-blog-main .gp-featured { margin-bottom: 28px; border-radius: 16px; box-shadow: 0 18px 44px rgba(23, 24, 27, .07); }
.gp-blog-main .gp-featured-body { padding: 40px 44px; }
.gp-blog-main .gp-featured .entry-title { font-family: var(--gp-font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.gp-blog-main .gp-card { border-radius: 14px; }

/* Card polish: image zooms gently on hover, titles stay tidy */
.gp-card .post-thumbnail { overflow: hidden; }
.gp-card .post-thumbnail img, .gp-featured .post-thumbnail img { transition: transform .5s ease; }
.gp-card:hover .post-thumbnail img, .gp-featured:hover .post-thumbnail img { transform: scale(1.04); }
.gp-featured .post-thumbnail { overflow: hidden; }
.gp-card .entry-title a {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Pagination */
.pagination .nav-links { gap: 8px; margin-top: 44px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
	padding: 0 14px; font-weight: 600; color: var(--gp-dark); border-radius: 12px;
}
.pagination a.page-numbers:hover { border-color: var(--gp-dark); text-decoration: none; }
.pagination .page-numbers.current { color: #fff; background: var(--gp-dark); border-color: var(--gp-dark); }

/* Empty category */
.gp-empty { text-align: center; padding: 48px 28px; }
.gp-empty-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
	color: var(--gp-accent-text); background: var(--gp-accent-soft); border-radius: 18px;
}
.gp-empty .entry-title { margin: 18px 0 8px; font-family: var(--gp-font-display); color: var(--gp-dark); }
.gp-empty p { max-width: 460px; margin: 0 auto; color: var(--gp-muted); }

/* ---------- Front page: extra sections ---------- */
.gp-section-actions { margin-top: 44px; text-align: center; }
.gp-btn-outline--lg { display: inline-flex; align-items: center; gap: 10px; margin-top: 0; padding: 13px 26px; font-size: 1.02rem; }
.gp-btn-outline svg { transition: transform .2s ease; }
.gp-btn-outline:hover svg { transform: translateX(3px); }

.gp-categories { background: #fff; border-top: 1px solid var(--gp-border); border-bottom: 1px solid var(--gp-border); }
.gp-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gp-cat-card {
	position: relative; overflow: hidden; display: flex; flex-direction: column;
	padding: 28px 24px 22px; background: #fff; border: 1px solid var(--gp-border); border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gp-cat-card::after { /* brand bar slides in on hover */
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--gp-dark), var(--gp-accent));
	transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.gp-cat-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 48px rgba(23, 24, 27, .12); }
.gp-cat-card:hover::after { transform: scaleX(1); }
.gp-cat-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 18px;
	color: var(--gp-accent-text); background: var(--gp-accent-soft); border-radius: 14px;
}
.gp-cat-card:nth-child(even) .gp-cat-icon { color: var(--gp-dark); background: var(--gp-steel-soft); }
.gp-cat-name { margin: 0 0 8px; font-size: 1.2rem; }
.gp-cat-name a { color: var(--gp-dark); }
.gp-cat-name a::before { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.gp-cat-name a:hover { text-decoration: none; }
.gp-cat-desc { flex: 1; margin: 0 0 16px; font-size: .93rem; color: var(--gp-muted); }
.gp-cat-subs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.gp-cat-subs a {
	display: inline-block; padding: 4px 10px; font-size: .8rem; color: var(--gp-text);
	background: var(--gp-bg); border: 1px solid var(--gp-border); border-radius: 999px;
	transition: border-color .2s ease, color .2s ease;
}
.gp-cat-subs a:hover { color: var(--gp-accent-text); border-color: var(--gp-accent); text-decoration: none; }
.gp-cat-more {
	display: flex; align-items: center; justify-content: space-between; margin: 0; padding-top: 14px;
	font-size: .88rem; font-weight: 700; color: var(--gp-dark); border-top: 1px solid var(--gp-border);
}
.gp-cat-more svg { color: var(--gp-accent-text); transition: transform .2s ease; }
.gp-cat-card:hover .gp-cat-more svg { transform: translateX(4px); }

.gp-features { background: transparent; border: 0; }
.gp-feature { background: #fff; }

.gp-article .entry-content a {
	font-weight: 600; text-decoration: underline; text-decoration-color: rgba(201, 56, 0, .55);
	text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.gp-article .entry-content a:hover { text-decoration-color: var(--gp-accent); }
.gp-article .entry-content .gp-toc a { font-weight: 500; text-decoration: none; }

/* FAQ accordions (Details block) */
.entry-content .wp-block-details {
	margin: 12px 0; padding: 0 22px; background: var(--gp-bg);
	border: 1px solid var(--gp-border); border-radius: 14px;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.entry-content .wp-block-details[open] { background: #fff; box-shadow: 0 12px 30px rgba(23, 24, 27, .07); }
.entry-content .wp-block-details summary {
	position: relative; padding: 18px 44px 18px 0; font-weight: 700; color: var(--gp-dark);
	list-style: none; cursor: pointer;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%;
	display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
	font-size: 1.25rem; line-height: 1; color: var(--gp-accent-text); background: var(--gp-accent-soft);
	border-radius: 50%; transform: translateY(-50%); transition: transform .25s ease;
}
.entry-content .wp-block-details[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.entry-content .wp-block-details > :last-child { margin-bottom: 18px; }
.entry-content .wp-block-details p { margin-top: 0; color: #374151; }

@media (max-width: 1100px) {
	.gp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.gp-cat-grid { grid-template-columns: minmax(0, 1fr); }
	.gp-blog-main .gp-featured-body { padding: 24px 22px; }
	.gp-blog-main .gp-featured .post-thumbnail { min-height: 0; }
	.gp-blog-layout { margin-top: -70px; }
}

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--gp-muted); text-align: center; }
.sticky .gp-card, .gp-card.sticky { border-color: var(--gp-primary); }
.bypostauthor > .comment-body { border-color: var(--gp-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.site-content { grid-template-columns: minmax(0, 1fr); }
	.gp-article { padding: 24px 20px; }
	.gp-article .entry-title { font-size: 1.7rem; }
	.gp-feature-grid { grid-template-columns: minmax(0, 1fr); }
	.gp-section { padding: 64px 0; }
	.gp-contact-layout { grid-template-columns: minmax(0, 1fr); margin-top: -56px; }
	.gp-page-hero { padding-bottom: 90px; }
}
@media (max-width: 640px) {
	.gp-contact-card { padding: 28px 20px; border-radius: 18px; }
	.gp-contact-info { padding: 26px 22px; border-radius: 18px; }
	.gp-form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.gp-form-head { flex-direction: column; gap: 12px; }
	.gp-form-footer .gp-submit { width: 100%; justify-content: center; }
}
@media (max-width: 782px) {
	.admin-bar .site-header, .admin-bar.has-hero .site-header { top: 46px; }
}
@media (max-width: 700px) {
	.gp-featured { grid-template-columns: minmax(0, 1fr); }
	.gp-featured .post-thumbnail { min-height: 0; }
	.gp-featured .gp-thumb-placeholder { aspect-ratio: 16 / 9; font-size: 4rem; }
	.gp-featured-body, .gp-home .gp-featured-body { padding: 24px 22px; }
	.gp-home .gp-featured .post-thumbnail { min-height: 0; }
	.gp-hero { min-height: 0; padding: 120px 0 110px; }
	.gp-scroll-cue { display: none; }
	.gp-btn { padding: 13px 24px; }
	.gp-cta { padding: 36px 26px; border-radius: 18px; }
	.gp-hero-wave { height: 40px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; } /* WP admin bar scrolls away on small screens */
}
@media (max-width: 768px) {
	.header-inner { padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
	.site-branding .custom-logo, .header-logo-light img { height: 44px; }
}

/* ---------- Mobile/tablet: side drawer menu (≤1024px) ---------- */
@media (max-width: 1024px) {
	.menu-toggle { display: inline-flex; }

	/* A blurred (backdrop-filter) header would trap the fixed drawer inside it, so use solid colours. */
	.site-header,
	.has-hero .site-header.is-scrolled,
	.has-hero .site-header.search-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
	.site-header { background: #fff; }
	.has-hero .site-header.is-scrolled { background: #fff; }

	.nav-drawer {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
		display: flex; flex-direction: column; width: min(86vw, 360px);
		background: #fff; box-shadow: -24px 0 60px rgba(23, 24, 27, .28);
		overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(100%); visibility: hidden;
		transition: transform .38s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .38s;
	}
	.nav-drawer.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.22, .61, .36, 1), visibility 0s; }
	.admin-bar .nav-drawer { top: 32px; }

	.drawer-overlay {
		display: block; position: fixed; inset: 0; z-index: 1000;
		background: rgba(12, 13, 15, .55);
		opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
	}
	.drawer-open .drawer-overlay { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
	html.drawer-open { overflow: hidden; } /* page behind does not scroll */

	.drawer-head {
		position: sticky; top: 0; z-index: 1;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 14px 16px 14px 20px; background: #fff; border-bottom: 1px solid var(--gp-border);
	}
	.drawer-head::before { /* brand stripe */
		content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
		background: linear-gradient(90deg, var(--gp-dark) 0 55%, var(--gp-accent) 55% 100%);
	}
	.drawer-logo { display: block; line-height: 0; }
	.drawer-logo img { width: auto; height: 42px; }
	.drawer-close {
		display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
		width: 40px; height: 40px; padding: 0; color: var(--gp-dark);
		background: var(--gp-bg); border: 1px solid var(--gp-border); border-radius: 12px; cursor: pointer;
		transition: transform .3s ease, color .2s ease, border-color .2s ease;
	}
	.drawer-close:hover { color: var(--gp-accent-text); border-color: var(--gp-accent); transform: rotate(90deg); }

	.main-navigation { padding: 8px 14px 16px; }
	#primary-menu > li {
		display: flex; flex-wrap: wrap; align-items: center;
		border-bottom: 1px solid #eceef2;
		opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .35s ease;
	}
	.nav-drawer.is-open #primary-menu > li { opacity: 1; transform: none; }
	.nav-drawer.is-open #primary-menu > li:nth-child(1) { transition-delay: .08s; }
	.nav-drawer.is-open #primary-menu > li:nth-child(2) { transition-delay: .12s; }
	.nav-drawer.is-open #primary-menu > li:nth-child(3) { transition-delay: .16s; }
	.nav-drawer.is-open #primary-menu > li:nth-child(4) { transition-delay: .2s; }
	.nav-drawer.is-open #primary-menu > li:nth-child(5) { transition-delay: .24s; }
	.nav-drawer.is-open #primary-menu > li:nth-child(6) { transition-delay: .28s; }
	.nav-drawer.is-open #primary-menu > li:nth-child(n+7) { transition-delay: .32s; }

	#primary-menu > li > a { flex: 1; padding: 15px 8px; font-size: 1.06rem; }
	#primary-menu > .current-menu-item > a,
	#primary-menu > .current-menu-ancestor > a { color: var(--gp-accent-text); }
	#primary-menu > li > .submenu-toggle {
		width: 38px; height: 38px; border-radius: 10px; background: var(--gp-bg);
		transition: background-color .2s ease, color .2s ease;
	}
	#primary-menu > li.is-open > .submenu-toggle { color: var(--gp-accent-text); background: var(--gp-accent-soft); }
	#primary-menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }

	/* Accordion submenu */
	.main-navigation .sub-menu {
		flex-basis: 100%; max-height: 0; overflow: hidden;
		margin: 0 0 0 8px; padding: 0;
		transition: max-height .38s ease, padding .38s ease;
	}
	.main-navigation li.is-open > .sub-menu { max-height: 640px; padding-bottom: 12px; }
	.main-navigation .sub-menu a {
		padding: 9px 12px; font-size: .97rem; font-weight: 500; color: var(--gp-text);
		border-left: 2px solid var(--gp-border);
		transition: border-color .2s ease, color .2s ease, background-color .2s ease;
	}
	.main-navigation .sub-menu a:hover,
	.main-navigation .sub-menu .current-menu-item > a { color: var(--gp-dark); background: var(--gp-bg); border-left-color: var(--gp-accent); }
	.main-navigation .menu-item-desc { display: none; }

	.drawer-foot {
		display: flex; flex-direction: column; gap: 12px; margin-top: auto;
		padding: 18px 16px 22px; background: var(--gp-bg); border-top: 1px solid var(--gp-border);
	}
	.drawer-cta { justify-content: center; padding: 12px 20px; font-size: 1.05rem; }
}
@media (max-width: 782px) {
	.admin-bar .nav-drawer { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	.nav-drawer, .drawer-overlay, .main-navigation .sub-menu, .main-navigation .sub-menu li, #primary-menu > li { transition: none !important; }
}

/* =========================================================================
   Responsive refinements: phones (320–480), tablets (768–1024), large screens
   ========================================================================= */

/* Tablets and below: the large "featured" card stacks (image on top) */
@media (max-width: 900px) {
	.gp-featured { grid-template-columns: minmax(0, 1fr); }
	.gp-featured .post-thumbnail { min-height: 0; }
	.gp-featured .post-thumbnail img { height: auto; aspect-ratio: 16 / 9; object-position: center; }
	.gp-featured .gp-thumb-placeholder { min-height: 0; aspect-ratio: 16 / 9; font-size: 4rem; }
	.gp-home .gp-featured-body,
	.gp-blog-main .gp-featured-body { padding: 26px 28px 30px; }
}

/* Phones */
@media (max-width: 480px) {
	.gp-container { padding-left: 16px; padding-right: 16px; }
	.site-content { padding: 24px 16px; }
	.header-inner { gap: 10px; }
	.site-branding .custom-logo, .header-logo-light img { height: 38px; }
	.header-actions { gap: 6px; }
	.search-toggle { width: 38px; height: 38px; }
	.menu-toggle { padding: 7px 10px; }

	.gp-hero { padding: 108px 0 96px; }
	.gp-hero-eyebrow { padding: 6px 12px; font-size: .7rem; letter-spacing: .08em; }
	.gp-hero-actions { flex-direction: column; align-items: center; }
	.gp-hero-actions .gp-btn { justify-content: center; width: 100%; max-width: 320px; }
	.gp-hero-topics { margin-top: 26px; }

	.gp-section { padding: 52px 0; }
	.gp-section-head { margin-bottom: 30px; }
	.gp-featured .entry-title { font-size: 1.45rem; }
	.gp-card-body { padding: 16px 18px 20px; }
	.gp-article { padding: 22px 18px; border-radius: 12px; }
	.gp-article .entry-title { font-size: 1.55rem; }
	.gp-page-hero { padding-top: 24px; }
	.gp-cta-title { font-size: 1.4rem; }
	.gp-cta .gp-btn { justify-content: center; width: 100%; }
	.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; }
}

/* Small phones (iPhone SE 1st gen, small Androids): the menu button becomes icon-only */
@media (max-width: 380px) {
	.menu-toggle { justify-content: center; width: 38px; height: 38px; padding: 0; }
	.menu-toggle-label {
		position: absolute !important; width: 1px; height: 1px; overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
	}
	.site-branding .custom-logo, .header-logo-light img { height: 34px; }
}

/* Phones & small tablets: breadcrumbs stay on one line and scroll sideways.
   The last crumb (the current page) is hidden there: it is the H1 right below. */
@media (max-width: 768px) {
	.breadcrumbs ol {
		flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.breadcrumbs ol::-webkit-scrollbar { display: none; }
	.breadcrumbs li[aria-current="page"] { display: none; }
}

/* Cards show date + reading time only; the author is on the article page. */
.gp-card .meta-author, .gp-featured .meta-author { display: none; }

/* Category chips: fade on the right edge hints that the row scrolls sideways. */
@media (max-width: 768px) {
	.gp-chips {
		-webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
		mask-image: linear-gradient(90deg, #000 82%, transparent);
		padding-right: 40px;
	}
	.gp-cat-nav { margin-bottom: 26px; padding: 10px; }
}

/* Static pages (About, Privacy, Terms…): content card overlaps the dark band */
.gp-page-layout { position: relative; z-index: 1; max-width: 900px; margin: -72px auto 0; }
.gp-page-article {
	padding: 44px 52px; border-radius: 22px;
	box-shadow: 0 24px 60px rgba(23, 24, 27, .1);
}
.gp-page-article .entry-content > :first-child { margin-top: 0; }
.gp-page-article .entry-content h2 { color: var(--gp-dark); }
@media (max-width: 900px) {
	.gp-page-layout { margin-top: -56px; }
	.gp-page-article { padding: 32px 28px; }
}
@media (max-width: 480px) {
	.gp-page-article { padding: 24px 18px; border-radius: 16px; }
}

/* Large monitors: use a little more of the screen */
/* Content width per screen size: less empty space at the sides on bigger screens */
@media (min-width: 1280px) {
	:root { --gp-width: 1240px; }
}
@media (min-width: 1440px) {
	:root { --gp-width: 1360px; }
}
@media (min-width: 1600px) {
	:root { --gp-width: 1480px; }
	body { font-size: 18px; }
}
@media (min-width: 1920px) {
	:root { --gp-width: 1600px; }
}

/* =========================================================================
   Blog page v2: hero with search card, icon chips, new cards
   ========================================================================= */

/* Hero: copy on the left, search card on the right */
.gp-blog-hero-grid {
	display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 48px; align-items: end;
}
.gp-blog-hero .gp-page-hero-title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.gp-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.gp-hero-stats li {
	display: flex; align-items: baseline; gap: 6px; padding: 9px 16px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
}
.gp-hero-stats strong { font-family: var(--gp-font-display); font-size: 1.25rem; color: #fff; }
.gp-hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .75); }

.gp-blog-search {
	padding: 24px; color: #fff;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.gp-blog-search-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; font-size: 1.05rem; }
.gp-blog-search-title svg { color: var(--gp-accent); }
.gp-blog-search-form { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 14px; }
.gp-blog-search-form input {
	flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--gp-text);
	background: transparent; border: 0; outline: none;
}
.gp-blog-search-form button {
	padding: 10px 18px; font: inherit; font-weight: 700; color: #fff;
	background: var(--gp-accent-text); border: 0; border-radius: 10px; cursor: pointer;
	transition: background-color .2s ease;
}
.gp-blog-search-form button:hover { background: #952900; }
.gp-blog-search-form:focus-within { box-shadow: 0 0 0 4px rgba(201, 56, 0, .35); }
.gp-blog-search-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .82rem; }
.gp-blog-search-tags span { margin-right: 2px; color: rgba(255, 255, 255, .7); }
.gp-blog-search-tags a {
	padding: 4px 10px; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}
.gp-blog-search-tags a:hover { color: var(--gp-dark); background: #fff; text-decoration: none; }

/* Chips with icons */
.gp-chip-icon { display: inline-flex; color: var(--gp-accent-text); }
.gp-chip.is-active .gp-chip-icon { color: var(--gp-accent); }

/* "More reviews" heading between the featured card and the grid */
.gp-grid-head { display: flex; align-items: center; gap: 18px; margin: 48px 0 24px; }
.gp-grid-title { flex-shrink: 0; margin: 0; font-family: var(--gp-font-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--gp-dark); }
.gp-grid-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gp-accent) 0 60px, var(--gp-border) 60px); border-radius: 2px; }

/* Featured card details */
.gp-featured-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gp-featured-flag {
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
	font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--gp-dark); background: var(--gp-steel-soft); border-radius: 999px;
}
.gp-featured-flag svg { color: var(--gp-accent); }
.gp-featured .entry-summary p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gp-featured-author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.gp-featured-author img { flex-shrink: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--gp-accent-soft); }
.gp-featured-by { display: block; font-size: .9rem; font-weight: 600; color: var(--gp-text); }
.gp-featured-by a { color: var(--gp-dark); }
.gp-featured-author .gp-card-meta { margin-top: 2px; }
.gp-featured-cta { align-self: flex-start; margin-top: 24px; padding: 12px 24px; font-size: 1.02rem; }
.gp-featured .gp-featured-cta { background: var(--gp-accent-text); box-shadow: 0 10px 24px rgba(184, 51, 0, .3); }
.gp-featured .gp-featured-cta:hover { background: #952900; }

/* Card meta: date + reading time with icons */
.gp-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--gp-muted); }
.gp-card-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gp-card-meta svg { color: var(--gp-accent-text); }

/* Cards v2 */
.gp-card {
	border: 1px solid var(--gp-border); border-radius: 16px;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gp-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 50px rgba(23, 24, 27, .12); }
.gp-card-media { position: relative; }
.gp-card-badge {
	position: absolute; left: 16px; bottom: -13px; z-index: 1;
	padding: 5px 12px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: #fff; background: var(--gp-accent-text); border-radius: 999px;
	box-shadow: 0 6px 14px rgba(184, 51, 0, .3); transition: background-color .2s ease;
}
.gp-card-badge:hover { color: #fff; background: #952900; text-decoration: none; }
.gp-card .gp-card-body { padding: 28px 22px 20px; }
.gp-card .entry-title { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.38; }
.gp-card .entry-summary { font-size: .93rem; }
.gp-card .entry-summary p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gp-card-footer {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gp-border);
}
.gp-card-go {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; color: var(--gp-dark); background: var(--gp-steel-soft); border-radius: 50%;
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.gp-card:hover .gp-card-go { color: #fff; background: var(--gp-accent-text); transform: rotate(-45deg); }

/* Blog hero stacks on tablets and phones */
@media (max-width: 1024px) {
	.gp-blog-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.gp-blog-search { max-width: 560px; }
}
@media (max-width: 480px) {
	.gp-hero-stats { gap: 8px; }
	.gp-hero-stats li { padding: 7px 12px; }
	.gp-blog-search { padding: 18px; border-radius: 16px; }
	.gp-blog-search-form button { padding: 10px 14px; }
	.gp-grid-head { margin-top: 36px; }
	.gp-grid-title { flex-shrink: 1; } /* long titles wrap instead of widening the page */
	.gp-featured-cta { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.gp-card, .gp-card:hover, .gp-card:hover .gp-card-go { transform: none; }
}

/* =========================================================================
   Single post v2
   ========================================================================= */

/* Reading progress bar (fills the header's top stripe) */
.gp-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 3px; pointer-events: none; }
.gp-progress span {
	display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left;
	background: linear-gradient(90deg, var(--gp-accent), #ffb899);
}
.admin-bar .gp-progress { top: 32px; }

/* Header band */
.gp-post-hero { padding: 30px 0 100px; text-align: center; }
.gp-post-hero.has-media { padding-bottom: 170px; }
.gp-post-hero-inner { max-width: 940px; }
.gp-post-hero .breadcrumbs ol { justify-content: flex-start; width: fit-content; max-width: 100%; margin: 0 auto; } /* centred when it fits; scrolls from the start when it does not */
.gp-post-hero .breadcrumbs li[aria-current="page"] { display: none; } /* the H1 is right below */
.gp-post-cat {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 14px;
	font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: #ffc9b0; background: rgba(201, 56, 0, .14); border: 1px solid rgba(201, 56, 0, .45); border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}
.gp-post-cat:hover { color: #fff; background: var(--gp-accent-text); text-decoration: none; }
.gp-post-title {
	margin: 18px 0 16px; font-family: var(--gp-font-display); font-weight: 700;
	font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.15; color: #fff; text-wrap: balance;
}
.gp-post-dek { max-width: 720px; margin: 0 auto; font-size: 1.15rem; color: rgba(255, 255, 255, .85); }
.gp-post-byline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
	margin-top: 28px; font-size: .92rem; color: rgba(255, 255, 255, .82);
}
.gp-byline-author { display: inline-flex; align-items: center; gap: 10px; }
.gp-byline-author img { border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; }
.gp-byline-author a { font-weight: 700; color: #fff; }
.gp-post-byline .entry-meta { font-size: .92rem; color: rgba(255, 255, 255, .82); }
.gp-post-byline .entry-meta .meta-author { display: none; }
.gp-byline-author { padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .25); }
@media (max-width: 480px) { .gp-byline-author { padding-right: 0; border-right: 0; } }

/* Featured image overlaps the band */
.gp-post-media { position: relative; z-index: 1; max-width: 1040px; margin-top: -130px; }
.gp-post-media figure { margin: 0; }
.gp-post-media img {
	display: block; width: 100%; height: auto; border-radius: 22px;
	box-shadow: 0 30px 70px rgba(23, 24, 27, .28);
}
.gp-post-media figcaption { margin-top: 10px; }

/* Article + sticky sidebar */
.gp-post-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start;
	margin-top: 44px;
}
.gp-post-layout.no-media { position: relative; z-index: 1; margin-top: -60px; }
.gp-post-article {
	padding: 34px 38px; background: #fff; border: 1px solid var(--gp-border); border-radius: 22px;
	box-shadow: 0 20px 50px rgba(23, 24, 27, .06);
}

/* Reading typography */
.gp-prose { font-size: 1.07rem; line-height: 1.85; color: #1f2937; }
.gp-prose > p:first-of-type { font-size: 1.2rem; line-height: 1.75; color: #374151; }
.gp-prose p { margin: 0 0 1.2em; }
.gp-prose h2 {
	margin: 2.1em 0 .7em; font-family: var(--gp-font-display);
	font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.3; color: var(--gp-dark);
}
.gp-prose h2::before {
	content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px;
	background: linear-gradient(90deg, var(--gp-accent), #ffb899); border-radius: 2px;
}
.gp-prose h3 { margin: 1.7em 0 .5em; font-size: 1.22rem; color: var(--gp-dark); }
.gp-prose ul, .gp-prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.gp-prose li { margin: .5em 0; padding-left: .3em; }
.gp-prose ul li::marker { color: var(--gp-accent); font-size: 1.1em; }
.gp-prose ol li::marker { color: var(--gp-accent-text); font-weight: 800; }
.gp-prose strong { color: var(--gp-dark); }
.gp-prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(201, 56, 0, .55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gp-prose a:hover { text-decoration-color: var(--gp-accent); }
.gp-prose blockquote {
	margin: 1.8em 0; padding: 18px 24px; font-size: 1.12rem; font-style: italic; color: var(--gp-dark);
	background: var(--gp-accent-soft); border-left: 4px solid var(--gp-accent); border-radius: 0 14px 14px 0;
}
.gp-prose img { border-radius: 14px; }
.gp-prose .wp-block-table { border: 1px solid var(--gp-border); border-radius: 14px; }
.gp-prose .wp-block-table td, .gp-prose .wp-block-table th { border-width: 0 0 1px; padding: 12px 16px; }
/* Inline table of contents inside the article (phones/tablets) */
.gp-prose .gp-toc ol { margin: 10px 0 0; padding-left: 0; }
.gp-prose .gp-toc li { margin: 6px 0; padding-left: 18px; }
.gp-prose .gp-toc a { font-weight: 500; text-decoration: none; }

/* Article footer: tags + share */
.gp-post-footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
	margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--gp-border);
}
.gp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gp-tags-label, .gp-share-label { font-size: .9rem; font-weight: 700; color: var(--gp-dark); }
.gp-tags a {
	padding: 5px 12px; font-size: .85rem; color: var(--gp-text);
	background: var(--gp-bg); border: 1px solid var(--gp-border); border-radius: 999px;
}
.gp-tags a:hover { color: var(--gp-accent-text); border-color: var(--gp-accent); text-decoration: none; }
.gp-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }

/* Share buttons */
.gp-share { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-share a, .gp-share button {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
	color: #fff; border: 0; border-radius: 12px; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.gp-share a:hover, .gp-share button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23, 24, 27, .2); text-decoration: none; }
.gp-share-fb { background: #1877f2; }
.gp-share-x { background: #111827; }
.gp-share-li { background: #0a66c2; }
.gp-share-wa { background: #128c4b; }
.gp-share .gp-share-copy { color: var(--gp-dark); background: var(--gp-steel-soft); }
.gp-share-copy .icon-done { display: none; }
.gp-share-copy.is-copied { color: #fff; background: #16a34a; }
.gp-share-copy.is-copied .icon-copy { display: none; }
.gp-share-copy.is-copied .icon-done { display: block; }

/* Sticky sidebar */
.gp-post-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .gp-post-aside { top: 128px; }
.gp-aside-card { padding: 20px; background: #fff; border: 1px solid var(--gp-border); border-radius: 18px; }
.gp-aside-title {
	display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
	font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gp-dark);
}
.gp-aside-title::before { content: ""; width: 16px; height: 3px; background: var(--gp-accent); border-radius: 2px; }
.gp-aside-toc ol { max-height: 48vh; margin: 0; padding: 0; list-style: none; overflow-y: auto; border-left: 2px solid var(--gp-border); }
.gp-aside-toc a {
	display: block; margin-left: -2px; padding: 6px 0 6px 14px;
	font-size: .9rem; line-height: 1.4; color: var(--gp-muted); border-left: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}
.gp-aside-toc a:hover { color: var(--gp-dark); text-decoration: none; }
.gp-aside-toc a.is-active { font-weight: 700; color: var(--gp-dark); border-left-color: var(--gp-accent); }
.gp-aside-toc .toc-level-3 a { padding-left: 26px; font-size: .85rem; }
.gp-mini-posts { margin: 0; padding: 0; list-style: none; }
.gp-mini-post { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gp-border); }
.gp-mini-post:first-child { padding-top: 0; border-top: 0; }
.gp-mini-thumb { flex-shrink: 0; display: block; width: 80px; overflow: hidden; border-radius: 10px; }
.gp-mini-thumb img { display: block; width: 80px; height: 52px; object-fit: cover; }
.gp-mini-thumb .gp-thumb-placeholder { width: 80px; height: 52px; aspect-ratio: auto; font-size: 1.2rem; }
.gp-mini-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--gp-dark);
}
.gp-mini-title:hover { color: var(--gp-accent-text); text-decoration: none; }
.gp-mini-post time { display: block; margin-top: 2px; font-size: .75rem; color: var(--gp-muted); }
/* On desktop the sidebar has the table of contents, so hide the copy inside the article */
@media (min-width: 1025px) {
	.gp-post-layout.has-aside .gp-prose > .gp-toc { display: none; }
}

/* Author box */
.gp-post-main .gp-author-box {
	position: relative; align-items: center; gap: 22px; margin-top: 28px; padding: 30px 32px;
	background: linear-gradient(120deg, #fff 55%, var(--gp-accent-soft)); border-radius: 22px;
}
.gp-post-main .gp-author-box img { width: 88px; height: 88px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gp-accent); }
.author-eyebrow {
	margin: 0 0 2px; font-size: .74rem; font-weight: 800; letter-spacing: .12em;
	text-transform: uppercase; color: var(--gp-accent-text);
}
.gp-post-main .gp-author-box .author-name { margin-bottom: 6px; font-family: var(--gp-font-display); font-size: 1.4rem; color: var(--gp-dark); }
.gp-post-main .gp-author-box .author-bio { color: #4b5563; }

/* Previous / next */
.gp-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.gp-post-nav-item {
	display: flex; align-items: center; gap: 14px; padding: 16px;
	background: #fff; border: 1px solid var(--gp-border); border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gp-post-nav-item:hover { transform: translateY(-3px); border-color: rgba(201, 56, 0, .45); box-shadow: 0 16px 36px rgba(23, 24, 27, .1); text-decoration: none; }
.gp-post-nav-item img { flex-shrink: 0; width: 96px; height: 62px; object-fit: cover; border-radius: 10px; }
.gp-post-nav-item.is-next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
.gp-post-nav-label { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-accent-text); }
.gp-post-nav-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-weight: 700; line-height: 1.35; color: var(--gp-dark);
}

/* Comments */
.gp-post-main .comments-area {
	margin-top: 28px; padding: 34px 38px; background: #fff;
	border: 1px solid var(--gp-border); border-radius: 22px;
}
.comments-title, .comment-reply-title { margin: 0 0 18px; font-family: var(--gp-font-display); font-size: 1.5rem; color: var(--gp-dark); }
.comment-list .comment-body { background: var(--gp-bg); border-radius: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 600; color: var(--gp-dark); }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	padding: 12px 14px; background: #f8fafc; border: 1.5px solid var(--gp-border); border-radius: 12px;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
	outline: none; background: #fff; border-color: var(--gp-primary); box-shadow: 0 0 0 4px rgba(184, 51, 0, .12);
}
.comment-form .submit { padding: 12px 26px; font-size: 1rem; font-weight: 700; background: var(--gp-accent-text); border-radius: 12px; }
.comment-form .submit:hover { background: #952900; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; color: var(--gp-text); }
.comment-form-cookies-consent input { margin-top: 6px; accent-color: var(--gp-dark); }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--gp-muted); }

/* You might also like */
.gp-related { margin-top: 72px; background: #fff; border-top: 1px solid var(--gp-border); }
.gp-related + .site-footer { margin-top: 0; }

/* Responsive */
@media (max-width: 1024px) {
	.gp-post-layout { grid-template-columns: minmax(0, 1fr); }
	.gp-post-aside { display: none; }
	.gp-post-main { width: 100%; }
	.gp-share-row { margin-left: 0; }
}
@media (max-width: 782px) {
	.admin-bar .gp-progress { top: 46px; }
}
@media (max-width: 768px) {
	.gp-post-hero.has-media { padding-bottom: 96px; }
	.gp-post-media { margin-top: -66px; }
	.gp-post-media img { border-radius: 16px; }
	.gp-post-layout { margin-top: 28px; }
	.gp-post-article { padding: 26px 22px; }
	.gp-post-nav { grid-template-columns: minmax(0, 1fr); }
	.gp-post-nav-item.is-next { grid-column: auto; }
	.gp-related { margin-top: 52px; }
}
@media (max-width: 480px) {
	.gp-post-title { font-size: 1.85rem; }
	.gp-post-dek { font-size: 1.02rem; }
	.gp-post-byline { gap: 8px 12px; font-size: .86rem; }
	.gp-post-article { padding: 20px 16px; border-radius: 16px; }
	.gp-prose { font-size: 1.02rem; line-height: 1.8; }
	.gp-prose > p:first-of-type { font-size: 1.1rem; }
	.gp-post-main .gp-author-box { flex-direction: column; padding: 26px 20px; text-align: center; }
	.gp-post-main .gp-author-box .author-links { justify-content: center; }
	.gp-post-main .comments-area { padding: 24px 18px; border-radius: 16px; }
	.gp-post-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.gp-share a:hover, .gp-share button:hover, .gp-post-nav-item:hover { transform: none; }
}

/* No empty band at the top of an article: the first block (or the one right after the
   table of contents) starts flush, even when pasted HTML has its own inline margin-top. */
.gp-prose > :first-child,
.gp-prose > .gp-toc + * { margin-top: 0; }
.gp-prose > :first-child > :first-child,
.gp-prose > .gp-toc + * > :first-child { margin-top: 0 !important; }

.gp-toc-count { font-weight: 500; color: var(--gp-muted); }


/* Single post without the sidebar (Customize → Single Post): one centred reading column */
.gp-post-layout.no-aside { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

/* =========================================================================
   Phones: articles use the full screen width, and pasted HTML
   (Custom HTML blocks with inline styles) is tamed so nothing overflows.
   ========================================================================= */
@media (max-width: 600px) {
	.gp-post-layout { padding-left: 16px; padding-right: 16px; }
	.gp-post-layout .gp-post-article {
		margin-left: -16px; margin-right: -16px; padding: 22px 16px;
		border-left: 0; border-right: 0; border-radius: 0; box-shadow: none;
	}
	.gp-prose { overflow-wrap: break-word; }
	.gp-prose img, .gp-prose video, .gp-prose iframe { max-width: 100%; }

	/* Multi-column grids (e.g. Pros | Cons, product cards) stack into one column */
	.gp-prose [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }

	/* Big inline paddings and margins shrink so the text keeps its width */
	.gp-prose [style*="padding: 25px"],
	.gp-prose [style*="padding: 30px"],
	.gp-prose [style*="padding: 35px"],
	.gp-prose [style*="padding: 40px"] { padding: 16px !important; }
	.gp-prose [style*="margin: 40px 0"],
	.gp-prose [style*="margin: 35px 0"] { margin-top: 24px !important; margin-bottom: 24px !important; }
}

/* Headings that bring their own background (pasted HTML) don't need the theme's red dash */
.gp-prose h2[style*="background"]::before { display: none; }


/* =========================================================================
   Home page on phones (≤600px): shorter, app-like sections
   ========================================================================= */
@media (max-width: 600px) {
	/* Hero: "Popular" topics in one row you can swipe */
	.gp-hero-inner { width: 100%; min-width: 0; } /* the long chip row must not widen the hero */
	.gp-hero-topics {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
		margin: 24px -16px 0; padding: 0 16px;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 82%, transparent);
		mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 82%, transparent);
	}
	.gp-hero-topics::-webkit-scrollbar { display: none; }
	.gp-hero-topics .gp-topics { flex-wrap: nowrap; }
	.gp-hero-topics-label { flex-shrink: 0; }
	.gp-topic { white-space: nowrap; }
	.gp-hero-topics { padding-right: 48px; }

	/* Latest reviews: compact list (the newest post keeps its large card) */
	.gp-home .gp-grid { gap: 12px; }
	.gp-home .gp-card { flex-direction: row; align-items: stretch; border-radius: 14px; }
	.gp-home .gp-card:hover { transform: none; }
	.gp-home .gp-card-media { flex: 0 0 38%; max-width: 150px; }
	.gp-home .gp-card .post-thumbnail { height: 100%; min-height: 104px; }
	.gp-home .gp-card .post-thumbnail img,
	.gp-home .gp-card .gp-thumb-placeholder {
		height: 100%; aspect-ratio: auto; object-fit: cover; object-position: left center; font-size: 2rem;
	}
	.gp-home .gp-card-badge,
	.gp-home .gp-card .entry-summary,
	.gp-home .gp-card-go { display: none; }
	.gp-home .gp-card .gp-card-body { justify-content: center; padding: 12px 14px; }
	.gp-home .gp-card .entry-title { margin: 0 0 6px; font-size: .97rem; line-height: 1.35; }
	.gp-home .gp-card-footer { margin-top: 0; padding-top: 0; border-top: 0; }
	.gp-home .gp-card-meta { gap: 2px 10px; font-size: .74rem; }
	.gp-section-actions { margin-top: 28px; }

	/* Browse by category: icon + name in a row, description hidden, sub-category links kept */
	.gp-cat-grid { gap: 12px; }
	.gp-cat-card {
		display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: center;
		padding: 16px; border-radius: 16px;
	}
	.gp-cat-card:hover { transform: none; }
	.gp-cat-icon { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
	.gp-cat-icon svg { width: 22px; height: 22px; }
	.gp-cat-name { margin: 0; font-size: 1.06rem; }
	.gp-cat-desc { display: none; }
	.gp-cat-subs { grid-column: 1 / -1; margin: 12px 0 10px; }
	.gp-cat-more { grid-column: 1 / -1; padding-top: 10px; }

	/* Why readers trust us: icon on the left, text on the right */
	.gp-feature-grid { gap: 12px; }
	.gp-feature {
		display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px;
		padding: 18px; border-radius: 16px;
	}
	.gp-feature:hover { transform: none; }
	.gp-feature-icon { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 12px; }
	.gp-feature-icon svg { width: 22px; height: 22px; }
	.gp-feature-title { align-self: end; margin: 0 0 4px; font-size: 1.05rem; }
	.gp-feature-text { font-size: .92rem; }

	/* Long-form text and FAQ */
	.entry-content .wp-block-details { padding: 0 16px; }
	.entry-content .wp-block-details summary { padding-right: 38px; font-size: .97rem; }
}

/* =========================================================================
   DeviceGuidely look: left-aligned hero, slanted edges, squarer corners
   ========================================================================= */

/* Headings: heavy sans-serif */
.gp-hero-title, .gp-section-title, .gp-page-hero-title, .gp-post-title, .gp-cta-title, .gp-grid-title { font-weight: 800; letter-spacing: -.02em; }

/* Hero: text on the left, slanted bottom edge instead of a wave */
.gp-hero { text-align: left; min-height: clamp(560px, 84vh, 760px); }
.gp-hero-inner { width: 100%; max-width: var(--gp-width); }
.gp-hero-title { max-width: 820px; }
.gp-hero-text { max-width: 600px; margin-left: 0; margin-right: 0; }
.gp-hero-actions, .gp-hero-topics, .gp-topics { justify-content: flex-start; }
.gp-hero::before { /* diagonal speed lines instead of dots */
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 26px);
	background-size: auto;
	-webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.gp-page-hero::before, .gp-cta::before {
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 26px);
	background-size: auto;
}

/* Labels and section headings: red bar on the left */
.gp-hero-eyebrow, .gp-topic { border-radius: 6px; }
.gp-section-head { max-width: none; margin-left: 0; margin-right: 0; text-align: left; }
.gp-kicker { display: flex; align-items: center; gap: 10px; }
.gp-kicker::before { content: ""; width: 28px; height: 4px; background: var(--gp-accent); border-radius: 2px; transform: skewX(-24deg); }
.gp-section-title span { padding: 0; color: var(--gp-accent-text); background: none; }
.gp-section-actions { text-align: left; }

/* Squarer corners */
.gp-btn, .gp-btn-outline, .gp-contact-form .gp-submit, .gp-chip, .pagination .page-numbers { border-radius: 8px; }
.gp-card, .gp-home .gp-card, .gp-blog-main .gp-card,
.gp-home .gp-featured, .gp-blog-main .gp-featured,
.gp-feature, .gp-cat-card, .gp-cat-nav, .gp-aside-card { border-radius: 10px; }
.gp-cta, .gp-post-article, .gp-page-article, .gp-contact-card, .gp-contact-info,
.gp-post-media img, .gp-post-main .gp-author-box, .gp-post-main .comments-area { border-radius: 12px; }
.gp-feature-icon, .gp-cat-icon, .gp-form-badge, .gp-card-go { border-radius: 8px; }
.cat-badge, .gp-card-badge, .gp-featured-flag, .gp-post-cat { border-radius: 4px; }

/* Cards: red line along the bottom on hover */
.gp-card, .gp-feature { border-bottom: 3px solid var(--gp-border); }
.gp-card:hover, .gp-feature:hover { border-bottom-color: var(--gp-accent); }

@media (max-width: 480px) {
	.gp-hero-actions { align-items: flex-start; }
	.gp-hero-actions .gp-btn { max-width: none; }
}

/* Logo: wider than it is tall, so keep it lower (same size in both header states) */
.site-branding .custom-logo, .header-logo-light img { height: 46px; }
.drawer-logo img { height: 34px; }
@media (max-width: 1300px) { .site-branding .custom-logo, .header-logo-light img { height: 38px; } }
@media (max-width: 480px) { .site-branding .custom-logo, .header-logo-light img { height: 32px; } }
@media (max-width: 380px) { .site-branding .custom-logo, .header-logo-light img { height: 28px; } }

.gp-scroll-cue { display: none; }
.gp-thumb-placeholder { background: linear-gradient(135deg, var(--gp-dark) 0%, #2d3036 60%, var(--gp-accent-text) 140%); }

/* =========================================================================
   Flat look for the whole site (no gradients, stripes or big shadows)
   ========================================================================= */
@font-face {
	font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap;
	src: url("assets/fonts/archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
	--gp-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Hind Siliguri", Arial, sans-serif;
	--gp-font-display: var(--gp-font);
	--gp-bg: #ffffff;
	--gp-steel: #f1f0ec;
	--gp-muted: #5b5c60;
	--gp-border: #dddbd4;
	--gp-radius: 6px;
}
h1, h2, h3, .gp-btn { font-stretch: 112%; }
h1, h2 { letter-spacing: -.02em; }
.gp-btn, .dg-news-row button { font-stretch: 105%; }
.gp-btn { padding: 15px 28px; font-size: 1.06rem; border-radius: 6px; box-shadow: none; }
.gp-btn:hover { transform: none; }
.gp-btn--primary, .gp-btn--primary:hover { box-shadow: none; }
.site-header::before { display: none; }

/* Top bands of blog, article and contact pages */
.gp-page-hero { background: var(--gp-dark); }
.gp-page-hero::before { display: none; }
.gp-blog-layout, .gp-contact-layout, .gp-page-layout { margin-top: 0; padding-top: 36px; }
.gp-page-hero, .gp-post-hero { padding-bottom: 48px; }
.gp-post-hero.has-media { padding-bottom: 150px; }
.gp-hero-kicker { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.gp-post-media img, .gp-featured, .gp-blog-main .gp-featured, .gp-contact-card, .gp-contact-info,
.gp-post-article, .gp-page-article, .gp-aside-card, .gp-cat-nav { box-shadow: none; border-radius: 6px; }
.gp-prose h2::before { display: none; }
.gp-form-badge, .gp-contact-form .gp-submit { background: var(--gp-accent-btn); box-shadow: none; border-radius: 6px; }

/* Cards */
.gp-card, .gp-home .gp-card, .gp-blog-main .gp-card { border: 0; border-radius: 0; background: none; overflow: visible; }
.gp-card:hover { transform: none; box-shadow: none; }
.gp-card .post-thumbnail { overflow: hidden; border-radius: 6px; }
.gp-card .gp-card-body { padding: 16px 0 0; }
.gp-card .entry-title { font-size: 1.22rem; line-height: 1.28; }
.gp-card:hover .entry-title a { color: var(--gp-accent-text); }
.gp-card-badge {
	position: static; display: inline-block; padding: 14px 0 0; font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none;
	color: var(--gp-accent-text); background: none; box-shadow: none;
}
.gp-card-badge:hover { color: var(--gp-accent-text); background: none; text-decoration: underline; }
.gp-card-badge + *, .gp-card-media + .gp-card-body { padding-top: 4px; }
.gp-card-footer { margin-top: 12px; padding-top: 0; border: 0; }
.gp-card-go { display: none; }
.gp-grid-line { display: none; }
.gp-featured-flag { display: none; }
.cat-badge { font-size: .92rem; letter-spacing: 0; text-transform: none; padding: 0; color: var(--gp-accent-text); background: none; }
.gp-featured .gp-featured-cta, .gp-featured .gp-featured-cta:hover { background: var(--gp-accent-btn); box-shadow: none; }
@media (min-width: 1000px) { .gp-blog-main .gp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; } }
.gp-blog-search, .gp-blog-search-form, .gp-blog-search-form button { border-radius: 6px; box-shadow: none; }
.gp-blog-search-form button { background: var(--gp-accent-btn); }
.gp-blog-search-tags a { border-radius: 4px; }
.gp-hero-stats li { padding: 0; margin-right: 18px; background: none; border: 0; }
.gp-chip { box-shadow: none !important; border-radius: 4px; }
.gp-post-cat { padding: 0; font-size: 1rem; letter-spacing: 0; text-transform: none; color: #ff9b73; background: none; border: 0; }
.gp-contact-form input, .gp-contact-form select, .gp-contact-form textarea { border-radius: 6px; }
.gp-thumb-placeholder, .gp-featured .gp-thumb-placeholder { background: var(--gp-dark); }
.gp-thumb-placeholder svg { width: 46%; max-width: 280px; height: auto; }
.gp-mini-thumb .gp-thumb-placeholder svg { width: 60%; }

/* =========================================================================
   Home page
   ========================================================================= */
.dg-band { padding: 80px 0; }
.dg-band h2 { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--gp-dark); }
.dg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.dg-more { display: inline-block; padding: 4px 0; font-weight: 700; color: var(--gp-accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dg-more:hover { color: var(--gp-dark); }

/* Hero base (the look is at the end of this file) */
.dg-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--gp-dark); }
.dg-hero-grid {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end;
	min-height: min(84vh, 690px); padding-top: 96px;
}
.dg-hero-copy { align-self: center; padding-bottom: clamp(70px, 9vw, 140px); }
.dg-hero h1 { margin: 0; font-size: clamp(2.2rem, 3.9vw, 3.7rem); font-weight: 800; line-height: 1.05; color: #fff; text-wrap: balance; }
.dg-hero-label { margin: 0 0 14px; font-weight: 600; color: #ff9b73; }
.dg-hero-text { margin: 20px 0 0; max-width: 520px; font-size: 1.12rem; line-height: 1.6; color: #3f4044; }
.dg-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.dg-hero-link { padding: 8px 0; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.dg-hero-link:hover { color: #ff9b73; }
.dg-hero-picture { line-height: 0; }
.dg-hero.has-photo::after { height: auto; top: 0; background: rgba(15, 18, 23, .68); }
.dg-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }

/* Latest */
.dg-latest { scroll-margin-top: 60px; }
.dg-latest-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
.dg-list { display: flex; flex-direction: column; justify-content: space-between; }
.dg-thumb { display: block; overflow: hidden; background: var(--gp-dark); border-radius: 6px; }
.dg-thumb img, .dg-thumb .gp-thumb-placeholder { display: flex; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dg-cat { display: inline-block; font-size: .94rem; font-weight: 600; color: var(--gp-accent-text); }
.dg-latest h3 { margin: 2px 0 0; font-weight: 700; letter-spacing: -.01em; }
.dg-latest h3 a { color: var(--gp-dark); }
.dg-latest h3 a:hover { color: var(--gp-accent-text); text-decoration: none; }
.dg-lead .dg-post-body { padding-top: 18px; }
.dg-lead h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.16; }
.dg-excerpt { margin: 12px 0 0; color: var(--gp-muted); }
.dg-meta { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 8px 0 0; font-size: .9rem; color: var(--gp-muted); }
.dg-row { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--gp-border); }
.dg-row:first-child { padding-top: 0; border-top: 0; }
.dg-row:last-child { padding-bottom: 0; }
.dg-row h3 { font-size: 1.1rem; line-height: 1.28; }
.dg-row .dg-meta { margin-top: 4px; }

/* Categories */
.dg-cats { background: var(--gp-steel); }
.dg-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dg-cat-col { padding: 4px 32px; border-left: 1px solid #c9c8c2; }
.dg-cat-col:first-child { padding-left: 0; border-left: 0; }
.dg-cat-col h3 { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.dg-cat-col h3 a { color: var(--gp-dark); }
.dg-cat-col h3 a:hover { color: var(--gp-accent-text); }
.dg-cat-count { margin: 4px 0 16px; font-size: .94rem; color: var(--gp-muted); }
.dg-cat-col ul { list-style: none; margin: 0; padding: 0; }
.dg-cat-col li a { display: inline-block; padding: 5px 0; color: var(--gp-text); }
.dg-cat-col li a:hover { color: var(--gp-accent-text); }

/* Who we are */
.dg-who { padding-bottom: 72px; }
.dg-who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.dg-who-text { margin: 20px 0 22px; font-size: 1.2rem; line-height: 1.6; color: var(--gp-text); }
.dg-promises { margin: 0; }
.dg-promises > div { display: grid; grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--gp-border); }
.dg-promises > div:first-child { padding-top: 8px; border-top: 0; }
.dg-promises dt { font-size: 1.1rem; font-weight: 700; line-height: 1.4; color: var(--gp-dark); }
.dg-promises dd { margin: 0; color: var(--gp-muted); }

/* Team */
.dg-team { background: var(--gp-steel); }
.dg-team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px 56px; align-items: start; }
.dg-team header p { margin: 10px 0 0; color: var(--gp-muted); }
.dg-members { display: grid; gap: 32px 40px; }
.dg-members.is-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg-member { display: flex; align-items: center; gap: 26px; }
.dg-member-photo {
	position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
	width: 150px; height: 150px; color: #fff; background: var(--gp-accent-btn); border-radius: 6px;
}
.dg-member-photo span { font-size: 4.4rem; font-weight: 800; font-stretch: 112%; line-height: 1; }
.dg-member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-many .dg-member-photo { width: 110px; height: 110px; }
.is-many .dg-member-photo span { font-size: 3.2rem; }
.dg-member-body h3 { margin: 0; font-size: 1.4rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; color: var(--gp-dark); }
.dg-member-body p { margin: 8px 0; overflow-wrap: anywhere; }
.dg-member-body .dg-member-role { margin: 2px 0 0; font-weight: 600; color: var(--gp-accent-text); }

/* FAQ blocks inside pages and posts */
.entry-content .wp-block-details { border: 0; border-top: 1px solid var(--gp-border); border-radius: 0; margin: 0; padding: 0; background: none; }
.entry-content .wp-block-details[open] { background: none; box-shadow: none; }
.entry-content .wp-block-details summary::after { background: none; font-size: 1.6rem; }

.gp-home + .site-footer { margin-top: 0; }

@media (min-width: 1025px) {
	.main-navigation .sub-menu { border-radius: 6px; box-shadow: 0 10px 24px rgba(23, 24, 27, .14); }
}
@media (max-width: 1000px) {
	.dg-band { padding: 60px 0; }
	.dg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; }
	.dg-hero-copy { padding-bottom: 0; }
	.dg-hero-picture { width: 100%; max-width: 720px; margin: 0 auto; }
	.dg-latest-grid, .dg-who-grid, .dg-team-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.dg-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
	.dg-cat-col, .dg-cat-col:first-child { padding: 0; border: 0; }
}
@media (max-width: 600px) {
	.dg-band { padding: 48px 0; }
	.dg-hero-grid { padding-top: 96px; }
	.dg-cat-col h3 { font-size: 1.12rem; }
		.dg-head { margin-bottom: 24px; }
	.dg-row { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
	.dg-row .dg-thumb img, .dg-row .dg-thumb .gp-thumb-placeholder { aspect-ratio: 4 / 3; object-position: left center; }
	.dg-row h3 { font-size: 1rem; }
	.dg-row .dg-cat, .dg-row .dg-meta { font-size: .84rem; }
	.dg-promises > div { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
	.dg-members.is-many { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.dg-member { align-items: flex-start; gap: 18px; }
	.dg-member-photo, .is-many .dg-member-photo { width: 92px; height: 92px; }
	.dg-member-photo span, .is-many .dg-member-photo span { font-size: 2.8rem; }
}

/* =========================================================================
   DeviceGuidely look: light grey, black and orange; screens, keys and switches
   ========================================================================= */
@font-face {
	font-family: "Sora"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url("assets/fonts/sora-latin.woff2") format("woff2");
}
:root {
	--dg-case: #e9e8e3;   /* light device grey */
	--dg-orange: #ff5a1f; /* bright: always with dark text */
	--gp-font-display: "Sora", "Archivo", "Hind Siliguri", system-ui, sans-serif;
	--gp-radius: 16px;
}
h1, h2, h3, .gp-btn, .dg-news-row button, .entry-title, .gp-post-title, .gp-page-hero-title, .dg-desk-title,
.dg-band h2, .dg-hero h1, .dg-cat-col h3, .dg-member-body h3 { font-family: var(--gp-font-display); font-weight: 700; letter-spacing: -.025em; }
.gp-btn, .dg-news-row button { letter-spacing: 0; font-weight: 600; }

/* Shapes */
.gp-btn, .gp-contact-form .gp-submit, .dg-news-row button, .dg-news-row input, .gp-form-badge, .search-toggle, .footer-social a,
.gp-contact-form input, .gp-contact-form select, .gp-contact-form textarea,
.search-form input, .search-form button, .search-submit { border-radius: 14px; }
.gp-card .post-thumbnail, .gp-post-media img, .gp-featured, .gp-blog-main .gp-featured, .gp-contact-card, .gp-contact-info,
.gp-post-article, .gp-page-article, .gp-aside-card, .gp-cat-nav { border-radius: 22px; }
.gp-chip, .gp-blog-search-tags a { border-radius: 10px; }

/* Header on the light hero: dark text and the dark logo */
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .custom-logo-link { display: block; }
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .header-logo-light { display: none; }
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .site-title a { color: var(--gp-dark); }
@media (min-width: 1025px) {
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > li > a,
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > li > .submenu-toggle { color: var(--gp-dark); }
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > .current-menu-item > a,
	.has-hero .site-header:not(.is-scrolled, .search-open) #primary-menu > .current-menu-ancestor > a { color: var(--gp-accent-text); }
	.main-navigation .sub-menu { border-radius: 16px; }
}
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .search-toggle,
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .menu-toggle { color: var(--gp-dark); background: #fff; border-color: transparent; }
.has-hero .site-header:not(.is-scrolled, .menu-open, .search-open) .search-toggle:hover { color: var(--gp-accent-text); border-color: var(--gp-accent-text); }

/* Hero */
.dg-hero { color: var(--gp-dark); background: var(--dg-case) radial-gradient(#dddbd4 1.6px, transparent 2px) 0 0 / 22px 22px; }
.dg-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; height: auto; background: rgba(233, 232, 227, .88); }
.dg-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; min-height: min(92vh, 780px); padding-top: 112px; padding-bottom: 64px; }
.dg-hero-copy { padding-bottom: 0; }
.dg-hero h1 { max-width: 11em; font-size: clamp(2.4rem, 4.3vw, 4.2rem); line-height: 1.06; color: var(--gp-dark); }
.dg-hero-label { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; color: var(--gp-dark); background: #fff; border-radius: 10px; }
.dg-hero-label::before { content: ""; width: 9px; height: 9px; background: #17a864; border-radius: 50%; }
.dg-hero-text { color: #3f4044; }
.dg-hero-link { color: var(--gp-dark); }
.dg-hero-link:hover { color: var(--gp-accent-text); }
/* Buttons press down like a key */
.dg-hero .gp-btn--primary, .dg-hero .gp-btn--primary:hover { color: var(--gp-dark); background: var(--dg-orange); box-shadow: 0 6px 0 #b83300; transition: transform .12s ease, box-shadow .12s ease; }
.dg-hero .gp-btn--primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 #b83300; }
.dg-hero .gp-btn--primary:active { transform: translateY(6px); box-shadow: 0 0 0 #b83300; }
.dg-hero-picture { width: 100%; max-width: 760px; margin: 0 0 0 auto; }
.dg-devices { display: block; width: 100%; height: auto; }
.dg-devices-labels text { font: 600 21px/1 var(--gp-font-display); }
.dg-devices-labels text:not([fill]) { fill: var(--gp-dark); }

@media (prefers-reduced-motion: no-preference) {
	.dg-hand { transform-origin: 115px 476px; animation: dg-spin 60s steps(60) infinite; }
	.dg-cursor { animation: dg-blink 1.1s steps(2, jump-none) infinite; }
	.dg-led { animation: dg-blink 2.4s ease-in-out infinite alternate; }
	.dg-woofer { transform-box: fill-box; transform-origin: center; animation: dg-beat .9s ease-in-out infinite alternate; }
}
@keyframes dg-spin { to { transform: rotate(360deg); } }
@keyframes dg-blink { from { opacity: 1; } to { opacity: .15; } }
@keyframes dg-beat { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Latest: every picture sits inside a screen */
.dg-thumb { position: relative; padding: 7px; overflow: visible; background: var(--gp-dark); border-radius: 18px; }
.dg-thumb img, .dg-thumb .gp-thumb-placeholder { overflow: hidden; border-radius: 12px; }
.dg-thumb::after { content: ""; position: absolute; top: 6px; left: 50%; width: 44px; height: 9px; margin-left: -22px; background: var(--gp-dark); border-radius: 0 0 8px 8px; }
.dg-lead .dg-thumb { padding: 11px 11px 14px; margin-bottom: 26px; border-radius: 24px 24px 6px 6px; }
.dg-lead .dg-thumb img, .dg-lead .dg-thumb .gp-thumb-placeholder { border-radius: 14px 14px 4px 4px; }
.dg-lead .dg-thumb::after { top: 10px; width: 84px; height: 13px; margin-left: -42px; border-radius: 0 0 11px 11px; }
.dg-lead .dg-thumb::before { /* laptop base */
	content: ""; position: absolute; left: -14px; right: -14px; bottom: -14px; height: 15px; background: #c9c8c2; border-radius: 3px 3px 16px 16px;
}
.gp-thumb-placeholder, .gp-featured .gp-thumb-placeholder { background: var(--dg-case); }
.dg-thumb .gp-thumb-placeholder { align-items: center; justify-content: center; }
.gp-thumb-placeholder svg { width: 20%; max-width: 110px; }
.gp-mini-thumb .gp-thumb-placeholder svg, .dg-row .gp-thumb-placeholder svg { width: 34%; }
.dg-latest .dg-cat { margin-bottom: 4px; padding: 3px 11px; font-size: .86rem; background: var(--gp-accent-soft); border-radius: 8px; }
.dg-latest .dg-cat:hover { color: #fff; background: var(--gp-accent-btn); text-decoration: none; }
.dg-row { border-top: 0; padding: 13px 0; }

/* Categories: app icons on a dark panel */
.dg-cats { color: #d3d3d0; background: var(--gp-dark); }
.dg-cats h2 { color: #fff; }
.dg-cat-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.dg-cat-col, .dg-cat-col:first-child { --icon: #ff5a1f; padding: 28px; background: #25272c; border: 0; border-radius: 26px; transition: background-color .2s ease; }
.dg-cat-col:hover { background: #2d3036; }
.dg-cat-col:nth-child(4n+2) { --icon: #bfe8d4; }
.dg-cat-col:nth-child(4n+3) { --icon: #ffd23f; }
.dg-cat-col:nth-child(4n+4) { --icon: #b9cdf7; }
.dg-cat-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 22px; color: var(--gp-dark); background: var(--icon); border-radius: 19px; }
.dg-cat-col h3 a, .dg-cat-col h3 a:hover { color: #fff; }
.dg-cat-count { color: #a5a6a8; }
.dg-cat-col li a { color: #d3d3d0; }
.dg-cat-col li a:hover { color: #fff; }

/* Promises: switches turned on */
.dg-promises dt { display: flex; align-items: flex-start; gap: 14px; }
.dg-promises dt::before { content: ""; flex-shrink: 0; width: 44px; height: 26px; background: radial-gradient(circle at 31px 13px, #fff 9px, transparent 10px) #17a864; border-radius: 13px; }
.dg-promises > div { grid-template-columns: minmax(0, 16em) minmax(0, 1fr); }

/* Steps: four keys on a keyboard */
.dg-desk-title { margin: 64px 0 26px; font-size: 1.6rem; color: var(--gp-dark); }
.dg-keys { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dg-keys li { padding: 26px 26px 28px; background: var(--dg-case); border-radius: 26px; }
.dg-key { display: block; width: 92px; height: 100px; }
.dg-key svg { display: block; width: 92px; height: 92px; padding: 20px; color: var(--gp-dark); background: #fff; border-radius: 22px; box-shadow: 0 8px 0 #c4c2b9; }
.dg-keys li:first-child .dg-key svg { background: var(--dg-orange); box-shadow: 0 8px 0 #b83300; }
.dg-key-text { padding-top: 24px; }
.dg-key-text strong { font-family: var(--gp-font-display); font-size: 1.14rem; line-height: 1.3; letter-spacing: -.02em; color: var(--gp-dark); }
.dg-key-text p { margin: 6px 0 0; color: #55565a; }

/* Team: app-icon photo with an online light */
.dg-member-photo { color: var(--gp-dark); background: var(--dg-orange); border-radius: 40px; }
.is-many .dg-member-photo { border-radius: 30px; }
.dg-member { position: relative; }
.dg-member::after { content: ""; position: absolute; left: 124px; top: calc(50% + 50px); width: 30px; height: 30px; background: #17a864; border: 6px solid var(--gp-steel); border-radius: 50%; }
.is-many .dg-member::after { left: 88px; top: calc(50% + 32px); width: 26px; height: 26px; border-width: 5px; }

/* Newsletter: bright orange with dark text */
.dg-news, .dg-news h2, .site-footer .dg-news a { color: var(--gp-dark); }
.dg-news { background: var(--dg-orange) radial-gradient(#f7521a 1.6px, transparent 2px) 0 0 / 22px 22px; }
.dg-news p, .dg-news-consent { font-weight: 500; }
.dg-news-row button:focus-visible, .site-footer .dg-news a:focus-visible { outline-color: var(--gp-dark); }

/* Page tops (blog, article, contact): light grey with dark text */
.gp-page-hero { color: var(--gp-dark); background: var(--dg-case) radial-gradient(#dddbd4 1.6px, transparent 2px) 0 0 / 22px 22px; }
.gp-page-hero-title, .gp-post-title, .gp-hero-stats strong { color: var(--gp-dark); }
.gp-page-hero-text, .gp-post-dek, .gp-post-byline, .gp-post-byline .entry-meta, .gp-hero-stats span { color: #3f4044; }
.gp-hero-kicker { color: var(--gp-accent-text); }
.gp-page-hero .breadcrumbs, .gp-page-hero .breadcrumbs a { color: #505156; }
.gp-page-hero .breadcrumbs a:hover, .gp-page-hero .breadcrumbs [aria-current="page"] { color: var(--gp-dark); }
.gp-page-hero .breadcrumbs li + li::before { color: rgba(23, 24, 27, .4); }
.gp-post-cat { padding: 6px 14px; color: var(--gp-accent-text); background: #fff; border-radius: 10px; }
.gp-byline-author { border-color: rgba(23, 24, 27, .22); }
.gp-byline-author a { color: var(--gp-dark); }
.gp-page-hero-text a { color: var(--gp-accent-text); }
.gp-post-media img { border: 10px solid var(--gp-dark); }
.gp-blog-search { color: var(--gp-dark); background: #fff; border: 0; border-radius: 22px; }
.gp-blog-search-title svg { color: var(--gp-accent-btn); }
.gp-blog-search-form { background: var(--dg-case); border-radius: 14px; }
.gp-blog-search-form button { border-radius: 10px; }
.gp-blog-search-tags span { color: var(--gp-muted); }
.gp-blog-search-tags a { color: var(--gp-dark); border-color: var(--gp-border); }
.gp-blog-search-tags a:hover { color: #fff; background: var(--gp-dark); }

@media (min-width: 1025px) and (max-width: 1240px) { /* room for the menu and search button */
	.site-header .site-branding img { width: auto; max-width: 205px; height: auto; }
}
@media (max-width: 1000px) {
	.dg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; padding-bottom: 48px; }
	.dg-hero-picture { max-width: 640px; margin: 0 auto; }
	.dg-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.dg-cat-col, .dg-cat-col:first-child { padding: 22px; }
	.dg-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
	.dg-devices-labels { display: none; }
	.dg-promises > div { grid-template-columns: minmax(0, 1fr); }
	.dg-cat-grid, .dg-keys { grid-template-columns: minmax(0, 1fr); }
	.dg-cat-col h3 { font-size: 1.3rem; }
	.dg-keys li { display: flex; align-items: center; gap: 20px; padding: 20px; }
	.dg-key { flex-shrink: 0; width: 72px; height: 78px; }
	.dg-key svg { width: 72px; height: 72px; padding: 15px; border-radius: 18px; box-shadow: 0 6px 0 #c4c2b9; }
	.dg-keys li:first-child .dg-key svg { box-shadow: 0 6px 0 #b83300; }
	.dg-key-text { padding-top: 0; }
	.dg-thumb { padding: 5px; border-radius: 14px; }
	.dg-thumb img, .dg-thumb .gp-thumb-placeholder { border-radius: 10px; }
	.dg-thumb::after { top: 4px; width: 30px; height: 7px; margin-left: -15px; }
	.dg-lead .dg-thumb { padding: 9px 9px 11px; border-radius: 20px 20px 6px 6px; }
	.dg-lead .dg-thumb::before { left: -9px; right: -9px; }
	.dg-lead .dg-thumb::after { top: 8px; }
	.dg-member-photo, .is-many .dg-member-photo { border-radius: 26px; }
	.dg-member::after, .is-many .dg-member::after { left: 72px; top: 70px; width: 24px; height: 24px; border-width: 5px; }
	.gp-post-media img { border-width: 6px; }
}

/* Phones: the long logo must leave room for the search and menu buttons */
@media (max-width: 480px) {
	.site-header .site-branding img { width: auto; max-width: min(50vw, 210px); height: auto; }
}
