/*
Theme Name:   GameHostingReview (Astra Child)
Theme URI:    https://gamehostingreview.com/
Description:  Custom child theme of Astra for GameHostingReview.com. Server-rack inspired design for game server hosting reviews and guides. Navigation links resolve to live pages or to a safe fallback, so the theme never sends visitors to a 404 on its own.
Author:       GameHostingReview
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  ghr
*/

/* ==========================================================
   1. Tokens
   Colour carries meaning: each topic has one signal colour
   that is reused on chips, LEDs, hovers and hub tiles.
   ========================================================== */
:root {
	--bg: #0B1020;
	--bg-2: #0F1730;
	--panel: #131C38;
	--panel-2: #1A2547;
	--line: #26325C;
	--line-2: #36447F;
	--ink: #EAEEFB;
	--ink-2: #B7C1E3;
	--mute: #8E99C4;

	--net: #38D5F2;   /* networking, ping */
	--perf: #FFB547;  /* performance, TPS */
	--host: #3DDC97;  /* hosting, uptime */
	--guide: #A78BFA; /* guides, tick rate */
	--alert: #FF6B7E; /* attacks, errors */

	--font-head: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r: 6px;
	--r-lg: 10px;
	--wrap: 1200px;
}

.t-net   { --c: var(--net); }
.t-perf  { --c: var(--perf); }
.t-host  { --c: var(--host); }
.t-guide { --c: var(--guide); }
.t-alert { --c: var(--alert); }

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.ghr-theme {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.ghr-theme img, body.ghr-theme svg { max-width: 100%; height: auto; }
body.ghr-theme a { color: var(--net); text-underline-offset: .18em; }
body.ghr-theme a:hover { color: #7BE6F9; }
body.ghr-theme :focus-visible { outline: 2px solid var(--net); outline-offset: 3px; border-radius: 3px; }
body.ghr-theme h1, body.ghr-theme h2, body.ghr-theme h3, body.ghr-theme h4 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.12;
	margin: 0 0 .6em;
	font-weight: 700;
}
body.ghr-theme p { margin: 0 0 1.1em; }

.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 !important;
	width: 1px; word-wrap: normal !important;
}
.ghr-skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--net); color: #04141A !important; padding: .7rem 1rem; border-radius: var(--r); font-weight: 600;
}
.ghr-skip:focus { top: 1rem; }

.ghr-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.ghr-main { display: block; min-height: 60vh; }
.ghr-main:focus { outline: none; }
.ghr-section { padding: 4.5rem 0; }
.ghr-section + .ghr-section { border-top: 1px solid var(--line); }
.ghr-sec-head { max-width: 44rem; margin-bottom: 2.25rem; }
.ghr-sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .4em; }
.ghr-sec-head p { color: var(--ink-2); margin: 0; }
.ghr-sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }

/* ==========================================================
   3. Buttons, chips, LEDs
   ========================================================== */
.ghr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .8rem 1.3rem; border-radius: var(--r); border: 1px solid var(--line-2);
	background: transparent; color: var(--ink) !important; font: 600 1rem/1.2 var(--font-body);
	text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.ghr-btn:hover { background: var(--panel-2); border-color: var(--net); }
.ghr-btn--primary { background: var(--net); border-color: var(--net); color: #04141A !important; }
.ghr-btn--primary:hover { background: #7BE6F9; border-color: #7BE6F9; }
.ghr-btn--sm { padding: .55rem 1rem; font-size: .95rem; }
.ghr-btn svg { width: 1em; height: 1em; flex: none; }

.led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--host)); box-shadow: 0 0 10px var(--c, var(--host)); flex: none; }

.ghr-chip {
	display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .65rem;
	border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255,255,255,.02);
	font: 600 .8125rem/1 var(--font-body); color: var(--ink) !important; text-decoration: none !important;
}
.ghr-chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c, var(--net)); box-shadow: 0 0 8px var(--c, var(--net)); }
a.ghr-chip:hover { border-color: var(--c, var(--net)); }

/* ==========================================================
   4. Header
   ========================================================== */
.ghr-header { position: sticky; top: 0; z-index: 60; background: rgba(11,16,32,.94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
body.admin-bar .ghr-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ghr-header { top: 46px; } }
.ghr-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.ghr-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink) !important; text-decoration: none !important; font: 700 1.4rem/1 var(--font-head); }
.ghr-brand svg { width: 34px; height: 34px; flex: none; }
.ghr-brand img { max-height: 44px; width: auto; }
.ghr-nav { margin-left: auto; }
.ghr-menu { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.ghr-menu a { display: block; padding: .6rem .85rem; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.ghr-menu a:hover { color: var(--ink); background: var(--panel); }
.ghr-menu a[aria-current], .ghr-menu a.is-section { color: var(--ink); box-shadow: inset 0 -2px 0 var(--net); border-radius: var(--r) var(--r) 0 0; }
.ghr-header__tools { display: flex; align-items: center; gap: .5rem; }
.ghr-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink) !important; cursor: pointer; }
.ghr-iconbtn:hover { background: var(--panel); border-color: var(--line-2); }
.ghr-iconbtn svg { width: 20px; height: 20px; }
.ghr-menubtn { display: none; }
.ghr-searchbar { border-top: 1px solid var(--line); background: var(--bg-2); padding: 1rem 0; }
.ghr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.ghr-progress span { display: block; height: 100%; background: var(--net); transform: scaleX(0); transform-origin: 0 50%; }

@media (max-width: 920px) {
	.ghr-menubtn { display: inline-grid; }
	.ghr-header__cta { display: none; }
	.ghr-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
	.js .ghr-nav { display: none; }
	.js .ghr-header.is-open .ghr-nav { display: block; }
	.ghr-menu { flex-direction: column; padding: .75rem 1.25rem 1rem; max-width: var(--wrap); margin: 0 auto; }
	.ghr-menu a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.ghr-menu a[aria-current], .ghr-menu a.is-section { box-shadow: inset 3px 0 0 var(--net); padding-left: 1rem; }
	.ghr-header__tools { margin-left: auto; }
	.no-js .ghr-header__in, :root:not(.js) .ghr-header__in { flex-wrap: wrap; }
	:root:not(.js) .ghr-nav { position: static; width: 100%; order: 3; }
}

/* ==========================================================
   5. Home: hero (server rack readout)
   ========================================================== */
.ghr-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden;
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(88,110,190,.11) 43px, rgba(88,110,190,.11) 44px); }
.ghr-hero::before, .ghr-hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14px; opacity: .8;
	background: radial-gradient(circle at 50% 22px, var(--line-2) 2.5px, transparent 3px) 0 0 / 14px 44px repeat-y; }
.ghr-hero::before { left: 14px; }
.ghr-hero::after { right: 14px; }
@media (max-width: 1280px) { .ghr-hero::before, .ghr-hero::after { display: none; } }
.ghr-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; padding: 5rem 0 4.5rem; }
.ghr-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.01; letter-spacing: -.005em; margin-bottom: 1.1rem; text-wrap: balance; }
.ghr-hero__lead { max-width: 34rem; font-size: 1.2rem; color: var(--ink-2); margin-bottom: 2rem; }
.ghr-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 960px) { .ghr-hero__in { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.25rem 0 3rem; } }

.ghr-rack { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 6px rgba(255,255,255,.016); }
.ghr-rack__bar { display: flex; align-items: center; gap: .65rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--mute); }
.ghr-rack__bar strong { color: var(--ink); font-weight: 600; }
.ghr-rack__list { list-style: none; margin: 0; padding: 0; }
.ghr-gauge { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "led name val" "led desc spark"; gap: .2rem 1rem; align-items: center; padding: 1.05rem 1.1rem; border-bottom: 1px solid var(--line); color: inherit !important; text-decoration: none !important; }
.ghr-rack__list li:last-child .ghr-gauge { border-bottom: 0; }
.ghr-gauge:hover { background: var(--panel-2); }
.ghr-gauge .led { grid-area: led; }
.ghr-gauge__name { grid-area: name; font: 700 1.2rem/1.1 var(--font-head); color: var(--ink); }
.ghr-gauge__desc { grid-area: desc; font-size: .9rem; line-height: 1.4; color: var(--mute); }
.ghr-gauge__val { grid-area: val; text-align: right; font: 700 2.1rem/1 var(--font-head); color: var(--c); }
.ghr-gauge__val small { font: 500 .85rem var(--font-body); color: var(--mute); margin-left: .25rem; }
.ghr-gauge__spark { grid-area: spark; width: 120px; height: 24px; justify-self: end; }
.ghr-gauge__spark path { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ghr-rack__note { margin: .85rem .25rem 0; font-size: .85rem; color: var(--mute); }

@media (prefers-reduced-motion: no-preference) {
	.ghr-gauge .led { animation: ghr-led .5s ease-out both; }
	.ghr-rack__list li:nth-child(1) .led { animation-delay: .15s; }
	.ghr-rack__list li:nth-child(2) .led { animation-delay: .35s; }
	.ghr-rack__list li:nth-child(3) .led { animation-delay: .55s; }
	.ghr-rack__list li:nth-child(4) .led { animation-delay: .75s; }
	.ghr-gauge__spark path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ghr-draw 1.3s .4s ease-out forwards; }
}
@keyframes ghr-led { from { opacity: .12; } to { opacity: 1; } }
@keyframes ghr-draw { to { stroke-dashoffset: 0; } }

/* trust bar */
.ghr-trust { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ghr-trust__in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; padding: 1rem 0; font-size: .95rem; }
.ghr-trust strong { font-family: var(--font-head); font-size: 1.1rem; }
.ghr-trust a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); text-decoration: none; }
.ghr-trust a:hover { color: var(--ink); text-decoration: underline; }
.ghr-trust svg { width: 16px; height: 16px; color: var(--host); }

/* ==========================================================
   6. Home: problem log
   ========================================================== */
.ghr-issues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ghr-issue { display: grid; grid-template-columns: 12px minmax(0, 15rem) minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.5rem; padding: 1.4rem .5rem; border-bottom: 1px solid var(--line); color: inherit !important; text-decoration: none !important; transition: background .15s; }
.ghr-issue:hover { background: var(--panel); }
.ghr-issue h3 { margin: 0; font-size: 1.6rem; }
.ghr-issue p { margin: 0; color: var(--ink-2); }
.ghr-issue__go { display: inline-flex; align-items: center; gap: .4rem; color: var(--c); font-weight: 600; white-space: nowrap; }
.ghr-issue__go svg { width: 1em; height: 1em; transition: transform .15s; }
.ghr-issue:hover .ghr-issue__go svg { transform: translateX(3px); }
@media (max-width: 800px) {
	.ghr-issue { grid-template-columns: 12px 1fr; }
	.ghr-issue p, .ghr-issue__go { grid-column: 2; }
}

/* ==========================================================
   7. Cards & grid
   ========================================================== */
.ghr-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.ghr-filter a { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.ghr-filter a:hover { border-color: var(--line-2); color: var(--ink); }
.ghr-filter a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.ghr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.ghr-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s; }
.ghr-card:hover, .ghr-card:focus-within { border-color: var(--c, var(--line-2)); }
.ghr-card__media { display: block; aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.ghr-card__media img, .ghr-card__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ghr-card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.ghr-card__title { margin: 0; font-size: 1.32rem; line-height: 1.18; }
.ghr-card__title a { color: var(--ink) !important; text-decoration: none; }
.ghr-card__title a::after { content: ""; position: absolute; inset: 0; }
.ghr-card__excerpt { margin: 0; color: var(--ink-2); font-size: 1rem; }
.ghr-card__meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--mute); }
.ghr-card__meta span + span { padding-left: 1rem; border-left: 1px solid var(--line-2); }
.ghr-card--featured { grid-column: 1 / -1; flex-direction: row; }
.ghr-card--featured .ghr-card__media { flex: 1.15; aspect-ratio: auto; min-height: 280px; }
.ghr-card--featured .ghr-card__body { flex: 1; justify-content: center; padding: 2rem 2.25rem; gap: 1rem; }
.ghr-card--featured .ghr-card__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.ghr-card--featured .ghr-card__meta { margin-top: .25rem; }
@media (max-width: 800px) {
	.ghr-card--featured { flex-direction: column; }
	.ghr-card--featured .ghr-card__media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
	.ghr-card--featured .ghr-card__body { padding: 1.25rem; }
}
.ghr-empty { padding: 2rem; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
.ghr-more { margin-top: 2rem; }

/* ==========================================================
   8. Home: path + hubs
   ========================================================== */
.ghr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.ghr-steps li { counter-increment: step; position: relative; padding: 2.4rem 2rem 0 0; border-top: 2px solid var(--line-2); }
.ghr-steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--net); box-shadow: 0 0 10px var(--net); }
.ghr-steps li::after { content: counter(step, decimal-leading-zero); position: absolute; top: .55rem; right: 2rem; font: 700 3.4rem/1 var(--font-head); color: var(--line); }
.ghr-steps a { text-decoration: none; color: inherit !important; display: block; }
.ghr-steps h3 { font-size: 1.55rem; margin-bottom: .4rem; }
.ghr-steps p { color: var(--ink-2); margin: 0; max-width: 20rem; }
.ghr-steps a:hover h3 { color: var(--net); }
@media (max-width: 800px) { .ghr-steps { grid-template-columns: 1fr; gap: 2.2rem; } }

.ghr-hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ghr-hub { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; padding: 1.5rem 1.6rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r); color: inherit !important; text-decoration: none !important; transition: background .15s; }
.ghr-hub:hover { background: var(--panel-2); }
.ghr-hub h3 { margin: 0; font-size: 1.6rem; }
.ghr-hub p { margin: 0; color: var(--ink-2); grid-column: 1; }
.ghr-hub__count { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--mute); font-size: .9rem; }
.ghr-hub__count b { display: block; font: 700 2rem/1 var(--font-head); color: var(--c); }
@media (max-width: 700px) { .ghr-hubs { grid-template-columns: 1fr; } }

/* ==========================================================
   9. Page / hub / archive heads
   ========================================================== */
.ghr-pagehead { padding: 3rem 0 2.25rem; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(88,110,190,.08) 43px, rgba(88,110,190,.08) 44px); }
.ghr-pagehead h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: .9rem 0 .6rem; text-wrap: balance; }
.ghr-pagehead p { max-width: 40rem; color: var(--ink-2); font-size: 1.15rem; margin: 0; }
.ghr-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: .9rem; color: var(--mute); }
.ghr-crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.ghr-crumbs a { color: var(--ink-2); text-decoration: none; }
.ghr-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ghr-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.ghr-tabs a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.ghr-tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.ghr-tabs a[aria-current] { color: var(--ink); border-color: var(--c); background: var(--panel); }
.ghr-listing { padding: 3rem 0 4.5rem; }
.ghr-note { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-left: 3px solid var(--perf); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); }

.ghr-pager { margin-top: 2.5rem; }
.ghr-pager ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ghr-pager .page-numbers { display: inline-block; min-width: 42px; text-align: center; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); text-decoration: none; }
.ghr-pager a.page-numbers:hover { border-color: var(--net); color: var(--ink); }
.ghr-pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* plain page */
.ghr-pagebody { padding: 3rem 0 5rem; }
.ghr-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* ==========================================================
   10. Article
   ========================================================== */
.ghr-article__head { padding: 2.5rem 0 1.5rem; }
.ghr-article__title { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.07; margin: 1rem 0 1.4rem; max-width: 900px; text-wrap: balance; }
.ghr-byline { display: flex; align-items: center; gap: .9rem; }
.ghr-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); font: 700 1rem var(--font-head); color: var(--net); }
.ghr-byline__name { font-weight: 600; line-height: 1.25; }
.ghr-byline__meta { font-size: .9rem; color: var(--mute); line-height: 1.3; }
.ghr-article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; align-items: start; padding-bottom: 3.5rem; }
.ghr-article__main { min-width: 0; }
.ghr-figure { margin: 0 0 1.5rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ghr-figure img { display: block; width: 100%; height: auto; }
.ghr-disclosure { margin: 0 0 1.75rem; padding: .85rem 1.1rem; border-left: 3px solid var(--perf); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; font-size: .95rem; color: var(--ink-2); }
.ghr-disclosure strong { color: var(--ink); }

.ghr-aside { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.ghr-box { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ghr-box h2, .ghr-box h3, .ghr-box h4 { font-size: 1.15rem; margin: 0 0 .7rem; }
.ghr-box p { font-size: .95rem; color: var(--ink-2); margin: 0 0 .9rem; }
.ghr-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.ghr-toc a { display: block; padding: .38rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.ghr-toc a:hover { color: var(--ink); }
.ghr-toc a.is-active { color: var(--net); border-left-color: var(--net); font-weight: 600; }
.ghr-toc-m { display: none; margin: 0 0 1.75rem; }
.ghr-toc-m summary { cursor: pointer; font: 700 1.1rem var(--font-head); }
.ghr-toc-m .ghr-toc { margin-top: .8rem; }
.ghr-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.ghr-share a, .ghr-share button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink) !important; font: 500 .88rem var(--font-body); text-decoration: none; cursor: pointer; }
.ghr-share a:hover, .ghr-share button:hover { border-color: var(--net); background: var(--panel-2); }
.ghr-share svg { width: 15px; height: 15px; }

@media (max-width: 1000px) {
	.ghr-article__grid { grid-template-columns: 1fr; gap: 2rem; }
	.ghr-aside { position: static; }
	.ghr-aside .ghr-toc-box { display: none; }
	.ghr-toc-m { display: block; }
}

/* prose */
.ghr-prose { font-size: 1.125rem; line-height: 1.75; color: #D5DCF3; max-width: 740px; }
.ghr-prose > :first-child { margin-top: 0; }
.ghr-prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.8rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.ghr-prose h3 { font-size: 1.45rem; margin: 2rem 0 .6rem; scroll-margin-top: 96px; }
.ghr-prose h4 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.ghr-prose p, .ghr-prose ul, .ghr-prose ol { margin: 0 0 1.25em; }
.ghr-prose ul, .ghr-prose ol { padding-left: 1.4rem; }
.ghr-prose li { margin-bottom: .45em; }
.ghr-prose li::marker { color: var(--net); }
.ghr-prose strong { color: #fff; font-weight: 600; }
.ghr-prose a { color: var(--net); }
.ghr-prose img { border-radius: var(--r); }
.ghr-prose figure { margin: 1.75rem 0; }
.ghr-prose figcaption { font-size: .9rem; color: var(--mute); margin-top: .5rem; }
.ghr-prose blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--guide); color: var(--ink); font-size: 1.15rem; }
.ghr-prose code { padding: .12em .4em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; font-size: .88em; }
.ghr-prose pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.ghr-prose pre code { padding: 0; border: 0; background: none; }
.ghr-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.ghr-table-wrap { overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--line); border-radius: var(--r); }
.ghr-table-wrap table { width: 100%; border-collapse: collapse; margin: 0; font-size: .98rem; min-width: 460px; }
.ghr-table-wrap th, .ghr-table-wrap td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ghr-table-wrap th { background: var(--panel-2); color: #fff; font-weight: 600; }
.ghr-table-wrap tr:last-child td { border-bottom: 0; }
.ghr-table-wrap .wp-block-table, .ghr-table-wrap figure { margin: 0; }

.ghr-author { display: flex; gap: 1.1rem; align-items: flex-start; margin: 3rem 0 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); max-width: 740px; }
.ghr-author h2 { font-size: 1.2rem; margin: 0 0 .35rem; }
.ghr-author p { margin: 0 0 .6rem; color: var(--ink-2); font-size: .98rem; }
.ghr-author p:last-child { margin: 0; }
.ghr-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 0; max-width: 740px; }
.ghr-postnav a { display: block; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink) !important; text-decoration: none; font-weight: 600; line-height: 1.3; }
.ghr-postnav a:hover { border-color: var(--net); background: var(--panel); }
.ghr-postnav small { display: block; margin-bottom: .25rem; color: var(--mute); font-weight: 400; }
.ghr-postnav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .ghr-postnav { grid-template-columns: 1fr; } .ghr-postnav .next { grid-column: 1; } }
.ghr-related { padding: 3.5rem 0 4.5rem; border-top: 1px solid var(--line); background: var(--bg-2); }

/* ==========================================================
   11. Forms, search, comments
   ========================================================== */
body.ghr-theme input[type="text"], body.ghr-theme input[type="email"], body.ghr-theme input[type="url"],
body.ghr-theme input[type="search"], body.ghr-theme textarea {
	width: 100%; padding: .8rem .95rem; background: var(--panel-2); color: var(--ink);
	border: 1px solid var(--line-2); border-radius: var(--r); font: 400 1rem var(--font-body);
}
body.ghr-theme input::placeholder, body.ghr-theme textarea::placeholder { color: var(--mute); }
body.ghr-theme input:focus, body.ghr-theme textarea:focus { border-color: var(--net); outline: 2px solid rgba(56,213,242,.35); outline-offset: 0; }
body.ghr-theme label { display: block; margin: 0 0 .35rem; font-weight: 500; font-size: .95rem; }
.ghr-search { display: flex; gap: .5rem; max-width: 640px; }
.ghr-search input[type="search"] { flex: 1; }
.ghr-notice { padding: .9rem 1.1rem; border-radius: var(--r); margin: 0 0 1.25rem; border: 1px solid var(--line-2); background: var(--panel); }
.ghr-notice--ok { border-color: var(--host); }
.ghr-notice--err { border-color: var(--alert); }
.ghr-form { display: grid; gap: 1rem; max-width: 560px; }
.ghr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ghr-comments { margin: 3rem 0 0; max-width: 740px; }
.ghr-comments__title, .ghr-comments .comment-reply-title { font-size: 1.6rem; }
.ghr-comment-list, .ghr-comment-list .children { list-style: none; margin: 0 0 2rem; padding: 0; }
.ghr-comment-list .children { margin: 1rem 0 0 1.5rem; padding-left: 1rem; border-left: 1px solid var(--line-2); }
.ghr-comment-list .comment-body { padding: 1.1rem 1.25rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ghr-comment-list .comment-author { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.ghr-comment-list .avatar { border-radius: 50%; }
.ghr-comment-list .comment-metadata { font-size: .85rem; color: var(--mute); margin: .15rem 0 .6rem; }
.ghr-comment-list .comment-metadata a { color: var(--mute); }
.ghr-comment-list .reply a { font-size: .9rem; font-weight: 600; }
.ghr-comments .comment-form { display: grid; gap: 1rem; }
.ghr-comments .comment-form p { margin: 0; }
.ghr-comments .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.ghr-comments .comment-form-cookies-consent input { width: auto; margin-top: .35rem; }
.ghr-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--ink-2); }
.ghr-comments .comment-notes, .ghr-comments .logged-in-as { color: var(--mute); font-size: .9rem; }
.ghr-comments .form-submit input { cursor: pointer; }

/* ==========================================================
   12. 404 and empty states
   ========================================================== */
.ghr-404 { padding: 4.5rem 0 4rem; }
.ghr-404__code { display: flex; align-items: center; gap: 1rem; font: 700 clamp(4.5rem, 14vw, 9rem)/1 var(--font-head); color: var(--ink); margin: 0 0 .5rem; }
.ghr-404__code .led { width: 18px; height: 18px; }
.ghr-404 h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ghr-404 p { color: var(--ink-2); max-width: 38rem; }
.ghr-404 .ghr-search { margin: 1.75rem 0 2.25rem; }

/* ==========================================================
   13. Footer
   ========================================================== */
.ghr-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.ghr-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0 2.5rem; }
.ghr-footer h2 { font-size: 1.1rem; margin-bottom: .9rem; color: var(--ink); }
.ghr-footer p { color: var(--ink-2); max-width: 26rem; font-size: .98rem; }
.ghr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ghr-footer ul a { color: var(--ink-2); text-decoration: none; }
.ghr-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.ghr-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--mute); }
.ghr-footer__bar a { color: var(--ink-2); }
@media (max-width: 800px) { .ghr-footer__grid { grid-template-columns: 1fr 1fr; } .ghr-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ghr-footer__grid { grid-template-columns: 1fr; } }

.ghr-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink) !important; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.ghr-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ghr-top:hover { border-color: var(--net); }
.ghr-top svg { width: 20px; height: 20px; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .9rem; color: var(--mute); }
.sticky .ghr-chip { }
.bypostauthor { }

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