/* ══ #547 light reading section (owner 2026-11-04, STAGING; canvas "Apple-style ideas", board "Idea 3 · Light reading
   section"). Loaded only on a guide whose map entry has 'light' (the cost guide), after avi-guide495.css; every rule is
   scoped to body.g495-light so no other guide changes.
   Colours on the light sheet (all ≥ 4.5:1 on #f4f6f9 / #ffffff / #e9eef5): headings #0c1a30, body #3d5170, mono labels
   #5b6f8c, links #8a5600 (600). No gold #e8a020 on text here; gold only as the 2 px line of the current TOC item. ══ */

body.g495-light { background: #060f1e; }
body.g495-light .g495l { padding: 0; }
body.g495-light .g495l *, body.g495-light .g495l *::before, body.g495-light .g495l *::after { box-sizing: border-box; }
.g495l-in { max-width: 1056px; margin: 0 auto; padding: 0 20px; }

/* ── 1. Dark top ── */
.g495l-head { padding: 36px 0 64px; color: #e8eef5; }
.g495l-eyebrow {
	margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .18em;
	text-transform: uppercase; color: #ffb547;
}
.g495l-title {
	margin: 14px 0 0; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 36px; line-height: 1.05;
	letter-spacing: -.02em; color: #e8eef5; text-transform: none; max-width: 860px; overflow-wrap: break-word;
}
.g495l-dek { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: #94a7be; max-width: 680px; }
.g495l-meta {
	margin: 20px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em;
	text-transform: uppercase; color: #94a7be;
}
.g495l-meta span { margin: 0 4px; }

/* ── 2. Light sheet ── */
.g495l-sheet {
	position: relative; margin-top: -28px; padding: 36px 20px 44px; background: #f4f6f9; color: #0c1a30;
	border-radius: 28px 28px 0 0;
}
.g495l-grid { max-width: 1056px; margin: 0 auto; }
.g495l-col { min-width: 0; }
.g495l-toc { display: none; }

body.g495-light .g495l-body { padding: 0; color: #3d5170; }
body.g495-light .g495l-body > :first-child { margin-top: 0; }
body.g495-light .g495l-body p,
body.g495-light .g495l-body li { font-size: 17px; line-height: 1.6; color: #3d5170; }
body.g495-light .g495l-body strong { color: #0c1a30; font-weight: 700; }
body.g495-light .g495l-body em { color: #3d5170; }
/* lead paragraph (class set by the template: the first plain paragraph of 15+ words) */
body.g495-light .g495l-body p.g495l-lead { font-size: 19px; line-height: 1.55; font-weight: 500; color: #0c1a30; }
body.g495-light .g495l-body h2,
body.g495-light.g495-h2-sentence .g495l-body h2 {
	margin: 40px 0 10px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 25px; line-height: 1.2;
	letter-spacing: -.01em; text-transform: none; color: #0c1a30; max-width: none;
}
body.g495-light .g495l-body h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.35; color: #0c1a30; }
body.g495-light .g495l-body a,
body.g495-light .g495l-body a[style] { color: #8a5600 !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.g495-light .g495l-body a:hover { color: #0c1a30 !important; }
body.g495-light .g495l-body hr { border: 0; height: 0; margin: 4px 0; }
body.g495-light .g495l-body li.check::before { border-color: #8a5600; }

/* Tables: white boxes */
body.g495-light .g495l-body .guide-table-scroll {
	margin: 20px 0 24px; background: #ffffff; border: 1px solid #dde3ec; border-radius: 16px;
}
body.g495-light .g495l-body .guide-table-scroll:focus-visible { outline: 2px solid #0c1a30; outline-offset: 2px; }
body.g495-light .g495l-body th {
	padding: 14px 16px; background: none; border-bottom: 1px solid #e8edf3; font-family: 'JetBrains Mono', monospace;
	font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #5b6f8c;
}
body.g495-light .g495l-body td,
body.g495-light .g495l-body .guide-table-scroll table td {
	padding: 14px 16px; border-bottom: 1px solid #e8edf3; font-family: 'DM Sans', sans-serif; font-size: 16px;
	line-height: 1.5; color: #3d5170;
}
body.g495-light .g495l-body td:first-child { color: #0c1a30; font-weight: 600; }
body.g495-light .g495l-body tbody th,
body.g495-light .g495l-body .guide-table-scroll table tbody th {
	font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none;
	color: #0c1a30; border-bottom: 1px solid #e8edf3;
}
body.g495-light .g495l-body td strong { color: #0c1a30; }
body.g495-light .g495l-body caption,
body.g495-light .g495l-body .guide-table-scroll table caption { color: #5b6f8c; }
body.g495-light .g495l-body tr:last-child td, body.g495-light .g495l-body tr:last-child th { border-bottom: 0; }

/* Callouts (Quick answer, quotes, Note: lines): #e9eef5 boxes, no icon colour on text */
body.g495-light .g495l-body .avi-quick-answer,
body.g495-light .g495l-body blockquote,
body.g495-light .g495l-body .g495-callout,
body.g495-light .g495l-body .guide-disclaimer,
body.g495-light .g495l-body > div[style*="border-top"] {
	margin: 24px 0 28px !important; padding: 20px 20px 20px 20px !important; background: #e9eef5 !important;
	border: 0 !important; border-radius: 16px !important; box-shadow: none !important; color: #3d5170;
}
body.g495-light .g495l-body .avi-quick-answer::before,
body.g495-light .g495l-body blockquote::before,
body.g495-light .g495l-body .g495-callout::before,
body.g495-light .g495l-body .guide-disclaimer::before,
body.g495-light .g495l-body > div[style*="border-top"]::before { display: none; }
body.g495-light .g495l-body .avi-quick-answer p,
body.g495-light .g495l-body .avi-quick-answer li,
body.g495-light .g495l-body blockquote p,
body.g495-light .g495l-body .g495-callout,
body.g495-light .g495l-body .guide-disclaimer p { color: #3d5170 !important; font-size: 17px !important; }
body.g495-light .g495l-body .avi-quick-answer .avi-quick-answer-lead { color: #0c1a30 !important; font-weight: 500; }
body.g495-light .g495l-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: #53667f !important; /* 5.0:1 on #e9eef5 (#5b6f8c is 4.4) */
}
body.g495-light .g495l-body .g495-ref, body.g495-light .g495l-body .g495-ref strong { color: #5b6f8c; }

/* Tool links + FAQ rows on light */
body.g495-light .g495l-body .avi-tool-links > span { color: #5b6f8c; }
body.g495-light .g495l-body .avi-faq-item,
body.g495-light .g495l-body .g495-faq-item { border-color: #dde3ec; }
body.g495-light .g495l-body .avi-faq-h + .avi-faq-item,
body.g495-light .g495l-body .g495-faq-item:first-child { border-top-color: #dde3ec; }
body.g495-light .g495l-body .avi-faq-item > summary,
body.g495-light .g495l-body .g495-faq-item > summary { color: #0c1a30; }
body.g495-light .g495l-body .avi-faq-item > summary:hover,
body.g495-light .g495l-body .g495-faq-item > summary:hover { color: #000; }
body.g495-light .g495l-body .avi-faq-item > summary::after,
body.g495-light .g495l-body .g495-faq-item > summary::after { border-color: #5b6f8c; }
body.g495-light .g495l-body .avi-faq-item[open] > summary::after,
body.g495-light .g495l-body .g495-faq-item[open] > summary::after { border-color: #0c1a30; }
body.g495-light .g495l-body .avi-faq-item > p,
body.g495-light .g495l-body .g495-faq-a p { color: #3d5170; }
body.g495-light .g495l-body .avi-faq-item > summary:focus-visible,
body.g495-light .g495l-body .g495-faq-item > summary:focus-visible { outline-color: #0c1a30; }

/* Phone "On this page" row, light */
body.g495-light .g495l-toc-m { margin: 0 0 24px; border-color: #dde3ec; }
body.g495-light .g495l-toc-m > summary { color: #5b6f8c; }
body.g495-light .g495l-toc-m > summary::after { border-color: #5b6f8c; }
body.g495-light .g495l-toc-m .g495-toc-list a { color: #3d5170; }
body.g495-light .g495l-toc-m .g495-toc-list a:hover { color: #0c1a30; }
body.g495-light .g495l-toc-m > summary:focus-visible { outline-color: #0c1a30; }

/* Series: white cards on the sheet */
.g495l-series { margin: 48px 0 0; }
.g495l-series-h {
	margin: 0 0 14px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 25px; line-height: 1.2; color: #0c1a30;
}
.g495l-series-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g495l-series-card {
	display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 16px; background: #ffffff;
	border: 1px solid #dde3ec; border-radius: 16px; text-decoration: none; color: #0c1a30;
}
.g495l-series-n { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5b6f8c; }
.g495l-series-card.is-current .g495l-series-n { color: #8a5600; }
.g495l-series-t { font-size: 16px; font-weight: 600; line-height: 1.3; color: #0c1a30; }
.g495l-series-card:focus-visible { outline: 2px solid #0c1a30; outline-offset: 2px; }
.g495l-series-all { margin: 14px 0 0; font-size: 16px; font-weight: 600; }
.g495l-series-all a { color: #8a5600; }
@media (hover: hover) and (pointer: fine) {
	.g495l-series-card:hover { border-color: #b9c4d4; }
	.g495l-series-card:hover .g495l-series-t { text-decoration: underline; text-underline-offset: 3px; }
}

/* ── 3. Dark closing ── */
.g495l-close { padding: 52px 0 16px; color: #e8eef5; }
.g495l-close-h {
	margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 48px; line-height: .92;
	text-transform: uppercase; color: #e8eef5;
}
.g495l-close-p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: #94a7be; }
.g495l-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
html body .g495l a.g495l-btn:not(#avs-raised):not(#avs-r2):not(#g495) {
	display: flex; justify-content: center; align-items: center; text-decoration: none; padding: 0 16px;
	--avsb-h: 48px; --avsb-font: 600 15px/1.2 'DM Sans', sans-serif; --avsb-ls: 0; --avsb-case: none;
}

/* ── Desktop ── */
@media (min-width: 1024px) {
	.g495l-in { padding: 0 24px; }
	.g495l-head { padding: 80px 0 120px; }
	.g495l-eyebrow { font-size: 12px; letter-spacing: .2em; }
	.g495l-title { margin-top: 18px; font-size: 64px; line-height: 1.05; letter-spacing: -.02em; }
	.g495l-dek { margin-top: 22px; font-size: 21px; }
	.g495l-meta { margin-top: 26px; font-size: 12px; letter-spacing: .16em; }
	.g495l-sheet { margin-top: -40px; padding: 72px 24px 88px; border-radius: 40px 40px 0 0; }
	.g495l-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); column-gap: 96px; justify-content: center; align-items: start; }
	/* sticky; a long list scrolls inside itself so its last items stay reachable */
	.g495l-toc {
		display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto;
		scrollbar-width: thin; scrollbar-color: #dde3ec transparent; padding-right: 6px;
	}
	.g495l-toc-h { margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #5b6f8c; }
	.g495l-toc-list { list-style: none; margin: 0; padding: 0; }
	.g495l-toc-list a {
		display: block; padding: 7px 0 7px 14px; border-left: 2px solid #dde3ec; font-size: 14px; line-height: 1.4;
		color: #3d5170; text-decoration: none;
	}
	.g495l-toc-list a:hover { color: #0c1a30; }
	.g495l-toc-list a.is-current { border-left-color: #e8a020; color: #0c1a30; font-weight: 600; }
	.g495l-toc-list a:focus-visible { outline: 2px solid #0c1a30; outline-offset: 2px; }
	body.g495-light .g495l-toc-m { display: none; }
	body.g495-light .g495l-body p,
	body.g495-light .g495l-body li { font-size: 19px; line-height: 1.65; }
	body.g495-light .g495l-body p.g495l-lead { font-size: 23px; line-height: 1.5; }
	body.g495-light .g495l-body h2,
	body.g495-light.g495-h2-sentence .g495l-body h2 { margin-top: 48px; font-size: 32px; letter-spacing: -.015em; }
	body.g495-light .g495l-body h3 { font-size: 21px; }
	body.g495-light .g495l-body .guide-table-scroll { border-radius: 18px; }
	body.g495-light .g495l-body .avi-quick-answer,
	body.g495-light .g495l-body blockquote,
	body.g495-light .g495l-body .g495-callout,
	body.g495-light .g495l-body .guide-disclaimer { padding: 28px 30px !important; border-radius: 18px !important; }
	body.g495-light .g495l-body .avi-quick-answer p, body.g495-light .g495l-body .avi-quick-answer li,
	body.g495-light .g495l-body blockquote p { font-size: 19px !important; }
	.g495l-series-h { font-size: 32px; }
	.g495l-close { padding: 80px 0 24px; }
	.g495l-close-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
	.g495l-close-h { font-size: 72px; line-height: .9; }
	.g495l-close-p { margin-top: 14px; font-size: 18px; }
	.g495l-btns { display: flex; margin-top: 0; flex: 0 0 auto; }
	html body .g495l a.g495l-btn:not(#avs-raised):not(#avs-r2):not(#g495) { --avsb-h: 52px; padding: 0 28px; --avsb-font: 600 16px/1.2 'DM Sans', sans-serif; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
	.g495l-in { padding: 0 24px; }
	.g495l-sheet { padding: 48px 24px 64px; }
	.g495l-grid { max-width: 720px; }
	.g495l-title { font-size: 48px; }
}

/* ══ #548 (owner 2026-11-04): no table scrolls sideways. Markup classes come from avi_g495_light_tables(). ══ */
body.g495-light .g495l-body th,
body.g495-light .g495l-body .guide-table-scroll table th { white-space: normal; line-height: 1.4; vertical-align: bottom; }
body.g495-light .g495l-body table { table-layout: auto; width: 100%; }
body.g495-light .g495l-body td.g495l-c1, body.g495-light .g495l-body th.g495l-c1 { white-space: normal; }
body.g495-light .g495l-body td.g495l-nw { white-space: nowrap; }
body.g495-light .g495l-body tr.g495l-total td { color: #0c1a30; font-weight: 700; }

/* Phones: a table with 3+ columns becomes one white card per row (roles in the markup keep the table semantics). */
@media (max-width: 767.98px) {
	body.g495-light .g495l-body .g495l-wide { overflow: visible; background: none; border: 0; border-radius: 0; }
	body.g495-light .g495l-body .g495l-wide table,
	body.g495-light .g495l-body .g495l-wide tbody,
	body.g495-light .g495l-body .g495l-wide tr,
	body.g495-light .g495l-body .g495l-wide td,
	body.g495-light .g495l-body .g495l-wide tbody th { display: block; width: auto; }
	body.g495-light .g495l-body .g495l-wide caption { display: block; padding: 0 0 8px; }
	body.g495-light .g495l-body .g495l-wide thead {
		position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
	body.g495-light .g495l-body .g495l-wide tbody { display: flex; flex-direction: column; gap: 10px; }
	body.g495-light .g495l-body .g495l-wide tr {
		background: #ffffff; border: 1px solid #dde3ec; border-radius: 16px; padding: 14px 16px;
	}
	body.g495-light .g495l-body .g495l-wide td,
	body.g495-light .g495l-body .g495l-wide .guide-table-scroll table td,
	body.g495-light .g495l-body .g495l-wide tbody th {
		display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border: 0;
		font-size: 16px; line-height: 1.45; text-align: right; color: #3d5170;
	}
	body.g495-light .g495l-body .g495l-wide td::before,
	body.g495-light .g495l-body .g495l-wide tbody th::before {
		content: attr(data-label); flex: 0 0 auto; max-width: 52%; text-align: left; font-family: 'JetBrains Mono', monospace;
		font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #5b6f8c; padding-top: 2px;
	}
	body.g495-light .g495l-body .g495l-wide td.g495l-c1,
	body.g495-light .g495l-body .g495l-wide th.g495l-c1 {
		display: block; padding: 0 0 6px; margin-bottom: 4px; border-bottom: 1px solid #e8edf3; text-align: left;
		font-size: 17px; font-weight: 700; color: #0c1a30;
	}
	body.g495-light .g495l-body .g495l-wide td.g495l-c1::before,
	body.g495-light .g495l-body .g495l-wide th.g495l-c1::before { content: none; }
	body.g495-light .g495l-body .g495l-wide td.g495l-empty { display: none; }
	body.g495-light .g495l-body .g495l-wide td.g495l-nw { white-space: nowrap; }
	body.g495-light .g495l-body .g495l-wide tr.g495l-total { background: #e9eef5; border-color: #e9eef5; }
	body.g495-light .g495l-body .g495l-wide tr.g495l-total td { color: #0c1a30; font-weight: 700; }
	body.g495-light .g495l-body .g495l-wide tr.g495l-total td::before { color: #53667f; }
}

/* Desktop: a 3+ column table runs past the 720 px text column to the right (up to 960 px, as far as the window allows).
   From 1104 px the grid is its full 1056 px, so the room right of the article is 50vw + 168 px. */
@media (min-width: 1104px) {
	body.g495-light .g495l-body .g495l-wide { width: max(100%, min(960px, calc(50vw + 168px))); max-width: none; }
}
/* 768–1103 px (tables keep the text-column width): 5+ column tables use tighter cells and let money ranges wrap. */
@media (min-width: 768px) and (max-width: 1103.98px) {
	body.g495-light .g495l-body .g495l-wide[data-cols="5"] :is(td, th),
	body.g495-light .g495l-body .g495l-wide[data-cols="6"] :is(td, th),
	body.g495-light .g495l-body .g495l-wide[data-cols="7"] :is(td, th) { padding: 12px 10px; font-size: 15px; }
	body.g495-light .g495l-body .g495l-wide[data-cols="6"] td.g495l-nw,
	body.g495-light .g495l-body .g495l-wide[data-cols="7"] td.g495l-nw { white-space: normal; }
}

/* ══ #549 roll-out to every guide: sources line, fact pills under the dek, one-button closings ══ */
.g495l-src {
	margin: 4px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
	color: #94a7be; line-height: 1.6;
}
.g495l-facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g495l-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;
}
.g495l-btns--one { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
	.g495l-facts { margin-top: 24px; }
	.g495l-src { font-size: 12px; }
}

/* #549 check-pass fixes: dark-layout text colours that leaked into the light boxes, career-pay source labels */
body.g495-light .g495l-body :is(.g495-callout, .guide-disclaimer, blockquote, .avi-quick-answer) strong,
body.g495-light .g495l-body > div[style*="border-top"] strong { color: #0c1a30 !important; }
body.g495-light .g495l-body > div[style*="border-top"] p { color: #3d5170 !important; font-size: 15px !important; }
body.g495-light .g495l-body .avi-cp-lab {
	white-space: normal; color: #8a5600; background: #f6efe3; font-size: 12px; letter-spacing: 0; /* 5.5:1 */
}
