/* Marketing and guide pages (content/site and the hand-built marketing pages). Loaded after app.css. */
.guide-hero { background: var(--cream); padding-block: 1.75rem 1.5rem; }
.guide-hero h1 { max-width: 24ch; margin-bottom: .4rem; }
.guide-hero.is-legal h1 { max-width: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: .5rem; color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink-soft); }
.crumbs a { display: inline-block; padding-block: .15rem; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.guide-grid { display: grid; gap: 2rem; padding-block: 2rem 3rem; }
.guide-grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .guide-grid { grid-template-columns: minmax(0, 46rem) 18rem; justify-content: space-between; column-gap: 3rem; padding-block: 2.5rem 4rem; }
  .guide-grid.no-aside { grid-template-columns: minmax(0, 46rem); }
  .guide-photo-wrap { grid-column: 1; }
  .guide-aside { grid-column: 2; grid-row: 1 / span 2; }
  .guide-aside .aside-card { position: sticky; top: 1.25rem; }
}
.guide-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e8e0cf; }
.guide-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* article text */
.guide-body { font-size: 1.0625rem; }
.guide-body > p:first-child { font-size: 1.1875rem; color: var(--ink); }
.guide-body h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin: 2.25rem 0 .6rem; scroll-margin-top: 1rem; }
.guide-body h3 { font-size: 1.125rem; margin: 1.5rem 0 .4rem; }
.guide-body ul, .guide-body ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.guide-body li { margin-bottom: .4rem; }
.guide-body li::marker { color: var(--navy); font-weight: 700; }
.guide-body a { font-weight: 500; }
.guide-body strong { font-weight: 700; }
.guide-table { margin: 1.25rem 0 1.5rem; }
main .guide-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
main .guide-table th, main .guide-table td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
main .guide-table thead :is(th, td) { background: var(--navy); color: #fff; font-weight: 600; }
main .guide-table tbody th { font-weight: 600; background: var(--cream-2); color: var(--ink); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
main .guide-table .num { white-space: nowrap; text-align: left; }
@media (max-width: 600px) { .guide-table table { font-size: .875rem; } .guide-table th, .guide-table td { padding: .55rem .6rem; } }

/* callouts */
.callout { border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; background: var(--cream); border-left: 5px solid var(--navy); }
.callout > :last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: .4rem; }
.callout-takeaways { background: #fff; border: 2px solid var(--navy); border-left-width: 6px; }
.callout-tip { background: var(--ok-bg); border-left-color: var(--ok); }
.callout-warn { background: var(--amber-bg); border-left-color: var(--amber); }

/* FAQ */
.faq-block { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.faq-block .qa { border-bottom: 1px solid var(--line-2); padding-block: .4rem .8rem; }
.faq-block .qa h3 { margin-top: 1rem; }
.faq-block .qa p:last-child { margin-bottom: 0; }

/* the course box beside or inside a guide */
.aside-card { border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.25rem; background: #fff; box-shadow: var(--shadow); }
.aside-card p { margin-bottom: .6rem; }
.aside-kicker { display: flex; gap: .5rem; align-items: flex-start; font-weight: 700; font-size: 1.0625rem; }
.aside-price { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.aside-kicker .icon { margin-top: calc((1lh - 1.5rem) / 2); }
.aside-card .aside-price { margin-bottom: .9rem; }
.aside-both .aside-course + .aside-course { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.aside-both .aside-price { margin-bottom: .75rem; }
.aside-price span { display: block; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.aside-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; font-size: .9375rem; }
.aside-list li { display: flex; gap: .45rem; align-items: flex-start; }
.aside-list .icon { margin-top: .2rem; color: var(--ok); }
.inline-cta { margin: 2rem 0; max-width: 30rem; }
@media (min-width: 1000px) { .guide-body .inline-cta { display: none; } }

/* read next */
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .related-list { grid-template-columns: repeat(3, 1fr); } }
.related-list a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.related-list a:hover { border-color: var(--navy); }
.rl-title { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rl-desc { font-size: .9375rem; color: var(--ink-soft); }

/* visuals */
.viz { margin: 1.75rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-2); }
.viz-title { font-weight: 700; margin-bottom: 1rem; font-size: 1.0625rem; }
.viz figcaption { margin-top: 1rem; font-size: .9375rem; color: var(--ink-soft); }
/* range chart */
.rc { display: grid; gap: 1.75rem; }
.rc-label { font-weight: 700; margin: 0 0 .25rem; }
.rc-track { position: relative; height: 4.6rem; }
.rc-bar { position: absolute; left: 0; right: 0; top: 2rem; height: .9rem; border-radius: 6px; background: #c9d3e3; }
.rc-mid, .rc-ours { position: absolute; width: 0; border-left: 3px solid var(--ink-soft); }
.rc-mid { top: 1.35rem; height: 1.6rem; }
.rc-ours { top: 2rem; height: 1.6rem; border-left: 4px solid var(--navy); }
.rc-mid > span, .rc-ours > span { position: absolute; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.rc-mid > span { bottom: 1.6rem; color: var(--ink-soft); }
.rc-ours > span { top: 1.6rem; color: var(--navy); font-weight: 700; background: var(--saffron); padding: 0 .4rem; border-radius: 4px; }
.pos-start > span { left: -3px; } .pos-centre > span { left: 0; transform: translateX(-50%); } .pos-end > span { right: -1px; }
.rc-ends { display: flex; justify-content: space-between; margin: 0; font-size: .875rem; color: var(--ink-soft); }
/* timeline */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { display: grid; grid-template-columns: 4.6rem 1.3rem 1fr; column-gap: .7rem; padding-bottom: 1.2rem; }
.tl-when { font-size: .875rem; font-weight: 700; color: var(--ink-soft); text-align: right; line-height: 1.3; padding-top: .15rem; }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 50%; top: .25rem; width: 1rem; height: 1rem; transform: translateX(-50%); border-radius: 50%; background: #fff; border: 3px solid var(--navy); z-index: 1; }
.tl-dot::after { content: ""; position: absolute; left: 50%; top: .5rem; bottom: -1.45rem; width: 3px; transform: translateX(-50%); background: var(--line); }
.tl li:last-child .tl-dot::after { display: none; }
.tl li.tl-accent .tl-dot::before { background: var(--saffron); }
.tl-what { font-weight: 700; margin: 0 0 .2rem; }
.tl-detail { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
/* decision */
.dd-q { display: inline-block; margin: 0 0 1rem; padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font-weight: 700; }
.dd-branches { display: grid; gap: 1rem; }
@media (min-width: 700px) { .dd-branches { grid-template-columns: repeat(3, 1fr); } }
.dd-branch { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.dd-a { margin: 0; font-weight: 600; font-size: .9375rem; }
.dd-arrow { display: block; width: 3px; height: 1.4rem; background: var(--navy); margin: .5rem 0 .55rem .6rem; position: relative; }
.dd-arrow::after { content: ""; position: absolute; left: -5px; bottom: -6px; border: 6.5px solid transparent; border-top-color: var(--navy); border-bottom: 0; }
.dd-out { margin: 0 0 .4rem; font-weight: 700; font-size: 1.0625rem; padding: .35rem .6rem; background: var(--saffron); border-radius: var(--radius-sm); align-self: flex-start; }
.dd-out a { color: var(--navy); }
.dd-note { margin: 0; font-size: .875rem; color: var(--ink-soft); }
/* flow */
.fl { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; counter-reset: fl; }
@media (min-width: 760px) { .fl { grid-template-columns: repeat(3, 1fr); } }
.fl li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem .9rem 3.2rem; }
.fl-n { position: absolute; left: .9rem; top: .85rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .875rem; }
.fl-label { margin: 0; font-weight: 700; }
.fl-meta { margin: .15rem 0 0; font-size: .875rem; color: var(--ink-soft); }
/* thermometer */
.th { list-style: none; padding: 0; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.th li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .75rem; padding: .6rem .9rem; background: #fff; border-left: 8px solid; font-size: .9375rem; }
.th .th-zone-head { display: block; font-weight: 700; font-size: .8125rem; text-transform: none; padding-block: .35rem; }
.th-hot { border-left-color: #b0412e; } .th-zone-head.th-hot { background: #fbe9e6; color: var(--bad); }
.th-danger { border-left-color: var(--saffron); } .th-zone-head.th-danger { background: var(--amber-bg); color: var(--amber); }
.th-cold { border-left-color: #2a6fb0; } .th-zone-head.th-cold { background: #e4eef8; color: #1d4f80; }
/* chain */
.ch-tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.ch-head { margin: 0 0 .6rem; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.ch-boxes { display: grid; gap: .75rem; }
@media (min-width: 700px) { .ch-boxes { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.ch-box { border-left: 4px solid var(--navy); padding-left: .75rem; }
.ch-box p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.ch-box .ch-title { color: var(--ink); font-weight: 700; margin-bottom: .15rem; }
.ch-arrow { display: block; width: 3px; height: 1.5rem; margin: .5rem auto .9rem; background: var(--navy); position: relative; }
.ch-arrow::after { content: ""; position: absolute; left: -5px; bottom: -6px; border: 6.5px solid transparent; border-top-color: var(--navy); border-bottom: 0; }

/* practice quiz */
.pq { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.pq-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0; background: #fff; }
.pq-q legend { font-weight: 700; padding: 0; margin-bottom: .6rem; float: left; width: 100%; }
.pq-q legend + * { clear: both; }
.pq-n { display: block; font-size: .8125rem; color: var(--ink-soft); font-weight: 600; margin-bottom: .2rem; }
.pq-opt { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .5rem .6rem; border-radius: var(--radius-sm); cursor: pointer; }
.pq-opt:hover { background: var(--cream-2); }
.pq-opt input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.pq-opt.is-right { background: var(--ok-bg); }
.pq-opt.is-wrong { background: var(--bad-bg); }
.pq-why { margin-top: .5rem; font-size: .9375rem; }
.pq-why summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.pq-why p { margin: .4rem 0 0; }
.pq-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.pq-result { margin: 0; font-weight: 700; font-size: 1.125rem; }

/* cookie notice */
.cookie-note { position: fixed; z-index: 50; left: .75rem; right: .75rem; bottom: .75rem; max-width: 30rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgb(12 34 64 / .18); padding: .9rem 1rem; font-size: .9375rem; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0 0 .6rem; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions .btn { min-height: 40px; padding: .4rem 1rem; }
.cookie-manage { margin-top: .75rem; display: grid; gap: .6rem; }
.cookie-manage label { display: flex; gap: .5rem; align-items: flex-start; }
.cookie-manage input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--navy); }
@media (min-width: 700px) { .cookie-note { left: 1.25rem; bottom: 1.25rem; } }

/* hand-built marketing pages */
.page-intro { max-width: 46rem; }
.wrap.prose-block { max-width: none; }
.wrap.prose-block > * { max-width: 46rem; }
.prose-block h2 { margin-top: 2rem; }
main .unit-table td.num, main .unit-table th.num { text-align: right; }
.person { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 700px) { .person { grid-template-columns: 11rem 1fr; } }
.person img { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; }
.person-mark { width: 11rem; height: 11rem; border-radius: 50%; background: var(--navy); color: var(--saffron); display: grid; place-items: center; font-weight: 700; font-size: 2.5rem; }
.person :is(h2, h3) { margin-bottom: .2rem; }
.person .role { color: var(--ink-soft); font-weight: 600; margin-bottom: .6rem; }
.compare-wrap { margin-top: 1rem; }
.not-found .nf-links { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .4rem; }
.not-found .nf-links a { display: inline-block; padding-block: .35rem; font-weight: 600; }
.ex-cert { margin: 0; }
.ex-cert img { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.kpi-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 1.5rem 0; }
@media (min-width: 800px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi-row li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.kpi-row strong { display: block; font-size: 1.75rem; line-height: 1.1; }
.kpi-row span { font-size: .875rem; color: var(--ink-soft); }
.lead-sm { font-size: 1.125rem; color: var(--ink-soft); }
.quote-card { margin: 0; padding: 1.75rem; background: var(--navy); color: #fff; border-radius: var(--radius); }
.quote-card p { font-size: 1.375rem; font-weight: 600; line-height: 1.35; margin-bottom: 1rem; }
.quote-card footer { color: var(--saffron); font-weight: 600; font-size: .9375rem; }
.people { display: grid; gap: 2.5rem; margin: 1rem 0 2rem; }
.people .person :is(h2, h3) { margin-top: 0; font-size: 1.375rem; }
.consent-box { background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1rem 0 1.5rem; }
.consent-box p { font-weight: 700; }
/* certificate anatomy */
.ca { display: grid; gap: 1rem; }
@media (min-width: 900px) { .viz-anatomy .ca { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.ca-img { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.ca-img img { display: block; width: 100%; height: auto; }
.ca-pin { position: absolute; transform: translate(-50%, -50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--saffron); color: var(--navy); border: 2px solid var(--navy); display: grid; place-items: center; font-size: .8125rem; font-weight: 700; }
.ca-key { margin: 0; padding-left: 1.4rem; font-size: .9375rem; display: grid; gap: .35rem; }
.ca-key strong { display: block; }
/* bars */
.bars + .bars { margin-top: 1.1rem; }
.bars-name { font-weight: 700; margin: 0 0 .4rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 3.2rem; gap: .6rem; align-items: center; margin-bottom: .35rem; font-size: .875rem; }
.bar-track { height: 1rem; background: #e8e2d4; border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.bar-val { font-weight: 700; text-align: right; }
/* tables read as stacked cards on phones (row heading first, then each cell with its column label) */
.guide-table table.data th { white-space: normal; }
@media (max-width: 640px) {
  .guide-table:not(.unit-table) { border: 0; background: transparent; overflow: visible; }
  .guide-table:not(.unit-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide-table:not(.unit-table) table, .guide-table:not(.unit-table) tbody, .guide-table:not(.unit-table) tr { display: block; width: 100%; }
  .guide-table:not(.unit-table) tr { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .75rem; overflow: hidden; }
  main .guide-table:not(.unit-table) tbody th { display: block; background: var(--navy); color: #fff; border: 0; }
  .guide-table:not(.unit-table) tbody th a { color: #fff; }
  .guide-table:not(.unit-table) td { display: grid; grid-template-columns: minmax(5.5rem, 30%) 1fr; gap: .6rem; border-bottom: 1px solid var(--line-2); white-space: normal; }
  .guide-table:not(.unit-table) td::before { content: attr(data-label); font-weight: 600; color: var(--ink-soft); font-size: .8125rem; }
  .guide-table:not(.unit-table) td:empty { display: none; }
  .guide-table:not(.unit-table) tr > :last-child { border-bottom: 0; }
}
.unit-table th { white-space: normal; }
@media (max-width: 640px) { .unit-table .num, .unit-table th { white-space: normal; } .unit-table table { font-size: .875rem; } .unit-table th, .unit-table td { padding: .5rem .45rem; } }
.guide-meta span + span::before { content: "\00B7"; margin-right: .5rem; }
.rc-mid { border-left-style: dashed; }
.rc-ours > span { margin-top: .1rem; }
.rc-ends { margin-top: .5rem; }
@media (max-width: 640px) {
  .guide-table:not(.unit-table) tr:last-child > *:not(:last-child) { border-bottom: 1px solid var(--line-2); }
  .guide-table:not(.unit-table) td::before { font-size: .875rem; color: var(--ink); }
}
@media (max-width: 640px) { .guide-table:not(.unit-table) td.num { text-align: left; white-space: normal; } }
.dd { position: relative; }
.dd-q { position: relative; }
.dd-branches { position: relative; }
.dd-branches::before { content: ""; position: absolute; width: 3px; background: var(--navy); }
/* phones: the question, then the answers as full-width cards (a side rail left the cards off-centre) */
@media (max-width: 699px) { .dd-q { display: block; margin-bottom: .75rem; } .dd-branches { gap: .75rem; } .dd-branches::before { display: none; } }
@media (min-width: 700px) { .dd { display: flex; flex-direction: column; } .dd-q { align-self: center; margin-bottom: 0; } .dd-branches { margin-top: 1.9rem; } .dd-branches::before { top: -1.9rem; left: 50%; height: .95rem; transform: translateX(-50%); } .dd-branches::after { content: ""; position: absolute; top: -.95rem; left: calc((100% - 2rem) / 6); right: calc((100% - 2rem) / 6); height: 3px; background: var(--navy); } .dd-branch { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; } .dd-branch > * { justify-self: start; } .dd-branch::before { content: ""; position: absolute; top: -.95rem; left: 50%; width: 3px; height: .95rem; transform: translateX(-50%); background: var(--navy); } }
.dd-arrow { width: 3px; height: 1.6rem; }
.dd-out { display: inline-block; align-self: flex-start; max-width: 100%; }
.dd-out a { text-decoration: none; }
.dd-out a::after { content: " \2192"; }
.dd-note { color: var(--ink-soft); font-size: .9375rem; }
@media (min-width: 700px) { .viz-chain .ch-boxes.n4, .viz-chain .ch-boxes.n2 { grid-template-columns: repeat(2, 1fr); } .viz-chain .ch-boxes.n3 { grid-template-columns: repeat(3, 1fr); } .viz-chain .ch-boxes.n1 { grid-template-columns: 1fr; } }
.pq-q { border-color: #cdbf9f; }
.pq-why summary { list-style: none; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; gap: .4rem; }
.pq-why summary::-webkit-details-marker { display: none; }
.pq-why summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 2px solid var(--navy); border-radius: 50%; font-size: .875rem; line-height: 1; text-decoration: none; }
.pq-why[open] summary::before { content: "\2212"; }
.pq-foot { margin-top: .75rem; }
.th { border: 0; }
.th li.th-row { border-left: 8px solid var(--navy); }
.th li.th-hot { border-left-color: #b0412e; } .th li.th-danger { border-left-color: var(--saffron); } .th li.th-cold { border-left-color: #2a6fb0; }
.th li.th-zone-head { border-left: 0; }
@media (max-width: 520px) { .guide-meta span + span::before { content: none; } .guide-meta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .unit-table th:nth-child(3), .unit-table td:nth-child(3) { display: none; } }
.guide-meta span:first-child { display: inline-flex; align-items: center; gap: .35rem; }

/* course page: the unit table's total row, and the course code line under the hero buttons */
.unit-table .total-row > * { font-weight: 700; border-top: 2px solid var(--navy); }
.hero .code-line { margin-top: 1rem; margin-bottom: 0; }
