/* Exam FM details (fm-details.html). Loaded after page.css (chrome, tokens) and
   fm.css (.crumbs, .prod-link, .clear-link, .prod-sr). An article, not a
   sales page: one reading column (about 68 characters), a key-facts box
   built from the home tile's surface, plain tables, and the contents
   beside the column on wide screens (sticky), in flow on narrow ones.
   No pictures, no reveals. Colours are Clear tokens or page tokens only. */

.gd { padding-top: 20px; }
/* Wide: the column on the left, the contents in a rail on the right,
   beside the facts and the body. */
.gd__grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(200px, 248px); justify-content: start; column-gap: clamp(56px, 7vw, 112px); align-items: start; }
.gd__head, .gd__facts, .gd__body { grid-column: 1; }
.gd__toc { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 88px; }

/* ── Head ─────────────────────────────────────────────────────────── */
.gd__kicker { margin-top: 36px; }
.gd__title { margin-top: 12px; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.gd__lede { margin-top: 18px; font-size: 20px; line-height: 1.55; color: var(--foreground); text-wrap: pretty; }
.gd__meta { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }

/* ── Key facts: the home tile's surface, a small two-by-three grid ─ */
.gd__facts { margin-top: 36px; padding: 20px 24px 24px; border: 1px solid var(--tile-edge); border-radius: var(--radius-xl); background: var(--tile-bg); }
.gd__facts-h, .gd__toc-h { font-size: 13px; line-height: 16px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.gd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; margin-top: 16px; }
.gd-facts dt { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.gd-facts dd { margin-top: 3px; font-size: 17px; line-height: 23px; font-weight: 650; letter-spacing: -0.01em; color: var(--card-foreground); text-wrap: balance; }
.gd-facts__sub { display: block; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }

/* ── Contents ───────────────────────────────────────────────────── */
.gd__toc ol { display: grid; margin-top: 12px; border-left: 1px solid var(--border); }
.gd__toc a { position: relative; display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 15px; line-height: 20px; color: var(--muted-foreground); text-decoration: none; }
.gd__toc a:hover { color: var(--card-foreground); text-decoration: underline; text-underline-offset: 3px; }
.gd__toc a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
/* The section in view (fm-details.js): ink, a brand-green edge, and weight. */
.gd__toc a[aria-current="true"] { border-left-color: var(--primary-text); color: var(--card-foreground); font-weight: 600; }

/* ── Body ───────────────────────────────────────────────────────── */
.gd-sec { padding-top: 56px; scroll-margin-top: 72px; }
.gd-sec h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.gd-sec h3 { margin-top: 32px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.012em; color: var(--ink); }
.gd-sec p, .gd-sec li { font-size: 17px; line-height: 1.65; color: var(--foreground); }
.gd-sec h2 + p, .gd-sec h3 + p, .gd-sec h2 + ul, .gd-sec h3 + ol { margin-top: 14px; }
.gd-sec p + p, .gd-sec p + ul, .gd-sec ul + p, .gd-sec ol + p, .gd-table-wrap + p, .gd-table-wrap + ul { margin-top: 14px; }
.gd-sec b { font-weight: 650; color: var(--card-foreground); }
.gd-sec > ul, .gd-sec > ol { padding-left: 1.3em; }
.gd-sec > ul { list-style: disc; }
.gd-sec > ol { list-style: decimal; }
.gd-sec > ul > li + li, .gd-sec > ol > li + li { margin-top: 8px; }
.gd-sec li::marker { color: var(--muted-foreground); font-variant-numeric: normal; }

/* Links in the text: brand green, underlined. */
.gd-link { color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gd-link:hover { text-decoration-thickness: 2px; }
.gd-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 3px; }

/* Tables: plain rows on the tile surface, hairlines between them. */
.gd-table-wrap { margin-top: 20px; border: 1px solid var(--tile-edge); border-radius: var(--radius-xl); background: var(--tile-bg); overflow-x: auto; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.gd-table th, .gd-table td { padding: 13px 20px; text-align: left; vertical-align: top; }
.gd-table thead th { padding-top: 12px; padding-bottom: 10px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.gd-table tbody tr + tr > * { border-top: 1px solid var(--hair-soft); }
.gd-table tbody th { font-weight: 600; color: var(--card-foreground); }
.gd-table td { color: var(--foreground); }
.gd-num { text-align: right !important; white-space: nowrap; }
.gd-table--topics tbody td { font-weight: 650; color: var(--card-foreground); }
.gd-topic { display: block; }
.gd-topic__what { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.5; font-weight: 400; color: var(--muted-foreground); }
.gd-table--dates tbody th, .gd-table--dates td { white-space: nowrap; }
/* The next window you can still register for (fm-details.js). */
.gd-next { display: inline-flex; align-items: center; height: 22px; margin-left: 10px; padding: 0 9px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--exams-hi) 50%, transparent); background: color-mix(in oklab, var(--exams-hi) 10%, var(--tile-bg)); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--card-foreground); vertical-align: 1px; }

/* Study with TIA: one short block on the page, no card. */
.gd-tia__links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 6px; }

/* Official SOA pages: a plain list. */
.gd-links { display: grid; row-gap: 6px; margin-top: 14px; }
.gd-sec > .gd-links { list-style: none; padding-left: 0; }
.gd-links li { font-size: 17px; line-height: 1.55; }
.gd-links__kind { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted-foreground); }
/* One plain line under a link, e.g. that it's already in the course. */
.gd-links__note { display: block; font-size: 15px; line-height: 1.45; color: var(--muted-foreground); }

/* Sources: the small print. */
.gd-sources p, .gd-sources li { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }
.gd-sources ol { margin-top: 10px; }
.gd-sources h2 { font-size: 22px; }

/* ── Responsive ────────────────────────────────────────────────── */
/* Below 1100 px the rail goes: contents sit in flow, under the facts. */
@media (max-width: 1100px) {
  .gd__grid { grid-template-columns: minmax(0, 680px); }
  .gd__toc { grid-column: 1; grid-row: auto; position: static; margin-top: 32px; }
  .gd__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-left: 0; }
  .gd__toc a { margin-left: 0; padding: 10px 0 10px 14px; border-left: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .gd { padding-top: 12px; }
  .gd__kicker { margin-top: 24px; }
  .gd__title { font-size: 40px; }
  .gd__lede { margin-top: 14px; font-size: 18px; }
  .gd__facts { margin-top: 28px; padding: 18px 18px 20px; }
  .gd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .gd-sec { padding-top: 48px; }
  .gd-sec h2 { font-size: 25px; }
  .gd-sec p, .gd-sec li, .gd-links li { font-size: 16.5px; }
  .gd-table th, .gd-table td { padding: 12px 14px; }
  .gd-table { font-size: 15.5px; }
}
@media (max-width: 480px) {
  .gd__toc ol { grid-template-columns: minmax(0, 1fr); }
  .gd-table--dates tbody th, .gd-table--dates td { white-space: normal; }
  .gd-next { margin: 4px 0 0; display: flex; width: max-content; }
}
