/* ===================================================================
   Unit 6 — Page 1: מקורות ומבנה התקציב
   Global tokens, header, footer, and sequential nav from theme.css.
   =================================================================== */

.ata-unit-page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.ata-unit-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: var(--text-h1);
  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.625rem;
}

#athalta-budget {
  --u6-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --u6-yellow: #ffee81;
  --u6-yellow-light: #fdfad9;
  --u6-blue: #b9e4ed;
  --u6-blue-light: #f0f8fc;
  --u6-pink: #f59dc5;
  --u6-pink-light: #fdecf4;
  width: 100%;
  direction: rtl;
  text-align: right;
  color: var(--navy);
  overflow: visible !important;
}

.u6-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u6-opening {
  width: 100%;
  margin: 0 0 2rem;
}

.u6-main-heading {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--teal);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  direction: rtl;
  text-align: right;
}

.u6-intro,
.u6-source-text {
  width: 100%;
  max-width: var(--prose-measure);
  margin: 0 0 1.15rem;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  direction: rtl;
  text-align: right;
  text-wrap: pretty;
}

.u6-intro strong,
.u6-source-text strong {
  font-weight: 700;
}

.u6-source {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  max-width: calc(var(--prose-measure) + 4rem);
  margin: 0 0 1.15rem;
  direction: rtl;
}

.u6-source-icon {
  display: block;
  width: 2.75rem;
  height: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  object-fit: contain;
}

.u6-source-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.u6-instruction {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin: 0.5rem 0 1.5rem;
  margin-inline-end: auto;
  color: var(--teal);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: var(--lh-body);
  direction: rtl;
  text-align: right;
  cursor: default;
}

.u6-click-icon {
  display: block;
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.u6-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-items: start;
  gap: 1.75rem 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible !important;
}

.u6-stage.is-open {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  justify-items: stretch;
}

.u6-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 32rem;
  overflow: visible !important;
}

.u6-stage:not(.is-open) .u6-cards {
  display: none;
}

.u6-wheel-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(30rem, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem;
  overflow: visible !important;
}

.u6-stage.is-open .u6-wheel-layout {
  width: 100%;
  max-width: 28rem;
  justify-self: stretch;
}

.u6-yellow {
  --u6-main: var(--u6-yellow);
  --u6-light: var(--u6-yellow-light);
}

.u6-blue {
  --u6-main: var(--u6-blue);
  --u6-light: var(--u6-blue-light);
}

.u6-pink {
  --u6-main: var(--u6-pink);
  --u6-light: var(--u6-pink-light);
}

.u6-wheel {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: visible !important;
}

.u6-slice {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  z-index: 1;
  pointer-events: none;
}

.u6-slice-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  pointer-events: auto;
}

.u6-slice-yellow .u6-slice-hit {
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 58%, 91% 82%);
}

.u6-slice-blue .u6-slice-hit {
  clip-path: polygon(50% 50%, 50% 0%, 0% 0%, 0% 58%, 9% 82%);
}

.u6-slice-pink .u6-slice-hit {
  clip-path: polygon(50% 50%, 91% 82%, 78% 100%, 22% 100%, 9% 82%);
}

.u6-slice-image {
  position: absolute;
  display: block;
  max-width: none !important;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

.u6-slice-copy {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
  color: var(--navy);
  transition: opacity 0.3s ease;
}

.u6-slice-icon {
  display: block;
  width: 2.85rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.u6-slice-label {
  display: block;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--navy);
}

.u6-slice-yellow .u6-slice-image {
  top: 0;
  right: 0;
  width: 50%;
  height: 75.53%;
  object-position: top right;
}

.u6-slice-yellow .u6-slice-copy {
  top: 16%;
  right: 8%;
  left: 58%;
}

.u6-slice-blue .u6-slice-image {
  top: 0;
  left: 0;
  width: 50%;
  height: 75.53%;
  object-position: top left;
}

.u6-slice-blue .u6-slice-copy {
  top: 16%;
  left: 8%;
  right: 58%;
  transform: translateX(-1rem);
}

.u6-slice-pink .u6-slice-image {
  left: 6.41%;
  right: 6.41%;
  bottom: 0;
  width: auto;
  height: 39.72%;
  object-position: bottom center;
}

.u6-slice-pink .u6-slice-copy {
  left: 30%;
  right: 30%;
  bottom: 7%;
}

.u6-slice.is-full {
  z-index: 3;
}

.u6-slice.is-dimmed .u6-slice-copy {
  opacity: 0.45;
}

.u6-wheel-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.u6-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  background: var(--white);
  border: 0.3rem solid var(--u6-main);
  border-radius: 0.75rem;
  box-shadow: none;
  opacity: 0;
  overflow: visible !important;
  transition: opacity 0.3s var(--u6-ease);
}

.u6-card.u6-yellow {
  --u6-main: var(--u6-yellow);
}

.u6-card.u6-blue {
  --u6-main: var(--u6-blue);
}

.u6-card.u6-pink {
  --u6-main: var(--u6-pink);
}

.u6-card[hidden] {
  display: none !important;
}

.u6-card.is-open {
  opacity: 1;
}

.u6-card-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding: 1.35rem 1.5rem 1.5rem;
  padding-inline-end: 3rem;
  overflow: visible !important;
}

.u6-card-close,
.u6-close {
  position: absolute;
  top: 0.4rem;
  right: auto;
  left: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2rem 0.45rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.u6-card-close:hover,
.u6-close:hover {
  color: var(--teal);
}

.u6-card-close:focus-visible,
.u6-close:focus-visible {
  border-radius: 0.25rem;
}

.u6-card-title,
.u6-detail-title {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 0.35rem;
  background: var(--u6-main);
  box-sizing: border-box;
  color: var(--navy);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.4;
  direction: rtl;
  text-align: right;
}

.u6-card-body {
  display: block;
  width: 100%;
  min-width: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  direction: rtl;
  text-align: right;
}

.u6-card-body p,
.u6-card-text {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  direction: rtl;
  text-align: right;
}

.u6-card-body p + p,
.u6-card-body p + ul,
.u6-card-body ul + p {
  margin-top: 0.75rem;
}

.u6-card-list {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-inline-start: 1.5rem;
  list-style: disc;
}

.u6-card-list li {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

.u6-card-list li::marker {
  color: var(--u6-main);
  font-size: 1.55rem;
}

.u6-card-list li:last-child {
  margin-bottom: 0;
}

.u6-card-note {
  font-weight: 700;
}

@media (max-width: 768px) {
  .u6-slice-icon {
    width: 1.65rem;
  }

  .u6-slice-copy {
    gap: 0.15rem;
    padding: 0;
  }

  .u6-slice-label {
    font-size: 0.75rem;
    line-height: 1.15;
  }

  .u6-slice-yellow .u6-slice-copy {
    top: 20%;
    right: 4%;
    left: 56%;
  }

  .u6-slice-blue .u6-slice-copy {
    top: 20%;
    left: 4%;
    right: 56%;
    transform: translateX(-0.35rem);
  }

  .u6-slice-pink .u6-slice-copy {
    left: 22%;
    right: 22%;
    bottom: 8%;
  }
}

@media (max-width: 47.9375rem) {
  .ata-unit-title {
    font-size: 2rem;
  }

  .u6-main-heading {
    font-size: 1.5rem;
  }

  .u6-stage,
  .u6-stage.is-open {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .u6-stage:not(.is-open) .u6-cards {
    display: none;
  }

  .u6-cards {
    max-width: none;
  }

  .u6-wheel-layout,
  .u6-stage.is-open .u6-wheel-layout {
    width: min(26rem, 100%);
    margin-inline: auto;
  }

  .u6-wheel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .u6-slice,
  .u6-slice-copy,
  .u6-card,
  .u6-card-close {
    transition: none;
  }
}

html,
body {
  background-color: #ffffff;
  background-image: none;
}

.page-bg {
  display: none;
  background-image: none;
}

.u6p1-canvas {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image: none;
}

.u6p1-pipes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.u6p1-pipe {
  position: absolute;
  z-index: 0;
  display: block;
  height: auto;
  max-width: 18.75rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.u6p1-pipe-a {
  top: 0.5rem;
  bottom: auto;
  left: -0.5rem;
  right: auto;
  width: 10rem;
  transform: none;
}

.u6p1-pipe-b {
  bottom: 6.5rem;
  top: auto;
  right: -0.5rem;
  left: auto;
  width: 11.2rem;
  transform: none;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  background-image: none;
}

@media (max-width: 768px) {
  .u6p1-pipe-a {
  top: 0.34rem;
  bottom: auto;
  left: -0.34rem;
  right: auto;
  width: 6.8rem;
  transform: none;
}

  .u6p1-pipe-b {
  bottom: 4.42rem;
  top: auto;
  right: -0.34rem;
  left: auto;
  width: 7.62rem;
  transform: none;
}
}
