/*
 * GrandScreen Tools
 *
 * Self-contained: the theme's Tailwind build is purged against existing
 * templates, so tool pages cannot rely on utility classes that were never
 * compiled. Everything here is plain CSS on top of the theme's --gs-* tokens,
 * which means it follows light/dark automatically.
 */

.gs-tools-main {
	--gs-tool-gap: 1.25rem;
}

/* ---------- breadcrumbs ---------- */

.gs-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	font-size: 0.8125rem;
	color: var(--gs-text-muted);
	margin-bottom: 1.5rem;
}
.gs-crumbs a {
	color: var(--gs-text-secondary);
	text-decoration: none;
}
.gs-crumbs a:hover { color: var(--gs-primary); text-decoration: underline; }
.gs-crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- layout ---------- */

.gs-tool-layout { display: block; }

@media (min-width: 1024px) {
	.gs-tool-layout.has-side {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 2.5rem;
		align-items: start;
	}
}

.gs-tool-body { min-width: 0; }

.gs-tool-side {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 2.5rem;
}
@media (min-width: 1024px) {
	.gs-tool-side { margin-top: 0; position: sticky; top: 5rem; }
}

/* ---------- header ---------- */

.gs-tool-head { margin-bottom: 1.75rem; }

.gs-tool-kicker {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gs-primary);
	margin: 0 0 0.5rem;
}

.gs-tool-head h1,
.gs-hub-head h1 {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 800;
	font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--gs-text);
	margin: 0 0 0.75rem;
}

.gs-tool-lede {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--gs-text-secondary);
	max-width: 62ch;
	margin: 0;
}

/* ---------- widget shell ---------- */

.gs-widget {
	background: var(--gs-card);
	border: 1px solid var(--gs-border);
	border-radius: var(--radius-lg, 16px);
	box-shadow: 0 1px 2px rgba(var(--gs-shadow-color), 0.05);
	padding: 1.25rem;
	margin-bottom: 2rem;
}
@media (min-width: 640px) {
	.gs-widget { padding: 1.75rem; }
}

.gs-widget-grid {
	display: grid;
	gap: 1rem 1.25rem;
	grid-template-columns: 1fr;
	align-items: start;
}

/*
 * Fields in a row must line their inputs up even when one label wraps to two
 * lines and its neighbours do not. Subgrid puts every label on one shared row,
 * every input on the next and every hint on the third, so a long label pushes
 * nothing out of alignment.
 */
@supports (grid-template-rows: subgrid) and (container-type: inline-size) {
	@container (min-width: 480px) {
		.gs-widget-grid {
			grid-template-rows: auto auto auto;
		}
		.gs-widget-grid > .gs-field {
			display: grid;
			grid-template-rows: subgrid;
			grid-row: span 3;
			gap: 0.375rem;
		}
	}
}
@supports (grid-template-rows: subgrid) and (not (container-type: inline-size)) {
	@media (min-width: 560px) {
		.gs-widget-grid {
			grid-template-rows: auto auto auto;
		}
		.gs-widget-grid > .gs-field {
			display: grid;
			grid-template-rows: subgrid;
			grid-row: span 3;
			gap: 0.375rem;
		}
	}
}

/* Older engines get a two-line label reservation, which achieves the same
   alignment with a little more whitespace under short labels. */
@supports not (grid-template-rows: subgrid) {
	@media (min-width: 560px) {
		.gs-widget-grid > .gs-field > label {
			min-height: 2.45em;
			display: flex;
			align-items: flex-end;
		}
	}
}
/*
 * Column counts follow the width of the widget, not the width of the window.
 * A viewport media query cannot know that from 1024px the page also carries a
 * 300px sidebar, which leaves a "three column" row with ~190px cells — that is
 * how a select ends up clipped on a laptop but not on a phone. Container
 * queries measure the box the fields actually live in, so the same rule holds
 * with the sidebar, without it, and inside the in-article block.
 */
@supports (container-type: inline-size) {
	.gs-widget { container-type: inline-size; }

	@container (min-width: 480px) {
		.gs-widget-grid.cols-2,
		.gs-widget-grid.cols-3,
		.gs-widget-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	@container (min-width: 720px) {
		.gs-widget-grid.cols-3,
		.gs-widget-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
	@container (min-width: 900px) {
		.gs-widget-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	}
}

/* Viewport fallback for engines without container queries. Deliberately
   conservative: two columns until the window is wide enough that even a
   sidebar leaves room for three. */
@supports not (container-type: inline-size) {
	@media (min-width: 560px) {
		.gs-widget-grid.cols-2,
		.gs-widget-grid.cols-3,
		.gs-widget-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	@media (min-width: 1280px) {
		.gs-widget-grid.cols-3,
		.gs-widget-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
	@media (min-width: 1440px) {
		.gs-widget-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	}
}
}

.gs-widget-section + .gs-widget-section { margin-top: 1.5rem; }

.gs-widget-legend {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gs-text-muted);
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--gs-border);
}

/* ---------- fields ---------- */

.gs-field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }

.gs-field > label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gs-text);
	line-height: 1.35;
	overflow-wrap: break-word;
	hyphens: auto;
}

.gs-input-wrap { position: relative; display: flex; align-items: center; }

.gs-field input,
.gs-field select,
.gs-tools-main input[type="text"].gs-input,
.gs-tools-main input[type="search"].gs-input {
	width: 100%;
	min-width: 0;
	font: inherit;
	font-size: 1rem;
	color: var(--gs-text);
	background: var(--gs-surface);
	border: 1px solid var(--gs-border-strong);
	border-radius: var(--radius-sm, 6px);
	padding: 0.625rem 0.75rem;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 150ms, box-shadow 150ms;
}
.gs-field select {
	text-overflow: ellipsis;
	background-image: linear-gradient(45deg, transparent 50%, var(--gs-text-muted) 50%),
		linear-gradient(135deg, var(--gs-text-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 2rem;
}
.gs-field input:focus,
.gs-field select:focus {
	outline: none;
	border-color: var(--gs-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gs-primary) 22%, transparent);
}
.gs-field input[type="range"] {
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: var(--gs-primary);
}

.gs-input-wrap.has-prefix input { padding-left: 1.85rem; }
.gs-input-wrap.has-suffix input { padding-right: 3.25rem; }

.gs-affix {
	position: absolute;
	font-size: 0.875rem;
	color: var(--gs-text-muted);
	pointer-events: none;
}
.gs-prefix { left: 0.7rem; }
.gs-suffix { right: 0.75rem; }

.gs-hint { font-size: 0.75rem; color: var(--gs-text-muted); margin: 0; line-height: 1.45; }

/*
 * A select whose longest option cannot fit a narrow column spans two instead.
 * Applied automatically by gs_tool_select() rather than per call site, so it
 * holds for every tool and for anything added later.
 */
@supports (container-type: inline-size) {
	@container (min-width: 720px) {
		.gs-widget-grid.cols-4 > .gs-field--wide-4,
		.gs-widget-grid.cols-4 > .gs-field--wide-3,
		.gs-widget-grid.cols-3 > .gs-field--wide-3 {
			grid-column: span 2;
		}
	}
	@supports (grid-template-rows: subgrid) {
		@container (min-width: 720px) {
			.gs-widget-grid.cols-4 > .gs-field--wide-4,
			.gs-widget-grid.cols-4 > .gs-field--wide-3,
			.gs-widget-grid.cols-3 > .gs-field--wide-3 {
				grid-row: span 3;
			}
		}
	}
}

/* The arrow needs less room than the default padding reserved for it. */
.gs-field select {
	padding-right: 1.75rem;
}

/* segmented control */

.gs-seg { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.gs-seg button {
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gs-text-secondary);
	background: var(--gs-surface);
	border: 1px solid var(--gs-border-strong);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	cursor: pointer;
	transition: all 150ms;
}
.gs-seg button:hover { border-color: var(--gs-primary); color: var(--gs-text); }
.gs-seg button[aria-pressed="true"] {
	background: var(--gs-primary);
	border-color: var(--gs-primary);
	color: #fff;
}

/* buttons */

.gs-btn {
	font: inherit;
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.55rem 1rem;
	border-radius: var(--radius-sm, 6px);
	border: 1px solid var(--gs-border-strong);
	background: var(--gs-surface);
	color: var(--gs-text);
	cursor: pointer;
	transition: all 150ms;
}
.gs-btn:hover { border-color: var(--gs-primary); color: var(--gs-primary); }
.gs-btn-primary {
	background: var(--gs-primary);
	border-color: var(--gs-primary);
	color: #fff;
}
.gs-btn-primary:hover { background: var(--gs-primary-hover); border-color: var(--gs-primary-hover); color: #fff; }
.gs-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ---------- results ---------- */

.gs-result {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gs-border);
}

.gs-headline-figure {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 0.85rem;
	margin-bottom: 0.35rem;
}
.gs-headline-figure .gs-big {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 800;
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem);
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--gs-text);
	font-variant-numeric: tabular-nums;
}
.gs-headline-figure .gs-big.is-good { color: var(--gs-success); }
.gs-headline-figure .gs-big.is-bad { color: var(--gs-error); }
.gs-headline-figure .gs-unit { font-size: 0.9375rem; color: var(--gs-text-secondary); font-weight: 600; }
.gs-headline-note { font-size: 0.9375rem; color: var(--gs-text-secondary); margin: 0 0 1.25rem; line-height: 1.55; max-width: 62ch; }

.gs-stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.gs-stat {
	background: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-radius: var(--radius-md, 10px);
	padding: 0.75rem 0.85rem;
}
.gs-stat dt { font-size: 0.75rem; color: var(--gs-text-muted); margin: 0 0 0.25rem; line-height: 1.3; }
.gs-stat dd {
	margin: 0;
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--gs-text);
	font-variant-numeric: tabular-nums;
}
.gs-stat dd small { font-weight: 600; font-size: 0.75rem; color: var(--gs-text-muted); display: block; margin-top: 0.15rem; }

/* verdict banner */

.gs-verdict {
	border-radius: var(--radius-md, 10px);
	padding: 0.85rem 1rem;
	margin-bottom: 1.25rem;
	border: 1px solid var(--gs-border);
	background: var(--gs-surface);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--gs-text);
}
.gs-verdict strong { font-weight: 700; }
.gs-verdict.is-good { border-color: color-mix(in srgb, var(--gs-success) 45%, var(--gs-border)); background: color-mix(in srgb, var(--gs-success) 10%, var(--gs-card)); }
.gs-verdict.is-bad { border-color: color-mix(in srgb, var(--gs-error) 45%, var(--gs-border)); background: color-mix(in srgb, var(--gs-error) 10%, var(--gs-card)); }
.gs-verdict.is-warn { border-color: color-mix(in srgb, var(--gs-warning) 50%, var(--gs-border)); background: color-mix(in srgb, var(--gs-warning) 12%, var(--gs-card)); }

/* ---------- tables ---------- */

.gs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }

.gs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	min-width: 480px;
}
.gs-table caption {
	text-align: left;
	font-size: 0.8125rem;
	color: var(--gs-text-muted);
	padding-bottom: 0.5rem;
}
.gs-table th,
.gs-table td {
	text-align: left;
	padding: 0.55rem 0.7rem;
	border-bottom: 1px solid var(--gs-border);
	vertical-align: top;
}
.gs-table thead th {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gs-text-muted);
	border-bottom: 1px solid var(--gs-border-strong);
	white-space: nowrap;
}
.gs-table td.num,
.gs-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-table tbody tr:hover { background: var(--gs-surface); }
.gs-table tr.is-best td { background: color-mix(in srgb, var(--gs-success) 11%, var(--gs-card)); }
.gs-table tr.is-out td { opacity: 0.55; }
.gs-table .gs-pill {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	margin-left: 0.35rem;
	vertical-align: middle;
}
.gs-pill.ok { background: color-mix(in srgb, var(--gs-success) 20%, transparent); color: var(--gs-success); }
.gs-pill.no { background: color-mix(in srgb, var(--gs-error) 20%, transparent); color: var(--gs-error); }
.gs-pill.warn { background: color-mix(in srgb, var(--gs-warning) 25%, transparent); color: var(--gs-accent-hover); }

/* bar visual inside a table cell */
.gs-bar {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: var(--gs-primary);
	min-width: 2px;
}
.gs-bar-track { background: var(--gs-border); border-radius: 999px; overflow: hidden; min-width: 80px; }

/* ---------- prose ---------- */

.gs-tool-prose {
	max-width: 68ch;
	color: var(--gs-text);
	font-size: 1rem;
	line-height: 1.7;
}
.gs-tool-prose h2,
.gs-tool-faq h2,
.gs-tool-sources h2,
.gs-hub-section h2,
.gs-hub-note h2 {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.01em;
	color: var(--gs-text);
	margin: 2.25rem 0 0.75rem;
	line-height: 1.3;
}
.gs-tool-prose h3 {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--gs-text);
	margin: 1.75rem 0 0.5rem;
}
.gs-tool-prose p { margin: 0 0 1rem; }
.gs-tool-prose ul,
.gs-tool-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.gs-tool-prose li { margin-bottom: 0.4rem; }
.gs-tool-prose li::marker { color: var(--gs-primary); }
.gs-tool-prose a { color: var(--gs-primary); text-decoration: none; }
.gs-tool-prose a:hover { text-decoration: underline; }
.gs-tool-prose strong { font-weight: 700; }
.gs-tool-prose code {
	background: var(--gs-code-bg);
	padding: 0.1rem 0.35rem;
	border-radius: var(--radius-sm, 6px);
	font-size: 0.875em;
}
.gs-tool-prose .gs-table-wrap,
.gs-tool-prose .gs-formula { max-width: none; }
.gs-tool-prose .gs-table { min-width: 420px; }

.gs-formula {
	background: var(--gs-surface);
	border-left: 3px solid var(--gs-primary);
	border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
	padding: 0.85rem 1rem;
	margin: 0 0 1.25rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem;
	line-height: 1.7;
	color: var(--gs-text-secondary);
	overflow-x: auto;
}

.gs-callout {
	background: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-radius: var(--radius-md, 10px);
	padding: 0.9rem 1.1rem;
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}
.gs-callout strong { color: var(--gs-text); }

.gs-noscript {
	background: color-mix(in srgb, var(--gs-warning) 12%, var(--gs-card));
	border: 1px solid color-mix(in srgb, var(--gs-warning) 45%, var(--gs-border));
	border-radius: var(--radius-md, 10px);
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	margin-bottom: 1.5rem;
}

/* ---------- FAQ ---------- */

.gs-tool-faq details {
	border-bottom: 1px solid var(--gs-border);
	padding: 0.25rem 0;
}
.gs-tool-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 0.85rem 2rem 0.85rem 0;
	position: relative;
	font-weight: 600;
	font-size: 0.9875rem;
	color: var(--gs-text);
	line-height: 1.45;
}
.gs-tool-faq summary::-webkit-details-marker { display: none; }
.gs-tool-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 0.75rem;
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--gs-text-muted);
	transition: transform 150ms;
}
.gs-tool-faq details[open] summary::after { content: "\2212"; }
.gs-tool-faq details > div {
	padding: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--gs-text-secondary);
	max-width: 66ch;
}
.gs-tool-faq details > div p { margin: 0 0 0.75rem; }
.gs-tool-faq details > div a { color: var(--gs-primary); }

/* ---------- sources ---------- */

.gs-tool-sources {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gs-border);
	font-size: 0.875rem;
	color: var(--gs-text-secondary);
}
.gs-tool-sources .gs-checked { max-width: 66ch; line-height: 1.6; margin: 0 0 0.85rem; }
.gs-tool-sources ul { margin: 0; padding-left: 1.1rem; }
.gs-tool-sources li { margin-bottom: 0.3rem; line-height: 1.5; }
.gs-tool-sources a { color: var(--gs-primary); text-decoration: none; }
.gs-tool-sources a:hover { text-decoration: underline; }

/* ---------- sidebar ---------- */

.gs-tool-promo {
	background: var(--gs-card);
	border: 1px solid var(--gs-border-strong);
	border-radius: var(--radius-lg, 16px);
	padding: 1.1rem 1.15rem;
}
.gs-promo-eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gs-primary);
	margin: 0 0 0.5rem;
}
.gs-promo-head {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--gs-text);
	margin: 0 0 0.5rem;
}
.gs-promo-text { font-size: 0.875rem; line-height: 1.55; color: var(--gs-text-secondary); margin: 0 0 0.9rem; }
.gs-promo-cta {
	display: inline-block;
	background: var(--gs-primary);
	color: #fff;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0.55rem 1.1rem;
	border-radius: var(--radius-sm, 6px);
	text-decoration: none;
}
.gs-promo-cta:hover { background: var(--gs-primary-hover); color: #fff; }

.gs-related h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gs-text-muted); margin: 0 0 0.75rem; font-family: var(--font-family-display, 'Sora', system-ui, sans-serif); }
.gs-related ul { list-style: none; margin: 0; padding: 0; }
.gs-related li + li { margin-top: 0.4rem; }
.gs-related a {
	display: block;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--gs-border);
	border-radius: var(--radius-md, 10px);
	background: var(--gs-card);
	text-decoration: none;
	transition: border-color 150ms, transform 150ms;
}
.gs-related a:hover { border-color: var(--gs-primary); transform: translateX(2px); }
.gs-rel-title { display: block; font-weight: 600; font-size: 0.875rem; color: var(--gs-text); line-height: 1.35; }
.gs-rel-blurb { display: block; font-size: 0.75rem; color: var(--gs-text-muted); margin-top: 0.2rem; line-height: 1.4; }
.gs-rel-all { margin: 0.75rem 0 0; font-size: 0.8125rem; }
.gs-rel-all a { color: var(--gs-primary); text-decoration: none; font-weight: 600; }

/* ---------- hub ---------- */

.gs-hub-head { margin-bottom: 1.75rem; max-width: 66ch; }

.gs-hub-search { margin-bottom: 2rem; max-width: 30rem; }
.gs-hub-search input {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	padding: 0.7rem 0.9rem;
	color: var(--gs-text);
	background: var(--gs-card);
	border: 1px solid var(--gs-border-strong);
	border-radius: var(--radius-md, 10px);
}
.gs-hub-search input:focus {
	outline: none;
	border-color: var(--gs-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gs-primary) 22%, transparent);
}
.gs-hub-count { font-size: 0.8125rem; color: var(--gs-text-muted); margin: 0.5rem 0 0; min-height: 1.2em; }

.gs-hub-section { margin-bottom: 2.5rem; }
.gs-hub-section h2 { margin-top: 0; }
.gs-hub-intro { font-size: 0.9375rem; color: var(--gs-text-secondary); max-width: 66ch; margin: 0 0 1.25rem; line-height: 1.6; }

.gs-hub-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gs-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gs-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gs-hub-card a {
	display: block;
	height: 100%;
	padding: 1rem 1.1rem;
	background: var(--gs-card);
	border: 1px solid var(--gs-border);
	border-radius: var(--radius-md, 10px);
	text-decoration: none;
	transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.gs-hub-card a:hover {
	border-color: var(--gs-primary);
	box-shadow: 0 4px 12px rgba(var(--gs-shadow-color), 0.08);
	transform: translateY(-1px);
}
.gs-hub-card h3 {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-weight: 700;
	font-size: 0.9875rem;
	color: var(--gs-text);
	margin: 0 0 0.35rem;
	line-height: 1.35;
}
.gs-hub-card p { font-size: 0.8125rem; color: var(--gs-text-secondary); margin: 0; line-height: 1.5; }

.gs-hub-note {
	margin-top: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gs-border);
	max-width: 68ch;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--gs-text-secondary);
}
.gs-hub-note h2 { margin-top: 0; }
.gs-hub-note p { margin: 0 0 1rem; }

/* ---------- misc ---------- */

.gs-empty { color: var(--gs-text-muted); font-size: 0.9375rem; font-style: italic; }

.gs-list-rows { list-style: none; margin: 0 0 1rem; padding: 0; }
.gs-list-rows li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--gs-border);
	font-size: 0.875rem;
}
.gs-list-rows .gs-row-del {
	background: none;
	border: 0;
	color: var(--gs-text-muted);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0.15rem 0.35rem;
	border-radius: var(--radius-sm, 6px);
}
.gs-list-rows .gs-row-del:hover { color: var(--gs-error); background: color-mix(in srgb, var(--gs-error) 12%, transparent); }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media print {
	.gs-tool-side, .gs-hub-search, .gs-crumbs { display: none; }
	.gs-widget { break-inside: avoid; }
}

/* ---------- in-article block on guides ---------- */

.gs-inline-tools {
	margin: 2.5rem 0 1rem;
	padding: 1.25rem 1.35rem;
	background: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-radius: var(--radius-lg, 16px);
}
.gs-inline-tools h2 {
	font-family: var(--font-family-display, 'Sora', system-ui, sans-serif);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--gs-text);
	margin: 0 0 0.85rem;
	text-transform: none;
	letter-spacing: -0.01em;
}
.gs-inline-tools ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 700px) {
	.gs-inline-tools ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gs-inline-tools a { background: var(--gs-card); height: 100%; }
