/* The reading tracks' stylesheet (plan-guides-tracks-2026-11-22, Roee 22.11; S-104) — the tracks page and the articles of
   a track only. The source of public/guides.<hash>.css (scripts/ops/guides-css.ts writes it and stylesheet.ts); linked by
   templates/guides (the tracks page) and by the article template when the article has its navigation, so no other page
   loads it. Everything under .gd: no global selector, no @import, no url() (scripts/verify-guides.ts). The design's own
   CSS (design_handoff_reba_guides, option A: lists), scoped and renamed gd-*; the site's header, footer, article hero
   and form keep their own styles. Colors: the site's tokens (tokens.css), set on .gd; green-ink as on the course page. The shadows are the
   tokens' own (--shadow-md, --shadow-lg).
   No animation, no transition: the full list folds with the browser's details/summary. */

.gd { --navy-700:var(--color-navy-700); --navy-deep:var(--color-navy-deep); --ink:var(--color-text-primary); --ink-2:var(--color-text-secondary); --gray-50:var(--color-gray-50); --gray-100:var(--color-gray-100); --border:var(--color-border); --blue-50:var(--color-blue-50); --blue-100:var(--color-blue-100); --blue-200:var(--color-blue-200); --frame:var(--color-blue-700); --green-500:var(--color-green-500); --green-50:var(--color-green-50); --green-ink:#2E4A0F; --white:var(--color-surface); --r-md:10px; --r-lg:14px; --r-xl:20px; --r-full:999px; color:var(--ink) }
.gd a { color:var(--navy-700) }
.gd :focus-visible { outline:3px solid var(--navy-700);outline-offset:2px }
.gd h1, .gd h2, .gd p, .gd ol, .gd ul { margin:0 }
.gd ol, .gd ul { padding:0;list-style:none }
.gd .gd-wrap { max-width:1200px;margin-inline:auto;padding-inline:16px }
.gd .gd-narrow { max-width:868px }
.gd .gd-arr { width:16px;height:16px;flex-shrink:0;color:var(--navy-700) }
@media (min-width:761px) {
  .gd .gd-wrap { padding-inline:24px }
}

/* ---------- the tracks page: the top ---------- */
.gd .gd-top { background:var(--gray-50);border-bottom:1px solid var(--border) }
.gd .gd-top-in { padding-block:28px 32px }
.gd .gd-h1 { font-size:2.25rem;line-height:1.1;font-weight:800;letter-spacing:-.02em;color:var(--navy-deep);text-wrap:balance }
.gd .gd-lead { margin-top:10px;max-width:60ch;font-size:1.125rem;line-height:1.5;color:var(--ink-2);text-wrap:pretty }
@media (min-width:761px) {
  .gd .gd-top-in { padding-block:48px 44px }
  .gd .gd-h1 { font-size:3rem }
  .gd .gd-lead { font-size:1.3125rem }
}
@media (min-width:1080px) {
  .gd .gd-top-in { padding-block:56px 48px }
  .gd .gd-h1 { font-size:3.5rem }
}

/* the quick jump: four equal buttons */
.gd .gd-jump { margin-top:24px }
.gd .gd-jump-h { margin-bottom:8px;font-size:14px;font-weight:700;color:var(--ink-2) }
.gd .gd-jump ul { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px }
.gd .gd-jump a { display:flex;flex-direction:column;justify-content:center;gap:2px;height:100%;min-height:68px;padding:10px 14px;background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);text-decoration:none }
.gd .gd-jump a:hover { border-color:var(--navy-700) }
.gd .gd-jump b { font-size:15px;font-weight:700;line-height:1.3;color:var(--navy-deep) }
.gd .gd-jump span { font-size:14px;font-weight:500;line-height:1.35;color:var(--ink-2) }
@media (min-width:761px) {
  .gd .gd-jump ul { grid-template-columns:repeat(4,minmax(0,1fr));gap:12px }
  .gd .gd-jump a { min-height:78px;padding:12px 18px }
  .gd .gd-jump b { font-size:17px }
}

/* ---------- the tracks ---------- */
/* the site's header is sticky: an anchor lands below it (68px, 86px from 1080) */
.gd .gd-band { padding-block:44px;scroll-margin-top:84px }
.gd .gd-band--alt { background:var(--gray-50) }
@media (min-width:1080px) {
  .gd .gd-band { padding-block:72px;scroll-margin-top:102px }
}
.gd .gd-track { display:grid;grid-template-columns:minmax(0,1fr);gap:20px }
.gd .gd-track-head { display:flex;flex-direction:column;gap:8px }
.gd .gd-track-title { display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px }
.gd .gd-track-h { font-size:1.625rem;font-weight:800;line-height:1.2;color:var(--navy-deep);text-wrap:balance }
.gd .gd-track-line { max-width:56ch;font-size:1.0625rem;line-height:1.55;color:var(--ink-2);text-wrap:pretty }
@media (min-width:1080px) {
  .gd .gd-track { grid-template-columns:4fr 8fr;gap:48px;align-items:start }
  .gd .gd-track-h { font-size:2rem }
  .gd .gd-track-line { font-size:1.125rem }
}

/* the kind: a reading order (light blue) or a process (green) — always in words too */
.gd .gd-kind { display:inline-flex;align-items:center;min-height:28px;padding:2px 12px;border-radius:var(--r-full);font-size:14px;font-weight:700;line-height:1.3;white-space:nowrap }
.gd .gd-kind--reading { background:var(--blue-50);color:var(--navy-700) }
.gd .gd-kind--process { background:var(--green-50);color:var(--green-ink) }

/* the numbers sit on the right of every row */
.gd .gd-num { position:relative;z-index:1;display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;font-size:16px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;text-align:center }
.gd .gd-num--reading { background:var(--blue-50);color:var(--navy-700) }
.gd .gd-num--process { background:var(--green-50);color:var(--green-ink);box-shadow:inset 0 0 0 1.5px var(--green-500) }
.gd .gd-t { font-size:17px;font-weight:700;line-height:1.35;color:var(--navy-deep);text-wrap:pretty }
.gd .gd-l { font-size:15px;line-height:1.5;color:var(--ink-2);text-wrap:pretty }
.gd .gd-body { flex:1;min-width:0;display:flex;flex-direction:column;gap:2px }

.gd .gd-list { background:var(--white);border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden }
.gd .gd-list li { position:relative }
.gd .gd-list li + li { border-top:1px solid var(--gray-100) }
.gd .gd-list a { display:flex;align-items:flex-start;gap:14px;padding:16px;text-decoration:none;color:inherit }
.gd .gd-list a:hover { background:var(--gray-50) }
.gd .gd-list a:focus-visible { outline-offset:-3px }
.gd .gd-list a:hover .gd-t { text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px }
.gd .gd-list .gd-arr { margin-top:10px }
/* a process: the steps joined by a line, no lines between the rows */
.gd .gd-list--process li + li { border-top:0 }
.gd .gd-list--process li::before { content:"";position:absolute;inset-inline-start:33px;top:0;bottom:0;width:2px;background:var(--green-500) }
.gd .gd-list--process li:first-child::before { top:34px }
.gd .gd-list--process li:last-child::before { bottom:auto;height:34px }
.gd .gd-list--process li:only-child::before { display:none }
@media (min-width:761px) {
  .gd .gd-list a { gap:18px;padding:18px 24px }
  .gd .gd-num { flex-basis:40px;width:40px;height:40px;font-size:17px }
  .gd .gd-t { font-size:19px }
  .gd .gd-l { font-size:16px }
  .gd .gd-list .gd-arr { margin-top:12px }
  .gd .gd-list--process li::before { inset-inline-start:43px }
  .gd .gd-list--process li:first-child::before { top:38px }
  .gd .gd-list--process li:last-child::before { height:38px }
}

/* ---------- the group "לפני הרישיון": the home page's main card ---------- */
.gd .gd-pre { background:var(--white);border:2px solid var(--frame);border-radius:var(--r-xl);box-shadow:var(--shadow-lg);overflow:hidden }
.gd .gd-pre-head { display:flex;flex-direction:column;gap:6px;padding:20px;background:var(--blue-100);border-bottom:1px solid var(--blue-200) }
.gd .gd-pre-h { font-size:1.5rem;font-weight:800;line-height:1.2;color:var(--navy-deep) }
.gd .gd-pre-line { font-size:1.0625rem;line-height:1.5;color:var(--navy-deep) }
.gd .gd-pre-body { display:flex;flex-direction:column;gap:16px;padding:4px 20px 22px }
.gd .gd-pre-list li + li { border-top:1px solid var(--gray-100) }
.gd .gd-pre-list a { display:flex;align-items:flex-start;gap:12px;padding:14px 0;text-decoration:none;color:inherit }
.gd .gd-pre-list a:hover .gd-t { text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px }
.gd .gd-pre-list .gd-arr { margin-top:8px }
.gd .gd-btn { display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:12px 24px;border:1.5px solid transparent;border-radius:var(--r-full);background:var(--navy-700);color:var(--white);font:inherit;font-size:17px;font-weight:700;line-height:1.3;text-align:center;text-decoration:none }
.gd .gd-btn:hover { background:var(--navy-deep) }
.gd .gd-btn .gd-arr { color:currentColor }
@media (min-width:761px) {
  .gd .gd-pre-head { padding:24px 32px }
  .gd .gd-pre-h { font-size:1.75rem }
  .gd .gd-pre-body { padding:8px 32px 30px }
  .gd .gd-pre-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px }
  .gd .gd-pre-list li + li { border-top:0 }
  .gd .gd-btn { width:auto;align-self:flex-start;padding-inline:28px }
}

/* ---------- an article: the location line (above the H1, in place of the breadcrumbs) ---------- */
.gd.gd-loc { display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;font-size:15px;font-weight:600;line-height:1.4 }
.gd.gd-loc a { display:inline-flex;align-items:center;min-height:44px;color:var(--navy-700);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px }
.gd.gd-loc a:hover { color:var(--navy-deep);text-decoration-thickness:2px }
.gd .gd-loc-sep { color:var(--ink-2);font-weight:500 }
.gd .gd-loc-step { display:inline-flex;align-items:center;gap:8px;white-space:nowrap }
.gd .gd-pill { display:inline-flex;align-items:center;min-height:26px;padding:1px 10px;border-radius:var(--r-full);font-size:14px;font-weight:700;line-height:1.3;white-space:nowrap }
.gd .gd-pill--reading { background:var(--blue-50);color:var(--navy-700) }
.gd .gd-pill--process { background:var(--green-50);color:var(--green-ink) }
.gd.gd-loc .gd-pill--reading { background:var(--white);box-shadow:inset 0 0 0 1px var(--blue-200) }
.gd.gd-loc .gd-pill--process { background:var(--white);box-shadow:inset 0 0 0 1px var(--green-500) }
@media (min-width:761px) {
  .gd.gd-loc { font-size:16px }
}

/* ---------- an article: the end block (after the body and the form) ---------- */
.gd.gd-end { padding-block:32px 48px;border-top:1px solid var(--border) }
.gd .gd-next { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:6px;padding:20px;background:var(--white);border:2px solid var(--frame);border-radius:var(--r-xl);box-shadow:var(--shadow-md);text-decoration:none;color:inherit }
.gd .gd-next:hover { box-shadow:var(--shadow-lg) }
.gd .gd-next:hover .gd-next-t { text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px }
.gd .gd-next-k { grid-column:1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:15px;font-weight:800;line-height:1.3;color:var(--navy-700) }
.gd .gd-next-t { grid-column:1;font-size:1.375rem;font-weight:800;line-height:1.25;color:var(--navy-deep);text-wrap:balance }
.gd .gd-next-l { grid-column:1;font-size:16px;line-height:1.5;color:var(--ink-2);text-wrap:pretty }
.gd .gd-next-go { grid-column:2;grid-row:1 / span 3;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--navy-700);color:var(--white) }
.gd .gd-next-go svg { width:24px;height:24px }
@media (min-width:761px) {
  .gd.gd-end { padding-block:44px 72px }
  .gd .gd-next { padding:28px 32px;column-gap:24px }
  .gd .gd-next-t { font-size:1.75rem }
  .gd .gd-next-l { font-size:17px }
  .gd .gd-next-go { width:60px;height:60px }
}

/* the full list: the browser's own fold, closed by default */
.gd .gd-trk { margin-top:16px;background:var(--gray-50);border:1px solid var(--border);border-radius:var(--r-xl) }
.gd .gd-trk summary { display:list-item;min-height:56px;padding:15px 20px;font-size:17px;font-weight:700;line-height:1.4;color:var(--navy-deep);cursor:pointer }
.gd .gd-trk summary::marker { color:var(--navy-700) }
.gd .gd-trk-sum-m { font-weight:500;color:var(--ink-2);white-space:nowrap }
.gd .gd-trk[open] summary { border-bottom:1px solid var(--border) }
.gd .gd-trk-list { display:flex;flex-direction:column;gap:2px;padding:10px 12px 6px }
.gd .gd-trk-list a, .gd .gd-trk-cur { display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 10px;border-radius:var(--r-md);font-size:16px;font-weight:600;line-height:1.35;text-decoration:none;color:var(--navy-700) }
.gd .gd-trk-list a:hover { background:var(--white) }
.gd .gd-trk-list a:hover .gd-trk-t { text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px }
.gd .gd-trk-t { flex:1;min-width:0 }
.gd .gd-trk-list .gd-num { flex-basis:30px;width:30px;height:30px;font-size:14px }
.gd .gd-trk-cur { background:var(--white);box-shadow:inset 0 0 0 2px var(--frame);color:var(--navy-deep);font-weight:800 }
.gd .gd-trk-here { flex-shrink:0;font-size:14px;font-weight:700;color:var(--navy-700);white-space:nowrap }
.gd .gd-trk-all { display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:4px 22px 10px;font-size:16px;font-weight:700;color:var(--navy-deep);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px }
@media (min-width:761px) {
  .gd .gd-trk summary { padding:16px 24px;font-size:18px }
  .gd .gd-trk-list { padding:12px 14px 8px }
  .gd .gd-trk-all { margin-inline:24px }
}
