@charset "utf-8";
/* ============================================================
   PathEdge — site stylesheet
   Rebuilt from the Master Context v11 design tokens.
   RTL-first (Hebrew). Mobile-first: base rules are the 320px
   layout; breakpoints add columns upward.

   The three retired v6/v7 colour values (the old teal, the old hero
   highlight and the old terracotta) are listed in Master Context v11 §2.
   None of them appear in this file — deliberately not even in a comment,
   so a plain grep over the built output stays a valid check.
   ============================================================ */

/* ---------- 1. Fonts (self-hosted, subset woff2) ---------- */

@font-face {
  font-family: 'Assistant'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/assistant-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: 'Assistant'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/assistant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Assistant'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/assistant-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;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/frankruhl-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: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/frankruhl-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/frankruhl-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;
}

/* ---------- 2. Tokens (Master Context v11 §2) ---------- */

:root {
  /* Surfaces */
  --navy:          #1D3557;
  --navy-deep:     #0A2C3E;
  --beige:         #EFE9DC;
  --beige-section: #E6DFCD;
  --beige-foot:    #E2DBC8;
  --ink:           #161616;
  --paper:         #F5F4F1;

  /* Interactive blue — surface-bound. Never swap these two.
     --teal-on-dark  4.56:1 on navy   |  --teal-on-light 5.17:1 on beige */
  --teal-on-dark:  #2AA9D6;
  --teal-on-light: #1A6884;

  /* Hero H1 highlight — 3.03:1 on beige (large text) */
  --highlight:     #2F8EBE;

  /* Validation / error — 5.18:1 on beige */
  --accent-terracotta: #9F4434;

  /* Accent */
  --accent:        var(--navy);

  /* Soft text + hairlines */
  --ink-soft:      rgba(0,0,0,.72);
  --paper-soft:    rgba(245,244,241,.78);
  --hair-light:    rgba(0,0,0,.08);
  --hair-dark:     rgba(255,255,255,.12);

  /* Facilitator colour-coding — always paired with a non-colour cue */
  --fac-elad:      #1A6884;
  --fac-oren:      #2F6B4F;
  --fac-peter:     #D4A24C;
  --fac-stavros:   #6B6B6B;

  /* Resolved semantics (light surface default) */
  --bg:            var(--beige);
  --section:       var(--beige-section);
  --foot:          var(--beige-foot);
  --fg:            var(--ink);
  --fg-soft:       var(--ink-soft);
  --hair:          var(--hair-light);
  --link:          var(--teal-on-light);

  /* Typography */
  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body:    'Assistant', 'Helvetica Neue', Arial, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  --h1-size: clamp(28px, 3.8vw, 44px);  --h1-lh: 1.28;
  --h2-size: clamp(22px, 2.2vw, 26px);  --h2-lh: 1.3;
  --h3-size: 20px;                      --h3-lh: 1.35;
  --body-size: 17px;                    --body-lh: 1.75;
  --lead-size: 18.5px;                  --lead-lh: 1.7;
  --nav-size: 15.5px;
  --eyebrow-size: 15px;
  --quote-size: 19px;

  /* Small / secondary text — one scale, used site-wide (Roadmap A.1).
     Nothing on the site may sit below --fs-fine. */
  --fs-fine:  14px;   /* fine print, legal, footnotes  */
  --fs-small: 15px;   /* captions, labels, meta        */
  --fs-mid:   16px;   /* card body, dense copy         */

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y:   clamp(40px, 7vw, 96px);
  --page-gutter: clamp(16px, 5vw, 64px);
  --content-max: 1120px;
  --prose-max:   700px;
  --lead-max:    640px;

  /* Radius — STANDING RULE: 12px on all imagery, cards, galleries */
  --radius: 12px; --radius-sm: 8px; --radius-pill: 999px;

  /* Controls */
  --tap: 44px;                 /* minimum touch target (SI 5568) */
  --pill-pad-y: 14px; --pill-pad-x: 28px; --pill-size: 15px; --pill-border: 1.5px;

  --nav-h: 64px;
  --logo-nav: 44px;
  --logo-foot: 56px;

  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);

  /* Motion */
  --ease: cubic-bezier(.2,.6,.2,1);
  --dur: 180ms;

  /* Focus indicator — a real token. 3:1+ against both navy and beige. */
  --focus-ring: 3px;
  --focus-offset: 2px;
  --focus-on-light: #0F4C63;
  --focus-on-dark:  #7FD3F0;
}

@media (min-width: 900px) {
  :root { --nav-h: 72px; --logo-nav: 52px; }
}

/* Dark surface context (navy bar, navy panels) */
.on-dark {
  --fg: var(--paper);
  --fg-soft: var(--paper-soft);
  --hair: var(--hair-dark);
  --link: var(--teal-on-dark);
  color: var(--fg);
}

/* ---------- 3. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep in-page anchors clear of the sticky bar */
  scroll-padding-top: calc(var(--nav-h) + var(--space-4));
}

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--fg);
  background: var(--bg);
  text-align: start;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* nothing may push the page wider than the viewport */
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--h1-size); font-weight: var(--fw-medium); line-height: var(--h1-lh); }
h2 { font-size: var(--h2-size); font-weight: var(--fw-bold);   line-height: var(--h2-lh); }
h3 { font-size: var(--h3-size); font-weight: var(--fw-medium); line-height: var(--h3-lh); }
h4 { font-size: 17px;           font-weight: var(--fw-semibold); line-height: 1.4; }

p { margin: 0 0 1em; text-wrap: pretty; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* A link sitting inside a block of text must be distinguishable from that text
   without relying on colour (WCAG 1.4.1). --teal-on-light against --ink is
   under 3:1, so these carry a permanent underline rather than only on hover.
   Standalone links — nav, footer nav, cards, buttons — are not in a text block
   and are identified by position, so they are left alone.
   Scoped to <p>/<dd>/<label> specifically, not <li>: a plain <li> wrapping a
   whole card or button (.card--link, .tlink, .linklist) is itself the kind of
   "identified by position" link this rule is meant to exclude — catching it
   via `li` produced the opposite of the intended effect: underlined at rest,
   then the card's own :hover rule removed it, so hovering looked like the
   link was being un-linked. */
main p a,
main dd a,
main label a { text-decoration: underline; text-underline-offset: 3px; }

/* STANDING RULE: 12px rounded corners on all imagery */
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--hair); margin: var(--space-6) 0; }

/* Latin-script runs inside Hebrew copy */
[lang="en"] { unicode-bidi: isolate; }

/* ---------- 4. Focus (WCAG 2.4.7 / SI 5568) ---------- */

:focus { outline: none; }
:focus-visible {
  outline: var(--focus-ring) solid var(--focus-on-light);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}
.on-dark :focus-visible,
.nav-bar :focus-visible {
  outline-color: var(--focus-on-dark);
}
/* Browsers without :focus-visible still get a ring */
@supports not selector(:focus-visible) {
  :focus { outline: var(--focus-ring) solid var(--focus-on-light); outline-offset: var(--focus-offset); }
}

.skip {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100%;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-weight: var(--fw-semibold);
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: var(--space-3); }

/* ---------- 5. Layout primitives ---------- */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--surface { background: var(--section); }

.prose { max-width: var(--prose-max); }
.lead  { max-width: var(--lead-max); font-size: var(--lead-size); line-height: var(--lead-lh); color: var(--fg-soft); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.stack--5 { gap: var(--space-5); }
.stack--6 { gap: var(--space-6); }

/* Auto-fitting card grid. minmax(min(X,100%),1fr) is what keeps this from
   overflowing at 320px — a bare minmax(260px,1fr) would not. */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--tight { gap: var(--space-4); }

/* Two-part split (text + media). Single column until there is room. */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--text-wide { grid-template-columns: 1.4fr 1fr; }
}

/* Row of buttons/links that must wrap rather than overflow */
.row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.row--tight { gap: var(--space-3); }

/* Anything that could still be wider than its box scrolls inside itself
   rather than widening the page. */
.scroll-x { overflow-x: auto; }

/* ---------- 6. Type utilities ---------- */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: var(--fw-bold);
  letter-spacing: .04em;
  color: var(--teal-on-light);
  margin-bottom: var(--space-3);
}
.section--surface .eyebrow { color: var(--teal-on-light); }

.soft  { color: var(--fg-soft); }
.fine  { font-size: var(--fs-fine); line-height: 1.65; }
.small { font-size: var(--fs-small); line-height: 1.7; }
.mid   { font-size: var(--fs-mid); line-height: 1.7; }

/* Hero H1 highlight — reads from the token, never an inline literal */
.hl { color: var(--highlight); font-weight: 800; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, var(--quote-size));
  line-height: 1.6;
  font-style: italic;
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.55;
  font-style: normal;
}

/* Numbers, prices, phone numbers, dates: keep LTR runs intact */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Numbered badge used in benefit lists */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex: 0 0 auto;
  margin-inline-end: var(--space-3);
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
  font-weight: var(--fw-bold);
  vertical-align: middle;
}

/* Unresolved placeholder in the two legal drafts — deliberately visible
   (Master Context §7a: placeholder, never invented text). */
.ph {
  background: rgba(159, 68, 52, .10);
  border-bottom: 1px dashed var(--accent-terracotta);
  padding: 0 .25em;
}

/* ---------- 7. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--pill-pad-y) var(--pill-pad-x);
  border-radius: var(--radius-pill);
  border: var(--pill-border) solid transparent;
  font-family: var(--font-body);
  font-size: var(--pill-size);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  /* long Hebrew CTA labels must wrap, not overflow */
  max-width: 100%;
  white-space: normal;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.btn--primary:hover { background: #16283F; border-color: #16283F; color: var(--paper); }

.btn--secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: var(--paper); }

.btn--on-dark {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--navy);
}
.btn--on-dark:hover { background: transparent; color: var(--paper); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

/* A list of links acting as navigation (404 page) — each is a real target,
   not an inline link inside a sentence, so each must meet 44px. */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { margin: 0; }
.linklist a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 15.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Text link that still meets the touch-target minimum */
.tlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--teal-on-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 8. Navigation ---------- */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--hair-dark);
}

.nav {
  display: flex;
  /* Logo on the left, menu on the right — matches the approved design
     (its DS stylesheet carried `nav.pe-nav{flex-direction:row-reverse}`,
     scoped to this bar only; the footer keeps plain RTL flow). */
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--nav-h);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--tap);
}
.nav-logo img {
  height: var(--logo-nav);
  width: auto;
  border-radius: 0;
}

/* Hamburger — the mobile mechanism */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: auto;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
/* same reason as .form[hidden]: the toggle ships hidden and is revealed by JS,
   so a no-JS visitor never sees a button that could not do anything */
.nav-toggle[hidden] { display: none; }
.nav-toggle .bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: ""; position: absolute; inset-inline: 0; height: 2px;
  background: currentColor; border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span    { top: 5px; }
.nav-toggle .bars::after  { bottom: 0; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  /* short Hebrew labels ("בית") would otherwise be a ~22px-wide target */
  min-width: var(--tap);
  font-family: var(--font-body);
  font-size: var(--nav-size);
  font-weight: var(--fw-semibold);
  color: var(--paper);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}
.nav-links a:hover, .nav-parent:hover { color: var(--teal-on-dark); text-decoration: none; }

/* Active page: colour AND a non-colour cue (underline) AND aria-current.
   Colour alone would fail WCAG 1.4.1. */
.nav-links a[aria-current="page"],
.nav-parent[data-current="true"] {
  color: var(--teal-on-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-parent .chev {
  width: 10px; height: 10px; flex: 0 0 auto;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
  margin-block-start: -4px;
}
.nav-parent[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-block-start: 2px; }

.nav-sub { list-style: none; margin: 0; padding: 0; }

/* ---- Mobile nav (< 900px): drawer + inline accordion submenus ---- */
@media (max-width: 899.98px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--hair-dark);
    padding: var(--space-3) var(--page-gutter) var(--space-5);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,.28);
  }
  .nav-links[hidden] { display: none; }
  .nav { position: relative; }
  .nav-links > li { border-bottom: 1px solid var(--hair-dark); margin: 0; }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links > li > a,
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding-block: var(--space-3);
    font-size: 16.5px;
  }
  .nav-sub { padding: 0 0 var(--space-3); }
  .nav-sub[hidden] { display: none; }
  .nav-sub a {
    padding-block: var(--space-2);
    padding-inline-start: var(--space-4);
    font-weight: var(--fw-medium);
    color: var(--paper-soft);
  }
  .nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--teal-on-dark); }
  body.nav-open { overflow: hidden; }
}

/* ---- Desktop nav (>= 900px): inline row + floating disclosure panels ---- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;      /* beats the [hidden] attribute the JS toggles */
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-links > li { position: relative; margin: 0; }

  .nav-sub {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    min-width: 220px;
    background: var(--paper);
    border: 1px solid var(--hair-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-2);
    z-index: 20;
  }
  .nav-sub[hidden] { display: none; }
  .nav-sub a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: var(--fw-medium);
    white-space: nowrap;
  }
  .nav-sub a:hover { background: var(--beige-section); color: var(--ink); }
  .nav-sub a[aria-current="page"] {
    color: var(--teal-on-light);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .nav-sub :focus-visible { outline-color: var(--focus-on-light); }

  /* nav labels stay on one line at desktop, where they always fit */
  .nav-links > li > a, .nav-parent { white-space: nowrap; }

  /* Hover is an ENHANCEMENT for fine pointers only — never the mechanism.
     The click path (below) works everywhere, including here. */
  @media (hover: hover) and (pointer: fine) {
    .nav-links > li:hover > .nav-sub { display: block; }
  }
}

/* ---------- 9. Footer ---------- */

.foot {
  background: var(--foot);
  border-top: 1px solid var(--hair);
  padding-block: var(--space-6) var(--space-5);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.foot-logo img {
  /* the only logo asset is white line art on transparent; darken it for
     the light footer surface rather than shipping a second file */
  height: var(--logo-foot);
  width: auto;
  border-radius: 0;
  filter: brightness(0);
  opacity: .82;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  font-size: var(--nav-size);
  font-weight: var(--fw-medium);
  color: var(--fg);
}
.foot-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.foot-mail {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: var(--fw-semibold);
  color: var(--teal-on-light);
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hair);
}
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.foot-legal a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--fs-fine); color: var(--teal-on-light); text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-copy { font-size: var(--fs-fine); color: var(--fg-soft); }

/* ---------- 10. Cards, media, panels ---------- */

.card {
  background: var(--section);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: var(--space-6);
  /* min-height, never height — fixed heights clip at 200% zoom */
  min-height: 0;
}
.card--link { display: block; color: var(--fg); transition: background var(--dur) var(--ease); }
.card--link:hover { background: var(--beige-foot); text-decoration: none; }
.card--plain { background: transparent; }
.card h3 { margin-block: var(--space-2) var(--space-3); }

.panel {
  background: var(--section);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
}
.panel--dark {
  background: var(--navy);
  border-color: var(--hair-dark);
}

/* Media slot — aspect-ratio based, so it can never collapse to a sliver
   the way a fixed-height flex child does at 320px. */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-section);
  aspect-ratio: 16 / 10;
}
.media > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.media--wide    { aspect-ratio: 21 / 9; }
.media--4x3     { aspect-ratio: 4 / 3; }
.media--square  { aspect-ratio: 1 / 1; }
.media--portrait{ aspect-ratio: 3 / 4; }

/* Fact grid — auto-fit, so a long value can never push a sibling off-screen */
.facts {
  display: grid;
  gap: var(--space-4) var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}
.fact { min-width: 0; }
.fact dt {
  font-size: var(--fs-small);
  color: var(--fg-soft);
  margin-bottom: var(--space-1);
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-medium);
  overflow-wrap: break-word;
}

/* Timeline (Olympus Journey days) */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.tl-item {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--hair);
  margin: 0;
}
.tl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--beige-section); }
.tl-media > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tl-day { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--teal-on-light); }
@media (min-width: 768px) {
  /* text first, then a flexible (not fixed) media track */
  .tl-item { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); align-items: start; gap: var(--space-6); }
}

/* Gallery */
.gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.gallery li { margin: 0; }
.gallery .media { aspect-ratio: 3 / 2; }

/* People (facilitators) */
.people { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.person {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--hair);
  margin: 0;
}
.person:last-child { border-bottom: 0; padding-bottom: 0; }
.person-photo { width: min(220px, 60%); }
.person-photo .media { aspect-ratio: 1 / 1; }
.person h3 { margin: 0 0 var(--space-1); }
/* Matches the original design (.person span{color:var(--accent);font-weight:600}) —
   the role line was accent-coloured, not the muted --fg-soft I'd used. */
.person-role { display: block; font-size: var(--fs-small); color: var(--accent); font-weight: var(--fw-semibold); margin-bottom: var(--space-3); }
@media (min-width: 700px) {
  .person { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: var(--space-6); }
  .person-photo { width: 100%; }
  /* No-photo variant (Stavros — the source Design export never supplied an
     image for him, only a labelled empty slot) has one child, not two, so
     the 2-column template above left it stranded in the 220px photo track
     with the rest of the row empty. Full width instead. */
  .person--nophoto { grid-template-columns: 1fr; }
}

/* Facilitator colour-coding: colour PLUS a shape cue and a text label,
   so the coding never depends on colour alone (WCAG 1.4.1). */
.fac { border-inline-start: 4px solid var(--fac, var(--hair)); padding-inline-start: var(--space-4); }
.fac--elad    { --fac: var(--fac-elad); }
.fac--oren    { --fac: var(--fac-oren); }
.fac--peter   { --fac: var(--fac-peter); }
.fac--stavros { --fac: var(--fac-stavros); }

/* Note / aside blocks */
.note {
  border-inline-start: 3px solid var(--teal-on-light);
  padding: var(--space-3) var(--space-4);
  background: var(--section);
  border-radius: var(--radius-sm);
  font-size: var(--fs-mid);
}
.note--quiet { border-inline-start-color: var(--hair); }

/* Definition-style content lists */
.deflist { margin: 0; }
.deflist dt { font-weight: var(--fw-semibold); margin-top: var(--space-4); }
.deflist dt:first-child { margin-top: 0; }
.deflist dd { margin: var(--space-1) 0 0; color: var(--fg-soft); }

/* ---------- 11. Forms ---------- */

.form { display: grid; gap: var(--space-5); max-width: 640px; }
/* `display: grid` above outranks the UA's [hidden] rule, so the form would
   stay on screen after a successful submission. Restore the attribute. */
.form[hidden] { display: none; }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field > label { font-size: var(--fs-small); font-weight: var(--fw-semibold); }

.input, .select, .textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-mid);
  line-height: 1.5;
  color: var(--fg);
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.28);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: left calc(var(--space-4) + 4px) center, left var(--space-4) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-start: calc(var(--space-4) * 2.2);
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(0,0,0,.45); }

/* Valid state — quiet, non-alarming, --teal-on-light. No asterisks,
   no "this field is required" copy (Backlog item 2). */
.field[data-valid="true"] .input,
.field[data-valid="true"] .select,
.field[data-valid="true"] .textarea {
  border-color: var(--teal-on-light);
  box-shadow: inset 0 0 0 1px var(--teal-on-light);
}
.field-ok {
  display: none;
  font-size: var(--fs-fine);
  color: var(--teal-on-light);
}
.field[data-valid="true"] .field-ok { display: block; }

.hint { font-size: var(--fs-fine); color: var(--fg-soft); }

/* Honeypot — off-screen, not display:none (some bots skip hidden fields) */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-fine);
  line-height: 1.6;
}
/* The LABEL is the touch target: it is full-width, at least 44px tall, and
   clicking it toggles the box. The box itself is 24px, which is the largest
   a checkbox can look without appearing broken. */
.check { min-height: var(--tap); }
.check input[type="checkbox"] {
  width: 24px; height: 24px;
  margin: 10px 0 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}
/* Block, not flex: `.check` is a grid, so the label is already blockified —
   but `display:flex` here would turn its mixed content (running text plus an
   inline <a> or <span>) into separate flex items instead of wrapping prose,
   visually chopping the sentence into pieces. A block box's full padding area
   is still clickable and still toggles the input via `for`, so min-height
   alone gives the 44px target without touching text flow. */
.check label {
  display: block;
  min-height: var(--tap);
  padding-block: var(--space-2);
  cursor: pointer;
}

/* Consent-gate validation message — approved as built. Only the colour
   moves, to --accent-terracotta. Do not redesign this interaction. */
.gate-msg {
  display: none;
  font-size: var(--fs-fine);
  font-weight: var(--fw-semibold);
  color: var(--accent-terracotta);
}
.gate-msg[data-show="true"] { display: block; }
.check input[aria-invalid="true"] { outline: 2px solid var(--accent-terracotta); outline-offset: 2px; }

/* Form result states */
.form-state { display: none; }
.form-state[data-show="true"] { display: block; }
.form-state h2 { margin-bottom: var(--space-4); }
.form-state--error { border-inline-start: 4px solid var(--accent-terracotta); padding-inline-start: var(--space-4); }
.form-state--ok    { border-inline-start: 4px solid var(--teal-on-light);     padding-inline-start: var(--space-4); }

.busy[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---------- 12. Contact channels ---------- */

.channels { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
/* The label was a plain inline <span>, but .channel is display:flex — which
   blockifies its own outer box, so it dropped to a new line below the label
   instead of sitting beside it. Make the <li> itself the flex row: label and
   value sit side by side when there's room, and wrap only if there isn't. */
.channels li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  margin: 0;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  font-size: var(--fs-mid);
  font-weight: var(--fw-semibold);
  color: var(--teal-on-light);
}
.channel-label { color: var(--fg-soft); font-weight: var(--fw-regular); font-size: var(--fs-small); }

/* ---------- 13. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 14. Print ---------- */

@media print {
  .nav-bar, .skip, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
