/* ══ #495 guide article as a reading page (owner INBOX, 2026-11-04, STAGING; inc/avi-guide495.php).
   Only on the sample guides. Phones first; tablet 768+, desktop 1024+ (the site breakpoints).
   Colours: the design guide's tokens only; --g495-accent = the series colour (training gold #e8a020, medical
   #5aa9ff, scholarships #8fdc6f), used for the eyebrow, the one accent word, links, icons and board headers.
   The current "On this page" link is gold on every series (owner #495.4). No coloured edges on cards (#418). ══ */

body.g495-page { background: #060f1e; margin: 0; font-family: 'DM Sans', sans-serif; color: #e8eef5; }
.g495 { --g495-accent: #e8a020; padding: 0 16px; }
.g495 *, .g495 *::before, .g495 *::after { box-sizing: border-box; }
.g495-grid { max-width: 720px; margin: 0 auto; }

/* ── 1. Header ── */
.g495-head { padding: 28px 0 0; }
.g495-eyebrow {
	margin: 0 0 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
	letter-spacing: .2em; text-transform: uppercase; color: var(--g495-accent);
}
.g495-title {
	margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400; text-transform: uppercase; color: #e8eef5;
	font-size: clamp(38px, 10.5vw, 46px); line-height: .98; letter-spacing: .01em; text-wrap: balance;
	max-width: 100%; overflow-wrap: break-word; hyphens: manual;
}
/* #495 add-on 1: the size follows the title's length so it wraps in the reading column in 2-3 lines, never wider */
.g495-title--long { font-size: clamp(34px, 9vw, 40px); }
.g495-title--xlong { font-size: clamp(30px, 8vw, 36px); line-height: 1; }
.g495-accent { color: var(--g495-accent); }
.g495-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: #94a7be; }
.g495-meta, .g495-src {
	margin: 12px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
	text-transform: uppercase; color: #7d93ad; line-height: 1.6;
}
.g495-src { margin-top: 2px; }
.g495-meta span { margin: 0 6px; }

/* ── 2. Quick facts: neutral pills (#418) ── */
.g495-facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g495-fact {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 8px;
	background: #0f1e38; border: 1px solid #2a4266; color: #e8eef5; font-size: 14px; font-weight: 600; line-height: 1.2;
	white-space: nowrap;
}

/* ── 4. On this page (phones: closed row under the header) ── */
.g495-toc-m { margin: 22px 0 0; border-top: 1px solid #1f3354; border-bottom: 1px solid #1f3354; }
.g495-toc-m > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px;
	font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #94a7be;
}
.g495-toc-m > summary::-webkit-details-marker { display: none; }
.g495-toc-m > summary::after,
.g495-faq-item > summary::after,
.g495 .avi-faq-item > summary::after {
	content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #7d93ad; border-bottom: 2px solid #7d93ad;
	transform: rotate(45deg); margin: -4px 4px 0 12px; transition: transform .15s ease, border-color .15s ease;
}
.g495-toc-m[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.g495-toc-m .g495-toc-list { margin: 0 0 14px; }
.g495-toc-list { list-style: none; padding: 0; margin: 0; }
.g495-toc-list a {
	display: block; padding: 7px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.45;
	color: #7d93ad; text-decoration: none; transition: color .15s ease;
}
.g495-toc-m .g495-toc-list a { min-height: 36px; padding: 9px 0; font-size: 13px; }
.g495-toc-list a:hover { color: #e8eef5; }
.g495-toc-list a.is-current { color: #e8a020; }
.g495-rail .g495-toc { display: none; }

/* ── 3. Body ── */
.g495-body { padding: 8px 0 0; min-width: 0; overflow-wrap: break-word; }
.g495-body > :first-child { margin-top: 28px; }
.g495-body p, .g495-body li { font-size: 17px; line-height: 1.7; color: #c8d8e8; }
.g495-body p { margin: 0 0 18px; }
.g495-body ul, .g495-body ol { margin: 0 0 20px; padding-left: 22px; }
.g495-body li { margin: 0 0 8px; }
.g495-body li > p { margin: 0 0 8px; }
.g495-body strong { color: #e8eef5; font-weight: 600; }
.g495-body em { color: #94a7be; }
.g495-body h2 {
	margin: 52px 0 14px; padding: 0; border: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400;
	font-size: 32px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: #e8eef5;
	scroll-margin-top: 88px;
}
/* #495 add-on 3, option (a) body.g495-h2-sentence: DM Sans 600, the heading as written (no capitals added), smaller */
body.g495-h2-sentence .g495-body h2 {
	font-family: 'DM Sans', sans-serif; font-weight: 600; text-transform: none; letter-spacing: -.005em;
	font-size: 24px; line-height: 1.3; margin: 48px 0 12px; max-width: 640px;
}
/* option (b) body.g495-h2-bebas: Bebas caps, long headings smaller so they stay within ~2 lines */
body.g495-h2-bebas .g495-body h2.g495-h2--long { font-size: 28px; }
body.g495-h2-bebas .g495-body h2.g495-h2--xlong { font-size: 25px; line-height: 1.08; }
.g495-body h3 { margin: 30px 0 10px; font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.35; color: #e8eef5; }
.g495-body a, .g495-body a[style] { color: var(--g495-accent) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.g495-body a:hover { color: #e8eef5 !important; }
.g495-body hr { border: 0; height: 0; margin: 8px 0; }
.g495-body img, .g495-body figure, .g495-body video, .g495-body iframe { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.g495-body figure img, .g495-body p > img:only-child { width: 100%; }
.g495-body figure { margin: 28px 0; }
.g495-body figcaption { margin-top: 8px; font-size: 13px; color: #7d93ad; }
.g495-body img.wp-smiley, .g495-body img[src*="emoji"] { display: inline !important; width: 1.2em !important; height: 1.2em !important; border-radius: 0; vertical-align: -.15em; }
.g495-body pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.g495-body li.check { list-style: none; position: relative; margin-left: -22px; padding-left: 30px; }
.g495-body li.check::before {
	content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
	border-left: 2px solid #e8a020; border-bottom: 2px solid #e8a020; transform: rotate(-45deg);
}
.g495-body .g495-ref { font-size: 14px; line-height: 1.6; color: #7d93ad; }
.g495-body .g495-ref strong { color: #94a7be; font-weight: 600; }

/* Tables: mono boards (location-board style) */
.g495-body .guide-table-scroll {
	max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0 26px;
	background: #070e1b; border: 1px solid #1f3354; border-radius: 14px;
}
.g495-body .guide-table-scroll:focus-visible { outline: 2px solid #7d93ad; outline-offset: 2px; }
.g495-body table { width: 100%; min-width: 0; border-collapse: collapse; margin: 0; }
.g495-body th {
	padding: 14px 16px; text-align: left; vertical-align: bottom; background: none; border-bottom: 1px solid #1f3354;
	font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
	color: var(--g495-accent); white-space: nowrap;
}
.g495-body td, .g495-body .guide-table-scroll table td {
	padding: 13px 16px; border-bottom: 1px solid #16294a; vertical-align: top;
	font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.55; color: #c8d8e8;
}
.g495-body tr:last-child td, .g495-body tr:last-child th { border-bottom: 0; }
/* #520 roll-out: row headings inside the table body read as the first cell, not as column headings */
.g495-body tbody th, .g495-body .guide-table-scroll table tbody th {
	vertical-align: top; white-space: normal; border-bottom: 1px solid #16294a; padding: 13px 16px;
	font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #e8eef5; line-height: 1.55;
}
.g495-body caption, .g495-body .guide-table-scroll table caption {
	caption-side: top; text-align: left; padding: 14px 16px 2px; font-family: 'DM Sans', sans-serif;
	font-size: 13px; line-height: 1.5; color: #7d93ad; opacity: 1;
}
.g495-body td strong { color: #e8eef5; }

/* Callouts: avs-card surface + a small icon in the series colour, no coloured edge (#418) */
.g495-body .avi-quick-answer,
.g495-body blockquote,
.g495-body .g495-callout,
.g495-body .guide-disclaimer,
.g495-body > div[style*="border-top"] {
	position: relative; margin: 26px 0 28px !important; padding: 18px 18px 18px 52px !important;
	border-radius: 12px !important; background: linear-gradient(to bottom, #14294b, #0c1a30 60%) !important;
	border: 1px solid #071224 !important; border-top-color: #2a4470 !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 14px 30px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .4) !important;
	color: #c8d8e8; font-style: normal;
}
.g495-body .avi-quick-answer::before,
.g495-body blockquote::before,
.g495-body .g495-callout::before,
.g495-body .guide-disclaimer::before,
.g495-body > div[style*="border-top"]::before {
	content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; background: var(--g495-accent);
	-webkit-mask: var(--g495-ic) center / contain no-repeat; mask: var(--g495-ic) center / contain no-repeat;
	--g495-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
}
.g495-body .avi-quick-answer::before,
.g495-body blockquote::before {
	--g495-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2'/%3E%3Cpath d='M9 8.5h6M9 12h6M9 15.5h4'/%3E%3C/svg%3E");
}
.g495-body .avi-quick-answer p, .g495-body .avi-quick-answer li,
.g495-body blockquote p, .g495-body .g495-callout, .g495-body .guide-disclaimer p,
.g495-body > div[style*="border-top"] p { font-size: 16px !important; line-height: 1.65 !important; color: #c8d8e8 !important; }
.g495-body .avi-quick-answer > :last-child, .g495-body blockquote > :last-child, .g495-body .guide-disclaimer > :last-child,
.g495-body > div[style*="border-top"] > :last-child { margin-bottom: 0 !important; }
.g495-body .avi-quick-answer p.avi-quick-answer-label {
	margin: 0 0 8px !important; font-family: 'JetBrains Mono', monospace; font-size: 11px !important; font-weight: 500 !important;
	letter-spacing: .16em; text-transform: uppercase; color: #94a7be !important;
}
.g495-body .avi-quick-answer ul { margin: 0; padding-left: 18px; }
.g495-body .avi-quick-answer li { margin: 0 0 6px; }
.g495-body blockquote { quotes: none; }
.g495-body blockquote p:first-child strong:first-child { display: inline-block; margin-bottom: 2px; }
.g495-body > div[style*="border-top"] p, .g495-body .guide-disclaimer p { font-size: 15px !important; }
.g495-body .guide-disclaimer strong { color: #e8eef5 !important; }
.g495-body > div[style*="border-top"] strong { color: #e8eef5 !important; }

/* Tool links: quiet row (not buttons) */
.g495-body .avi-tool-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 28px 0 0; font-size: 15px; }
.g495-body .avi-tool-links > span { color: #7d93ad; opacity: 1; }
.g495-body .avi-tool-links a { padding: 0; border: 0; border-radius: 0; }

/* ── 5. FAQ = the #465 accordion ── */
.g495-body .avi-faq { margin: 0; }
.g495-body .avi-faq-h { margin-top: 52px; }
.g495-faq, .g495-body .avi-faq { border: 0; }
.g495-faq-item, .g495-body .avi-faq-item { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 0; }
.g495-faq-item:first-child, .g495-body .avi-faq-h + .avi-faq-item { border-top: 1px solid rgba(255, 255, 255, .08); }
.g495-faq-item > summary, .g495-body .avi-faq-item > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 56px; padding: 12px 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: #e8eef5;
}
.g495-faq-item > summary strong { font-weight: 600; }
.g495-faq-item > summary::-webkit-details-marker, .g495-body .avi-faq-item > summary::-webkit-details-marker { display: none; }
.g495-faq-item > summary:hover, .g495-body .avi-faq-item > summary:hover { color: #fff; }
.g495-faq-item > summary:focus-visible, .g495-body .avi-faq-item > summary:focus-visible,
.g495-toc-m > summary:focus-visible { outline: 2px solid #c8d8e8; outline-offset: 2px; }
.g495-faq-item[open] > summary::after, .g495-body .avi-faq-item[open] > summary::after {
	transform: rotate(-135deg); margin-top: 4px; border-color: var(--g495-accent);
}
.g495-faq-a, .g495-body .avi-faq-item > p { padding: 0 0 18px; }
.g495-faq-a p, .g495-body .avi-faq-item > p { margin: 0 !important; font-size: 16px; line-height: 1.7; color: #c8d8e8; opacity: 1; }
.g495-body .avi-faq-item > p { padding: 0 0 18px; }

/* ── Rail: the medical "Find a CAME" card (#485) ── */
.g495-rail { margin: 36px 0 0; }
.g495-rail:not(:has(*)) { display: none; }
.g495-came { padding: var(--avs-card-pad, 18px); }
.g495-came-k {
	margin: 0 0 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--g495-accent);
}
.g495-came-h { margin: 0 0 8px; font-family: 'Bebas Neue', sans-serif; font-size: 28px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: #e8eef5; }
.g495-came-sub { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #94a7be; }
html body .g495 a.g495-came-btn:not(#avs-raised):not(#avs-r2):not(#g495) {
	display: flex; width: 100%; justify-content: center; text-decoration: none;
	--avsb-font: 600 16px/1.2 'DM Sans', sans-serif; --avsb-ls: 0; --avsb-case: none;
}

/* ── 6. Also in this series ── */
.g495-series { margin: 56px 0 0; padding: 0 0 48px; }
.g495-series-h {
	margin: 0 0 14px; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; line-height: 1;
	letter-spacing: .02em; text-transform: uppercase; color: #e8eef5;
}
.g495-series-row {
	position: relative; list-style: none; margin: 0 -16px; padding: 4px 16px 18px; display: flex; gap: 10px; overflow-x: auto;
	scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.g495-series-row::-webkit-scrollbar { display: none; }
.g495-series-item { flex: 0 0 66%; scroll-snap-align: start; display: flex; }
.g495-series-card {
	display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 108px; padding: 16px 18px;
	text-decoration: none; color: #e8eef5;
	border-radius: var(--avs-card-radius, 12px); background: var(--avs-card-bg, #0c1a30);
	border: 1px solid var(--avs-card-edge, #071224); border-top-color: var(--avs-card-edge-top, #2a4470);
	box-shadow: var(--avs-card-shadow, none);
}
.g495-series-n { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7d93ad; }
.g495-series-card.is-current .g495-series-n { color: var(--g495-accent); }
.g495-series-t { font-size: 17px; font-weight: 600; line-height: 1.3; color: #e8eef5; }
.g495-series-card:focus-visible { outline: 2px solid #c8d8e8; outline-offset: 2px; }
.g495-series-all { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.g495-series-all a { color: var(--g495-accent); text-decoration: none; }
.g495-series-all a:hover { color: #e8eef5; }
.g495-series-count { margin: 2px 0 0; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; color: #7d93ad; }

@media (hover: hover) and (pointer: fine) {
	.g495-series-card:hover .g495-series-t { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}

/* ── Tablet ── */
@media (min-width: 768px) {
	.g495 { padding: 0 24px; }
	.g495-head { padding-top: 40px; }
	.g495-title { font-size: clamp(48px, 6vw, 60px); }
	.g495-title--long { font-size: clamp(42px, 4.8vw, 50px); }
	.g495-title--xlong { font-size: clamp(36px, 4.1vw, 44px); line-height: 1; }
	.g495-body h2 { font-size: 36px; }
	.g495-series-row { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; }
	.g495-series-item { flex: none; }
	.g495-series-card { min-height: 96px; }
	.g495-series-count { display: none; }
}

/* ── Desktop: reading column + sticky "On this page" on the right ── */
@media (min-width: 1024px) {
	/* #495 add-on 4: the right column = sticky "On this page" (+ the medical CAME card), then "Also in this series"
	   under it, level with the end of the article. Rows: header | rail (1fr) | series; the body spans rows 2-3, so the
	   sticky block stops where the series list begins (never on top of it). */
	.g495-grid {
		max-width: 1080px; display: grid; grid-template-columns: minmax(0, 720px) 264px; grid-template-rows: auto 1fr auto;
		column-gap: 96px; justify-content: center; align-items: start;
	}
	.g495-head { grid-column: 1; grid-row: 1; padding-top: 56px; }
	.g495-body { grid-column: 1; grid-row: 2 / 4; padding-bottom: 64px; }
	.g495-rail { grid-column: 2; grid-row: 2; align-self: stretch; margin: 36px 0 0; }
	.g495-rail:not(:has(*)) { display: block; }
	.g495-rail-in { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }
	.g495-rail .g495-toc { display: block; }
	.g495-toc-h { margin: 0 0 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #94a7be; }
	.g495-toc-m { display: none; }
	.g495-series {
		grid-column: 2; grid-row: 3; margin: 0 0 64px; padding: 18px 18px 10px;
		border-radius: var(--avs-card-radius, 12px); background: var(--avs-card-bg, #0c1a30);
		border: 1px solid var(--avs-card-edge, #071224); border-top-color: var(--avs-card-edge-top, #2a4470);
		box-shadow: var(--avs-card-shadow, none);
	}
	.g495-series-h {
		margin: 0 0 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; color: #94a7be;
	}
	.g495-series-row { display: block; }
	.g495-series-all { margin: 4px 0 8px; padding-top: 10px; border-top: 1px solid #16294a; font-size: 14px; }
	.g495-series-item { display: block; border-top: 1px solid #16294a; }
	.g495-series-item:first-child { border-top: 0; }
	.g495-series-card {
		display: block; min-height: 0; padding: 9px 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	}
	.g495-series-n { display: none; }
	.g495-series-t { font-size: 14px; font-weight: 500; line-height: 1.4; color: #94a7be; }
	.g495-series-card.is-current .g495-series-t { color: var(--g495-accent); font-weight: 600; }
	.g495-came-h { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.g495-toc-m > summary::after, .g495-faq-item > summary::after, .g495 .avi-faq-item > summary::after, .g495-toc-list a { transition: none; }
	.g495-series-row { scroll-behavior: auto; }
}
