/* rights-emergency ("זכויות בחירום"), design-v2 (23.11.2026; colour round 24.11.2026: stamp violet + topic hues).
   Anchor: GOV.UK (Design of the Year 2013) and its guide pages: one sturdy sans in two weights, a solid brand band at
   the top, big bold headings, plain underlined links, square corners, no shadows, yellow focus, components instead of
   prose (step-by-step, inset text, warning text, key figures, details). Adapted to Hebrew/RTL with Heebo (one variable
   file per script) and to this site's own ink blue. Light and dark are two designed palettes.
   Contrast pairs are listed in design/NOTES.md. Mobile first, logical properties for RTL/LTR. */

/* ---------- fonts (self-hosted, SIL OFL 1.1, licence in /fonts/OFL-Heebo.txt) ---------- */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/heebo-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/heebo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallback, so the swap to Heebo moves nothing (values measured in design/NOTES.md) */
@font-face {
  font-family: "Heebo Fallback";
  src: local("Arial");
  size-adjust: 102%;
  ascent-override: 103%;
  descent-override: 41%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface-2: #f5f2fb;     /* panels: source lines, footer (violet-tinted) */
  --text: #1b1530;          /* violet-black ink */
  --text-2: #3f3956;
  --muted: #565070;
  --line: #ddd6ea;          /* hairlines (decorative) */
  --line-strong: #6e6789;   /* borders that carry meaning: inputs, table head */
  --band: #3b1f6e;          /* the brand band: stamp violet (white text 13:1) */
  --band-2: #4c2a8a;
  --band-ink: #ffffff;
  --band-soft: #ece4fa;
  --nav-bg: #f1ebfb;
  --link: #5b2db3;
  --link-hover: #34157a;
  --dot: #ffc24a;           /* the gold stamp dot: the one standout accent, on the band */
  --go: #5b2db3;            /* the one primary action */
  --go-2: #47209a;
  --go-edge: #250d55;
  --go-ink: #ffffff;
  --btn-2: #ebe6f5;         /* quiet button */
  --btn-2-edge: #8d84a8;
  /* topic hues: damage = ochre, reservists = olive, partners and help lines = berry, the check = violet */
  --c-violet: #5b2db3;  --c-violet-band: #4b2a8c;  --c-violet-soft: #f1eafc;
  --c-ochre: #8f4a06;   --c-ochre-band: #8f4a06;   --c-ochre-soft: #fdf0e1;
  --c-olive: #43621a;   --c-olive-band: #43621a;   --c-olive-soft: #eef5e1;
  --c-berry: #9b1f5a;   --c-berry-band: #9b1f5a;   --c-berry-soft: #fce9f2;
  --focus: #ffdd00;
  --focus-ink: #0b0c0c;
  --accent: var(--link);    /* old name, used by the checker and the forms */
  --accent-ink: #ffffff;
  --accent-soft: var(--band-soft);
  --accent-ring: var(--link);
  --rule: var(--text);
  --axis: #7a8591;
  --warn: #7a4a00;
  --warn-bg: #f7ead2;
  --bad: #a3121e;
  --radius: 0;
  --gutter: 20px;
  --measure: 42rem;
  --sans: "Heebo", "Heebo Fallback", Arial, "Noto Sans Hebrew", system-ui, sans-serif;
  --serif: var(--sans);     /* old name, kept for the print block */
  /* type scale: mobile, then desktop below */
  --fs-small: 1rem;         /* 16 */
  --fs-body: 1.125rem;      /* 18 */
  --fs-lead: 1.3125rem;     /* 21 */
  --fs-h3: 1.3125rem;       /* 21 */
  --fs-h2: 1.625rem;        /* 26 */
  --fs-h1: 2.125rem;        /* 34 */
  --fs-hero: 2.5rem;        /* 40 */
  --space-section: 48px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --fs-body: 1.1875rem;   /* 19 */
    --fs-lead: 1.5rem;      /* 24 */
    --fs-h3: 1.5rem;        /* 24 */
    --fs-h2: 2rem;          /* 32 */
    --fs-h1: 3rem;          /* 48 */
    --fs-hero: 4rem;        /* 64 */
    --space-section: 64px;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #140f29;          /* a deep violet night, not black */
    --surface-2: #1e1839;
    --text: #f2eefb;
    --text-2: #d0c8e6;
    --muted: #b2aacb;
    --line: #362e58;
    --line-strong: #8f87ac;
    --band: #2b1a5c;
    --band-2: #3a2577;
    --band-soft: #2a2052;
    --nav-bg: #1c1638;
    --link: #c6aeff;
    --link-hover: #e3d6ff;
    --dot: #ffc24a;
    --go: #6b40d4;
    --go-2: #7a50e0;
    --go-edge: #1a0b40;
    --btn-2: #2a2349;
    --btn-2-edge: #5a5180;
    --c-violet: #c6aeff;  --c-violet-band: #3f2788;  --c-violet-soft: #241c47;
    --c-ochre: #f4b066;   --c-ochre-band: #6f3a07;   --c-ochre-soft: #2b1f22;
    --c-olive: #abd46c;   --c-olive-band: #35511a;   --c-olive-soft: #1f2622;
    --c-berry: #ff8fc0;   --c-berry-band: #701844;   --c-berry-soft: #2c1733;
    --accent-ink: #140f29;
    --axis: #7d8996;
    --warn: #f1c98a;
    --warn-bg: #33270f;
    --bad: #f0958c;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #140f29;          /* a deep violet night, not black */
  --surface-2: #1e1839;
  --text: #f2eefb;
  --text-2: #d0c8e6;
  --muted: #b2aacb;
  --line: #362e58;
  --line-strong: #8f87ac;
  --band: #2b1a5c;
  --band-2: #3a2577;
  --band-soft: #2a2052;
  --nav-bg: #1c1638;
  --link: #c6aeff;
  --link-hover: #e3d6ff;
  --dot: #ffc24a;
  --go: #6b40d4;
  --go-2: #7a50e0;
  --go-edge: #1a0b40;
  --btn-2: #2a2349;
  --btn-2-edge: #5a5180;
  --c-violet: #c6aeff;  --c-violet-band: #3f2788;  --c-violet-soft: #241c47;
  --c-ochre: #f4b066;   --c-ochre-band: #6f3a07;   --c-ochre-soft: #2b1f22;
  --c-olive: #abd46c;   --c-olive-band: #35511a;   --c-olive-soft: #1f2622;
  --c-berry: #ff8fc0;   --c-berry-band: #701844;   --c-berry-soft: #2c1733;
  --accent-ink: #140f29;
  --axis: #7d8996;
  --warn: #f1c98a;
  --warn-bg: #33270f;
  --bad: #f0958c;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: max(1px, 0.0625rem);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: max(3px, 0.1875rem);
}

/* the anchor's focus: yellow, with a dark bar under links */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
}

a:focus-visible {
  background-color: var(--focus);
  color: var(--focus-ink) !important;
  box-shadow: 0 -2px var(--focus), 0 4px var(--focus-ink);
  text-decoration: none;
}

a:focus-visible * {
  color: var(--focus-ink) !important;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.12;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}

h4 {
  font-size: var(--fs-body);
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  background: var(--focus);
  color: var(--focus-ink);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: underline;
}

.skip:focus {
  top: 8px;
}

/* ---------- header: the brand band, then the service navigation ---------- */
.site-header {
  background: var(--band);
  color: var(--band-ink);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--band-ink);
  text-decoration: none;
  margin-inline-end: auto;
  min-height: 44px;
}

.brand:hover {
  color: var(--band-ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.mark-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
}

.mark-form {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
}

.mark-core {
  fill: var(--dot);
}

.controls {
  display: flex;
  gap: 8px;
}

.site-header .icon-btn {
  color: var(--band-ink);
  border: 1px solid rgb(255 255 255 / 0.6);
  background: transparent;
  font-weight: 600;
}

.site-header .icon-btn:hover {
  background: var(--band-2);
  color: var(--band-ink);
  box-shadow: none;
}

.site-header .icon-btn svg {
  display: block;
}

.service-nav {
  background: var(--nav-bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

/* phones: a fixed 3 x 2 grid, so the header height never depends on font loading */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 8px;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0 4px;
  color: var(--link);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  border-bottom: 4px solid transparent;
}

.nav a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--link);
}

@media (min-width: 768px) {
  .nav ul {
    display: flex;
    gap: 0 32px;
  }

  .nav a {
    min-height: 56px;
    padding: 8px 0 4px;
    font-size: 1.0625rem;
  }
}

/* home: the navigation sits inside the band, which runs on into the hero */
body[data-page="home"] .service-nav {
  background: var(--band);
  border-bottom: 0;
}

body[data-page="home"] .service-nav .wrap {
  border-top: 1px solid rgb(255 255 255 / 0.22);
}

body[data-page="home"] .nav a {
  color: var(--band-ink);
}

body[data-page="home"] .nav a:hover {
  color: var(--band-ink);
}

/* ---------- buttons ---------- */
.icon-btn,
.btn {
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
  padding: 8px 18px;
  border: 0;
  background: var(--btn-2);
  color: var(--text);
  box-shadow: 0 2px 0 var(--btn-2-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.25;
}

.icon-btn {
  padding-inline: 12px;
  box-shadow: none;
}

.btn:hover {
  filter: brightness(0.96);
  color: var(--text);
}

.btn.primary {
  background: var(--go);
  color: var(--go-ink);
  box-shadow: 0 2px 0 var(--go-edge);
  font-weight: 700;
}

.btn.primary:hover {
  background: var(--go-2);
  color: var(--go-ink);
  filter: none;
}

.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: inset 0 0 0 1px var(--focus), 0 2px 0 var(--focus-ink);
  background: var(--focus);
  color: var(--focus-ink);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn.big {
  min-height: 56px;
  font-size: 1.25rem;
  padding: 12px 28px;
  width: 100%;
}

@media (min-width: 600px) {
  .btn.big { width: auto; min-width: 18rem; }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-block: 16px 24px;
}

/* ---------- page heads ---------- */
.page-head {
  padding-block: 32px 8px;
}

.lead,
.page-head p {
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 38rem;
}

/* home: the hero is part of the band (full bleed, no overflow) */
.start {
  background: var(--band);
  color: var(--band-ink);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
  padding-block: 28px 80px;
}

.start h1 {
  color: var(--band-ink);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
}

.start p {
  color: var(--band-ink);
  opacity: 0.92;
  max-width: 34rem;
  margin: 0;
}

@media (min-width: 768px) {
  .start { padding-block: 56px 104px; }
}

/* inset text: a calm note with a bar at the start side */
.notice {
  border-inline-start: 6px solid var(--line-strong);
  padding: 4px 20px;
  margin-block: 24px;
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
  max-width: var(--measure);
}

.notice a {
  font-weight: 600;
}

/* warning text: safety first, used once (the anchor's "!" in a circle) */
.notice.warn {
  border: 0;
  padding: 0;
  padding-inline-start: 52px;
  position: relative;
  font-weight: 600;
  min-height: 36px;
}

.notice.warn::before {
  content: "!";
  content: "!" / "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

.meta {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-block: 4px 16px;
}

/* ---------- sections ---------- */
.section {
  margin-block: var(--space-section) 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.section > h2:first-child {
  margin-top: 0;
}

/* ---------- home task cards ---------- */
.paths {
  list-style: none;
  margin: -48px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
}

@media (min-width: 768px) {
  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: -64px;
  }
}

.paths li {
  display: flex;
}

.paths a {
  flex: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  align-content: start;
  padding: 22px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 5px solid var(--link);
  text-decoration: none;
  min-height: 44px;
  color: var(--text);
}

.paths .path-icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--link);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.paths a strong {
  display: block;
  color: var(--link);
  font-size: var(--fs-h3);
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  margin-bottom: 6px;
}

.paths a span {
  display: block;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.paths a:hover {
  border-color: var(--link-hover);
  border-top-color: var(--link-hover);
  background: var(--surface-2);
}

.paths a:hover strong {
  color: var(--link-hover);
  text-decoration-thickness: 3px;
}

.paths a:focus-visible {
  box-shadow: none;
  background: var(--focus);
  outline-offset: 0;
}

.paths a:focus-visible .path-icon {
  stroke: var(--focus-ink);
}

.paths + .notice {
  margin-top: 40px;
}

/* ---------- content pages ---------- */
.prose {
  padding-block: 8px var(--space-section);
}

.prose > [data-lang] > *,
.prose > [data-lang] > .faq,
.prose > [data-lang] > .sources {
  max-width: var(--measure);
}

.prose > div > h1:first-child,
.prose > h1:first-child {
  margin-top: 40px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .prose > div > h1:first-child,
  .prose > h1:first-child { margin-top: 64px; }
}

.prose h2 {
  margin-top: var(--space-section);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.prose .toc h2,
.prose .faq h2:first-child {
  border-top: 0;
}

.prose p,
.prose li,
.prose dd {
  font-size: var(--fs-body);
  line-height: 1.7;
}

.prose ul,
.prose ol {
  padding-inline-start: 24px;
  margin-block: 0 1em;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--muted);
}

.prose a {
  overflow-wrap: anywhere;
}

/* long guides on wide screens: reading column plus a sticky "on this page" list */
@media (min-width: 1100px) {
  .prose > [data-lang]:has(> .toc) {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 17rem);
    column-gap: 72px;
    align-items: start;
  }

  .prose > [data-lang]:has(> .toc) > * {
    grid-column: 1;
  }

  .prose > [data-lang] > .toc {
    grid-column: 2;
    grid-row: 1 / span 90;
    position: sticky;
    top: 24px;
    margin: 72px 0 0;
    padding-top: 16px;
    border-top: 5px solid var(--link);
    align-self: start;
  }

  .prose > [data-lang] > .toc ul {
    flex-direction: column;
  }
}

/* ---------- "on this page" ---------- */
.toc {
  margin-block: 24px 8px;
}

.toc h2 {
  font-size: var(--fs-body);
  font-weight: 700;
  border: 0;
  padding: 0;
  margin: 0 0 4px;
}

.prose .toc h2 {
  margin-top: 0;
  padding-top: 0;
}

.toc ul {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.toc li {
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toc li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  background: var(--muted);
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
}

/* ---------- guide items ---------- */
.item {
  margin-block: 36px 0;
}

.item h3 {
  margin-top: 0;
}

.prose .item p,
.prose .item li {
  margin-bottom: 12px;
}

/* the one source pattern: document icon, "Source:" link(s), last-checked date */
.src {
  position: relative;
  color: var(--muted);
  background: var(--surface-2);
  font-size: var(--fs-small) !important;
  line-height: 1.55 !important;
  margin-block: 14px 0 !important;
  padding: 10px 16px;
  padding-inline-start: 44px;
}

.src::before {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 13px;
  width: 16px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M2 1h8l4 4v12H2z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M5 9h6M5 12h6' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M2 1h8l4 4v12H2z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M5 9h6M5 12h6' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.src a {
  color: var(--link);
}

.src-flag {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 700;
  border-inline-start: 4px solid var(--warn);
}

.verify {
  font-weight: 700;
  color: var(--text);
}

/* key figures: the number first, the rule under it */
.figures {
  list-style: none;
  padding: 0 !important;
  margin: 24px 0 8px !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 12px;
}

.figures li {
  margin: 0 !important;
  background: var(--surface-2);
  border-top: 5px solid var(--link);
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.figures .fig {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.prose .figures .fig-label,
.figures .fig-label {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.45;
}

/* small fact tables (tiers, credit points) */
.table-wrap {
  overflow-x: auto;
  margin-block: 8px 20px;
}

.facts-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 34rem;
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
}

.facts-table th,
.facts-table td {
  text-align: start;
  padding: 12px 20px 12px 0;
  padding-inline: 0 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}

.facts-table thead th {
  font-weight: 700;
  border-bottom: 2px solid var(--line-strong);
}

.facts-table tbody th {
  font-weight: 600;
}

/* step by step: numbers in circles, joined by a line */
ol.do {
  list-style: none;
  counter-reset: do;
  padding: 0 !important;
  margin: 24px 0 24px;
}

ol.do > li {
  counter-increment: do;
  position: relative;
  padding-inline-start: 60px;
  padding-bottom: 28px;
  margin: 0;
}

ol.do > li::before {
  content: counter(do);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 36px;
  text-align: center;
  z-index: 1;
}

ol.do > li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

ol.do > li > strong:first-child {
  display: block;
  font-size: var(--fs-h3);
  line-height: 1.3;
  margin-bottom: 6px;
  padding-top: 4px;
}

/* our own advice: inset panel */
.callout {
  border-inline-start: 6px solid var(--link);
  background: var(--surface-2);
  padding: 18px 24px;
  margin-block: 24px;
  max-width: var(--measure);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* common questions: native disclosure, styled as an accordion */
.faq {
  margin-top: var(--space-section);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.4;
  padding-block: 16px;
  min-height: 56px;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(var(--link), var(--link)) center / 12px 2px no-repeat,
    linear-gradient(var(--link), var(--link)) center / 2px 12px no-repeat;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--link), var(--link)) center / 12px 2px no-repeat;
}

.faq summary:hover {
  color: var(--link);
}

.faq details[open] summary {
  padding-bottom: 8px;
}

.faq details > :not(summary) {
  padding-inline-end: 44px;
}

.faq details > :last-child {
  margin-bottom: 20px !important;
}

/* further reading at the end of a guide */
.sources {
  margin-top: var(--space-section);
  background: var(--surface-2);
  padding: 24px;
  color: var(--text);
}

.prose .sources h2 {
  font-size: var(--fs-h3);
  border-top: 0;
  padding-top: 0;
  margin: 0 0 12px;
}

.sources ul {
  padding-inline-start: 20px;
  margin: 0 0 12px;
}

.sources li,
.sources p {
  font-size: var(--fs-body);
}

.sources p:last-child {
  margin-bottom: 0;
  color: var(--text-2);
}

/* an item still being checked against its official source (Chen 9.11): the words carry the meaning, not colour */
.pending {
  margin-block: 8px 12px;
  padding: 8px 14px;
  border-inline-start: 4px solid var(--muted);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  max-width: var(--measure);
}

.pending strong {
  font-weight: 700;
}

/* ---------- help lines ---------- */
.lines {
  list-style: none;
  padding: 0 !important;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.lines > li {
  border: 1px solid var(--line);
  border-top: 5px solid var(--link);
  padding: 20px 24px 16px;
  margin: 0 !important;
}

.prose .lines h2 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: var(--fs-h3);
}

.lines p {
  margin-bottom: 8px;
}

.lines .btn {
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 9rem;
  font-variant-numeric: tabular-nums;
  background: var(--go);
  color: var(--go-ink);
  box-shadow: 0 2px 0 var(--go-edge);
}

.lines .btn:hover {
  background: var(--go-2);
  color: var(--go-ink);
  filter: none;
}

.lines .btn-row {
  margin-block: 12px 4px;
}

/* ---------- sources list ---------- */
.source-list {
  list-style: none;
  padding: 0 !important;
  margin: 16px 0 0;
  border-top: 2px solid var(--line-strong);
}

.source-list > li {
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
  margin: 0 !important;
}

.source-list .name {
  font-weight: 700;
  display: inline;
}

.source-list .facts {
  color: var(--text-2);
  font-size: var(--fs-small) !important;
  margin: 4px 0 0;
}

.state {
  font-weight: 700;
}

.state[data-state="changed"] {
  color: var(--warn);
  background: var(--warn-bg);
  padding-inline: 4px;
}

/* ---------- eligibility check ---------- */
.checker form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.checker fieldset {
  border: 1px solid var(--line);
  padding: 16px 20px 12px;
  margin: 0;
  min-width: 0;
}

.checker legend {
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.3;
  padding: 0;
  float: inline-start;
  width: 100%;
  margin-bottom: 8px;
}

.checker legend + * {
  clear: both;
}

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  cursor: pointer;
  font-size: var(--fs-body);
  line-height: 1.4;
}

.opt input {
  width: 28px;
  height: 28px;
  margin: 0;
  flex: none;
  accent-color: var(--link);
}

.check-status {
  background: var(--band-soft);
  border-inline-start: 6px solid var(--link);
  padding: 14px 20px;
  font-weight: 700;
  font-size: var(--fs-body);
  margin-block: 24px 8px;
}

.checker > h2 {
  margin-top: 40px;
}

.results {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

.results > li[data-group] {
  margin: 0 0 8px !important;
}

.results > li[data-group] > h3 {
  font-size: var(--fs-h3);
  margin: 32px 0 12px;
}

.results ul {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: grid;
  gap: 12px;
}

.results .item {
  margin: 0 !important;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--link);
  padding: 16px 20px;
}

.results .item h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.results .who {
  color: var(--muted);
  font-size: var(--fs-small) !important;
  margin-bottom: 6px;
}

/* without JavaScript every result is shown with its "who" line; the form is hidden */
html:not(.js) .checker form,
html:not(.js) .check-status {
  display: none !important;
}

html.js .checker .nojs-note {
  display: none;
}

/* ---------- more apps ---------- */
.apps-list {
  list-style: none;
  padding: 0 !important;
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}

.apps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-block: 16px;
  margin: 0 !important;
}

.apps-list svg {
  width: 40px;
  height: 40px;
  flex: none;
  margin-top: 4px;
  color: var(--text);
}

.apps-list h2,
.apps-list h3,
.prose .apps-list h2 {
  margin: 0 0 4px;
  padding-top: 0;
  border-top: 0;
  font-size: var(--fs-h3);
}

.apps-list p {
  margin: 0 0 4px;
}

.apps-list a {
  display: inline-block;
  padding-block: 10px;
  min-width: 44px;
  text-align: center;
}

@media (min-width: 900px) {
  body[data-page="home"] .apps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

.mark-peak {
  fill: #b3261e;
}

:root[data-theme="dark"] .mark-peak { fill: #f0958c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-peak { fill: #f0958c; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--space-section);
  border-top: 5px solid var(--band);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-small);
}

.site-footer .wrap {
  padding-block: 8px 40px;
}

/* Gladyard "more tools" (FAMILY.md): the first block of the footer, same markup in every sibling */
.gy-more {
  --gy-accent: var(--link);
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.gy-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 8px;
  color: var(--text-2);
  font-weight: 600;
}

.gy-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  padding-inline: 4px;
}

.gy-lockup:hover {
  color: var(--text);
  text-decoration: underline;
}

.gy-mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.gy-more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

@media (min-width: 768px) {
  .gy-more-list {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }
}

.gy-more-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.gy-more-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.gy-more-list svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.gy-more-list svg .mark-peak {
  fill: var(--gy-accent);
}

/* who built it: one quiet line under the footer links, as in the sister apps */
.maker-line {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px 10px;
}

.maker-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  font-weight: 600;
}

.maker-line .maker-who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.maker-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3px var(--link);
}

.maker-line .maker-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none; /* keeps the 44 x 44 touch target when the line is narrow */
  width: 44px;
  height: 44px;
  margin-inline-start: -6px;
}

.maker-line .maker-fb svg {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

/* new-tab marking: the Facebook icon says "opens in a new tab" in its label, so it gets no visible arrow;
   the who-link's arrow sits after its last word, inside the text, not after the photo-and-text box */
.maker-line .maker-fb::after,
.maker-line .maker-who::after {
  content: none !important;
}

.maker-line .maker-who[data-ext] > span:not(.ext-note)::after {
  content: "\2060\00a0\2197";
  content: "\2060\00a0\2197" / "";
  font-size: 0.8em;
}

[dir="rtl"] .maker-line .maker-who[data-ext] > span:not(.ext-note)::after {
  content: "\2060\00a0\2196";
  content: "\2060\00a0\2196" / "";
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer-links a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.footer-links a:hover {
  color: var(--link-hover);
}

.site-footer .legal {
  margin-bottom: 8px;
  max-width: var(--measure);
  font-size: var(--fs-small);
  color: var(--text-2);
}

.site-footer .legal a {
  font-weight: 600;
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Without JavaScript the toggles and the checklist form cannot work, so they are not shown.
   The inline script in <head> adds .js to <html>; the written instructions stay. */
html:not(.js) .controls,
html:not(.js) [data-js-only] {
  display: none !important;
}

html:not(.js) .fb-form {
  display: none !important;
}

html.js .fb-nojs {
  display: none !important;
}

/* ---------- links that open in a new tab: a small arrow (mirrored in Hebrew) ---------- */
a[data-ext]:not(.btn)::after {
  content: "\2197";
  content: "\2197" / "";
  display: inline-block;
  margin-inline-start: 0.2em;
  font-size: 0.8em;
  text-decoration: none;
}

[dir="rtl"] a[data-ext]:not(.btn)::after {
  transform: scaleX(-1);
}

.gy-more-list a[data-ext]::after,
.gy-lockup[data-ext]::after {
  content: none;
}

/* ---------- ideas and bug reports (/feedback) ---------- */
.fb-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-block: 16px 24px;
  max-width: 40rem;
}

.fb-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}

.fb-form legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 6px;
}

.fb-kinds label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}

.fb-kinds input {
  width: 28px;
  height: 28px;
  margin: 0;
  flex: none;
  accent-color: var(--link);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block: 16px;
}

.field label {
  font-weight: 700;
}

.prose .field .hint,
.field .hint {
  color: var(--muted);
  font-size: var(--fs-small);
  margin: 0;
}

.fb-form textarea,
.fb-form input[type="text"] {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-height: 48px;
  width: 100%;
  max-width: 36rem;
}

.fb-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.fb-form textarea:focus-visible,
.fb-form input[type="text"]:focus-visible {
  outline: 3px solid var(--focus);
  box-shadow: inset 0 0 0 2px var(--focus-ink);
}

.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* honeypot for bots: off-screen, never focusable */
.fb-hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.5em;
  color: var(--text-2);
  margin-block: 8px;
  font-weight: 700;
}

.status.ok {
  color: var(--link);
}

.status.error {
  color: var(--bad);
}

/* ---------- print: black on white, no controls, a footer with a QR code to the home page ---------- */
.print-foot,
.print-summary {
  display: none;
}

@media print {
  @page {
    margin: 14mm 12mm;
  }

  :root,
  :root[data-theme] {
    color-scheme: light;
    --bg: #fff !important;
    --surface-2: #fff !important;
    --text: #000 !important;
    --text-2: #000 !important;
    --muted: #333 !important;
    --line: #888 !important;
    --rule: #000 !important;
    --axis: #555 !important;
    --accent: #000 !important;
    --accent-soft: #fff !important;
    --accent-ring: #000 !important;
    --warn: #000 !important;
    --warn-bg: #fff !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    display: block;
    min-height: 0;
    font-size: 11pt;
    line-height: 1.45;
  }

  .skip,
  .site-header .controls,
  .nav,
  .btn-row,
  button,
  .footer-links,
  .maker-line,
  .toc,
  .fb-form {
    display: none !important;
  }

  .site-header {
    border-bottom: 1px solid #000;
  }

  .brand {
    min-height: 0;
    padding-block: 0 4px;
  }

  .site-footer {
    margin-top: 6mm;
    border-top: 1px solid #000;
  }

  .site-footer .wrap {
    padding-block: 3mm 0;
  }

  a {
    color: #000 !important;
  }

  a[data-ext]::after {
    content: none !important;
  }

  h1,
  h2,
  h3,
  h4,
  summary {
    break-after: avoid;
    page-break-after: avoid;
  }

  li,
  tr,
  .item,
  .callout,
  details,
  .source-list > li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  .faq summary {
    list-style: none;
  }

  .faq summary::-webkit-details-marker {
    display: none;
  }

  /* the eligibility check prints as a short summary: what to ask for, and where */
  html.print-sum main > [data-lang] > :not(.checker),
  html.print-sum .checker > :not(.print-summary) {
    display: none !important;
  }

  html.print-sum .print-summary {
    display: block !important;
  }

  /* one sheet for a usual result: the QR footer carries the site name, so the page header stays off */
  html.print-sum .site-header {
    display: none !important;
  }

  html.print-sum main.prose {
    padding-block: 0;
  }

  .print-summary {
    font-size: 9.5pt;
    line-height: 1.3;
  }

  .print-summary .sum-title {
    font-size: 16pt;
    border: 0;
    padding: 0;
    margin: 0 0 1.5mm;
  }

  .print-summary .sum-sub,
  .print-summary .sum-answers {
    margin: 0 0 1.5mm;
  }

  .print-summary .sum-answers {
    font-weight: 600;
  }

  .print-summary .sum-group {
    font-family: var(--serif);
    font-size: 13pt;
    margin: 3mm 0 1mm;
    border-bottom: 1px solid #000;
  }

  .print-summary .sum-list {
    margin: 0;
    padding-inline-start: 6mm;
  }

  .print-summary .sum-list > li {
    margin: 0 0 1.6mm;
  }

  .print-summary h4 {
    font-size: 10.5pt;
    margin: 0;
  }

  .print-summary .sum-list p {
    margin: 0;
    font-size: 9.5pt;
    line-height: 1.3;
  }

  .print-summary .sum-who,
  .print-summary .sum-src {
    font-size: 8pt !important;
    color: #333;
  }

  .print-summary .sum-url {
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
  }

  .print-foot {
    display: flex !important;
    align-items: center;
    gap: 6mm;
    margin-top: 4mm;
    padding-top: 3mm;
    border-top: 1px solid #000;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pf-qr svg {
    display: block;
    width: 3cm;
    height: 3cm;
  }

  .print-foot p {
    margin: 0 0 1mm;
    color: #000;
  }

  .pf-name {
    font-family: var(--serif);
    font-size: 15pt;
    font-weight: 700;
  }

  .pf-url {
    font-size: 11pt;
    text-align: start;
  }

  .pf-scan,
  .pf-date {
    font-size: 9.5pt;
  }
}

/* design-v2 additions for paper: the band, panels and new components print as plain black on white */
@media print {
  :root,
  :root[data-theme] {
    --link: #000 !important;
    --link-hover: #000 !important;
    --band: #fff !important;
    --band-ink: #000 !important;
    --nav-bg: #fff !important;
    --line-strong: #000 !important;
    --dot: #000 !important;
  }

  .site-header,
  .start {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    clip-path: none !important;
  }

  .start {
    padding-block: 0 4mm;
  }

  .service-nav,
  .gy-more {
    display: none !important;
  }

  .masthead {
    min-height: 0;
    padding-block: 0 2mm;
  }

  .prose > [data-lang] {
    display: block !important;
  }

  .paths {
    margin-top: 0;
  }

  .paths a,
  .figures li,
  .callout,
  .sources,
  .lines > li,
  .src,
  .results .item {
    background: none !important;
  }

  .src {
    padding: 0;
  }

  .src::before,
  .faq summary::after {
    display: none;
  }

  .notice.warn::before {
    background: #000;
    color: #fff;
  }

  ol.do > li::before {
    background: #fff;
  }

  .site-footer {
    background: #fff;
  }
}

.mark-qm { fill: #2b5f58; }
:root[data-theme="dark"] .mark-qm { fill: #8cc4b9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-qm { fill: #8cc4b9; }
}

/* ---------- colour round (24.11.2026): topic hues carried by the content ---------- */
:root {
  --cat: var(--c-violet);
  --cat-band: var(--c-violet-band);
  --cat-soft: var(--c-violet-soft);
}

body[data-page="damage"] { --cat: var(--c-ochre); --cat-band: var(--c-ochre-band); --cat-soft: var(--c-ochre-soft); }
body[data-page="reservists"] { --cat: var(--c-olive); --cat-band: var(--c-olive-band); --cat-soft: var(--c-olive-soft); }
body[data-page="help"] { --cat: var(--c-berry); --cat-band: var(--c-berry-band); --cat-soft: var(--c-berry-soft); }

.paths a[href="/damage"] { --cat: var(--c-ochre); --cat-band: var(--c-ochre-band); --cat-soft: var(--c-ochre-soft); }
.paths a[href="/reservists"] { --cat: var(--c-olive); --cat-band: var(--c-olive-band); --cat-soft: var(--c-olive-soft); }
.paths a[href="/check"] { --cat: var(--c-violet); --cat-band: var(--c-violet-band); --cat-soft: var(--c-violet-soft); }
.paths a[href="/help"] { --cat: var(--c-berry); --cat-band: var(--c-berry-band); --cat-soft: var(--c-berry-soft); }

.results > li[data-group="reservist"] { --cat: var(--c-olive); --cat-soft: var(--c-olive-soft); }
.results > li[data-group="partner"] { --cat: var(--c-berry); --cat-soft: var(--c-berry-soft); }

h1,
h2,
.lead,
.start p {
  text-wrap: balance;
}

/* inner pages open with a solid band in the page's topic hue: the title and the answer-first line */
.prose {
  padding-top: 0;
}

.prose > [data-lang] > h1:first-child,
.prose > [data-lang] > h1:first-child + .lead {
  background: var(--cat-band);
  color: #ffffff;
  box-shadow: 0 0 0 100vmax var(--cat-band);
  clip-path: inset(0 -100vmax);
  margin: 0;
}

.prose > [data-lang] > h1:first-child {
  padding-block: 40px 12px;
}

.prose > [data-lang] > h1:first-child:not(:has(+ .lead)) {
  padding-bottom: 36px;
}

.prose > [data-lang] > h1:first-child + .lead {
  padding-bottom: 40px;
  opacity: 1;
}

@media (min-width: 768px) {
  .prose > [data-lang] > h1:first-child { padding-block: 64px 16px; margin: 0; }
  .prose > [data-lang] > h1:first-child:not(:has(+ .lead)) { padding-bottom: 56px; }
  .prose > [data-lang] > h1:first-child + .lead { padding-bottom: 56px; }
}

.prose > [data-lang] > h1:first-child + .lead + * {
  margin-top: 32px;
}

@media (min-width: 1100px) {
  .prose > [data-lang] > .toc {
    grid-row: 3 / span 90;
    margin-top: 40px;
    border-top-color: var(--cat);
  }
}

/* home task cards: a full-colour icon tile and a top edge in the topic hue */
.paths a {
  border-top-color: var(--cat);
  grid-template-columns: 52px minmax(0, 1fr);
}

.paths .path-icon {
  width: 52px;
  height: 52px;
  padding: 10px;
  margin-top: 0;
  background: var(--cat-band);
  stroke: #ffffff;
}

.paths a strong {
  color: var(--text);
  text-decoration-color: var(--cat);
  text-decoration-thickness: 2px;
}

.paths a:hover {
  background: var(--cat-soft);
  border-color: var(--cat);
  border-top-color: var(--cat);
}

.paths a:hover strong {
  color: var(--text);
}

/* steps, figures, callouts and questions take the page's hue */
ol.do > li::before {
  background: var(--cat-band);
  border-color: var(--cat-band);
  color: #ffffff;
}

ol.do > li:not(:last-child)::after {
  background: var(--cat);
  opacity: 0.45;
}

.figures li {
  background: var(--cat-soft);
  border-top-color: var(--cat);
}

.figures .fig {
  color: var(--cat);
}

.callout {
  border-inline-start-color: var(--cat);
  background: var(--cat-soft);
}

.faq summary::after {
  border-color: var(--cat);
  background: linear-gradient(var(--cat), var(--cat)) center / 12px 2px no-repeat,
    linear-gradient(var(--cat), var(--cat)) center / 2px 12px no-repeat;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--cat), var(--cat)) center / 12px 2px no-repeat;
}

.item h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.item h3::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--cat);
  transform: translateY(-0.1em);
}

.src::before {
  background: var(--cat);
}

.facts-table thead th {
  border-bottom-color: var(--cat);
}

.lines > li,
.results .item {
  border-top-color: var(--cat);
  border-inline-start-color: var(--cat);
}

.results > li[data-group] > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results > li[data-group] > h3::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--cat);
  flex: none;
}

.lines .btn {
  background: var(--cat-band);
  box-shadow: 0 2px 0 var(--go-edge);
}

.lines .btn:hover {
  background: var(--cat-band);
  filter: brightness(1.12);
}

.check-status {
  background: var(--c-violet-soft);
  border-inline-start-color: var(--c-violet);
}

@media print {
  .prose > [data-lang] > h1:first-child,
  .prose > [data-lang] > h1:first-child + .lead {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    clip-path: none !important;
    padding-block: 0 2mm !important;
  }

  .paths .path-icon,
  ol.do > li::before {
    background: #fff !important;
    stroke: #000 !important;
    color: #000 !important;
    border-color: #000 !important;
  }

  .figures li,
  .callout {
    background: none !important;
  }
}

/* ---------- round 2 (24.11.2026) ---------- */
/* the band behind the title and the lead is one surface: overlap by a pixel so no seam shows */
.prose > [data-lang] > h1:first-child {
  clip-path: inset(0 -100vmax -1px);
}

.prose > [data-lang] > h1:first-child + .lead {
  clip-path: inset(-1px -100vmax 0);
}

/* the signature: the site's mark as a large stamp in the home hero (wide screens) */
@media (min-width: 900px) {
  .start {
    position: relative;
  }

  .start::after {
    content: "";
    position: absolute;
    inset-inline-end: 2%;
    top: 44px;
    width: 220px;
    height: 220px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2064%2064'%3E%3Crect%20x%3D'12'%20y%3D'8'%20width%3D'29'%20height%3D'40'%20rx%3D'1.5'%20fill%3D'none'%20stroke%3D'white'%20stroke-opacity%3D'.9'%20stroke-width%3D'1.5'%2F%3E%3Cpath%20d%3D'M18%2018h17M18%2024h17M18%2030h11'%20stroke%3D'white'%20stroke-opacity%3D'.9'%20stroke-width%3D'1.5'%2F%3E%3Ccircle%20cx%3D'42'%20cy%3D'46'%20r%3D'10'%20fill%3D'%23ffc24a'%2F%3E%3Ccircle%20cx%3D'42'%20cy%3D'46'%20r%3D'13.5'%20fill%3D'none'%20stroke%3D'%23ffc24a'%20stroke-width%3D'1.1'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    pointer-events: none;
  }

  /* each guide band carries its topic icon, large and quiet */
  .prose {
    position: relative;
  }

  .prose::before {
    content: "";
    position: absolute;
    inset-inline-end: var(--gutter);
    top: 40px;
    width: 112px;
    height: 112px;
    z-index: 1;
    background: rgb(255 255 255 / 0.5);
    -webkit-mask: var(--page-icon, url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2032'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M8%204h11l6%206v18H8z'%2F%3E%3Cpath%20d%3D'M19%204v6h6M12%2016h9M12%2021h9'%2F%3E%3C%2Fsvg%3E")) center / contain no-repeat;
    mask: var(--page-icon, url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2032'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M8%204h11l6%206v18H8z'%2F%3E%3Cpath%20d%3D'M19%204v6h6M12%2016h9M12%2021h9'%2F%3E%3C%2Fsvg%3E")) center / contain no-repeat;
    pointer-events: none;
  }
}

body[data-page="damage"] { --page-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2032'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%2015%2016%205l12%2010'%2F%3E%3Cpath%20d%3D'M7%2013v14h18V13'%2F%3E%3Cpath%20d%3D'm17%209-3%206%204%203-3%205'%2F%3E%3C%2Fsvg%3E"); }
body[data-page="reservists"] { --page-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2032'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M16%204%206%208v7c0%206.5%204.2%2011%2010%2013%205.8-2%2010-6.5%2010-13V8z'%2F%3E%3Cpath%20d%3D'm11.5%2016%203%203%206-6'%2F%3E%3C%2Fsvg%3E"); }
body[data-page="check"] { --page-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2032'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm5%208%202%202%204-4M5%2017l2%202%204-4M5%2026l2%202%204-4'%2F%3E%3Cpath%20d%3D'M15%208h12M15%2017h12M15%2026h8'%2F%3E%3C%2Fsvg%3E"); }
body[data-page="help"] { --page-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2032%2032'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9%204h-3a2%202%200%200%200-2%202c0%2012%2010%2022%2022%2022a2%202%200%200%200%202-2v-3l-6-3-3%203c-3.5-1.5-6.5-4.5-8-8l3-3z'%2F%3E%3C%2Fsvg%3E"); }

/* pages without an "on this page" list use the width: help lines and app cards in two columns */
@media (min-width: 900px) {
  .prose > [data-lang] > .lines,
  .prose > [data-lang] > .apps-list {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .prose > [data-lang] > .apps-list {
    column-gap: 48px;
  }
}

.lines > li {
  display: flex;
  flex-direction: column;
}

.lines > li > .src {
  margin-top: auto !important;
}

@media print {
  .start::after,
  .prose::before {
    display: none !important;
  }
}

/* ---------- round 3 (24.11.2026): reflow with text at 200% on a 360 px phone ---------- */
.masthead {
  flex-wrap: wrap;
}

.brand {
  min-width: 0;
}

.nav ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav a,
.gy-more-list a span,
.paths a strong,
.toc a,
.footer-links a {
  overflow-wrap: anywhere;
  min-width: 0;
}

.figures {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.paths a {
  grid-template-columns: 52px minmax(0, 1fr);
}

.notice.warn {
  font-weight: 400;
}

/* ---------- stage D round 1 (24.11.2026): critic round 1 must-fix ---------- */

/* 1. long guides on phones: a compact two-column "on this page", so step 1 shows in the first screen
   (the print button now sits at the end of each guide) */
@media (max-width: 1099px) {
  .toc {
    margin-block: 20px 0;
  }

  .toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .toc li {
    gap: 8px;
  }

  .toc li::before {
    width: 10px;
  }

  .toc a {
    font-size: 1rem;
    line-height: 1.3;
  }
}

.print-row {
  margin-block: 40px 0;
}

/* 2. phones: mark, name and both toggles on one row; the service nav is one row that scrolls sideways */
@media (max-width: 767px) {
  .masthead {
    gap: 8px;
    min-height: 60px;
  }

  .brand {
    font-size: 1.25rem;
    gap: 8px;
  }

  .brand svg {
    width: 26px;
    height: 26px;
  }

  .controls {
    gap: 6px;
  }

  .site-header .icon-btn {
    padding-inline: 10px;
  }

  .nav ul {
    display: flex;
    gap: 0 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-inline-end: 40px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }

  [dir="rtl"] .nav ul {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  }

  .nav ul::-webkit-scrollbar {
    display: none;
  }

  .nav li {
    flex: none;
  }

  .nav a {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* the home header rule lines up with the content edge, not the wrap's padding */
body[data-page="home"] .service-nav .wrap {
  border-top: 0;
}

body[data-page="home"] .nav {
  border-top: 1px solid rgb(255 255 255 / 0.22);
}

/* 3. checkboxes and radios: a 2 px violet frame, violet fill with a white tick when checked (both themes) */
:root {
  --ctl-edge: #5b2db3;
  --ctl-fill: #5b2db3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ctl-edge: #b9a6f0;
    --ctl-fill: #8458e8;
  }
}

:root[data-theme="dark"] {
  --ctl-edge: #b9a6f0;
  --ctl-fill: #8458e8;
}

.opt input,
.fb-kinds input {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  flex: none;
  display: inline-grid;
  place-content: center;
  border: 2px solid var(--ctl-edge);
  border-radius: 3px;
  background: var(--bg);
  cursor: pointer;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.opt input[type="radio"],
.fb-kinds input[type="radio"] {
  border-radius: 50%;
}

.opt input:checked,
.fb-kinds input:checked {
  background: var(--ctl-fill);
  border-color: var(--ctl-fill);
}

.opt input[type="checkbox"]:checked::before,
.fb-kinds input[type="checkbox"]:checked::before {
  content: "";
  width: 12px;
  height: 7px;
  border: solid #fff;
  border-width: 0 0 3px 3px;
  transform: translateY(-2px) rotate(-45deg);
}

.opt input[type="radio"]:checked::before,
.fb-kinds input[type="radio"]:checked::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.opt input:focus-visible,
.fb-kinds input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* 4. no orphans: balanced card titles, pretty paragraphs in cards, band leads and inset text */
.paths a strong {
  text-wrap: balance;
}

.paths a span,
.lines p,
.lead,
.start p,
.notice,
.callout p {
  text-wrap: pretty;
}

/* 5. help cards: the source is a plain row under a hairline, not a panel inside the card */
.lines > li .src {
  background: none;
  border-top: 1px solid var(--line);
  margin-block: auto 0 !important;
  padding: 12px 0 0;
  padding-inline-start: 26px;
  font-size: 0.9375rem !important;
}

.lines > li .btn-row {
  margin-bottom: 20px;
}

.lines > li .src::before {
  inset-inline-start: 0;
  top: 15px;
}

/* should-fix: dark home cards one step above the page; a brighter ochre band in dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-ochre-band: #7d4310;
  }

  :root:not([data-theme="light"]) .paths a {
    background: #1d1738;
  }
}

:root[data-theme="dark"] {
  --c-ochre-band: #7d4310;
}

:root[data-theme="dark"] .paths a {
  background: #1d1738;
}

/* phones: a tighter guide opening (band, inset text, contents), so the first step reaches the first screen */
@media (max-width: 699px) {
  .prose > [data-lang] > h1:first-child {
    font-size: 1.75rem;
    padding-block: 24px 8px;
  }

  .prose > [data-lang] > h1:first-child + .lead {
    font-size: 1.125rem;
    line-height: 1.45;
    padding-bottom: 24px;
  }

  .prose > [data-lang] > h1:first-child + .lead + * {
    margin-top: 20px;
  }

  .notice {
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .prose .toc + h2 + .item {
    margin-top: 20px;
  }

  .toc ul {
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    column-gap: 12px;
  }

  .toc li::before {
    display: none;
  }

  .prose .toc + h2 {
    margin-top: 20px;
    padding-top: 20px;
  }
}
