@import url("https://fonts.googleapis.com/css2?family=Gveret+Levin:wght@400&display=swap");

/* ===================================================================
   Unit 4 — Page 2: ארבעת העקרונות לכתיבת סילבוס
   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-syllabus-reminder-page {
  width: 100%;
  direction: rtl;
  text-align: right;
  color: var(--navy);
}

.asr-opening {
  width: 100%;
  margin: 0 0 0.65rem;
}

.asr-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;
}

.asr-intro {
  width: 100%;
  max-width: var(--prose-measure);
  margin: 0 0 0.75rem;
  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;
}

.asr-instruction {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin: 0 0 0.45rem;
  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;
}

.asr-click-icon {
  display: block;
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.asr-corkboard {
  position: relative;
  width: 100%;
  max-width: var(--content);
  aspect-ratio: 994 / 720;
  min-height: 22rem;
  margin: 0;
  margin-inline-end: auto;
  overflow: hidden;
  border-radius: 1.15rem;
}

.asr-corkboard-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.asr-corkboard-stage {
  position: absolute;
  inset: 10% 8% 11%;
}

.asr-note {
  --note-rotate: 0deg;
  position: absolute;
  display: block;
  width: 28%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  appearance: none;
  filter: drop-shadow(0 0.25rem 0.25rem rgba(0, 0, 0, 0.22));
  transform: rotate(var(--note-rotate));
  transform-origin: center center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.asr-note-green {
  top: 5%;
  left: 54%;
  --note-rotate: -2.2deg;
}

.asr-note-blue {
  top: 7%;
  left: 18%;
  --note-rotate: 1.8deg;
}

.asr-note-pink {
  top: 48%;
  left: 47%;
  --note-rotate: 2.4deg;
}

.asr-note-yellow {
  top: 51%;
  left: 8%;
  --note-rotate: -1.6deg;
}

.asr-note:hover {
  transform: rotate(var(--note-rotate)) translateY(-0.25rem) scale(1.015);
  filter: drop-shadow(0 0.5rem 0.5rem rgba(0, 0, 0, 0.22));
}

.asr-note:focus-visible {
  border-radius: 0.7rem;
}

.asr-note-paper {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.asr-note-content {
  position: absolute;
  inset: 18% 12% 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  overflow: hidden;
  direction: rtl;
  text-align: center;
  pointer-events: none;
}

.asr-note-icon {
  display: block;
  width: 30%;
  max-height: 32%;
  object-fit: contain;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asr-note-title,
.asr-note-title.font-handwriting {
  display: block;
  width: 100%;
  color: var(--navy);
  font-family: "Gveret Levin", "GveretLevin", cursive, sans-serif !important;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0;
  direction: rtl;
  text-align: center;
}

.asr-note-explanation {
  display: block;
  width: 100%;
  max-height: 0;
  margin: 0;
  color: var(--navy);
  font-family: "Rubik", sans-serif;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: 400;
  direction: rtl;
  text-align: right;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asr-corkboard.has-open-note {
  min-height: 32rem;
}

.asr-corkboard.has-open-note .asr-corkboard-stage {
  inset: 8.5% 13% 9.5% 7%;
  display: grid;
  grid-template-columns: 8.35rem minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  align-items: stretch;
  column-gap: 1.15rem;
  row-gap: 1.15rem;
  padding: 0;
  box-sizing: border-box;
}

.asr-corkboard.has-open-note .asr-note.is-active {
  position: relative;
  top: auto;
  left: auto;
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: center;
  align-self: center;
  width: min(40rem, 100%);
  height: auto;
  max-width: min(40rem, 100%);
  max-height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  box-sizing: border-box;
  --note-rotate: 0deg;
  transform: rotate(0deg);
  filter: drop-shadow(0 0.35rem 0.45rem rgba(0, 0, 0, 0.24));
  z-index: 4;
}

.asr-corkboard.has-open-note .asr-note.is-active .asr-note-paper {
  object-fit: contain;
}

.asr-corkboard.has-open-note .asr-note.is-active .asr-note-content {
  position: absolute;
  inset: 16% 13% 15% 13%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
  overflow: hidden;
  text-align: right;
}

.asr-corkboard.has-open-note .asr-note.is-active .asr-note-icon {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 2.85rem;
  max-height: none;
  height: auto;
  margin: 0;
  align-self: flex-start;
  flex-shrink: 0;
  z-index: 2;
}

.asr-corkboard.has-open-note .asr-note.is-active .asr-note-title,
.asr-corkboard.has-open-note .asr-note.is-active .asr-note-title.font-handwriting {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: "Gveret Levin", "GveretLevin", cursive, sans-serif !important;
  font-size: var(--text-h3);
  line-height: 1.35;
  letter-spacing: 0;
  text-align: right;
  box-sizing: border-box;
}

.asr-corkboard.has-open-note .asr-note.is-active .asr-note-explanation {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  margin: 0;
  opacity: 1;
  overflow: auto;
  padding: 0;
  font-size: var(--text-body);
  line-height: 1.65;
  text-align: right;
}

.asr-corkboard.has-open-note .asr-note:not(.is-active) {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  grid-column: 1;
  grid-row: calc(var(--stack-index, 0) + 1);
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 8.35rem;
  height: auto;
  aspect-ratio: 1 / 1;
  --note-rotate: 0deg;
  transform: rotate(0deg);
  z-index: 3;
}

.asr-corkboard.has-open-note .asr-note:not(.is-active):hover {
  transform: translateX(-0.25rem) scale(1.03);
}

.asr-corkboard.has-open-note .asr-note:not(.is-active) .asr-note-content {
  inset: 16% 10% 12%;
  gap: 0.2rem;
}

.asr-corkboard.has-open-note .asr-note:not(.is-active) .asr-note-icon {
  width: 26%;
  max-height: 26%;
}

.asr-corkboard.has-open-note .asr-note:not(.is-active) .asr-note-title,
.asr-corkboard.has-open-note .asr-note:not(.is-active) .asr-note-title.font-handwriting {
  font-family: "Gveret Levin", "GveretLevin", cursive, sans-serif !important;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0;
}

@media (max-width: 64rem) {
  .asr-note {
    width: 32%;
  }
}

@media (max-width: 51.25rem) {
  .ata-unit-title {
    font-size: 2rem;
  }

  .asr-main-heading {
    font-size: 1.5rem;
  }

  .asr-corkboard,
  .asr-corkboard.has-open-note {
    aspect-ratio: auto;
    min-height: 0;
    overflow: visible;
    background: #f6efe4;
    border-radius: 1.15rem;
    padding: 1rem;
  }

  .asr-corkboard-frame {
    display: none;
  }

  .asr-corkboard-stage,
  .asr-corkboard.has-open-note .asr-corkboard-stage {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    padding: 0;
  }

  .asr-note,
  .asr-note-green,
  .asr-note-blue,
  .asr-note-pink,
  .asr-note-yellow,
  .asr-corkboard.has-open-note .asr-note,
  .asr-corkboard.has-open-note .asr-note.is-active,
  .asr-corkboard.has-open-note .asr-note:not(.is-active) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
    transform: none;
    filter: none;
  }

  .asr-note-paper {
    display: none;
  }

  .asr-note-content,
  .asr-corkboard.has-open-note .asr-note.is-active .asr-note-content,
  .asr-corkboard.has-open-note .asr-note:not(.is-active) .asr-note-content {
    position: relative;
    inset: auto;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    text-align: right;
    pointer-events: none;
  }

  .asr-note-green .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-green .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-green.is-active .asr-note-content {
    background: #e7f6df;
  }

  .asr-note-blue .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-blue .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-blue.is-active .asr-note-content {
    background: #e3f4fb;
  }

  .asr-note-pink .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-pink .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-pink.is-active .asr-note-content {
    background: #fde8f1;
  }

  .asr-note-yellow .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-yellow .asr-note-content,
  .asr-corkboard.has-open-note .asr-note-yellow.is-active .asr-note-content {
    background: #fff4c8;
  }

  .asr-note-icon,
  .asr-corkboard.has-open-note .asr-note.is-active .asr-note-icon {
    width: 2.25rem;
    max-height: none;
    align-self: center;
  }

  .asr-note-title,
  .asr-note-title.font-handwriting,
  .asr-corkboard.has-open-note .asr-note.is-active .asr-note-title,
  .asr-corkboard.has-open-note .asr-note:not(.is-active) .asr-note-title {
    font-size: 1.25rem;
    text-align: center;
  }

  .asr-note-explanation {
    max-height: 0;
    opacity: 0;
    margin: 0;
  }

  .asr-corkboard.has-open-note .asr-note.is-active .asr-note-explanation {
    max-height: 40rem;
    opacity: 1;
    margin-top: 0.75rem;
  }
}

html,
body {
  background-color: #ffffff;
  background-image: none;
}

.page-bg {
  display: none;
  background-image: none;
}

.u4p2-canvas {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image: none;
}

.u4p2-pipes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.u4p2-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;
}

.u4p2-pipe-a {
  top: 0.5rem;
  bottom: auto;
  right: -8.1rem;
  left: auto;
  width: 9.5rem;
  transform: none;
}

.u4p2-pipe-b {
  bottom: 2.25rem;
  top: auto;
  left: -0.5rem;
  right: auto;
  width: 12rem;
  transform: none;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  background-image: none;
}

@media (max-width: 768px) {
  .u4p2-pipe-a {
  top: 0.34rem;
  bottom: auto;
  right: -5.2rem;
  left: auto;
  width: 6.5rem;
  transform: none;
}

  .u4p2-pipe-b {
  bottom: 1.53rem;
  top: auto;
  left: -0.34rem;
  right: auto;
  width: 8.16rem;
  transform: none;
}
}
