/*
Theme Name: GradeHelm
Theme URI: https://example.test/
Description: Lightweight, futuristic block theme for the GradeHelm grade & GPA calculators. Calculator logic lives in the GradeHelm Tools plugin.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: gradehelm
*/

/* =========================================================
   1. Design tokens — final GradeHelm palette
   ========================================================= */
:root {
	--gh-navy: #101B35;        /* Midnight Navy: text, dark surfaces */
	--gh-navy-2: #17244A;      /* raised navy surface */
	--gh-blue: #3563FF;        /* Electric Blue: primary actions */
	--gh-blue-deep: #2A4FE0;   /* blue for small text on light backgrounds (6.4:1) */
	--gh-blue-soft: #EAF0FF;
	--gh-blue-on-navy: #8FA6FF;/* blue text on navy (7.4:1) */
	--gh-cyan: #22D3EE;        /* Neon Cyan: accents on navy only */
	--gh-ice: #F5F7FC;         /* Soft Ice: page backgrounds */
	--gh-white: #FFFFFF;
	--gh-muted: #4A5878;       /* muted text (7.1:1 on white) */
	--gh-muted-on-navy: #AAB6D3;
	--gh-line: #E2E7F2;
	--gh-danger: #B42318;
	--gh-success: #0E7A55;
	--gh-grad: linear-gradient(120deg, var(--gh-blue) 0%, var(--gh-cyan) 100%);
	--gh-radius: 18px;
	--gh-radius-sm: 12px;
	--gh-shadow-sm: 0 1px 2px rgba(16, 27, 53, .06), 0 2px 8px rgba(16, 27, 53, .04);
	--gh-shadow-md: 0 2px 4px rgba(16, 27, 53, .05), 0 14px 34px rgba(16, 27, 53, .10);
	--gh-shadow-glow: 0 10px 30px rgba(53, 99, 255, .30), 0 0 0 1px rgba(53, 99, 255, .25);
	--gh-ease: cubic-bezier(.2, .7, .2, 1);
	--gh-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--gh-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gh-header-h: 68px;
}

/* =========================================================
   2. Base
   ========================================================= */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--gh-white); color: var(--gh-navy); font-family: var(--gh-font-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(53, 99, 255, .18); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--gh-font-display); color: inherit; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--gh-blue-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s var(--gh-ease); }
a:hover { color: var(--gh-navy); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gh-blue); outline-offset: 3px; border-radius: 6px; }
.gh-header :focus-visible, .gh-hero :focus-visible, .gh-footer :focus-visible, .gh-cta :focus-visible, .gh-result :focus-visible { outline-color: var(--gh-cyan); }

.gh-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gh-white); color: var(--gh-navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: var(--gh-shadow-md); transition: top .2s; }
.gh-skip:focus { top: 12px; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main { display: block; }

/* =========================================================
   3. Header + navigation
   ========================================================= */
.gh-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 27, 53, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(143, 166, 255, .16); }
.gh-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); height: var(--gh-header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gh-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gh-white); text-decoration: none; font-family: var(--gh-font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.gh-logo:hover { color: var(--gh-white); }
.gh-logo svg { width: 34px; height: 34px; flex: none; transition: transform .5s var(--gh-ease); }
.gh-logo:hover svg { transform: rotate(-20deg); }
.gh-logo span b { font-weight: 700; background: var(--gh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.gh-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.gh-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--gh-muted-on-navy); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .25s var(--gh-ease); }
.gh-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; border-radius: 2px; background: var(--gh-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--gh-ease); }
.gh-nav a:hover, .gh-nav a:focus-visible, .gh-nav a[aria-current="page"] { color: var(--gh-white); }
.gh-nav a:hover::after, .gh-nav a:focus-visible::after, .gh-nav a[aria-current="page"]::after { transform: scaleX(1); }
.gh-header__cta { display: inline-flex; }

.gh-menu { display: none; position: relative; }
.gh-menu > summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(143, 166, 255, .3); color: var(--gh-white); cursor: pointer; transition: background .2s; }
.gh-menu > summary::-webkit-details-marker { display: none; }
.gh-menu > summary:hover { background: rgba(255, 255, 255, .08); }
.gh-menu__panel { position: absolute; right: 0; top: 54px; width: min(320px, calc(100vw - 32px)); background: var(--gh-navy); border: 1px solid rgba(143, 166, 255, .25); border-radius: 16px; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); display: grid; gap: 2px; animation: gh-pop .25s var(--gh-ease); }
.gh-menu__panel a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--gh-white); text-decoration: none; font-weight: 600; }
.gh-menu__panel a:hover, .gh-menu__panel a:focus-visible { background: rgba(53, 99, 255, .2); }
.gh-menu__label { color: var(--gh-muted-on-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px 4px; }

/* =========================================================
   4. Buttons (theme + core button block)
   ========================================================= */
.gh-btn, .wp-block-button__link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent; font-family: var(--gh-font-body); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .25s var(--gh-ease), box-shadow .25s var(--gh-ease), background-color .25s var(--gh-ease), color .25s, border-color .25s; will-change: transform; }
.gh-btn--primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--gh-blue); color: var(--gh-white); box-shadow: 0 6px 18px rgba(53, 99, 255, .28); }
.gh-btn--primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #2A55F5; color: var(--gh-white); transform: translateY(-2px); box-shadow: var(--gh-shadow-glow); }
.gh-btn--ghost { background: rgba(255, 255, 255, .06); color: var(--gh-white); border-color: rgba(143, 166, 255, .35); }
.gh-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--gh-white); border-color: var(--gh-cyan); transform: translateY(-2px); }
.gh-btn--light, .wp-block-button.is-style-outline .wp-block-button__link { background: var(--gh-white); color: var(--gh-navy); border-color: var(--gh-line); }
.gh-btn--light:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--gh-blue); color: var(--gh-blue-deep); transform: translateY(-2px); box-shadow: var(--gh-shadow-md); }
.gh-btn--sm { min-height: 44px; padding: 0 16px; font-size: .925rem; border-radius: 12px; }
.gh-btn:active, .wp-block-button__link:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.gh-btn .gh-arrow { transition: transform .25s var(--gh-ease); }
.gh-btn:hover .gh-arrow { transform: translateX(4px); }

/* =========================================================
   5. Home hero (futuristic)
   ========================================================= */
.gh-hero { position: relative; overflow: hidden; color: var(--gh-white); background:
	radial-gradient(55% 60% at 85% 15%, rgba(53, 99, 255, .50) 0%, rgba(16, 27, 53, 0) 62%),
	radial-gradient(45% 55% at 0% 100%, rgba(34, 211, 238, .20) 0%, rgba(16, 27, 53, 0) 60%),
	var(--gh-navy); }
.gh-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143, 166, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 166, 255, .09) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); pointer-events: none; }
.gh-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) clamp(16px, 4vw, 32px) clamp(56px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.gh-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(143, 166, 255, .28); color: var(--gh-muted-on-navy); font-size: .875rem; font-weight: 600; }
.gh-eyebrow i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: rgba(34, 211, 238, .16); }
.gh-eyebrow i::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--gh-cyan);  }
.gh-hero h1 { margin: 22px 0 18px; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; color: var(--gh-white); }
.gh-hero h1 .gh-gradtext { background: linear-gradient(100deg, #8FA6FF 0%, var(--gh-cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gh-hero__lead { margin: 0 0 30px; max-width: 540px; color: #C9D3EA; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }
.gh-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.gh-hero__trust { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--gh-muted-on-navy); font-size: .925rem; }
.gh-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.gh-hero__trust svg { width: 18px; height: 18px; color: var(--gh-cyan); flex: none; }

/* Animated academic dashboard */
.gh-dash { position: relative; }
.gh-dash__glow { position: absolute; inset: 10% 5% 0; background: var(--gh-grad); filter: blur(70px); opacity: .28; border-radius: 40%; pointer-events: none; }
.gh-dash__card { position: relative; border-radius: 24px; padding: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)); border: 1px solid rgba(143, 166, 255, .28); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); animation: gh-float 7s ease-in-out infinite; }
.gh-dash__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gh-dash__title { font-family: var(--gh-font-display); font-weight: 600; color: var(--gh-white); font-size: 1rem; }
.gh-dash__badge { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gh-navy); background: var(--gh-cyan); padding: 4px 10px; border-radius: 999px; }
.gh-dash__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.gh-ring { position: relative; width: 150px; height: 150px; }
.gh-ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.gh-ring__track { fill: none; stroke: rgba(143, 166, 255, .18); stroke-width: 12; }
.gh-ring__value { fill: none; stroke: url(#ghRingGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 389.6; stroke-dashoffset: 23.4; filter: drop-shadow(0 0 8px rgba(34, 211, 238, .55)); }
.js .gh-ring__value { animation: gh-ring 1.8s .5s var(--gh-ease) both; }
.gh-ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gh-ring__num { font-family: var(--gh-font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--gh-white); font-variant-numeric: tabular-nums; }
.gh-ring__cap { margin-top: 6px; font-size: .75rem; color: var(--gh-muted-on-navy); text-transform: uppercase; letter-spacing: .08em; }
.gh-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gh-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: .875rem; color: #DCE3F5; }
.gh-bars b { font-weight: 700; color: var(--gh-white); font-variant-numeric: tabular-nums; }
.gh-bar { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: rgba(143, 166, 255, .16); overflow: hidden; }
.gh-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--gh-grad); transform-origin: left; }
.js .gh-bar span { animation: gh-grow 1.2s var(--gh-ease) both; animation-delay: calc(.6s + var(--i, 0) * .12s); }
.gh-dash__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(143, 166, 255, .18); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; color: var(--gh-muted-on-navy); }
.gh-dash__foot strong { color: var(--gh-white); font-family: var(--gh-font-display); }
.gh-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 27, 53, .82); border: 1px solid rgba(34, 211, 238, .4); color: var(--gh-white); font-size: .85rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gh-chip strong { color: var(--gh-cyan); font-family: var(--gh-font-display); font-size: 1rem; }
.gh-chip--a { left: -28px; bottom: -22px; }
.gh-chip--b { right: -14px; top: -50px; }
.gh-chip svg { width: 18px; height: 18px; color: var(--gh-cyan); }
.gh-dash__note { margin: 26px 0 0; font-size: .78rem; color: var(--gh-muted-on-navy); text-align: right; }

/* Hero entrance */
.js .gh-enter { opacity: 0; transform: translateY(18px); animation: gh-in .9s var(--gh-ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
.js .gh-enter--right { transform: translateX(28px) scale(.98); }

/* =========================================================
   6. Inner page hero (calculators, guides, trust pages)
   ========================================================= */
.gh-pagehero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--gh-ice) 0%, var(--gh-white) 100%); border-bottom: 1px solid var(--gh-line); }
.gh-pagehero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(53, 99, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 99, 255, .06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 90% at 85% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(60% 90% at 85% 0%, #000 0%, transparent 70%); pointer-events: none; }
.gh-pagehero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -300px; background: radial-gradient(circle, rgba(53, 99, 255, .18), transparent 65%); pointer-events: none; }
.gh-pagehero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 36px; }
.gh-pagehero .wp-block-post-title { margin: 14px 0 10px; font-size: clamp(2.1rem, 4.4vw, 3.1rem); letter-spacing: -0.03em; max-width: 860px; }
.gh-pagehero .wp-block-post-excerpt { max-width: 760px; }
.gh-pagehero .wp-block-post-excerpt__excerpt { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--gh-muted); line-height: 1.6; }

.gh-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--gh-muted); }
.gh-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.gh-crumbs li + li::before { content: "/"; color: #A0AAC2; }
.gh-crumbs a { color: var(--gh-muted); text-decoration: none; background-image: linear-gradient(var(--gh-blue), var(--gh-blue)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--gh-ease), color .2s; }
.gh-crumbs a:hover { color: var(--gh-blue-deep); background-size: 100% 1.5px; }

/* =========================================================
   7. Page content
   ========================================================= */
.gh-main { padding-bottom: clamp(48px, 8vw, 96px); }
.gh-main .wp-block-post-content { padding-top: clamp(28px, 4vw, 48px); }
.gh-main .wp-block-post-content > * { margin-block: 0; }
.gh-main .wp-block-post-content > * + * { margin-block-start: 1.1em; }
.gh-main .wp-block-post-content > h2 { margin-block-start: 2.2em; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.gh-main .wp-block-post-content > h3 { margin-block-start: 1.6em; font-size: 1.3rem; }
.gh-main .wp-block-post-content > :is(h2, h3):first-child { margin-block-start: 0; }
.gh-main .wp-block-post-content > .alignwide { margin-block-start: 0; }
.gh-main .wp-block-post-content > p, .gh-main li { color: #23304F; }

.gh-formula, .wp-block-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; background: var(--gh-ice); border: 1px solid var(--gh-line); border-radius: var(--gh-radius-sm); padding: 16px 18px; overflow-x: auto; color: var(--gh-navy); }
.wp-block-table { overflow-x: auto; border-radius: var(--gh-radius-sm); border: 1px solid var(--gh-line); }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 460px; }
.wp-block-table thead { border: 0; background: var(--gh-ice); }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--gh-line); padding: 11px 14px; text-align: left; font-variant-numeric: tabular-nums; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr { transition: background .2s; }
.wp-block-table tbody tr:hover { background: #FAFBFF; }
.wp-block-table figcaption { font-size: .875rem; color: var(--gh-muted); padding: 8px 14px; }

/* FAQs: native <details> accordion */
.wp-block-details { border: 1px solid var(--gh-line); border-radius: var(--gh-radius-sm); padding: 0; background: var(--gh-white); transition: border-color .25s, box-shadow .25s; }
.wp-block-details + .wp-block-details { margin-block-start: 10px !important; }
.wp-block-details:hover { border-color: #C5D1F5; }
.wp-block-details[open] { border-color: rgba(53, 99, 255, .45); box-shadow: var(--gh-shadow-sm); }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; min-height: 24px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--gh-blue); border-bottom: 2.5px solid var(--gh-blue); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--gh-ease); }
.wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details > :not(summary) { padding: 0 18px; margin-top: 0; }
.wp-block-details > :last-child { padding-bottom: 16px; }

.gh-note { background: var(--gh-blue-soft); border-radius: var(--gh-radius-sm); padding: 14px 18px; font-size: .95rem; }
.gh-byline { font-size: .9rem; color: var(--gh-muted) !important; border-top: 1px solid var(--gh-line); padding-top: 18px; margin-top: 2.5em !important; }

/* =========================================================
   8. Cards (tools, features, guides) — whole card clickable via stretched link
   ========================================================= */
.gh-section { padding: clamp(56px, 8vw, 104px) 0; }
.gh-section--ice { background: var(--gh-ice); }
.gh-section__head { max-width: 680px; margin: 0 0 clamp(24px, 4vw, 40px); }
.gh-section__head h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.gh-section__head p { margin: 0; color: var(--gh-muted); font-size: 1.1rem; }
.gh-kicker { display: inline-block; margin: 0 0 12px !important; font-size: .8rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gh-blue-deep) !important; }

.gh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gh-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gh-card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--gh-radius); background: var(--gh-white); border: 1px solid var(--gh-line); box-shadow: var(--gh-shadow-sm); transition: transform .35s var(--gh-ease), box-shadow .35s var(--gh-ease), border-color .35s; }
.gh-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: var(--gh-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s var(--gh-ease); }
.gh-card:hover, .gh-card:focus-within { transform: translateY(-3px); box-shadow: var(--gh-shadow-md), 0 0 0 4px rgba(53, 99, 255, .06); border-color: transparent; }
.gh-card:hover::before, .gh-card:focus-within::before { opacity: 1; }
.gh-card h3 { margin: 0; font-size: 1.25rem; }
.gh-card h3 a { color: var(--gh-navy); text-decoration: none; }
.gh-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* stretched link */
.gh-card h3 a:focus-visible { outline: none; box-shadow: none; }
.gh-card:focus-within { outline: 3px solid var(--gh-blue); outline-offset: 3px; }
.gh-card p { margin: 0; color: var(--gh-muted); font-size: .975rem; line-height: 1.55; }
.gh-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gh-blue-soft); color: var(--gh-blue-deep); transition: transform .35s var(--gh-ease), background .35s, color .35s; }
.gh-card__icon svg { width: 24px; height: 24px; }
.gh-card:hover .gh-card__icon { background: var(--gh-blue); color: var(--gh-white); }
.gh-card__tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gh-blue-deep); background: var(--gh-blue-soft); border-radius: 999px; padding: 4px 10px; }
.gh-card__go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .95rem; color: var(--gh-blue-deep); display: inline-flex; align-items: center; gap: 6px; }
.gh-card__go svg { width: 16px; height: 16px; transition: transform .3s var(--gh-ease); }
.gh-card:hover .gh-card__go svg { transform: translateX(5px); }

.gh-steps { counter-reset: step; }
.gh-step__num { font-family: var(--gh-font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--gh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.gh-cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px); color: var(--gh-white); background: radial-gradient(60% 120% at 100% 0%, rgba(34, 211, 238, .25), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(53, 99, 255, .45), transparent 60%), var(--gh-navy); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.gh-cta h2 { color: var(--gh-white); margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gh-cta p { margin: 0; color: #C9D3EA; }

/* =========================================================
   9. Footer
   ========================================================= */
.gh-footer { background: var(--gh-navy); color: var(--gh-muted-on-navy); position: relative; overflow: hidden; }
.gh-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), rgba(53, 99, 255, .6), transparent); }
.gh-footer__inner { max-width: 1200px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 32px) 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.gh-footer__brand p { margin: 14px 0 0; font-size: .925rem; line-height: 1.6; max-width: 320px; }
.gh-footer h2 { font-family: var(--gh-font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gh-white); margin: 0 0 14px; }
.gh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gh-footer a { color: var(--gh-muted-on-navy); text-decoration: none; display: inline-flex; min-height: 34px; align-items: center; transition: color .2s, transform .25s var(--gh-ease); }
.gh-footer a:hover, .gh-footer a:focus-visible { color: var(--gh-white); transform: translateX(3px); }
.gh-footer__base { max-width: 1200px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px) 32px; border-top: 1px solid rgba(143, 166, 255, .14); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* 404 */
.gh-404 { max-width: 640px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 32px); text-align: center; }
.gh-404 h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 12px; }


/* Layout helpers for page content */
.gh-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.gh-wrap--narrow { max-width: 820px; }
.gh-wrap--narrow > h2 { margin: 0 0 20px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; }
.gh-section--tight { padding-top: 0; }
.gh-steps { list-style: none; margin: 0; padding: 0; }
.gh-step { padding: 26px; border-radius: var(--gh-radius); border: 1px solid var(--gh-line); background: var(--gh-white); }
.gh-step h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.gh-step p { margin: 0; color: var(--gh-muted); }
.gh-feature h3 { font-size: 1.1rem; }
.gh-answer { font-size: 1.1rem; }
.gh-main .wp-block-post-content > ol, .gh-main .wp-block-post-content > ul { padding-left: 1.3em; }
.gh-main .wp-block-post-content li + li { margin-top: .35em; }
.gh-related { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gh-related li { margin: 0 !important; }
.gh-related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: var(--gh-radius-sm); border: 1px solid var(--gh-line); background: var(--gh-white); color: var(--gh-navy); font-weight: 700; text-decoration: none; transition: border-color .25s, transform .25s var(--gh-ease), box-shadow .25s; }
.gh-related a::after { content: "→"; color: var(--gh-blue-deep); transition: transform .25s var(--gh-ease); }
.gh-related a:hover { border-color: var(--gh-blue); transform: translateY(-2px); box-shadow: var(--gh-shadow-sm); }
.gh-related a:hover::after { transform: translateX(4px); }
@media (max-width: 640px) { .gh-related { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   10. Scroll reveal (only when JS is on; content is never hidden without JS)
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--gh-ease), transform .7s var(--gh-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   11. Keyframes
   ========================================================= */
@keyframes gh-in { to { opacity: 1; transform: none; } }
@keyframes gh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gh-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
@keyframes gh-ring { from { stroke-dashoffset: 389.6; } }
@keyframes gh-grow { from { transform: scaleX(0); } }
@keyframes gh-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* =========================================================
   12. Reduced motion: keep everything, remove movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
	.js .gh-enter, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.gh-dash__card, .gh-chip { animation: none !important; }
}

/* =========================================================
   13. Responsive
   ========================================================= */
@media (max-width: 1020px) {
	.gh-cards, .gh-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.gh-nav, .gh-header__cta { display: none; }
	.gh-menu { display: block; }
	.gh-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.gh-dash { max-width: 520px; margin: 52px auto 0; width: 100%; } /* room for the floating "Target" chip above the card */
	.gh-chip--b { top: -44px; }
}
@media (max-width: 640px) {
	.gh-cards, .gh-cards--4 { grid-template-columns: minmax(0, 1fr); }
	.gh-dash__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.gh-bars { width: 100%; }
	.gh-chip--a { left: 8px; bottom: -26px; }
	.gh-chip--b { right: 8px; top: -44px; }
	.gh-footer__inner { grid-template-columns: 1fr; }
	.gh-hero__ctas .gh-btn { width: 100%; }
}

/* =========================================================
   Cookie consent banner (only shown when GA4 is configured)
   ========================================================= */
.gh-consent {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
	max-width: 720px; margin: 0 auto; padding: 14px 16px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	background: var(--gh-navy); color: var(--gh-white);
	border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 27, 53, .35);
	font-size: .9rem; line-height: 1.45;
}
.gh-consent[hidden] { display: none; }
.gh-consent__text { margin: 0; flex: 1 1 320px; }
.gh-consent__text a { color: var(--gh-blue-on-navy); text-decoration: underline; }
.gh-consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.gh-consent__btn {
	min-width: 104px; min-height: 44px; padding: 10px 18px;
	font: inherit; font-weight: 600; border-radius: 10px; cursor: pointer;
	background: var(--gh-white); color: var(--gh-navy); border: 2px solid var(--gh-white);
}
.gh-consent__btn:hover { background: var(--gh-blue-soft); }
.gh-consent__btn:focus-visible { outline: 3px solid var(--gh-cyan); outline-offset: 2px; }
.gh-footer__cookies {
	background: none; border: 0; padding: 0; font: inherit; color: inherit;
	text-decoration: underline; cursor: pointer;
}
.gh-footer__cookies:focus-visible { outline: 2px solid var(--gh-cyan); outline-offset: 2px; }
@media (max-width: 480px) {
	.gh-consent { left: 8px; right: 8px; bottom: 8px; }
	.gh-consent__actions { width: 100%; }
	.gh-consent__btn { flex: 1; }
}

/* Phones: let tables fit the screen instead of forcing a sideways scroll (scroll stays as a fallback for very wide tables). */
@media (max-width: 600px) {
	.wp-block-table table, .wp-block-table table.has-fixed-layout { min-width: 0; table-layout: auto; font-size: .875rem; }
	.wp-block-table th, .wp-block-table td,
	.wp-block-table table.has-fixed-layout th, .wp-block-table table.has-fixed-layout td { padding: 9px 7px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
	/* Wide tables (5+ columns) get a slightly smaller font so they still fit. */
	.wp-block-table table:has(th:nth-child(5)) { font-size: .8125rem; }
	.wp-block-table table:has(th:nth-child(5)) th, .wp-block-table table:has(th:nth-child(5)) td { padding-left: 5px; padding-right: 5px; }
	.wp-block-table th:first-child, .wp-block-table td:first-child { padding-left: 12px; }
	.wp-block-table th:last-child, .wp-block-table td:last-child { padding-right: 12px; }
}

/* Cookie banner on wide screens: a slim one-line bar, so it covers as little as possible. */
@media (min-width: 1024px) {
	.gh-consent { max-width: 1100px; padding: 10px 16px; }
	.gh-consent__text { flex: 1 1 600px; }
}
