/* Vome — recovery & protection guides (/guides).
 *
 * Theming variables (--bg-primary, --primary, etc.) come from
 * vomehome.css.  Layout follows the business-plan documents but adds
 * the interactive assistant panel.
 */

body { padding-top: 0; }

/* ── Top bar (matches .bp-top) ─────────────────────────────────── */
.gd-top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(18, 18, 18, 0.85);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--border);
	padding: 0.85rem 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.92rem;
}
.gd-top .brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-primary);
	font-weight: 700;
	text-decoration: none;
}
.gd-top .brand .gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.gd-top .top-actions { display: flex; gap: 0.6rem; align-items: center; }
.gd-top a.top-link, .gd-top button.top-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	padding: 0.3rem 0.6rem;
	border-radius: var(--radius-sm);
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
}
.gd-top a.top-link:hover, .gd-top button.top-link:hover {
	color: var(--primary);
	background: rgba(255, 152, 0, 0.08);
}

/* ── Page shell ────────────────────────────────────────────────── */
.gd-page {
	max-width: 880px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
}
.gd-hero h1 {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 0.75rem;
}
.gd-hero .lead {
	color: var(--text-secondary);
	font-size: 1.08rem;
	max-width: 64ch;
}
.gd-note {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-left: 3px solid var(--primary);
	border-radius: var(--radius);
	padding: 0.7rem 1rem;
	color: var(--text-secondary);
	font-size: 0.93rem;
}
.gd-note .bi { color: var(--primary); margin-right: 0.35rem; }

/* ── Assistant panel ───────────────────────────────────────────── */
.gd-assistant {
	margin: 2rem 0;
	background: var(--bg-secondary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 1.4rem 1.5rem 1.6rem;
	box-shadow: var(--shadow-lg);
}
.gd-assistant-head {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}
.gd-assistant-head .bi {
	font-size: 1.6rem;
	color: var(--primary);
	line-height: 1;
	margin-top: 0.15rem;
}
.gd-assistant-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.gd-assistant-head p { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.92rem; }

.ast-trail {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.9rem;
}
.ast-trail button {
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	font-size: 0.82rem;
	cursor: pointer;
}
.ast-trail button:hover { border-color: var(--primary); color: var(--text-primary); }
.ast-trail button .bi { font-size: 0.75rem; margin-left: 0.3rem; opacity: 0.7; }

.ast-question h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.4rem;
}
.ast-help { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.ast-options { display: grid; gap: 0.55rem; }
.ast-options button {
	text-align: left;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	color: var(--text-primary);
	border-radius: var(--radius);
	padding: 0.65rem 0.9rem;
	font-size: 0.96rem;
	cursor: pointer;
	transition: var(--transition);
}
.ast-options button:hover {
	border-color: var(--primary);
	background: rgba(255, 152, 0, 0.07);
	transform: translateX(2px);
}

.ast-outcome {
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	background: rgba(16, 185, 129, 0.06);
}
.ast-outcome h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--accent-bright);
}
.ast-outcome p { color: var(--text-secondary); margin-bottom: 0.85rem; }
.ast-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ast-actions a, .ast-actions button {
	border-radius: var(--radius-sm);
	padding: 0.45rem 0.85rem;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: none;
}
.ast-actions .ast-go {
	background: var(--primary);
	border: 1px solid var(--primary);
	color: #1a1a1a;
	font-weight: 600;
}
.ast-actions .ast-go:hover { background: var(--primary-dark); }
.ast-actions .ast-secondary {
	background: transparent;
	border: 1px solid var(--border-light);
	color: var(--text-secondary);
}
.ast-actions .ast-secondary:hover { border-color: var(--primary); color: var(--text-primary); }
.ast-error { color: var(--danger); font-size: 0.92rem; }

/* ── Contents ──────────────────────────────────────────────────── */
.gd-toc {
	margin: 2.5rem 0 1rem;
	padding: 1rem 1.25rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.gd-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.gd-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.gd-toc li { margin-bottom: 0.3rem; font-size: 0.95rem; }
.gd-toc a { color: var(--text-secondary); text-decoration: none; }
.gd-toc a:hover { color: var(--primary); }

/* ── Procedures ────────────────────────────────────────────────── */
.gd-proc {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	scroll-margin-top: 5rem;
}
.gd-proc h2 {
	font-size: 1.45rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.9rem;
}
.gd-proc h2 .pnum {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #14161c;
	font-size: 1rem;
	font-weight: 800;
}
.gd-proc h3 { font-size: 1.05rem; font-weight: 650; margin: 1.3rem 0 0.5rem; color: var(--secondary); }
.gd-proc > p { color: var(--text-secondary); max-width: 70ch; }

.gd-steps { counter-reset: step; list-style: none; padding-left: 0; margin: 1rem 0; }
.gd-steps > li {
	counter-increment: step;
	position: relative;
	padding: 0 0 1rem 2.6rem;
	color: var(--text-secondary);
	max-width: 70ch;
}
.gd-steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -0.1rem;
	width: 1.7rem;
	height: 1.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	color: var(--primary);
	font-size: 0.85rem;
	font-weight: 700;
}
.gd-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 0.82rem;
	top: 1.75rem;
	bottom: 0.15rem;
	width: 1px;
	background: var(--border);
}
.gd-steps strong { color: var(--text-primary); }

.gd-aside {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	font-size: 0.92rem;
	color: var(--text-secondary);
	max-width: 70ch;
}
.gd-aside .bi { color: var(--accent); margin-right: 0.4rem; }

.gd-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0.5rem; font-size: 0.93rem; }
.gd-table th, .gd-table td {
	border: 1px solid var(--border);
	padding: 0.55rem 0.7rem;
	text-align: left;
	vertical-align: top;
	color: var(--text-secondary);
}
.gd-table th { background: var(--bg-tertiary); color: var(--text-primary); font-weight: 600; }
.gd-table td:first-child { white-space: nowrap; }

.gd-footer {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 0.95rem;
}
.gd-footer .muted { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* ── Services price cards (services.html) ──────────────────────── */
.sv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 1rem;
	margin: 1.25rem 0 0.75rem;
}
.sv-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
}
.sv-card h3 {
	font-size: 1.02rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.sv-card h3 .bi { color: var(--primary); }
.sv-card p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }
.sv-card .sv-price {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--accent);
	margin: 0 0 0.55rem;
}
.sv-card .sv-price span {
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--text-muted);
}

/* ── Recommended kit box (guides.html) ─────────────────────────── */
.gd-kit {
	background: var(--bg-secondary);
	border: 1px dashed var(--border-light);
	border-radius: var(--radius);
	padding: 0.85rem 1.1rem;
	margin: 1rem 0;
	max-width: 70ch;
	font-size: 0.92rem;
}
.gd-kit h4 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--text-muted);
	margin: 0 0 0.5rem;
}
.gd-kit h4 .bi { color: var(--accent); margin-right: 0.35rem; }
.gd-kit ul { margin: 0; padding-left: 1.2rem; }
.gd-kit li { color: var(--text-secondary); margin-bottom: 0.3rem; }
.gd-kit li:last-child { margin-bottom: 0; }

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
	body { background: #fff !important; color: #111 !important; }
	.gd-top, .gd-assistant, .gd-note, .top-actions { display: none !important; }
	.gd-page { max-width: none; padding: 0; }
	.gd-proc { break-inside: avoid-page; border-top-color: #ccc; }
	.gd-proc > p, .gd-steps > li, .gd-aside, .gd-table th, .gd-table td,
	.gd-hero .lead, .gd-footer { color: #222 !important; }
	.gd-proc h2 .pnum { background: #444; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.gd-aside, .gd-toc, .sv-card, .gd-kit { background: #f5f5f5; border-color: #ddd; }
	.sv-card h3, .sv-card p, .gd-kit li { color: #222 !important; }
	.sv-card .sv-price { color: #111 !important; }
	a { color: #111 !important; text-decoration: none; }
}

@media (max-width: 640px) {
	.gd-toc ol { columns: 1; }
	.gd-hero h1 { font-size: 1.6rem; }
}
