/* Free Guides (/guides, /guides/<skill>, /guides/<skill>/<slug>) — Design D "Handbook", 2026-11-22.
   Loads after celppro-home.css and uses its tokens. Every class here starts with g-. The article
   body blocks (g-tip, g-taskbox, g-moves, g-compare, g-mistakes, g-try, g-prompt) are written as
   HTML inside a guide's Markdown in Desk. */

:root {
	--g-shadow-lg: 0 12px 32px rgba(17, 0, 33, 0.12), 0 2px 6px rgba(17, 0, 33, 0.06);
}
.g-page [hidden] { display: none !important; }
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shared bits ---------- */
.g-preview {
	display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
	background: var(--warning-100); color: var(--warning-500); font-size: 13px; text-align: center;
	padding: 8px 16px; border-bottom: 1px solid var(--border-subtle);
}
.g-preview b { font-weight: var(--weight-bold); }
.g-preview--draft { background: var(--purple-50); color: var(--purple-800); }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-muted); }
.g-crumbs a { color: var(--text-secondary); text-decoration: none; }
.g-crumbs a:hover { color: var(--purple-700); }
.g-ico {
	width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center;
	background: var(--purple-50); color: var(--purple-600);
}
.g-ico--lg { width: 44px; height: 44px; border-radius: 12px; }
.g-badge {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: var(--weight-semibold); line-height: 1;
	padding: 5px 9px; border-radius: var(--radius-pill); white-space: nowrap;
	background: var(--grey-50); color: var(--grey-700); border: 1px solid var(--grey-100);
}
.g-badge--brand { background: var(--purple-50); color: var(--purple-700); border-color: var(--purple-100); }
.g-badge--video { background: var(--danger-100); color: var(--danger-500); border-color: transparent; }
.g-badge--template { background: var(--warning-100); color: var(--warning-500); border-color: transparent; }
.g-badge--pdf { background: var(--success-100); color: var(--success-500); border-color: transparent; }
.g-side__k { font-size: 12px; font-weight: var(--weight-bold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.g-btn--light { background: var(--white); color: var(--purple-800); }
.g-btn--light:hover { background: var(--purple-50); color: var(--purple-900); }
.g-btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--border-on-dark); }
.g-btn--ghost:hover { border-color: var(--lilac-200); color: var(--white); }

/* ---------- Hero ---------- */
.g-hero { border-bottom: 1px solid var(--border-subtle); background-color: var(--grey-25); background-image: linear-gradient(var(--purple-100) 1px, transparent 1px), linear-gradient(90deg, var(--purple-100) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; }
.g-hero__inner { padding: 56px 0 40px; display: grid; gap: 18px; max-width: 820px; }
.g-hero h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: var(--weight-bold); letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.g-hero__title { display: flex; align-items: center; gap: 14px; }
.g-hero__lead { font-size: var(--text-body-lg); color: var(--text-secondary); max-width: 680px; }
.g-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.g-facts b { color: var(--text-primary); font-weight: var(--weight-medium); }

.g-finder { position: relative; }
.g-search {
	display: flex; align-items: center; gap: 10px; background: var(--white);
	border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 8px 8px 8px 18px;
	box-shadow: var(--shadow-md); transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.g-search:focus-within { border-color: var(--purple-400); box-shadow: 0 0 0 4px var(--purple-50), var(--shadow-md); }
.g-search svg { color: var(--text-muted); flex: none; }
.g-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 46px; font: var(--weight-medium) 18px var(--font-body); color: var(--text-primary); }
.g-search input::placeholder { color: var(--grey-400); }
.g-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--g-shadow-lg); overflow: hidden; }
.g-results a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-subtle); }
.g-results a:last-of-type { border-bottom: 0; }
.g-results a:hover, .g-results a.is-active { background: var(--purple-50); }
.g-results b { font-size: 15px; font-weight: var(--weight-semibold); display: block; line-height: 1.3; }
.g-results small { font-size: 12px; color: var(--text-muted); }
.g-results mark { background: var(--purple-100); color: inherit; border-radius: 2px; }
.g-results__empty { padding: 16px; font-size: 14px; color: var(--text-secondary); }
.g-results__foot { padding: 10px 16px; font-size: 12px; color: var(--text-muted); background: var(--grey-25); font-family: var(--font-mono); border-top: 1px solid var(--border-subtle); }
.g-hint { font-size: 14px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.g-hint a { font-weight: var(--weight-semibold); color: var(--text-link); text-decoration: none; }

/* ---------- Handbook: contents + list ---------- */
.g-hb { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 40px; align-items: start; }
.g-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 4px; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; padding-right: 4px; }
.g-side a, .g-others a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 15px; font-weight: var(--weight-semibold); color: var(--grey-700); text-decoration: none; }
.g-side a:hover, .g-others a:hover { background: var(--grey-50); color: var(--text-primary); }
.g-side a.is-active { background: var(--purple-50); color: var(--purple-700); }
.g-side a svg, .g-others a svg { color: var(--grey-400); flex: none; }
.g-side a.is-active svg { color: var(--purple-600); }
.g-side a small { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: var(--weight-regular); }
.g-side ul { list-style: none; margin: 0 0 6px 20px; padding: 0 0 0 12px; border-left: 1px solid var(--border-subtle); display: grid; }
.g-side ul a { font-size: 13px; font-weight: var(--weight-medium); padding: 4px 8px; color: var(--text-secondary); }
.g-jump { display: none; }

.g-book { display: grid; gap: 48px; min-width: 0; }
.g-chap { display: grid; gap: 4px; scroll-margin-top: 20px; }
.g-chap__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink-1000); margin-bottom: 6px; }
.g-chap__head h2 { font-size: 28px; font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.2; }
.g-chap__head > span:last-child { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.g-chap__intro { display: grid; gap: 8px; padding: 4px 0 10px; border-bottom: 1px solid var(--border-subtle); }
.g-chap__intro p { font-size: var(--text-body); color: var(--text-secondary); line-height: 1.6; max-width: 680px; }
.g-chap__intro .cp-arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; justify-self: start; border-bottom: 0; color: var(--text-link); text-decoration: none; }
.g-chap__intro .cp-arrow-link:hover { color: var(--text-link-hover); border-bottom: 0; }
.g-sec { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); scroll-margin-top: 20px; }
.g-sec__k { display: grid; gap: 2px; align-content: start; padding-top: 10px; }
.g-sec__k span { font-family: var(--font-mono); font-size: 12px; color: var(--purple-600); }
.g-sec__k b { font-size: 15px; line-height: 1.3; }
.g-sec ul, .g-related__list { list-style: none; margin: 0; padding: 0; display: grid; }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; }
.g-row:hover { background: var(--grey-25); color: var(--purple-700); }
.g-row b { font-size: 17px; font-weight: var(--weight-semibold); line-height: 1.35; }
.g-row > span { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.g-soon { font-size: 14px; color: var(--text-muted); padding-top: 10px; font-style: italic; }

/* ---------- Quick answers ---------- */
.g-qa { padding-top: 8px; padding-bottom: 88px; scroll-margin-top: 20px; }
.g-qa__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.g-qa__head h2 { font-size: 28px; font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.2; }
.g-qa__head span { font-size: 13px; color: var(--text-muted); }
.g-qa__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-fact { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px 18px; display: grid; gap: 6px; align-content: start; background: var(--white); min-width: 0; }
.g-fact__q { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text-secondary); line-height: 1.4; }
.g-fact__a { font-size: 22px; font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.2; }
.g-fact__d { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.g-fact a { font-size: 13px; font-weight: var(--weight-semibold); margin-top: 4px; color: var(--text-link); text-decoration: none; }

/* ---------- Skill page ---------- */
.g-skill { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; padding-top: 32px; padding-bottom: 88px; align-items: start; }
.g-others { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 2px; }
.g-others__all { margin-top: 8px; color: var(--text-link) !important; font-size: 14px !important; }

/* ---------- Article ---------- */
.g-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; }
.g-progress span { display: block; height: 100%; width: 0; background: var(--purple-600); }
.g-ghead { border-bottom: 1px solid var(--border-subtle); background-color: var(--grey-25); background-image: linear-gradient(var(--purple-100) 1px, transparent 1px), linear-gradient(90deg, var(--purple-100) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; }
.g-ghead__inner { padding: 40px 0 48px; display: grid; gap: 18px; max-width: 860px; }
.g-ghead__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.g-ghead h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: var(--weight-bold); letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.g-ghead__sub { font-size: 19px; color: var(--text-secondary); max-width: 680px; }
.g-clb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.g-clb__ticks { display: inline-flex; gap: 2px; }
.g-clb__ticks i { width: 4px; height: 12px; border-radius: 1px; background: var(--grey-200); }
.g-clb__ticks i.on { background: var(--purple-600); }
.g-clb__ticks i.on.lo { background: var(--purple-300); }
.g-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; color: var(--text-secondary); }
.g-byline__who { display: flex; align-items: center; gap: 10px; }
.g-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.g-byline b { color: var(--text-primary); display: block; line-height: 1.2; }
.g-byline__sep { width: 1px; height: 28px; background: var(--border-default); }
.g-byline__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 13px; }

.g-doc { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
/* "On this page": a numbered reading path. Numbers are the section order; sections already
   passed turn lilac, the one in view is filled purple. */
.g-toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.g-toc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.g-toc__head .g-side__k { margin: 0; }
.g-toc__count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.g-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.g-toc__list::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--grey-100); }
.g-toc__list li { margin: 0; padding: 0; border: 0; }
.g-toc__list a { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 8px 5px 0; border: 0; border-radius: var(--radius-md); font-size: 14px; line-height: 1.35; color: var(--text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.g-toc__list a:hover { color: var(--text-primary); background: var(--grey-25); border: 0; }
.g-toc__n { position: relative; z-index: 1; width: 28px; height: 22px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--grey-200); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.g-toc__list a.is-done .g-toc__n { background: var(--purple-50); border-color: var(--purple-100); color: var(--purple-600); }
.g-toc__list a.is-active { color: var(--text-primary); font-weight: var(--weight-semibold); background: var(--purple-50); }
.g-toc__list a.is-active .g-toc__n { background: var(--purple-600); border-color: var(--purple-600); color: var(--white); }
.g-toc__cta { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-md); }
.g-toc__cta b { font-size: 15px; color: var(--text-primary); }
.g-toc__cta span { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.g-toc__cta .g-toc__btn, .g-toc__cta .g-toc__btn:hover { margin-top: 6px; width: 100%; height: 40px; gap: 6px; font-size: 14px; color: var(--text-on-brand); border: 0; text-decoration: none; }

/* The site underlines every link with a bottom border; guide navigation links don't want it. */
.g-page .g-row, .g-page .g-row:hover, .g-page .g-side a, .g-page .g-others a, .g-page .g-pn, .g-page .g-crumbs a,
.g-page .g-hint a, .g-page .g-fact a, .g-page .g-results a, .g-page .g-toc-mobile a, .g-page .g-video__cap a { border-bottom: 0; }
.g-toc-mobile { display: none; }

.g-article { max-width: 700px; min-width: 0; display: grid; gap: 48px; }
.g-doc > .g-article:only-child { grid-column: 1 / -1; margin: 0 auto; }
.g-body { display: grid; gap: 18px; min-width: 0; }
.g-body > h2, .g-faq-wrap h2 { font-size: 28px; font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.2; margin-top: 30px; scroll-margin-top: 24px; }
.g-body > h2:first-child { margin-top: 0; }
.g-body > h3 { font-size: 20px; font-weight: var(--weight-bold); margin-top: 10px; scroll-margin-top: 24px; }
.g-body p, .g-body li { font-size: 17px; line-height: 1.7; color: var(--grey-700); }
.g-body p b, .g-body p strong, .g-body li b, .g-body li strong { color: var(--text-primary); }
.g-body > ul, .g-body > ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.g-body a { color: var(--text-link); }
/* Buttons written into a guide body keep the site's button colours, not the link colour. */
.g-page .g-body .cp-btn { text-decoration: none; }
.g-page .g-body .cp-btn--primary, .g-page .g-body .cp-btn--primary:hover { color: var(--text-on-brand); border-color: transparent; }
.g-page .g-body .cp-btn--secondary, .g-page .g-body .cp-btn--secondary:hover { color: var(--text-primary); border-color: var(--border-default); }
.g-body blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--purple-300); background: var(--grey-25); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.g-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.g-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.g-body th, .g-body td { border: 1px solid var(--border-default); padding: 8px 12px; text-align: left; }
.g-body th { background: var(--grey-25); }

/* Body block: task facts */
.g-taskbox { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.g-taskbox__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border-subtle); }
.g-spec { padding: 16px 18px; border-right: 1px solid var(--border-subtle); display: grid; gap: 2px; min-width: 0; }
.g-spec:last-child { border-right: 0; }
.g-spec span:first-child { font-size: 12px; color: var(--text-muted); font-weight: var(--weight-semibold); }
.g-spec span:last-child { font-family: var(--font-mono); font-size: 20px; color: var(--text-primary); font-weight: var(--weight-medium); }
.g-taskbox__flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 18px; background: var(--grey-25); gap: 16px; }
.g-flow { display: grid; gap: 4px; min-width: 0; align-content: start; }
.g-flow span:first-child { font-family: var(--font-mono); font-size: 12px; color: var(--purple-600); }
.g-flow b { font-size: 15px; }
.g-flow span:last-child { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Body block: trainer tip */
.g-tip { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--purple-900); color: var(--white); border-radius: var(--radius-lg); padding: 20px; }
.g-tip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.g-tip__k { font-size: 12px; font-weight: var(--weight-bold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac-200); }
.g-tip p { color: var(--white) !important; font-size: 16px !important; margin-top: 4px; }
/* Links inside the dark tip box: lilac, underlined, readable on purple-900. */
.g-page .g-tip a, .g-page .g-tip a:hover { color: var(--lilac-200); text-decoration: underline; text-underline-offset: 3px; border-bottom: 0; }
.g-page .g-tip a:hover { color: var(--white); }

/* Body block: answer moves with timings */
.g-moves { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.g-move { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-bottom: 1px solid var(--border-subtle); }
.g-move:last-child { border-bottom: 0; }
.g-move__t { background: var(--grey-25); border-right: 1px solid var(--border-subtle); padding: 18px 14px; display: grid; gap: 6px; align-content: start; }
.g-move__t span { font-family: var(--font-mono); font-size: 13px; color: var(--purple-700); }
.g-move__bar { height: 6px; border-radius: 3px; background: var(--grey-100); position: relative; overflow: hidden; }
.g-move__bar i { position: absolute; top: 0; bottom: 0; background: var(--purple-600); border-radius: 3px; }
.g-move__b { padding: 18px 20px; display: grid; gap: 6px; min-width: 0; }
.g-move__b b { font-size: 16px; color: var(--text-primary); }
.g-move__b p { font-size: 15px !important; line-height: 1.6 !important; }
.g-move__b q { display: block; font-size: 15px; color: var(--purple-800); background: var(--purple-50); border-radius: var(--radius-sm); padding: 8px 12px; quotes: none; font-style: italic; }

/* Body block: two options side by side */
.g-prompt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-opt { border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 6px; background: var(--white); min-width: 0; align-content: start; }
.g-opt--mine { border-color: var(--purple-600); box-shadow: 0 0 0 1px var(--purple-600); }
.g-opt__who { font-size: 11px; font-weight: var(--weight-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.g-opt--mine .g-opt__who { color: var(--purple-600); }
.g-opt b { font-size: 16px; }
.g-opt ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.g-opt li { font-size: 13px !important; color: var(--text-secondary) !important; font-family: var(--font-mono); line-height: 1.5 !important; }

/* Body block: before/after answer (data-g-compare) */
.g-compare { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--g-shadow-lg); overflow: hidden; }
.g-compare__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--grey-25); flex-wrap: wrap; }
.g-toggle { display: inline-flex; background: var(--grey-50); border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 3px; }
.g-toggle button { font: var(--weight-semibold) 13px var(--font-body); border: 0; background: transparent; color: var(--text-secondary); padding: 6px 14px; border-radius: var(--radius-pill); cursor: pointer; }
.g-toggle button[aria-pressed="true"] { background: var(--white); color: var(--text-primary); box-shadow: var(--shadow-md); }
.g-score { font-family: var(--font-mono); font-size: 12px; font-weight: var(--weight-medium); padding: 3px 8px; border-radius: var(--radius-pill); background: var(--purple-50); color: var(--purple-800); border: 1px solid var(--purple-100); }
.g-score--low { background: var(--grey-50); color: var(--grey-700); border-color: var(--grey-200); }
.g-compare__body { padding: 22px; display: grid; gap: 14px; }
.g-compare__body p { font-size: 16px !important; line-height: 1.75 !important; }
.g-ann { background: var(--purple-50); border-bottom: 0; padding: 1px 2px; border-radius: 2px; }
.g-ann sup { font-family: var(--font-mono); font-size: 10px; color: var(--purple-600); font-weight: var(--weight-medium); margin-left: 2px; }
.g-ann--bad { background: var(--danger-100); border-bottom-color: var(--danger-500); }
.g-ann--bad sup { color: var(--danger-500); }
.g-notes { display: grid; gap: 8px; padding: 16px 22px; background: var(--grey-25); border-top: 1px solid var(--border-subtle); }
.g-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13px; color: var(--grey-700); line-height: 1.5; }
.g-note > span:first-child { font-family: var(--font-mono); font-size: 11px; color: var(--white); background: var(--purple-600); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.g-note--bad > span:first-child { background: var(--danger-500); }
.g-small { font-size: 13px !important; color: var(--text-muted) !important; }

/* Body block: mistake vs fix */
.g-mistakes { display: grid; gap: 10px; }
.g-mk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
.g-mk > div { padding: 14px 16px 14px 42px; font-size: 15px; line-height: 1.5; position: relative; min-width: 0; }
.g-mk > div::before { position: absolute; left: 16px; top: 14px; font-weight: var(--weight-bold); }
.g-mk__x { background: var(--white); color: var(--grey-700); border-right: 1px solid var(--border-subtle); }
.g-mk__x::before { content: "✗"; color: var(--danger-500); }
.g-mk__ok { background: var(--grey-25); color: var(--text-primary); }
.g-mk__ok::before { content: "✓"; color: var(--success-500); }

/* Body block: practice with prep timer (data-g-timer) */
.g-try { border: 2px solid var(--purple-600); border-radius: var(--radius-lg); overflow: hidden; }
.g-try__bar { background: var(--purple-600); color: var(--white); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 18px; font-size: 14px; }
.g-try__bar span { color: var(--lilac-200); font-family: var(--font-mono); font-size: 12px; }
.g-try__body { padding: 20px 18px; display: grid; gap: 16px; }
.g-try__q { font-size: 16px !important; color: var(--text-primary) !important; font-weight: var(--weight-medium); line-height: 1.5 !important; }
.g-try__run { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.g-timer { display: flex; align-items: center; gap: 12px; }
.g-timer svg { width: 52px; height: 52px; flex: none; }
.g-timer circle { fill: none; stroke-width: 5; }
.g-timer .bg { stroke: var(--grey-100); }
.g-timer .fg { stroke: var(--purple-600); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s linear; }
.g-timer__txt { display: grid; }
.g-timer__txt b { font-family: var(--font-mono); font-size: 22px; font-weight: var(--weight-medium); color: var(--text-primary); line-height: 1.1; }
.g-timer__txt span { font-size: 12px; color: var(--text-muted); }
.g-try__run .cp-btn--primary { margin-left: auto; }

/* FAQ, closing CTA, author */
.g-faq-wrap { display: grid; gap: 14px; }
.g-faq { display: grid; border-top: 1px solid var(--border-default); }
.g-faq details { border-bottom: 1px solid var(--border-default); }
.g-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-weight: var(--weight-semibold); font-size: 17px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary svg { flex: none; color: var(--text-muted); transition: transform var(--duration-base) var(--ease-out); }
.g-faq details[open] summary svg { transform: rotate(45deg); color: var(--purple-600); }
.g-faq details p { padding-bottom: 18px; font-size: 16px; line-height: 1.7; color: var(--grey-700); }
.g-closer { background: var(--purple-900); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; color: var(--white); }
.g-closer h2 { font-size: 24px; font-weight: var(--weight-bold); }
.g-closer p { color: var(--text-on-dark-muted); font-size: 15px; margin-top: 6px; }
.g-closer__ctas { display: grid; gap: 8px; }
.g-author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.g-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.g-author b { font-size: 16px; }
.g-author p { font-size: 15px; margin-top: 4px; color: var(--text-secondary); line-height: 1.6; }

.g-related { display: grid; gap: 16px; padding-bottom: 72px; }
.g-related h2 { font-size: 24px; font-weight: var(--weight-bold); letter-spacing: -0.02em; }
.g-related__list { border-top: 1px solid var(--border-subtle); }
.g-related__list li { border-bottom: 1px solid var(--border-subtle); }
.g-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.g-pn { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 4px; color: var(--text-primary); text-decoration: none; min-width: 0; }
.g-pn:hover { border-color: var(--purple-300); color: var(--text-primary); }
.g-pn span { font-size: 12px; font-weight: var(--weight-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.g-pn b { font-size: 16px; line-height: 1.35; }
.g-pn--next { text-align: right; grid-column: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.g-qa__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-hb, .g-doc, .g-skill { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
	.g-side, .g-toc { display: none; }
	.g-others { position: static; }
	.g-jump { display: block; position: sticky; top: var(--nav-h); z-index: 20; background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
	.g-jump select { width: 100%; height: 44px; font: var(--weight-semibold) 15px var(--font-body); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 0 12px; background: var(--white); }
	.g-toc-mobile { display: block; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--grey-25); }
	.g-toc-mobile summary { padding: 12px 16px; font-weight: var(--weight-semibold); font-size: 14px; cursor: pointer; }
	.g-toc-mobile ol { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 6px; font-size: 14px; }
	.g-article { max-width: none; }
}
@media (max-width: 640px) {
	.g-qa__grid { grid-template-columns: minmax(0, 1fr); }
	.g-sec { grid-template-columns: minmax(0, 1fr); }
	.g-sec__k { grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; padding-top: 0; }
	.g-row { grid-template-columns: minmax(0, 1fr); }
	.g-hero__inner, .g-ghead__inner { padding: 36px 0 32px; }
	.g-search input { font-size: 16px; }
	.g-search .cp-btn { display: none; }
	.g-chap__head { flex-wrap: wrap; }
	.g-chap__head > span:last-child { margin-left: 44px; width: 100%; }
	.g-taskbox__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-spec:nth-child(2) { border-right: 0; }
	.g-spec:nth-child(-n + 2) { border-bottom: 1px solid var(--border-subtle); }
	.g-taskbox__flow { grid-template-columns: minmax(0, 1fr); }
	.g-move { grid-template-columns: minmax(0, 1fr); }
	.g-move__t { border-right: 0; border-bottom: 1px solid var(--border-subtle); grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 10px 16px; }
	.g-prompt, .g-mk, .g-prevnext { grid-template-columns: minmax(0, 1fr); }
	.g-mk__x { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
	.g-closer { grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.g-pn--next { text-align: left; grid-column: auto; }
	.g-byline__sep { display: none; }
	.g-body p, .g-body li { font-size: 16px; }
	.g-try__run .cp-btn--primary { margin-left: 0; }
}

/* Body block: copyable text, e.g. an AI practice prompt (<pre class="g-copy">) */
.g-copy-wrap { position: relative; }
.g-copy-wrap pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--grey-700); background: var(--grey-25); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 44px 18px 16px; }
.g-copy-btn { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 12px; font: var(--weight-semibold) 12px var(--font-body); color: var(--text-primary); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-control); }
.g-copy-btn:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.g-copy-label { position: absolute; top: 14px; left: 18px; font-size: 11px; font-weight: var(--weight-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* Body block: I-E-E-C-R steps (g-moves with a letter instead of a time) */
.g-iecr .g-move { grid-template-columns: 64px minmax(0, 1fr); }
.g-iecr .g-move__t { place-items: center; align-content: center; }
.g-iecr .g-move__t span { font-family: var(--font-display); font-size: 24px; font-weight: var(--weight-bold); color: var(--purple-600); }

/* Body block: an embedded video with its credit line (<div class="g-video">) */
.g-video { display: grid; gap: 8px; }
.g-video__frame { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--grey-100); border: 1px solid var(--border-default); }
.g-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.g-video__cap { font-size: 13px !important; color: var(--text-muted) !important; line-height: 1.5 !important; }

/* Body block: the reusable template, one labelled part per paragraph */
.g-template { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.g-template__part { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid var(--border-subtle); }
.g-template__part:last-child { border-bottom: 0; }
.g-template__k { background: var(--grey-25); border-right: 1px solid var(--border-subtle); padding: 16px 14px; display: grid; gap: 4px; align-content: start; }
.g-template__k b { font-size: 14px; }
.g-template__k span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.g-template__v { padding: 16px 18px; display: grid; gap: 8px; min-width: 0; }
.g-template__v p { font-size: 15px !important; line-height: 1.7 !important; }
.g-ph { font-style: normal; font-weight: var(--weight-semibold); color: var(--purple-700); background: var(--purple-50); border-radius: 3px; padding: 0 3px; }
.g-notes-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.g-notes-list li { font-size: 15px !important; line-height: 1.55 !important; }
@media (max-width: 640px) {
	.g-template__part { grid-template-columns: minmax(0, 1fr); }
	.g-template__k { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
	.g-iecr .g-move { grid-template-columns: 48px minmax(0, 1fr); }
	.g-iecr .g-move__t { border-right: 1px solid var(--border-subtle); border-bottom: 0; grid-template-columns: 1fr; padding: 14px 8px; }
}

/* Anchors land below the sticky site menu; step lists don't take the body's list indent. */
.g-body > h2, .g-body > h3, .g-faq-wrap h2, .g-chap, .g-sec, .g-qa { scroll-margin-top: calc(var(--nav-h) + 24px); }
.g-body > ol.g-moves, .g-body > ul.g-notes-list { padding-left: 0; }
.g-toc__t { hyphens: manual; }

/* Button roles across all guides:
   primary (white on brand purple)  main action: practise, search, record
   secondary (ink on white, grey)   tools: timers, Copy
   light (purple on white)          only on the dark purple cards
   deep (site CTA band)             the band under every guide page */

/* Topic sections (Scores & CLB, Exam basics) have no test part, so their rows span the full width. */
.g-sec--topic { grid-template-columns: minmax(0, 1fr); }
.g-sec--topic .g-soon { padding-top: 0; }

/* Phone "On this page": the same numbered path as the desktop list. */
.g-toc-mobile summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-toc-mobile summary::-webkit-details-marker { display: none; }
.g-toc-mobile summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--grey-500); border-bottom: 2px solid var(--grey-500); transform: rotate(45deg); margin-top: -4px; transition: transform var(--duration-base) var(--ease-out); }
.g-toc-mobile[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.g-toc-mobile .g-toc__list { padding: 0 12px 12px; }
.g-toc-mobile .g-toc__list::before { left: 25px; }
