/* Car Caring theme — foundation styles */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Colour tokens (light) ---------- */
:root {
	--bg: #f7f6f2;
	--paper: #ffffff;
	--ink: #1d2422;
	--ink-2: #4b5552;
	--ink-3: #6f7976;
	--line: #e3e1d9;
	--teal: #0f6e56;
	--teal-2: #1d9e75;
	--teal-tint: #e1f5ee;
	--teal-ink: #085041;
	--amber: #b8650f;
	--amber-tint: #fbeedb;
	--amber-ink: #633806;
	--head: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 16px;
	--shadow-sm: 0 1px 2px rgba(16, 32, 28, .05), 0 4px 12px rgba(16, 32, 28, .05);
	--shadow-md: 0 2px 6px rgba(16, 32, 28, .07), 0 14px 32px rgba(16, 32, 28, .09);
	--shadow-hover: 0 4px 10px rgba(15, 110, 86, .10), 0 18px 40px rgba(15, 110, 86, .14);
	--wrap: 1120px;
	color-scheme: light dark;
}

/* ---------- Dark mode (follows the visitor's device setting) ---------- */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #151a19;
		--paper: #1c2221;
		--ink: #eef1ef;
		--ink-2: #b9c2bf;
		--ink-3: #909a97;
		--line: #2e3634;
		--teal: #5dcaa5;
		--teal-2: #5dcaa5;
		--teal-tint: #123a30;
		--teal-ink: #9fe1cb;
		--amber: #ef9f27;
		--amber-tint: #3a2a12;
		--amber-ink: #fac775;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
		--shadow-md: 0 14px 32px rgba(0, 0, 0, .45);
		--shadow-hover: 0 18px 40px rgba(0, 0, 0, .55);
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.7 var(--body);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 44px); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top, 0px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-row { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); min-height: 70px; }
.site-nav { margin-right: auto; }
.nav-toggle { margin-left: auto; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 44px; width: auto; }

.site-nav { min-width: 0; }
.site-nav .menu { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(0px, 0.4vw, 6px); margin: 0; padding: 0; }
.site-nav a { white-space: nowrap; }
.site-nav a {
	display: block; padding: 8px clamp(6px, 0.9vw, 12px); border-radius: 8px;
	font-size: clamp(13.5px, 1.15vw, 15px); color: var(--ink-2); text-decoration: none;
}
.site-nav a:hover { background: var(--teal-tint); color: var(--teal-ink); }
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a,
.site-nav .current-post-ancestor > a { color: var(--teal-ink); background: var(--teal-tint); }

.nav-toggle {
	display: none; align-items: center; gap: 6px;
	background: none; border: 1px solid var(--line); border-radius: 10px;
	padding: 8px 12px; color: var(--ink); font: 15px var(--body); cursor: pointer;
}

@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; padding: 8px 12px 16px; max-width: var(--wrap); margin: 0 auto; }
	.site-nav a { font-size: 17px; padding: 12px; }
}
@media (max-width: 1040px) { .brand img { height: 40px; } }
@media (max-width: 420px) { .brand img { height: 36px; } }

/* ---------- Page heads & lists (fallback template) ---------- */
.site-main { min-height: 50vh; }
.page-head { padding: 40px 0 24px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 720px; }
.lead p { margin: 0; }
.post-list { display: grid; gap: 10px; margin-bottom: 30px; }
.post-row {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
	padding: 14px 18px; text-decoration: none; color: var(--ink);
}
.post-row:hover { border-color: var(--teal-2); color: var(--ink); }
.post-row-title { font-weight: 600; }
.post-row-meta { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 600px) { .post-row-meta { display: none; } }
.topic-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 40px; }
.topic-list a {
	display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
	padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.topic-list a:hover { border-color: var(--teal-2); }
.navigation.pagination { margin: 10px 0 40px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links .page-numbers {
	padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--paper); text-decoration: none; color: var(--ink);
}
.nav-links .current { background: var(--teal); border-color: var(--teal); color: var(--paper); }

/* ---------- Single post / page ---------- */
.entry { max-width: 760px; margin: 0 auto; padding: 36px 0 50px; }
.entry-head { margin-bottom: 24px; }
.kicker {
	display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
	color: var(--teal); text-decoration: none; margin-bottom: 10px;
}
.byline { font-size: 15px; color: var(--ink-2); margin: 0; }
.byline strong { color: var(--ink); font-weight: 600; }
.entry-image { margin: 0 0 28px; }
.entry-image img { border-radius: var(--radius); display: block; }

.entry-content { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.entry-content blockquote {
	margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--teal-2); color: var(--ink-2);
}
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
@media (max-width: 760px) { .entry-content table { display: block; overflow-x: auto; } }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry-content th { background: var(--bg); color: var(--ink-2); font-size: 14px; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.entry-content pre { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; }
.entry-content .wp-block-button__link, .entry-content .button {
	background: var(--teal); color: var(--paper); border-radius: 10px; padding: 10px 18px; text-decoration: none; font-weight: 600;
}
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 40px; font-size: 15px; }
.footer-grid { padding-top: 34px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 32px; padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { color: var(--ink-2); margin: 12px 0 0; max-width: 340px; }
.footer-about img { height: 40px; width: auto; display: block; }
.footer-title { font-size: 16px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer li a, .all-pages a, .legal a { color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover, .all-pages a:hover, .legal a:hover { color: var(--teal); }

.all-pages {
	border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 16px;
	display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2);
}
.all-pages strong { color: var(--ink); }
.copyright {
	border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	font-size: 13px; color: var(--ink-3);
}
.legal { display: flex; gap: 16px; }

@media print {
	.site-header, .site-footer, .nav-toggle { display: none; }
	body { background: #fff; color: #000; }
}

/* ---------- Homepage: hero + symptom finder ---------- */
.hero {
	position: relative; padding: 70px 0 54px; text-align: center; overflow: hidden;
	background:
		radial-gradient(70% 130% at 50% -20%, var(--teal-tint) 0%, transparent 65%),
		linear-gradient(180deg, color-mix(in srgb, var(--teal-tint) 75%, transparent) 0%, transparent 85%);
	border-bottom: 1px solid var(--line);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
	background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--teal) 22%, transparent) 1px, transparent 0);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero::after {
	content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--teal-2), transparent); opacity: .35;
}
.eyebrow {
	display: inline-block; font-size: 13px; letter-spacing: .02em; color: var(--teal-ink);
	background: var(--paper); border: 1px solid color-mix(in srgb, var(--teal-2) 35%, var(--line));
	box-shadow: var(--shadow-sm);
	padding: 6px 15px; border-radius: 999px; margin: 0 0 18px;
}
.hero h1 { max-width: 820px; margin: 0 auto 12px; font-size: clamp(34px, 5.4vw, 58px); }
.hero .lead { margin: 0 auto 30px; font-size: 19px; }
.finder { max-width: 880px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
	padding: 11px 18px; color: var(--ink); font: 16px var(--body); cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: transform .15s, box-shadow .15s, border-color .15s, background .15s, color .15s;
}
.chip .icon { color: var(--teal); }
.chip:hover { border-color: var(--teal-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: var(--shadow-hover); }
@media (prefers-color-scheme: dark) { .chip[aria-selected="true"] { color: #08251e; } }
.chip[aria-selected="true"] .icon { color: inherit; }
.fix {
	text-align: left; background: var(--paper); border: 1px solid var(--line);
	border-radius: 20px; padding: 26px; margin-top: 24px;
	box-shadow: var(--shadow-md);
	animation: fix-in .18s ease-out;
}
@keyframes fix-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fix { animation: none; } .chip:hover, .topic-card:hover, .guide-card:hover { transform: none; } }
.fix h2 { font-size: 22px; margin: 0 0 4px; }
.fix-blurb { margin: 0; color: var(--ink-2); font-size: 16px; }
.fix-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.fix-list a {
	display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
	background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 14px 16px;
	font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink); text-decoration: none;
	transition: border-color .15s, background .15s;
}
.fix-list a:hover { border-color: var(--teal-2); background: var(--paper); }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-buy { background: var(--teal-tint); color: var(--teal-ink); }
.tag-how { background: var(--amber-tint); color: var(--amber-ink); }

/* ---------- Homepage sections ---------- */
.section { padding: 56px 0; }
.section-title { margin-bottom: 22px; font-size: clamp(26px, 3.2vw, 34px); }
.section-title::before {
	content: ""; display: block; width: 46px; height: 4px; border-radius: 2px;
	background: linear-gradient(90deg, var(--teal), var(--teal-2)); margin-bottom: 14px;
}
.topic-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.topic-card {
	display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink);
	box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.topic-card:hover { border-color: var(--teal-2); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.topic-icon {
	width: 48px; height: 48px; flex: none; border-radius: 12px;
	background: linear-gradient(140deg, var(--teal-tint), color-mix(in srgb, var(--teal-tint) 50%, var(--paper)));
	color: var(--teal); display: grid; place-items: center;
}
.topic-icon .icon { width: 26px; height: 26px; }
.topic-body { display: flex; flex-direction: column; gap: 4px; }
.topic-name { font-family: var(--head); font-weight: 700; font-size: 19px; }
.topic-desc { font-size: 14px; color: var(--ink-2); }
.topic-count { font-size: 13px; color: var(--ink-3); }

.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.guide-card {
	display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
	box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.guide-card:hover { border-color: var(--teal-2); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.guide-thumb {
	aspect-ratio: 16 / 10; color: var(--teal); display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(140deg, var(--teal-tint), color-mix(in srgb, var(--teal-tint) 45%, var(--paper)));
}
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-thumb .icon { width: 52px; height: 52px; }
.guide-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.guide-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.guide-title { font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.25; }
.guide-meta { font-size: 13px; color: var(--ink-3); margin-top: auto; }

.trust { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; padding-top: 46px; padding-bottom: 46px; }
.trust-n { font-family: var(--head); font-weight: 700; font-size: 40px; line-height: 1; background: linear-gradient(135deg, var(--teal), var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust h2 { font-size: 17px; margin: 10px 0 6px; }
.trust p { margin: 0; font-size: 15px; color: var(--ink-2); }


/* ---------- Category (topic) pages ---------- */
.topic-head {
	padding: 26px 0 34px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--teal-tint) 65%, transparent) 0%, transparent 100%);
	border-bottom: 1px solid var(--line);
}
.topic-head h1 { margin: 10px 0 12px; }
.topic-head .lead { margin: 0 0 8px; }
.topic-meta { margin: 0 0 18px; font-size: 14px; color: var(--ink-3); }
.chips-left { justify-content: flex-start; }
.chips-left .chip { font-size: 15px; padding: 9px 15px; text-decoration: none; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { margin: 0 7px; }
.post-row-icon {
	width: 38px; height: 38px; flex: none; border-radius: 10px;
	background: var(--teal-tint); color: var(--teal); display: grid; place-items: center;
}
.post-row-icon .icon { width: 20px; height: 20px; }
.post-row { gap: 14px; justify-content: flex-start; }
.post-row .post-row-title { flex: 1; }
.other-topics .topic-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.other-topics .topic-card { padding: 16px; }
.other-topics .topic-icon { width: 40px; height: 40px; border-radius: 10px; }
.other-topics .topic-icon .icon { width: 22px; height: 22px; }
.other-topics .topic-name { font-size: 17px; }

/* ---------- Single guide ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 26px 0 50px; align-items: start; }
.guide-main { min-width: 0; max-width: 760px; }
.guide .entry-head { margin-bottom: 20px; }
.guide h1 { margin: 12px 0 14px; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ink-2); }
.byline .dot { color: var(--ink-3); }
.avatar {
	width: 34px; height: 34px; border-radius: 50%; flex: none;
	background: var(--amber-tint); color: var(--amber-ink);
	display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.disclose { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }
.solves {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	background: var(--teal-tint); color: var(--teal-ink);
	border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 22px 0 26px;
}
.solves a { color: var(--teal-ink); font-weight: 600; }
.toc-mobile {
	display: none; background: var(--paper); border: 1px solid var(--line);
	border-radius: 12px; padding: 12px 16px; margin-bottom: 24px;
}
.toc-mobile summary { cursor: pointer; font-weight: 600; }
.toc-mobile ol { margin: 10px 0 4px; padding-left: 20px; color: var(--ink-2); }
.toc-mobile a, .toc a { color: var(--ink-2); text-decoration: none; }
.toc-mobile a:hover, .toc a:hover { color: var(--teal); }

.guide-side { position: sticky; top: 92px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.side-title { font-size: 16px; margin: 0 0 10px; }
.side-title + * { margin-bottom: 22px; }
.toc { margin: 0; padding-left: 18px; font-size: 15px; }
.toc li { margin: 5px 0; }
.side-links { display: grid; gap: 8px; }
.side-links a {
	font-size: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
	color: var(--ink); text-decoration: none; line-height: 1.35;
}
.side-links a:hover { border-color: var(--teal-2); }
.side-cta {
	display: block; text-align: center; border: 1px solid var(--teal); color: var(--teal);
	border-radius: 10px; padding: 10px 14px; font-weight: 600; text-decoration: none; font-size: 15px;
}
.side-cta:hover { background: var(--teal); color: #fff; }

.author-box {
	display: flex; gap: 18px; background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 22px; margin-top: 36px; box-shadow: var(--shadow-sm);
}
.avatar-lg { width: 62px; height: 62px; font-size: 19px; }
.author-box h2 { font-size: 18px; margin: 0 0 4px; }
.author-box p { margin: 0; font-size: 15px; color: var(--ink-2); }
.related-block { margin-top: 44px; }
.related-block .section-title { font-size: 24px; }
.related-block .guide-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

@media (max-width: 980px) {
	.guide { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.guide-main { max-width: 760px; margin: 0 auto; }
	.guide-side { position: static; margin: 34px auto 0; max-width: 760px; width: 100%; }
	.side-box .toc, .side-box .side-title { display: none; }
	.toc-mobile { display: block; }
}

/* ---------- Footer author card + bottom bar ---------- */
.footer-brand { display: inline-flex; margin-bottom: 20px; }
.footer-brand img { height: 43px; width: auto; display: block; }
.author-card {
	display: flex; gap: 18px; align-items: flex-start;
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 20px;
}
.author-label {
	display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--teal); margin: 0 0 6px;
}
.author-card > div { flex: 1 1 auto; min-width: 0; }
.author-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); }
.author-photo-empty {
	display: grid; place-items: center; background: var(--teal); color: #fff;
	font-family: var(--head); font-weight: 700; font-size: 24px; border-color: transparent;
}
.author-name { font-family: var(--head); font-weight: 700; font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.author-bio { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.copyright { align-items: center; }
.copyright .social { display: flex; gap: 8px; }
.copyright .social a {
	width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
	display: grid; place-items: center; color: var(--ink-2);
}
.copyright .social a:hover { border-color: var(--teal-2); color: var(--teal); }
.copyright .social .icon { width: 17px; height: 17px; }
@media (max-width: 600px) { .copyright { flex-direction: column; align-items: flex-start; gap: 14px; } .legal { margin: 0; } }
