/* ===================================================================
   Unit 1 — Page 1: "רקע על תוכנית אתחלתא"
   Fully self-contained stylesheet — no external @import. Tokens,
   base reset, Header/Footer, sequential-nav and the page's own
   route/card styles all live here.
   =================================================================== */

:root {
  --white: #ffffff;
  --teal: #49bbbd;
  --navy: #1f3d64;
  --ink: #1a202c;
  --rose: #c37f80;
  --pink: #edbad9;
  --pink-soft: #ebc0db;
  --pink-wash: #fef2f6;
  --green: #a9d48f;
  --sky: #b9e4ed;
  --coral: #f59a97;
  --yellow: #ffee81;
  --nav-rule: #e3cbcb;
  --footer-rule: #feece9;
  --muted: #5b5b5b;
  --radius-lg: 16px;
  --radius-md: 11px;
  --shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --font: "Rubik", "Heebo", "Assistant", sans-serif;
  --font-email: "Plus Jakarta Sans", "Rubik", sans-serif;
  --content: 75rem;
  --text-h1: clamp(2rem, 1.15rem + 2.6vw, 2.625rem);
  --text-h2: clamp(1.5rem, 1.05rem + 1.6vw, 1.875rem);
  --text-h3: clamp(1.25rem, 1.05rem + 0.55vw, 1.3125rem);
  --text-h4: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --text-lead: 1rem;
  --text-body: 1rem;
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --prose-measure: 47em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--navy);
  background: var(--white);
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Hard safety cap so no image on this page can ever blow out the
   layout, regardless of its native pixel dimensions. */
.ata-unit-page img {
  max-height: 25rem;
}

.ata-unit-page .ata-step-pipe {
  max-height: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  cursor: pointer;
  transition: all 0.3s ease;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

p {
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.lead {
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: var(--lh-body);
}

/* Decorative background — scrolls naturally with the page content */
.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: url("../assets/home/homeBG.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: scroll;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Layout: header */
.site-header {
  background: var(--white);
  border-bottom: 0.625rem solid var(--nav-rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 10.25rem;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}

.main-nav a {
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
  font-size: var(--text-body);
  padding: 0.75rem 0;
  white-space: nowrap;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

/* Active page indicator — used in both the header and footer nav */
.active-nav-link {
  position: relative;
  color: #c37f80 !important;
  font-weight: 800;
}

.main-nav a.active-nav-link:hover,
.main-nav a.active-nav-link:focus-visible,
.footer-nav a.active-nav-link:hover,
.footer-nav a.active-nav-link:focus-visible {
  text-decoration: none;
}

.main-nav .active-nav-link::after,
.footer-nav .active-nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0.4rem;
  height: 0.125rem;
  background: #c37f80;
  border-radius: 999px;
}

.footer-nav .active-nav-link::after {
  bottom: -0.2rem;
}

.nav-toggle,
.nav-toggle-btn {
  display: none;
}

/* Layout: footer */
.site-footer {
  background: var(--white);
  border-top: 0.625rem solid var(--footer-rule);
  padding: 3rem 3rem 1.25rem;
}

.footer-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1.2fr) auto minmax(14rem, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 12.5rem;
  object-fit: contain;
}

.footer-tagline {
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  color: var(--teal);
}

.footer-support {
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  max-width: 25rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-email);
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  direction: ltr;
  color: var(--navy);
  cursor: pointer;
}

.footer-email svg,
.footer-email img,
.footer-email-icon {
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--teal);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
  padding-top: 0.5rem;
}

.footer-nav a {
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  color: var(--teal);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.footer-partners {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-partners img {
  width: auto;
  height: 4.75rem;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.footer-partners img.logo-mofet {
  height: 5rem;
}

.footer-partners img.logo-hinuch {
  height: 6rem;
}

.footer-partners img.logo-leon {
  height: 6.5rem;
}

/* Sequential navigation (Prev/Next) */
.ata-sequential-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

.ata-nav-prev,
.ata-nav-next {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  transition: opacity 0.3s ease;
}

.ata-nav-prev:hover,
.ata-nav-prev:focus-visible,
.ata-nav-next:hover,
.ata-nav-next:focus-visible {
  opacity: 0.75;
}

.ata-nav-prev-text,
.ata-nav-next-text {
  color: var(--navy);
}

.ata-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  transition: transform 0.3s ease;
}

.ata-nav-prev:hover .ata-nav-arrow,
.ata-nav-prev:focus-visible .ata-nav-arrow {
  transform: translateX(3px);
}

.ata-nav-next:hover .ata-nav-arrow,
.ata-nav-next:focus-visible .ata-nav-arrow {
  transform: translateX(-3px);
}

/* ===================================================================
   Page content: opening + growth route + cards
   =================================================================== */

.ata-unit-page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

/* Unit page title — "יחידה 1 | רקע על תוכנית אתחלתא" */
.ata-unit-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 2rem;
  padding: 0;
  font-size: var(--text-h1); /* 3rem desktop, 2rem mobile via breakpoint */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: right;
}

.ata-unit-title-index,
.ata-unit-title-name {
  color: var(--teal);
}

.ata-unit-title-divider {
  color: var(--rose);
  padding: 0 0.3em;
}

/* Opening */
.ata-about-opening {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.ata-about-section-title {
  width: 100%;
  max-width: 40rem;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--teal);
  letter-spacing: -0.02em;
  text-align: right;
}

.ata-about-opening-text {
  width: 100%;
  max-width: var(--prose-measure);
  text-wrap: pretty;
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.02em;
  text-align: right;
  color: var(--navy);
}

.ata-about-route-title {
  width: 100%;
  margin-top: 2rem;
  font-size: var(--text-h3); /* was 32px in the source — mapped to H3 */
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--teal);
  text-align: right;
}

/* Route — zigzag layout. Each stage is a plant + card row that
   alternates right / left. The L-shaped pipe PNGs share the same
   grid cell (behind the row) so they connect stages without
   absolute positioning. */
.ata-about-route {
  container-type: inline-size;
  width: 100%;
}

.ata-route-scale {
  width: 100%;
  position: relative;
}

.ata-route-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ata-mobile-connector {
  display: none;
}

@container (max-width: 72rem) {
  .ata-route-scale {
    height: 0;
    padding-bottom: 194.62%;
    overflow: hidden;
  }

  .ata-route-shell {
    position: absolute;
    top: 0;
    right: 0;
    width: 72rem;
    max-width: none;
    transform: scale(calc(100cqi / 72rem));
    transform-origin: top right;
  }
}

.ata-route-step {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin-bottom: 0.5rem;
}

.ata-route-step:last-child {
  margin-bottom: 0;
}

/*
  Each L-shaped PNG is a FRAME: the empty area is where the card + plant
  sit. Stretch the pipe to the same box as the content, and inset the
  content so it lives in the hollow — not on top of the stroke.
*/
.ata-step-pipe {
  grid-area: 1 / 1;
  width: auto;
  max-width: 18rem;
  height: auto;
  max-height: 11rem;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: transparent;
  z-index: 0;
}

.ata-route-step:nth-child(odd) .ata-step-pipe {
  justify-self: start;
  align-self: start;
}

.ata-route-step:nth-child(even) .ata-step-pipe {
  justify-self: end;
  align-self: start;
}

.ata-step-body {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 44rem);
  z-index: 1;
}

.ata-route-step:nth-child(odd) .ata-step-body {
  flex-direction: row-reverse;
  justify-self: start;
  padding: 1.25rem 0 0 0;
}

.ata-route-step:nth-child(even) .ata-step-body {
  flex-direction: row;
  justify-self: end;
  padding: 1.25rem 0 0 0;
}

.ata-pipe-yellow {
  max-width: none;
  max-height: none;
}

.ata-route-step:nth-child(odd):last-child .ata-step-body {
  padding: 1.25rem 0 0 0;
}

/* Pink stage — T on the card, arm to the left, pot ABOVE the corner */
.ata-step-1 {
  width: min(100%, 46rem);
  margin-inline-end: auto;
}

.ata-step-1 .ata-step-body {
  width: 100%;
  padding: 0;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.ata-step-1 .ata-step-lead {
  display: grid;
  direction: ltr;
  width: 7.5rem;
  flex-shrink: 0;
  overflow: visible;
}

.ata-step-1 .ata-pipe-pink {
  grid-area: 1 / 1;
  width: 32rem;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  justify-self: end;
  margin-right: -3.25rem;
  z-index: 0;
}

.ata-step-1 .ata-step-plant {
  grid-area: 1 / 1;
  z-index: 2;
  height: 10rem;
  align-self: start;
  justify-self: start;
  margin-top: 7.25rem;
  position: relative;
  left: -0.8rem;
  right: auto;
}

.ata-step-1 .ata-info-card {
  margin-top: 2.25rem;
  z-index: 1;
}

/* Blue stage — same card/pipe size as pink, mirrored to the left.
   Inverted L wraps the top + right; pot sits ABOVE the top-right corner. */
.ata-step-2 {
  width: min(100%, 46rem);
  margin-inline-start: auto;
  margin-top: -8.5rem;
}

.ata-step-2 .ata-step-body {
  width: 100%;
  padding: 0;
  flex-direction: row;
  align-items: flex-start;
}

.ata-step-2 .ata-step-lead {
  display: grid;
  direction: ltr;
  width: 7.5rem;
  flex-shrink: 0;
  overflow: visible;
}

.ata-step-2 .ata-pipe-blue {
  grid-area: 1 / 1;
  width: 27rem;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  justify-self: end;
  margin-top: 13rem;
  transform: translateX(-2.75rem);
  z-index: 0;
}

.ata-step-2 .ata-step-plant {
  grid-area: 1 / 1;
  z-index: 2;
  height: 10rem;
  align-self: start;
  justify-self: end;
  margin-top: 3rem;
  position: relative;
  left: auto;
  right: 19.5rem;
}

.ata-step-2 .ata-info-card {
  margin-top: 2.25rem;
  z-index: 1;
}

.ata-step-3 {
  width: min(100%, 46rem);
  margin-inline-end: auto;
  margin-top: -1.75rem;
}

.ata-step-3 .ata-step-body {
  width: 100%;
  padding: 0;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.ata-step-3 .ata-step-lead {
  display: grid;
  direction: ltr;
  width: 7.5rem;
  flex-shrink: 0;
  overflow: visible;
}

.ata-step-3 .ata-pipe-green {
  grid-area: 1 / 1;
  width: 22rem;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  justify-self: end;
  margin-right: -3.25rem;
  margin-top: 5rem;
  transform: translateX(-1.75rem);
  z-index: 0;
}

.ata-step-3 .ata-step-plant {
  grid-area: 1 / 1;
  z-index: 2;
  height: 10rem;
  align-self: start;
  justify-self: start;
  margin-top: -11.25rem;
  position: relative;
  left: 35.5rem;
  right: auto;
}

.ata-step-3 .ata-info-card {
  margin-top: -1.5rem;
  z-index: 1;
}

.ata-step-4 {
  width: min(100%, 46rem);
  margin-inline-start: auto;
  margin-top: -7.5rem;
}

.ata-step-4 .ata-step-body {
  width: 100%;
  padding: 0;
  flex-direction: row;
  align-items: flex-start;
}

.ata-step-4 .ata-step-lead {
  display: grid;
  direction: ltr;
  width: 7.5rem;
  flex-shrink: 0;
  overflow: visible;
}

.ata-step-4 .ata-pipe-coral {
  grid-area: 1 / 1;
  width: 16rem;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  justify-self: end;
  margin-top: 8.5rem;
  transform: translateX(-2.5rem);
  z-index: 0;
}

.ata-step-4 .ata-step-plant {
  grid-area: 1 / 1;
  z-index: 2;
  height: 10rem;
  align-self: start;
  justify-self: end;
  margin-top: -1.5rem;
  position: relative;
  left: auto;
  right: 9rem;
}

.ata-step-4 .ata-info-card {
  margin-top: 2.25rem;
  z-index: 1;
}

.ata-step-5 {
  width: min(100%, 46rem);
  margin-inline-end: auto;
  margin-top: -8rem;
}

.ata-step-5 .ata-step-body {
  width: 100%;
  padding: 0;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.ata-step-5 .ata-step-card-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.ata-step-5 .ata-pipe-yellow {
  width: auto;
  height: 11rem;
  object-fit: contain;
  margin-top: -2.5rem;
  transform: translateX(-9rem);
}

.ata-step-5 .ata-step-plant {
  height: 10rem;
  margin-top: -10.25rem;
  position: relative;
  left: 25rem;
  right: auto;
  z-index: 2;
}

/* Growth-stage plant. Stage 1 (seeds, just starting out) is a touch
   smaller than stages 2-5, echoing the original design where the
   first pot (208px) was smaller than the rest (262px each).

   IMPORTANT — stacking order: the plant sits at z-index:2, but the
   card sits ABOVE it at z-index:3 (see .ata-info-card below). This
   is intentional and is what fixes the earlier bug where the pot
   visually covered the card's heading pill: the card (as a whole
   stacking unit) must be layered on top of the plant so the plant
   tucks neatly *behind* the card's top edge, never in front of it. */
.ata-step-plant {
  height: 10rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  pointer-events: none;
}

.ata-step-plant-sm {
  height: 8rem;
}

.ata-info-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 0.625rem; /* 10px, matching the Figma source exactly */
  border: 0.5625rem solid; /* 9px, matching the Figma source exactly */
  padding: 1.5rem 2rem 2.25rem;
  box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25); /* matches Figma exactly */
}

.ata-card-pink {
  border-color: #ebc0db;
  direction: rtl;
  text-align: right;
  align-items: flex-start;
}

.ata-card-blue {
  border-color: #b9e4ed;
}

.ata-card-green {
  border-color: #a9d48f;
}

.ata-card-coral {
  border-color: #f59a97;
}

.ata-card-yellow {
  border-color: #ffee81;
}

/* Heading badge — sits inside the card, aligned to the right. */
.ata-card-heading-wrapper {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 1.25rem;
}

.ata-card-heading {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.5rem 1.75rem;
  border-radius: 0.6875rem; /* 11px, matching the Figma source exactly */
  color: #1f3d64;
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ata-card-pink .ata-card-heading-wrapper {
  justify-content: flex-start;
}

.ata-card-pink .ata-card-heading,
.ata-card-pink .ata-card-body {
  text-align: right;
}

.ata-card-pink .ata-card-heading {
  background: #ebc0db;
}

.ata-card-blue .ata-card-heading {
  background: #b9e4ed;
}

.ata-card-green .ata-card-heading {
  background: #a9d48f;
}

.ata-card-coral .ata-card-heading {
  background: #f59a97;
}

.ata-card-yellow .ata-card-heading {
  background: #ffee81;
}

.ata-card-body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.75;
  color: #1f3d64;
  text-align: right;
  margin: 0;
}

.ata-card-body strong {
  font-weight: 700;
}

@media (max-width: 64rem) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-partners {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Tablet */
@media (max-width: 59.375rem) {
  .ata-about-section-title,
  .ata-about-opening-text {
    max-width: none;
  }
}

@media (max-width: 51.25rem) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.75rem;
    margin-inline-start: auto;
  }

  .nav-toggle-btn span {
    display: block;
    width: 1.375rem;
    height: 0.2rem;
    background: var(--teal);
    border-radius: 2px;
  }

  .main-nav {
    display: none;
    width: 100%;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 47.9375rem) {
  :root {
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-lead: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.75rem;
  }

  .logo img {
    width: 8.25rem;
  }

  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.75rem;
    margin-inline-start: auto;
  }

  .nav-toggle-btn span {
    display: block;
    width: 1.375rem;
    height: 0.2rem;
    background: var(--teal);
    border-radius: 2px;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    order: 4;
  }

  .site-footer {
    padding: 2rem 1.25rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
    padding-top: 0;
    text-align: right;
  }

  .footer-nav a,
  .footer-nav .about-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.35rem 0;
    line-height: 1.45;
    box-sizing: border-box;
  }

  .footer-brand img {
    width: 10.25rem;
  }

  .footer-partners {
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .footer-partners img {
    height: 3.5rem;
  }

  .footer-partners img.logo-mofet {
    height: 3.75rem;
  }

  .footer-partners img.logo-hinuch {
    height: 4.5rem;
  }

  .footer-partners img.logo-leon {
    height: 5rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .site-header,
  .header-inner,
  .site-footer,
  .page-bg {
    max-width: 100%;
  }

  .ata-unit-page {
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem 4rem;
    overflow-x: clip;
  }

  .ata-unit-title,
  .ata-about-opening,
  .ata-about-section-title,
  .ata-about-opening-text,
  .ata-about-route-title {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    position: static;
    left: auto;
    right: auto;
    transform: none;
    overflow-wrap: break-word;
  }

  .ata-unit-title-index,
  .ata-unit-title-name,
  .ata-unit-title-divider {
    min-width: 0;
    max-width: 100%;
  }

  .ata-about-route {
    container-type: normal;
    width: 100%;
    max-width: 100%;
  }

  .ata-about-route,
  .ata-route-scale,
  .ata-route-shell,
  .ata-route-step,
  .ata-step-1,
  .ata-step-2,
  .ata-step-3,
  .ata-step-4,
  .ata-step-5 {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    overflow: visible;
  }

  .ata-route-scale {
    padding-bottom: 0;
  }

  .ata-route-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .ata-route-step {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    column-gap: 0.3rem;
    row-gap: 0;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .ata-step-pipe,
  .ata-step-1 .ata-pipe-pink,
  .ata-step-2 .ata-pipe-blue,
  .ata-step-3 .ata-pipe-green,
  .ata-step-4 .ata-pipe-coral,
  .ata-step-5 .ata-pipe-yellow {
    display: none;
  }

  .ata-mobile-connector {
    display: block;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    width: 0.7rem;
    height: 2rem;
    margin: 0;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .ata-mobile-connector--pink {
    background-color: #ebc0db;
  }

  .ata-mobile-connector--blue {
    background-color: #b9e4ed;
  }

  .ata-mobile-connector--green {
    background-color: #a9d48f;
  }

  .ata-mobile-connector--coral {
    background-color: #f59a97;
  }

  .ata-route-step .ata-step-body,
  .ata-route-step:nth-child(odd) .ata-step-body,
  .ata-route-step:nth-child(even) .ata-step-body,
  .ata-step-1 .ata-step-body,
  .ata-step-2 .ata-step-body,
  .ata-step-3 .ata-step-body,
  .ata-step-4 .ata-step-body,
  .ata-step-5 .ata-step-body {
    display: contents;
  }

  .ata-step-lead,
  .ata-step-1 .ata-step-lead,
  .ata-step-2 .ata-step-lead,
  .ata-step-3 .ata-step-lead,
  .ata-step-4 .ata-step-lead,
  .ata-step-5 .ata-step-plant {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .ata-info-card,
  .ata-step-1 .ata-info-card,
  .ata-step-2 .ata-info-card,
  .ata-step-3 .ata-info-card,
  .ata-step-4 .ata-info-card,
  .ata-step-5 .ata-info-card,
  .ata-step-5 .ata-step-card-col {
    grid-column: 2;
    grid-row: 1;
  }

  .ata-step-5 .ata-step-card-col,
  .ata-step-5 .ata-step-plant {
    position: static;
    left: auto;
    right: auto;
    margin: 0;
    transform: none;
  }

  .ata-step-5 .ata-step-card-col {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  .ata-route-step .ata-step-lead,
  .ata-step-1 .ata-step-lead,
  .ata-step-2 .ata-step-lead,
  .ata-step-3 .ata-step-lead,
  .ata-step-4 .ata-step-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    min-width: 3.75rem;
    max-width: 3.75rem;
    margin: 0;
    flex-shrink: 0;
    overflow: visible;
    position: static;
    transform: none;
  }

  .ata-step-plant,
  .ata-step-plant-sm,
  .ata-step-1 .ata-step-plant,
  .ata-step-2 .ata-step-plant,
  .ata-step-3 .ata-step-plant,
  .ata-step-4 .ata-step-plant,
  .ata-step-5 .ata-step-plant {
    display: block;
    position: static;
    width: 3.75rem;
    min-width: 3.75rem;
    max-width: 3.75rem;
    height: auto;
    max-height: none;
    margin: 0;
    left: auto;
    right: auto;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
    z-index: 1;
  }

  .ata-info-card,
  .ata-step-1 .ata-info-card,
  .ata-step-2 .ata-info-card,
  .ata-step-3 .ata-info-card,
  .ata-step-4 .ata-info-card,
  .ata-step-5 .ata-info-card,
  .ata-card-pink,
  .ata-card-blue,
  .ata-card-green,
  .ata-card-coral,
  .ata-card-yellow {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    position: static;
    left: auto;
    right: auto;
    transform: none;
    padding: 1rem 0.85rem 1.15rem;
  }

  .ata-card-heading-wrapper,
  .ata-card-pink .ata-card-heading-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.85rem;
  }

  .ata-card-heading,
  .ata-card-pink .ata-card-heading,
  .ata-card-blue .ata-card-heading,
  .ata-card-green .ata-card-heading,
  .ata-card-coral .ata-card-heading,
  .ata-card-yellow .ata-card-heading {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    font-size: 1.25rem;
    line-height: 1.35;
    padding: 0.45rem 0.85rem;
  }

  .ata-card-body {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .ata-sequential-nav {
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    padding: 0;
    gap: 0.75rem;
  }

  .ata-nav-prev,
  .ata-nav-next {
    min-width: 0;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Keyboard focus: one turquoise ring on every interactive control. */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #49BBBD;
  outline-offset: 2px;
}

@media (max-width: 47.9375rem) {
  .ata-nav-prev-text,
  .ata-nav-next-text {
    font-size: 0;
    line-height: 1;
  }

  .ata-nav-prev-text::after,
  .ata-nav-next-text::after {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
    white-space: nowrap;
  }

  .ata-nav-prev-text::after {
    content: "אחורה";
  }

  .ata-nav-next-text::after {
    content: "קדימה";
  }
}

html,
body {
  background-color: #ffffff;
  background-image: none;
}

.page-bg {
  display: none;
  background-image: none;
}

.u1p1-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image: none;
}

.u1p1-pipes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.u1p1-pipe {
  position: absolute;
  z-index: 0;
  display: block;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.u1p1-pipe-top {
  top: 0.25rem;
  left: 0;
  width: 3.75rem;
  transform: scaleX(-1);
}

.u1p1-pipe-mid {
  top: 23.25rem;
  left: -0.5rem;
  width: 10.5rem;
}

.u1p1-pipe-lower {
  right: -6.25rem;
  bottom: 2rem;
  width: 9rem;
  transform: scaleX(-1);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  background-image: none;
}

.ata-unit-title,
.ata-about-opening,
.ata-about-route,
.ata-info-card,
.ata-sequential-nav,
.ata-nav-prev,
.ata-nav-next {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .u1p1-pipe-top {
    left: -0.75rem;
    width: 3.5rem;
  }

  .u1p1-pipe-mid {
    top: 24rem;
    left: -1rem;
    width: 8.5rem;
  }

  .u1p1-pipe-lower {
    right: -4.5rem;
    width: 6.5rem;
  }
}
