/*!
 * PGH Tools.
 *
 * Uses the theme's own custom properties, so light and dark mode follow the
 * site toggle with no duplicate palette here. Fallbacks are supplied so the
 * pages stay legible if the plugin is ever used under another theme.
 */

.pght-wrap {
	max-width: var(--max, 1180px);
	margin: 0 auto;
	/* Matches the theme's own .pkg-main-wrap (32px 24px) so tools pages sit at
	   the same height as every other page. At 22px the breadcrumb crowded the
	   sticky header. */
	padding: 32px 24px 60px;
	font-family: var(--bf, system-ui, sans-serif);
	color: var(--text, #111);
}

/* ── breadcrumbs + heading ───────────────────────────────────────── */

.pght-crumbs {
	font-size: 13px;
	color: var(--muted, #6b7280);
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	margin-bottom: 14px;
}
.pght-crumbs a { color: var(--muted, #6b7280); text-decoration: none; }
.pght-crumbs a:hover { color: var(--red, #c0392b); text-decoration: underline; }
.pght-crumb-here { color: var(--text, #111); font-weight: 600; }

.pght-head { margin-bottom: 18px; }
.pght-h1 {
	font-family: var(--hf, sans-serif);
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.1;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text, #111);
}
.pght-h1-icon { font-size: 0.85em; line-height: 1; }
.pght-tagline {
	margin: 0;
	font-size: 16px;
	color: var(--muted2, #374151);
	max-width: 62ch;
}

/* ── tool shell ──────────────────────────────────────────────────── */

.pght-tool {
	background: var(--surface, #fff);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	border-radius: 14px;
	padding: 18px;
	box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,0.07));
	margin-bottom: 26px;
}
.pght-tool:focus-visible { outline: 2px solid var(--red, #c0392b); outline-offset: 3px; }

/* ── status panel ────────────────────────────────────────────────── */

.pght-status {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--surface2, #f9fafb);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.pght-status-dot {
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--muted, #9ca3af);
	flex: 0 0 auto;
}
.pght-status[data-state="ready"] .pght-status-dot { background: #16a34a; }
.pght-status[data-state="waiting"] .pght-status-dot {
	background: #d97706;
	animation: pght-pulse 1.4s ease-in-out infinite;
}
.pght-status[data-state="unsupported"] .pght-status-dot { background: var(--red, #c0392b); }
@keyframes pght-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
	.pght-status[data-state="waiting"] .pght-status-dot { animation: none; }
}

.pght-status-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pght-status-text strong { font-size: 15px; }
.pght-status-text span { font-size: 13px; color: var(--muted, #6b7280); }

.pght-padpick {
	padding: 7px 10px;
	border-radius: 8px;
	border: 1px solid var(--border2, rgba(0,0,0,0.14));
	background: var(--surface, #fff);
	color: var(--text, #111);
	font-size: 13px;
	max-width: 100%;
}
.pght-unsupported, .pght-noscript {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--border2, rgba(0,0,0,0.14));
	background: var(--bg2, #eef0f3);
	font-size: 14px;
}

/* ── gamepad diagram ─────────────────────────────────────────────── */

.pght-pad-stage {
	display: flex;
	justify-content: center;
	padding: 6px 0 14px;
}
.pght-pad { width: 100%; max-width: 460px; height: auto; }
/* Outlines use --muted rather than --border2: the faint border colour left
   white buttons on a near-white body almost invisible. */
.pght-body {
	fill: var(--bg2, #e6e9ee);
	stroke: var(--muted, #6b7280);
	stroke-width: 2.5;
}
.pght-dhub { fill: rgba(0,0,0,0.10); }
.pght-stick-well {
	fill: rgba(0,0,0,0.13);
	stroke: var(--muted, #6b7280);
	stroke-width: 1.4;
}
.pght-el {
	fill: var(--surface, #fff);
	stroke: var(--muted, #6b7280);
	stroke-width: 1.6;
	transition: fill 0.06s linear, stroke 0.06s linear;
}
.pght-el.is-tested { fill: #86efac; stroke: #16a34a; }
.pght-el.is-down   { fill: var(--red, #c0392b); stroke: var(--red, #c0392b); }
.pght-stick-dot { transition: none; }

/* ── panels, columns ─────────────────────────────────────────────── */

.pght-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
.pght-panel {
	background: var(--surface2, #f9fafb);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	border-radius: 10px;
	padding: 14px;
	min-width: 0;
}
.pght-panel-h {
	font-family: var(--hf, sans-serif);
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
	color: var(--text, #111);
}
.pght-panel-h2 { margin-top: 18px; }
.pght-panel-sub { font-size: 13px; color: var(--muted, #6b7280); margin: 0 0 10px; }

/* ── button list ─────────────────────────────────────────────────── */

.pght-btnlist { list-style: none; margin: 0 0 10px; padding: 0; }
.pght-btnrow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 5px 8px;
	border-radius: 6px;
	font-size: 13.5px;
	border-left: 3px solid transparent;
}
.pght-btnrow.is-tested { border-left-color: #16a34a; background: rgba(22,163,74,0.07); }
.pght-btnrow.is-down   { border-left-color: var(--red, #c0392b); background: rgba(192,57,43,0.12); }
.pght-btnrow-name { min-width: 0; }
.pght-btnrow-val {
	font-variant-numeric: tabular-nums;
	color: var(--muted, #6b7280);
	font-size: 12.5px;
	white-space: nowrap;
}

/* ── readouts + meters ───────────────────────────────────────────── */

.pght-readrow {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
	font-size: 13.5px;
}
.pght-readrow:last-child { border-bottom: 0; }
.pght-readlabel { color: var(--muted, #6b7280); }
.pght-readval { font-variant-numeric: tabular-nums; font-weight: 600; }
.pght-readval-flag.is-flagged { color: var(--red, #c0392b); }

.pght-meter {
	display: grid;
	grid-template-columns: 96px 1fr 48px;
	align-items: center;
	gap: 10px;
	margin: 8px 0;
	font-size: 13px;
}
.pght-meter-label { color: var(--muted, #6b7280); }
.pght-meter-track {
	height: 10px;
	background: var(--border2, rgba(0,0,0,0.14));
	border-radius: 5px;
	overflow: hidden;
}
.pght-meter-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--red, #c0392b);
	border-radius: 5px;
}
.pght-meter-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── stage bar / progress / steps ────────────────────────────────── */

.pght-stage-bar {
	background: var(--bg2, #eef0f3);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 16px;
}
.pght-stage-step {
	font-family: var(--hf, sans-serif);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 13px;
	color: var(--red, #c0392b);
	margin: 0 0 4px;
	font-weight: 700;
}
.pght-stage-msg { margin: 0 0 12px; font-size: 15px; }
.pght-stage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pght-stage-extra { margin-bottom: 16px; }

.pght-progress {
	height: 6px;
	background: var(--border2, rgba(0,0,0,0.14));
	border-radius: 3px;
	overflow: hidden;
	margin-top: 12px;
}
.pght-progress-fill { display: block; height: 100%; width: 0; background: var(--red, #c0392b); }

.pght-steplist {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
}
.pght-step {
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 20px;
	background: var(--surface2, #f9fafb);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	color: var(--muted, #6b7280);
}
.pght-step.is-done { background: rgba(22,163,74,0.12); border-color: #16a34a; color: var(--text, #111); }
.pght-step.is-current {
	background: var(--red, #c0392b);
	border-color: var(--red, #c0392b);
	color: #fff;
	font-weight: 700;
}

/* ── drift scopes ────────────────────────────────────────────────── */

.pght-drift-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}
.pght-drift-cell { text-align: center; }
.pght-scope {
	position: relative;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1 / 1;
	margin: 8px auto;
	border-radius: 50%;
	background: var(--surface2, #f9fafb);
	border: 1px solid var(--border2, rgba(0,0,0,0.14));
	overflow: hidden;
}
.pght-scope-ring {
	position: absolute; inset: 24%;
	border: 1px dashed var(--border2, rgba(0,0,0,0.2));
	border-radius: 50%;
}
.pght-scope-cross {
	position: absolute; inset: 0;
	background:
		linear-gradient(to right, transparent calc(50% - 0.5px), var(--border2, rgba(0,0,0,0.2)) calc(50% - 0.5px), var(--border2, rgba(0,0,0,0.2)) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
		linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--border2, rgba(0,0,0,0.2)) calc(50% - 0.5px), var(--border2, rgba(0,0,0,0.2)) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.pght-scope-trail {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 0; height: 0;
	border-radius: 50%;
	border: 1px solid var(--red, #c0392b);
	background: rgba(192,57,43,0.08);
}
.pght-scope-dot {
	position: absolute;
	left: 50%; top: 50%;
	width: 12px; height: 12px;
	margin: 0;
	border-radius: 50%;
	background: var(--red, #c0392b);
	transform: translate(-50%, -50%);
}
.pght-drift-live {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 15px;
	margin: 0;
}

/* ── results ─────────────────────────────────────────────────────── */

.pght-results {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 2px solid var(--border2, rgba(0,0,0,0.14));
}
.pght-results-h {
	font-family: var(--hf, sans-serif);
	font-size: 20px;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.pght-result-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}
.pght-result-card {
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	border-top: 4px solid var(--muted, #9ca3af);
	border-radius: 10px;
	padding: 14px;
	background: var(--surface2, #f9fafb);
}
.pght-result-card.is-good { border-top-color: #16a34a; }
.pght-result-card.is-warn { border-top-color: #d97706; }
.pght-result-card.is-bad  { border-top-color: var(--red, #c0392b); }
.pght-result-card h4 {
	margin: 0 0 6px;
	font-family: var(--hf, sans-serif);
	font-size: 16px;
	text-transform: uppercase;
}
.pght-result-big {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pght-result-band { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pght-result-detail { margin: 0; font-size: 12.5px; }
.pght-result-detail dt { color: var(--muted, #6b7280); margin-top: 6px; }
.pght-result-detail dd { margin: 0; font-variant-numeric: tabular-nums; }

.pght-deadzone {
	background: var(--bg2, #eef0f3);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 16px;
	font-size: 15px;
}
.pght-deadzone [data-pght-deadzone] {
	font-weight: 800;
	font-size: 20px;
	color: var(--red, #c0392b);
	margin: 0 6px;
}
.pght-deadzone-note { display: block; font-size: 12.5px; color: var(--muted, #6b7280); margin-top: 4px; }

/* ── score ───────────────────────────────────────────────────────── */

.pght-score { text-align: center; margin-bottom: 18px; }
.pght-score-num {
	font-family: var(--hf, sans-serif);
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pght-score-num small { font-size: 22px; color: var(--muted, #6b7280); }
.pght-score-label { font-size: 17px; font-weight: 700; margin-top: 4px; }
.pght-score-label[data-tone="good"] { color: #16a34a; }
.pght-score-label[data-tone="warn"] { color: #d97706; }
.pght-score-label[data-tone="bad"]  { color: var(--red, #c0392b); }

/* ── tables ──────────────────────────────────────────────────────── */

.pght-breakdown, .pght-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	margin-bottom: 16px;
	display: block;
	overflow-x: auto;
}
.pght-breakdown caption, .pght-table caption {
	text-align: left;
	font-weight: 700;
	padding-bottom: 8px;
	color: var(--muted2, #374151);
}
.pght-breakdown th, .pght-breakdown td,
.pght-table th, .pght-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
	vertical-align: top;
}
.pght-breakdown thead th, .pght-table thead th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted, #6b7280);
}
.pght-table tr.is-current { background: rgba(192,57,43,0.09); font-weight: 700; }

/* ── share + alert ───────────────────────────────────────────────── */

.pght-share { margin-bottom: 16px; }
.pght-share-text {
	background: var(--bg2, #eef0f3);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	border-radius: 8px;
	padding: 12px;
	font-size: 13px;
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0 0 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pght-alert {
	border: 1px solid var(--red, #c0392b);
	border-left-width: 4px;
	border-radius: 10px;
	padding: 14px;
	background: rgba(192,57,43,0.06);
}
.pght-alert p { margin: 0 0 10px; font-size: 14.5px; }

/* ── buttons ─────────────────────────────────────────────────────── */

.pght-btn {
	display: inline-block;
	font-family: var(--hf, sans-serif);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid var(--border2, rgba(0,0,0,0.18));
	background: var(--surface, #fff);
	color: var(--text, #111);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pght-btn:hover { border-color: var(--red, #c0392b); color: var(--red, #c0392b); }
.pght-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pght-btn:disabled:hover { border-color: var(--border2, rgba(0,0,0,0.18)); color: var(--text, #111); }
.pght-btn-primary {
	background: var(--red, #c0392b);
	border-color: var(--red, #c0392b);
	color: #fff;
}
.pght-btn-primary:hover { background: #a93226; border-color: #a93226; color: #fff; }
.pght-btn-small { padding: 6px 12px; font-size: 12px; }
.pght-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── calculators ─────────────────────────────────────────────────── */

.pght-calc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
	align-items: start;
	margin-bottom: 20px;
}
.pght-field-wide { grid-column: 1 / -1; }
.pght-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--muted2, #374151);
}
.pght-field input[type="number"],
.pght-field input[type="text"],
.pght-field select {
	width: 100%;
	padding: 11px 12px;
	font-size: 16px;   /* 16px stops iOS zooming the page on focus */
	border-radius: 8px;
	border: 1px solid var(--border2, rgba(0,0,0,0.18));
	background: var(--surface, #fff);
	color: var(--text, #111);
}
.pght-field input[type="range"] { width: 100%; accent-color: var(--red, #c0392b); }
.pght-field-note { font-size: 12.5px; color: var(--muted, #6b7280); margin: 6px 0 0; }
.pght-field-custom { margin-top: 10px; }
.pght-inputrow { display: flex; gap: 8px; }
.pght-inputrow input { flex: 1; min-width: 0; }
.pght-inputrow select { width: auto; flex: 0 0 auto; }
.pght-swap {
	align-self: center;
	text-align: center;
	font-size: 24px;
	color: var(--muted, #6b7280);
}

.pght-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pght-presets-wide { margin: 0 0 20px; }
.pght-presets button {
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 12px;
	border-radius: 20px;
	border: 1px solid var(--border2, rgba(0,0,0,0.18));
	background: var(--surface, #fff);
	color: var(--text, #111);
	cursor: pointer;
}
.pght-presets button:hover { border-color: var(--red, #c0392b); color: var(--red, #c0392b); }
.pght-presets button.is-active {
	background: var(--red, #c0392b);
	border-color: var(--red, #c0392b);
	color: #fff;
}

.pght-bigresult {
	background: var(--bg2, #eef0f3);
	border-radius: 12px;
	padding: 22px 18px;
	text-align: center;
	margin-bottom: 20px;
}
.pght-bigresult-two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
}
.pght-bigresult-lab {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted, #6b7280);
	margin-bottom: 6px;
}
.pght-bigresult-val {
	display: block;
	font-family: var(--hf, sans-serif);
	font-size: clamp(30px, 6vw, 46px);
	font-weight: 800;
	line-height: 1.05;
	color: var(--red, #c0392b);
	font-variant-numeric: tabular-nums;
}
.pght-bigresult-sub { display: block; font-size: 13px; color: var(--muted, #6b7280); margin-top: 6px; }

.pght-scale { margin-top: 6px; }
.pght-scale-bar {
	position: relative;
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(to right, #dc2626, #d97706 33%, #16a34a 66%, #0ea5e9);
}
.pght-scale-marker {
	position: absolute;
	top: 50%;
	width: 4px; height: 22px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--text, #111);
	transform: translateY(-50%);
	box-shadow: 0 0 0 2px var(--surface, #fff);
}
.pght-scale-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted, #6b7280);
	text-align: center;
}

/* ── keyboard ────────────────────────────────────────────────────── */

.pght-kb-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}
.pght-stat {
	background: var(--surface2, #f9fafb);
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	border-radius: 10px;
	padding: 12px;
	text-align: center;
}
.pght-stat-num {
	display: block;
	font-family: var(--hf, sans-serif);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pght-stat-lab { display: block; font-size: 12px; color: var(--muted, #6b7280); margin-top: 4px; }

.pght-kbd {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 16px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.pght-kbrow { display: flex; gap: 5px; min-width: 620px; }
.pght-kbgap { flex: 0 0 auto; }
.pght-key {
	flex: 1 1 0;
	min-width: 0;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	border-radius: 5px;
	border: 1px solid var(--border2, rgba(0,0,0,0.18));
	background: var(--surface, #fff);
	color: var(--text, #111);
	overflow: hidden;
	white-space: nowrap;
	user-select: none;
}
.pght-key.is-tested { background: rgba(22,163,74,0.18); border-color: #16a34a; }
.pght-key.is-down {
	background: var(--red, #c0392b);
	border-color: var(--red, #c0392b);
	color: #fff;
	transform: translateY(1px);
}

/* ── mouse ───────────────────────────────────────────────────────── */

.pght-mousepad {
	border: 2px dashed var(--border2, rgba(0,0,0,0.2));
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 24px;
	touch-action: none;
	cursor: crosshair;
	background: var(--surface2, #f9fafb);
}
.pght-mouse { width: 120px; height: auto; }
.pght-mouse-body {
	fill: var(--bg2, #e6e9ee);
	stroke: var(--border2, rgba(0,0,0,0.2));
	stroke-width: 2;
}
.pght-mousepad-hint { max-width: 30ch; font-size: 13.5px; color: var(--muted, #6b7280); }
.pght-mousepad-hint strong { display: block; font-size: 15px; color: var(--text, #111); margin-bottom: 4px; }
.pght-mousepad-hint.is-active strong { color: var(--red, #c0392b); }

/* ── page body sections ──────────────────────────────────────────── */

.pght-body { max-width: 72ch; }
.pght-section { margin-bottom: 30px; }
.pght-section h2 {
	font-family: var(--hf, sans-serif);
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 12px;
	color: var(--text, #111);
}
.pght-section p { font-size: 16px; line-height: 1.65; color: var(--muted2, #374151); margin: 0 0 12px; }
.pght-intro p { font-size: 17px; }
.pght-steps { padding-left: 20px; }
.pght-steps li { font-size: 15.5px; line-height: 1.6; margin-bottom: 8px; color: var(--muted2, #374151); }
.pght-method {
	background: var(--surface2, #f9fafb);
	border-left: 3px solid var(--red, #c0392b);
	border-radius: 0 10px 10px 0;
	padding: 16px 18px;
}
.pght-method h2 { font-size: 19px; }
.pght-method p { margin: 0; font-size: 14.5px; }
.pght-hint { font-size: 13px; color: var(--muted, #6b7280); margin: 12px 0 0; }

.pght-faq-item {
	border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
	padding: 4px 0;
}
.pght-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 15.5px;
	padding: 12px 0;
	list-style: none;
	position: relative;
	padding-right: 28px;
}
.pght-faq-item summary::-webkit-details-marker { display: none; }
.pght-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 6px;
	top: 10px;
	font-size: 20px;
	color: var(--red, #c0392b);
	line-height: 1;
}
.pght-faq-item[open] summary::after { content: '–'; }
.pght-faq-item p { margin: 0 0 14px; font-size: 15px; }

.pght-cta {
	background: var(--bg2, #eef0f3);
	border-radius: 12px;
	padding: 20px;
}
.pght-cta h2 { font-size: 20px; }

/* ── hub grid ────────────────────────────────────────────────────── */

.pght-head-hub .pght-tagline { font-size: 17px; }
.pght-group-h {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--hf, sans-serif);
	font-size: 24px;
	text-transform: uppercase;
	margin: 0 0 6px;
}
.pght-group-blurb { font-size: 15px; color: var(--muted, #6b7280); margin: 0 0 14px; }
.pght-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.pght-card {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid var(--border, rgba(0,0,0,0.08));
	background: var(--surface, #fff);
	box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,0.07));
	text-decoration: none;
	color: var(--text, #111);
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.pght-card:hover {
	transform: translateY(-2px);
	border-color: var(--red, #c0392b);
	box-shadow: var(--card-hover-shadow, 0 8px 28px rgba(0,0,0,0.12));
}
.pght-card-icon { font-size: 24px; line-height: 1; }
.pght-card-name { font-family: var(--hf, sans-serif); font-size: 18px; font-weight: 700; }
.pght-card-tag { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.45; }

/* hub is wider than the prose column */
.pght-hub .pght-body { max-width: none; }

/* ── narrow screens ──────────────────────────────────────────────── */

@media (max-width: 640px) {
	.pght-wrap { padding: 20px 16px 44px; }   /* theme uses 20px 16px here */
	.pght-tool { padding: 14px; border-radius: 12px; }
	.pght-meter { grid-template-columns: 78px 1fr 42px; gap: 8px; }
	.pght-kb-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
	.pght-stat-num { font-size: 22px; }
	.pght-score-num { font-size: 52px; }
	.pght-mousepad { padding: 14px; gap: 14px; }
	.pght-cta-row .pght-btn { flex: 1 1 auto; text-align: center; }
}
