/* ==========================================================================
   Settlewell guides (2026-11-18): the shared pieces of the guides hub, the
   pathway pages and the guides. Loaded after apple.css; reuses its tokens
   (--ap-tile, --ap-link, --ap-reading, --ap-radius-tile, --ap-fill ...).
   One accent (the brand blue), tiles without borders or shadows, a reading
   measure of about 68 characters, light and dark designed together.
   Motion: a short rise on scroll and a press on cards, nothing loops,
   everything at rest with Reduce Motion.
   ========================================================================== */

:root {
  --gd-measure: 68ch;
  --gd-r: var(--ap-radius-tile, 28px);
  --gd-r-sm: var(--ap-radius-tile-sm, 20px);
  --gd-ease: cubic-bezier(.2, .8, .2, 1);
  --gd-gap: clamp(2.75rem, 5.5vw, 4.5rem);
  --gd-photo-a: #dbe6f6;
  --gd-photo-b: #bccdea;
  --gd-photo-c: #9db6e0;
  --gd-photo-glow1: rgba(91, 156, 245, .55);
  --gd-photo-glow2: rgba(96, 212, 232, .35);
  --gd-photo-topo: .38;
  --gd-ok: #2c6e49;
}
html[data-theme="dark"] {
  --gd-photo-a: #1c2c48;
  --gd-photo-b: #15223a;
  --gd-photo-c: #0f1a2e;
  --gd-photo-glow1: rgba(91, 156, 245, .32);
  --gd-photo-glow2: rgba(96, 212, 232, .16);
  --gd-photo-topo: .16;
  --gd-ok: #7fd1a1;
}

/* ordinary round corners, the website's rule (squircles are for the app only) */
.gd-sq { border-radius: var(--gd-r); }
.gd-sq-sm { border-radius: var(--gd-r-sm); }

/* ---------- Hero: the site's dark opening band, with breadcrumb and dates ---------- */
.gd-hero .ca-glow span { animation: none !important; }
.gd-hero { padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.gd-crumbs { margin: 0 0 1.4rem; }
.gd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; list-style: none; margin: 0; padding: 0; font-size: .9375rem; letter-spacing: -.01em; }
.gd-crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: #a7b0c4; }
.gd-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: .1rem; }
.gd-crumbs a { color: #c9d3e4; text-decoration: none; border-radius: 6px; }
.gd-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gd-crumbs [aria-current] { color: #eef1f6; }
.gd-hero .sp-title { max-width: 18ch; text-wrap: balance; }
.gd-hero .sp-sub { max-width: 36rem; color: #b9c3d6; text-wrap: pretty; }
.gd-meta { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.gd-meta li { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: 0 .85rem; border-radius: 980px; background: rgba(255, 255, 255, .07); color: #d5dceb; font-size: .875rem; font-weight: 500; letter-spacing: -.008em; }
.gd-meta svg { color: #7bb3ff; flex: none; }
.gd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.gd-hero-grid .gd-photo { aspect-ratio: 5 / 4; }
@media (max-width: 899px) {
  .gd-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-hero-grid .gd-photo { aspect-ratio: 16 / 10; }
}

/* ---------- Photo slots: fixed ratio, the face stays in frame ---------- */
/* A slot keeps its shape before a photo exists: a soft brand gradient with the site's contour lines. When the
   approved photo arrives it goes in as <img width height alt> and takes object-position from --gd-pos. */
.gd-photo { position: relative; margin: 0; overflow: hidden; isolation: isolate; aspect-ratio: var(--gd-ratio, 4 / 3);
  background:
    radial-gradient(85% 75% at 22% 18%, var(--gd-photo-glow1), transparent 62%),
    radial-gradient(70% 70% at 88% 92%, var(--gd-photo-glow2), transparent 60%),
    linear-gradient(155deg, var(--gd-photo-a), var(--gd-photo-b) 52%, var(--gd-photo-c)); }
.gd-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: url("topo.svg") center / cover no-repeat; opacity: var(--gd-photo-topo); pointer-events: none; }
.tone-dark .gd-photo { --gd-photo-a: #233759; --gd-photo-b: #1a2a47; --gd-photo-c: #121e35; --gd-photo-glow1: rgba(91, 156, 245, .42); --gd-photo-glow2: rgba(96, 212, 232, .2); --gd-photo-topo: .22; }
.gd-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: var(--gd-pos, 50% 35%); }
html[data-theme="dark"] .gd-photo img { filter: brightness(.86); }

/* ---------- Page body and the reading layout ---------- */
.gd-body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); }
.gd-layout { display: grid; grid-template-columns: 200px minmax(0, var(--gd-measure)); justify-content: center; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.gd-layout > .gd-toc { grid-row: 1 / span 2; }
.gd-article { min-width: 0; }
.gd-article > section { margin-top: var(--gd-gap); scroll-margin-top: calc(var(--nav-height, 72px) + 1.75rem); }
.gd-article h2, .gd-wide h2 { font-family: var(--ap-font-display); font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem); font-weight: 600; line-height: 1.12; letter-spacing: -.026em; color: var(--color-text); margin: 0 0 1rem; text-wrap: balance; }
.gd-article h3 { font-family: var(--ap-font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.018em; color: var(--color-text); margin: 2rem 0 .6rem; }
.gd-article p, .gd-article li, .gd-wide p { font-size: 1.0625rem; line-height: 1.6; letter-spacing: -.016em; color: var(--ap-reading); }
.gd-article p { margin: 0 0 1rem; }
.gd-article p.gd-lede { font-size: clamp(1.125rem, 1.05rem + .25vw, 1.25rem); line-height: 1.5; color: var(--color-text-muted); }
.gd-article ul.gd-list { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.gd-article ul.gd-list li { margin: 0 0 .5rem; }
.gd-article ul.gd-list li::marker { color: var(--ap-link); }
.gd-article strong, .gd-wide strong { color: var(--color-text); font-weight: 600; }
.gd-article a:not([class]), .gd-wide p a:not([class]), .gd-cite a { color: var(--ap-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ap-link) 40%, transparent); }
.gd-article a:not([class]):hover, .gd-cite a:hover { text-decoration-color: currentColor; }
:is(.gd-article, .gd-wide, .gd-alert) a:focus-visible, .gd-card:focus-visible, .gd-toc a:focus-visible { outline: 3px solid color-mix(in srgb, var(--ap-link) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

/* wide sections (hub and pathway pages): one centred column, wider than the reading measure */
.gd-wide { max-width: 1080px; margin: 0 auto; }
.gd-wide > section { margin-top: var(--gd-gap); scroll-margin-top: calc(var(--nav-height, 72px) + 1.75rem); }
.gd-wide > section:first-child { margin-top: 0; }
.gd-sec-head { max-width: 46rem; margin: 0 0 1.6rem; }
.gd-sec-head p { margin: 0; color: var(--color-text-muted); font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); line-height: 1.5; }
.gd-narrow { max-width: var(--gd-measure); }

/* ---------- Contents: left column on computers, a disclosure on smaller screens ---------- */
.gd-toc { position: sticky; top: calc(var(--nav-height, 72px) + 1.5rem); max-height: calc(100vh - var(--nav-height, 72px) - 3rem); overflow: auto; padding-right: .25rem; }
.gd-toc p { font-size: .875rem; font-weight: 600; letter-spacing: -.008em; color: var(--color-text-muted); margin: 0 0 .75rem; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-border); }
.gd-toc a { display: block; padding: .4rem 0 .4rem .9rem; margin-left: -1px; border-left: 2px solid transparent; font-size: .9375rem; line-height: 1.35; letter-spacing: -.01em; color: var(--color-text-muted); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.gd-toc a:hover { color: var(--color-text); }
.gd-toc a.on { color: var(--color-text); border-left-color: var(--ap-link); font-weight: 600; }
.gd-mtoc { display: none; }
@media (max-width: 999px) {
  .gd-layout { grid-template-columns: minmax(0, var(--gd-measure)); gap: 0; }
  .gd-toc { display: none; }
  .gd-mtoc { display: block; margin: 1.75rem 0 0; background: var(--ap-tile); }
  .gd-mtoc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1.25rem; font-weight: 600; font-size: 1rem; letter-spacing: -.012em; color: var(--color-text); cursor: pointer; list-style: none; }
  .gd-mtoc summary::-webkit-details-marker { display: none; }
  .gd-mtoc summary svg { color: var(--color-text-muted); transition: transform .3s var(--gd-ease); }
  .gd-mtoc[open] summary svg { transform: rotate(180deg); }
  .gd-mtoc ol { list-style: none; margin: 0; padding: 0 1.25rem .6rem; }
  .gd-mtoc a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--color-text-muted); text-decoration: none; border-top: 1px solid var(--ap-hairline); }
}

/* ---------- The short answer: the passage people and assistants quote ---------- */
.gd-answer { background: var(--ap-tile); padding: clamp(1.5rem, 3.2vw, 2.4rem); }
.gd-answer-label { display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem !important; font-size: .9375rem !important; font-weight: 600; letter-spacing: -.01em; color: var(--ap-link) !important; }
.gd-answer-text { margin: 0 !important; font-size: clamp(1.1875rem, 1.08rem + .35vw, 1.375rem) !important; line-height: 1.5 !important; letter-spacing: -.018em !important; color: var(--color-text) !important; text-wrap: pretty; }
.gd-answer-text + .gd-answer-text { margin-top: .85rem !important; }
.gd-answer .gd-cite { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--ap-hairline); }

/* ---------- Source line: official page, linked, with its check date ---------- */
.gd-cite { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0; font-size: .9375rem !important; line-height: 1.5 !important; letter-spacing: -.01em; color: var(--color-text-muted) !important; }
.gd-cite svg { flex: none; margin-top: .2rem; color: var(--color-text-muted); }
.gd-cite .gd-date { white-space: nowrap; }
p.gd-cite { margin-bottom: 0; }
/* a source line straight after a box or a note keeps its breathing room (.gd-article p sets margin-top 0) */
.gd-article :is(.gd-note, .gd-table-wrap, .gd-checks, .gd-facts) + p.gd-cite { margin-top: 1rem; }

/* ---------- Who this is for / not for / when to speak to a licensed professional ---------- */
.gd-who { background: var(--ap-tile); padding: .4rem clamp(1.25rem, 3vw, 2rem); }
.gd-who-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .9rem; padding: 1.35rem 0; }
.gd-who-row + .gd-who-row { border-top: 1px solid var(--ap-hairline); }
.gd-who-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ap-fill); color: var(--ap-link); }
.gd-who-row:nth-child(2) .gd-who-ico { color: var(--color-text-muted); }
.gd-who h3 { margin: .2rem 0 .45rem !important; font-size: 1.0625rem !important; }
.gd-who ul { margin: 0; padding-left: 1.1rem; }
.gd-who li { margin: 0 0 .35rem; font-size: 1rem !important; line-height: 1.5 !important; }
.gd-who li::marker { color: var(--color-text-muted); }
.gd-who p { margin: 0; font-size: 1rem !important; line-height: 1.5 !important; }

/* ---------- Key facts: label and value rows on one shared grid ---------- */
.gd-facts { margin: 0; padding: .25rem clamp(1.25rem, 3vw, 1.75rem); background: var(--ap-tile); }
.gd-fact { display: grid; grid-template-columns: minmax(7.5rem, 11.5rem) minmax(0, 1fr); gap: 1.25rem; padding: 1rem 0; }
.gd-fact + .gd-fact { border-top: 1px solid var(--ap-hairline); }
.gd-fact dt { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: var(--color-text); }
.gd-fact dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.016em; color: var(--ap-reading); }
.gd-fact dd b { color: var(--color-text); font-weight: 600; }
@media (max-width: 599px) { .gd-fact { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

/* ---------- How IRCC counts hours: three worked examples ---------- */
.gd-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.gd-example { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.15rem 1.25rem; background: var(--ap-tile); }
.gd-example span { font-size: .875rem; font-weight: 600; letter-spacing: -.008em; color: var(--color-text-muted); }
.gd-example b { font-family: var(--ap-font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.018em; color: var(--color-text); }
.gd-example em { font-style: normal; font-size: .9375rem; color: var(--ap-link); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .gd-examples { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tables ---------- */
.gd-table-wrap { margin: 1.25rem 0 0; overflow-x: auto; background: var(--ap-tile); padding: .35rem clamp(1rem, 2.5vw, 1.5rem); }
.gd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gd-table caption { caption-side: top; text-align: left; padding: .9rem 0 .35rem; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; color: var(--color-text); }
.gd-table th, .gd-table td { text-align: left; padding: .8rem .75rem .8rem 0; font-size: 1rem; line-height: 1.45; letter-spacing: -.012em; vertical-align: top; }
.gd-table thead th { font-size: .875rem; font-weight: 600; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.gd-table tbody th { font-weight: 600; color: var(--color-text); }
.gd-table tbody td { color: var(--ap-reading); }
.gd-table tbody tr + tr :is(th, td) { border-top: 1px solid var(--ap-hairline); }

/* ---------- Checklist ---------- */
.gd-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0 0; }
.gd-checks > div { padding: 1.25rem 1.3rem 1.1rem; background: var(--ap-tile); }
.gd-checks h3 { margin: 0 0 .75rem !important; font-size: 1.0625rem !important; }
.gd-checks ul { list-style: none; margin: 0; padding: 0; }
.gd-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .6rem; margin: 0 0 .65rem; font-size: 1rem !important; line-height: 1.45 !important; }
.gd-checks li svg { margin-top: .12rem; color: var(--ap-link); }
.gd-checks li.gd-if svg { color: var(--color-text-muted); }
@media (max-width: 719px) { .gd-checks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps after the profile ---------- */
.gd-steps { list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: gd-step; }
.gd-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 1rem; padding: 0 0 1.5rem; counter-increment: gd-step; }
.gd-steps li::before { content: counter(gd-step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ap-fill); color: var(--color-text); font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.gd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 42px; bottom: 6px; width: 1px; background: var(--color-border); }
.gd-steps h3 { margin: .35rem 0 .3rem !important; font-size: 1.0625rem !important; }
.gd-steps p { margin: 0 !important; font-size: 1rem !important; line-height: 1.5 !important; }

/* ---------- Questions: the FAQ pattern (button + aria-expanded), as hairline rows ---------- */
.gd-faq { margin-top: .5rem; border-top: 1px solid var(--color-border); }
.gd-faq .faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; margin: 0; box-shadow: none; }
.gd-faq .faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 64px; padding: 1.1rem 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--ap-font-text); font-size: 1.125rem !important; font-weight: 600; line-height: 1.35 !important; letter-spacing: -.018em; color: var(--color-text); }
.gd-faq .faq-question svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--ap-fill); color: var(--color-text); transition: transform .35s var(--gd-ease), background-color .2s ease; }
.gd-faq .faq-item.open .faq-question svg { transform: rotate(45deg); background: var(--ap-fill-hover); }
.gd-faq .faq-answer { padding: 0; }
.gd-faq .faq-item.open .faq-answer { padding: 0 0 1.35rem; }
.gd-faq .faq-answer p { margin: 0 0 .75rem; padding: 0 2.75rem 0 0; font-size: 1.0625rem !important; line-height: 1.6 !important; color: var(--ap-reading) !important; }
.gd-faq .faq-answer p.gd-cite { margin: .25rem 0 0; font-size: .9375rem !important; color: var(--color-text-muted) !important; }
@media (max-width: 599px) { .gd-faq .faq-answer p { padding-right: 0; } .gd-faq .faq-question { font-size: 1.0625rem !important; } }

/* ---------- Cards: related guides and the hub grid ---------- */
.gd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.25rem); }
.gd-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--ap-tile); color: var(--color-text); text-decoration: none; transition: transform .12s var(--gd-ease), background-color .2s ease; }
.gd-card .gd-photo { --gd-ratio: 16 / 9; }
.gd-card-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.5rem 3.4rem; flex: 1; }
.gd-card-kind { font-size: .875rem; font-weight: 600; letter-spacing: -.008em; color: var(--ap-link); }
.gd-card-title { font-family: var(--ap-font-display); font-size: clamp(1.25rem, 1.12rem + .4vw, 1.5rem); font-weight: 600; line-height: 1.18; letter-spacing: -.022em; text-wrap: balance; }
.gd-card-desc { font-size: 1rem; line-height: 1.5; letter-spacing: -.012em; color: var(--color-text-muted); text-wrap: pretty; }
.gd-card-go { position: absolute; left: 1.5rem; bottom: 1.3rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; font-weight: 600; color: var(--ap-link); }
.gd-card-go svg { transition: transform .25s var(--gd-ease); }
.gd-card:hover .gd-card-go svg, .gd-card:focus-visible .gd-card-go svg { transform: translateX(4px); }
.gd-card:active { transform: scale(.985); }
.gd-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.gd-card--feature .gd-photo { --gd-ratio: auto; aspect-ratio: auto; min-height: 100%; }
.gd-card--feature .gd-card-body { justify-content: center; padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3rem) clamp(4rem, 6vw, 5rem); }
.gd-card--feature .gd-card-title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); }
.gd-card--feature .gd-card-desc { font-size: 1.0625rem; max-width: 30rem; }
.gd-card--feature .gd-card-go { left: clamp(1.5rem, 3.5vw, 3rem); bottom: clamp(1.5rem, 3vw, 2.4rem); }
/* no lone half-width card: with three plain cards the first (the pathway, one level up) takes the full row;
   a plain card that follows a feature card as the only other card takes the full row too */
.gd-cards > .gd-card:not(.gd-card--feature):first-child:nth-last-child(3),
.gd-cards > .gd-card--feature + .gd-card:not(.gd-card--feature):nth-child(2):last-child { grid-column: 1 / -1; }
@media (max-width: 799px) {
  .gd-cards { grid-template-columns: minmax(0, 1fr); }
  .gd-card--feature { grid-template-columns: minmax(0, 1fr); }
  .gd-card--feature .gd-photo { aspect-ratio: 16 / 9; min-height: 0; }
}
.gd-group + .gd-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.gd-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; }
.gd-group-head h3 { margin: 0; font-family: var(--ap-font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; color: var(--color-text); }
.gd-group-head span { font-size: .9375rem; color: var(--color-text-muted); }

/* ---------- Three points (how the guides are made) ---------- */
.gd-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.25rem); list-style: none; margin: 0; padding: 0; }
.gd-points li { padding: 1.5rem 1.5rem 1.6rem; background: var(--ap-tile); }
.gd-points .gd-who-ico { margin-bottom: 1rem; }
.gd-points h3 { margin: 0 0 .4rem; font-family: var(--ap-font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.018em; color: var(--color-text); }
.gd-points p { margin: 0; font-size: 1rem !important; line-height: 1.5 !important; color: var(--color-text-muted) !important; }
@media (max-width: 899px) { .gd-points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- What Settlewell does / does not do ---------- */
.gd-does { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.25rem); }
.gd-does > div { padding: clamp(1.4rem, 3vw, 2rem); background: var(--ap-tile); }
.gd-does h3 { margin: 0 0 1rem; font-family: var(--ap-font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--color-text); }
.gd-does ul { list-style: none; margin: 0; padding: 0; }
.gd-does li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .7rem; padding: .7rem 0; font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.016em; color: var(--ap-reading); }
.gd-does li + li { border-top: 1px solid var(--ap-hairline); }
.gd-does li b { display: block; color: var(--color-text); font-weight: 600; }
.gd-does li svg { margin-top: .15rem; color: var(--ap-link); }
.gd-does .gd-not li svg { color: var(--color-text-muted); }
@media (max-width: 799px) { .gd-does { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dated status line ---------- */
.gd-status { padding: clamp(1.4rem, 3vw, 2rem); background: var(--ap-tile); }
.gd-status-tag { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; margin: 0 0 1rem; padding: 0 .8rem; border-radius: 980px; background: var(--ap-fill); font-size: .875rem; font-weight: 600; letter-spacing: -.008em; color: var(--color-text); }
.gd-status-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-link); }
.gd-status p:not(.gd-cite) { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ap-reading); max-width: var(--gd-measure); }

/* ---------- Plans in two lines ---------- */
.gd-plans { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; padding: clamp(1.4rem, 3vw, 2rem); background: var(--ap-tile); }
.gd-plans p { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ap-reading); max-width: 44rem; }
.gd-plans p + p { margin-top: .35rem; }
.gd-textlink { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.014em; color: var(--ap-link); text-decoration: none; white-space: nowrap; }
.gd-textlink svg { transition: transform .25s var(--gd-ease); }
.gd-textlink:hover svg { transform: translateX(4px); }

/* ---------- Alert sign-up ---------- */
.gd-alert { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; padding: clamp(1.75rem, 4.5vw, 3.5rem);
  background: radial-gradient(70% 90% at 0% 0%, rgba(91, 156, 245, .16), transparent 60%), #0e1626; color: #eef1f6; }
.gd-alert h2 { font-family: var(--ap-font-display); font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem); font-weight: 600; line-height: 1.12; letter-spacing: -.026em; color: #fff; margin: 0 0 .85rem; text-wrap: balance; }
.gd-alert-intro p { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.55; color: #c3cad6; }
.gd-alert-intro p.gd-alert-small { font-size: .9375rem; color: #a7b0c4; }
.gd-form { display: grid; gap: 1.1rem; margin: 0; }
.gd-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.gd-form legend, .gd-form .gd-label { display: block; margin: 0 0 .55rem; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; color: #eef1f6; }
.gd-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 980px; background: rgba(255, 255, 255, .09); width: fit-content; max-width: 100%; }
.gd-seg label { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.05rem; border-radius: 980px; font-size: .9375rem; font-weight: 600; letter-spacing: -.012em; color: #c3cad6; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .12s var(--gd-ease); }
.gd-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gd-seg label:hover { background: rgba(255, 255, 255, .06); }
.gd-seg label:has(input:checked) { background: rgb(117, 173, 252); color: rgb(10, 26, 58); }
.gd-seg label:has(input:focus-visible) { outline: 3px solid rgba(123, 179, 255, .6); outline-offset: 2px; }
.gd-seg label:active { transform: scale(.97); }
.gd-input { display: block; width: 100%; min-height: 52px; padding: 0 1.1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 1.0625rem; letter-spacing: -.016em; }
.gd-input::placeholder { color: #8f99ae; }
.gd-input:focus { outline: none; border-color: rgba(123, 179, 255, .7); box-shadow: 0 0 0 3px rgba(91, 156, 245, .25); }
.gd-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .9375rem; line-height: 1.5; color: #c3cad6; cursor: pointer; }
.gd-consent input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.gd-consent input::after { content: ""; width: 6px; height: 11px; border-right: 2px solid rgb(10, 26, 58); border-bottom: 2px solid rgb(10, 26, 58); transform: translateY(-1px) rotate(45deg) scale(0); transition: transform .15s var(--gd-ease); }
.gd-consent input:checked { background: rgb(117, 173, 252); border-color: rgb(117, 173, 252); }
.gd-consent input:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.gd-consent input:focus-visible { outline: 3px solid rgba(123, 179, 255, .6); outline-offset: 2px; }
.gd-consent a { color: #9cc6ff; text-decoration: underline; text-underline-offset: 3px; }
.gd-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
html body .gd-submit .btn { min-height: 50px; padding: 0 1.5rem; }
html body .gd-submit .btn[disabled] { background: rgba(255, 255, 255, .12) !important; color: rgba(255, 255, 255, .6) !important; box-shadow: none !important; cursor: not-allowed; transform: none !important; pointer-events: none; }
@media (max-width: 899px) { .gd-alert { grid-template-columns: minmax(0, 1fr); } }

/* ---------- End note: information only, last reviewed ---------- */
.gd-endnote { margin-top: var(--gd-gap); padding-top: 1.4rem; border-top: 1px solid var(--color-border); display: grid; gap: .35rem; }
.gd-endnote p { margin: 0 !important; font-size: .9375rem !important; line-height: 1.5 !important; color: var(--color-text-muted) !important; }
.gd-endnote p b { color: var(--color-text); font-weight: 600; }

/* ---------- Motion: a short rise as sections arrive; press feedback on cards ---------- */
html.gd-motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--gd-ease), transform .6s var(--gd-ease); transition-delay: calc(var(--gd-i, 0) * 60ms); }
html.gd-motion [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.gd-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
  .gd-card, .gd-card-go svg, .gd-textlink svg, .gd-seg label, .gd-faq .faq-question svg, .gd-mtoc summary svg { transition: none; }
  .gd-card:active, .gd-seg label:active { transform: none; }
  .gd-card:hover .gd-card-go svg, .gd-textlink:hover svg { transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 599px) {
  .gd-hero .sp-title { font-size: clamp(2.1rem, 1.4rem + 4vw, 2.6rem); }
  .gd-meta li { min-height: 32px; font-size: .8125rem; }
  .gd-answer-text { font-size: 1.1875rem !important; }
  .gd-card-body { padding: 1.25rem 1.25rem 3.25rem; }
  .gd-card-go { left: 1.25rem; }
}
.gd-article p.gd-space { margin-top: 1.1rem; }

/* ---------- Wide pages: a heading column beside its content ---------- */
.gd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.gd-split > .gd-sec-head { margin: 0; position: sticky; top: calc(var(--nav-height, 72px) + 1.5rem); }
.gd-split > .gd-sec-head h2 { margin-bottom: .6rem; }
@media (max-width: 899px) { .gd-split { grid-template-columns: minmax(0, 1fr); } .gd-split > .gd-sec-head { position: static; } }
.gd-wide .gd-answer-text { max-width: var(--gd-measure); }
.gd-wide .gd-answer .gd-cite { max-width: none; }
.gd-note { display: flex; gap: .55rem; align-items: flex-start; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ap-hairline); font-size: .9375rem; line-height: 1.5; color: var(--color-text-muted); }
.gd-note svg { flex: none; margin-top: .2rem; }
.gd-more { margin-top: 1rem; }
.gd-after { margin-top: clamp(3rem, 6vw, 5rem); }
.gd-wide .gd-endnote, .gd-after + .container .gd-endnote { max-width: none; }

/* Round 1 fixes: phone group heads stack; the topic switch keeps both pills on one row */
@media (max-width: 599px) {
  .gd-group-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .gd-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 26px; }
  .gd-seg label { justify-content: center; text-align: center; min-height: 48px; padding: .45rem .7rem; line-height: 1.2; border-radius: 22px; }
}
html[data-theme="dark"] .gd-alert { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); background: radial-gradient(70% 90% at 0% 0%, rgba(91, 156, 245, .18), transparent 60%), #111b2e; }
/* Round 1 fixes: tablets keep the hero photo shorter and the three points in a row */
@media (min-width: 600px) and (max-width: 899px) {
  .gd-hero-grid .gd-photo { aspect-ratio: 2 / 1; }
  .gd-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-points li { padding: 1.25rem 1.15rem 1.35rem; }
}
.gd-article > .gd-photo { margin-top: var(--gd-gap); }
.gd-example em { margin-top: auto; padding-top: .35rem; }
.gd-after > .gd-alert { max-width: 1080px; margin-left: auto; margin-right: auto; }
.gd-card-body { position: relative; } .gd-card--feature .gd-card-go { left: clamp(1.5rem, 3.5vw, 3rem); }
@media (max-width: 599px) { .gd-crumbs [aria-current] { display: none; } }  /* phones: the heading names the page; the trail stays on one line */

/* Sign-up form: honeypot off-screen, the security check's box, messages, the confirmation, the "check your email" pages */
.gd-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.gd-turnstile { min-width: 0; max-width: 100%; overflow: hidden; }
.gd-turnstile:not(:empty) { min-height: 65px; }
.gd-turnstile iframe { max-width: 100%; }
.gd-msg { margin: 0; padding: .7rem .95rem; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .9375rem; line-height: 1.5; color: #eef1f6; }
.gd-msg[hidden] { display: none; }
.gd-msg.is-error { box-shadow: inset 3px 0 0 #ffb4a8; }
.gd-input[aria-invalid="true"] { border-color: #ffb4a8; }
.gd-consent input[aria-invalid="true"] { border-color: #ffb4a8; }
.gd-done { display: grid; gap: .5rem; align-content: start; padding: 1.25rem 1.35rem; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.gd-done:focus { outline: none; }
.gd-done:focus-visible { outline: 3px solid rgba(123, 179, 255, .6); outline-offset: 3px; }
.gd-done p { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.016em; color: #fff; }
.gd-done span { font-size: .9375rem; color: #c3cad6; }
.gd-notice { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.gd-notice .sp-sub { margin-bottom: 1rem; }
.gd-notice-go { margin: 1.75rem 0 0; }
