/* Program basics, family support flyers, transportation, closure calendar, and file preview cards. */
.info-panel.program-basics-panel {
  order: 8;
  position: relative;
  overflow: hidden;
  padding-top: 42px;
  background:
    linear-gradient(90deg, rgba(200, 63, 61, 0.16) 0 2px, transparent 2px 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0) 0 31px, rgba(13, 111, 167, 0.1) 31px 32px),
    linear-gradient(180deg, #fffef8, #f5fbff);
  background-position: 34px 0, 0 0, 0 0;
  border-color: rgba(47, 109, 85, 0.28);
  border-top: 5px solid var(--green);
  box-shadow: var(--shadow-md);
}

.program-basics-panel::before {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 25px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(183, 192, 203, 0.86));
  border: 1px solid rgba(89, 107, 128, 0.28);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 18px rgba(16, 38, 61, 0.14);
  content: "";
  transform: translateX(-50%);
}

.program-basics-panel::after {
  position: absolute;
  top: 92px;
  right: -1px;
  width: 10px;
  height: 148px;
  background:
    linear-gradient(180deg, var(--gold) 0 33%, var(--blue) 33% 66%, var(--green) 66% 100%);
  border-radius: var(--radius) 0 0 var(--radius);
  content: "";
}

.program-basics-panel > * {
  position: relative;
  z-index: 1;
}

.program-basics-panel h2 {
  color: var(--navy);
}

.program-basics-panel .detail-list {
  gap: 12px;
  padding: 0;
}

.program-basics-panel .detail-list li {
  --basic-accent: var(--blue);
  --basic-soft: #eaf7ff;
  --basic-border: rgba(13, 111, 167, 0.2);
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 94px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--basic-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(16, 38, 61, 0.07);
}

.program-basics-panel .detail-list li:nth-child(4n + 2) {
  --basic-accent: var(--coral);
  --basic-soft: #fff0ec;
  --basic-border: rgba(200, 63, 61, 0.2);
}

.program-basics-panel .detail-list li:nth-child(4n + 3) {
  --basic-accent: var(--green);
  --basic-soft: #edf8ea;
  --basic-border: rgba(47, 109, 85, 0.2);
}

.program-basics-panel .detail-list li:nth-child(4n + 4) {
  --basic-accent: var(--gold);
  --basic-soft: #fff7da;
  --basic-border: rgba(201, 151, 53, 0.24);
}

.program-basics-panel .detail-list li::before,
.program-basics-panel .detail-list li::after {
  content: none;
}

.program-basics-panel .detail-list li:last-child {
  border-bottom: 1px solid var(--basic-border);
}

.program-basics-panel .basic-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--basic-accent);
  background: var(--basic-soft);
  border: 1px solid var(--basic-border);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}

.program-basics-panel .basic-icon svg {
  width: 42px;
  height: 42px;
  display: block;
}

.program-basics-panel .basic-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink-soft);
  font-weight: 800;
  text-align: left;
}

.program-basics-panel .basic-copy strong {
  display: block;
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.14;
}

.program-basics-panel .basic-copy span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.28;
  text-align: left;
}

.program-basics-panel .detail-list strong,
.program-basics-panel .detail-list span {
  overflow-wrap: normal;
  word-break: normal;
}

.info-columns > .program-basics-panel:last-child {
  grid-column: span 3;
}

.info-columns > .program-basics-panel:last-child .detail-list {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.info-panel.reading-panel {
  grid-column: span 3;
  order: 4;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 111, 167, 0.1) 0 54px, transparent 54px 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0) 0 30px, rgba(201, 151, 53, 0.12) 30px 31px),
    linear-gradient(180deg, #fffdf4, #f4fbff);
  border-color: rgba(13, 111, 167, 0.24);
  border-top: 5px solid var(--blue);
  box-shadow: var(--shadow-md);
}

.reading-panel::before {
  position: absolute;
  top: -1px;
  right: 26px;
  width: 34px;
  height: 72px;
  background: linear-gradient(180deg, var(--coral), #e36f57);
  box-shadow: 0 8px 18px rgba(16, 38, 61, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  content: "";
}

.reading-panel::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 118px;
  height: 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 49%, rgba(13, 111, 167, 0.16) 50%, rgba(255, 255, 255, 0.72) 51%),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(13, 111, 167, 0.11) 10px 11px),
    rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(13, 111, 167, 0.16);
  border-radius: var(--radius);
  content: "";
  transform: rotate(-3deg);
}

.reading-panel > * {
  position: relative;
  z-index: 1;
}

.reading-panel h2 {
  color: var(--navy);
}

.reading-panel p {
  max-width: 30rem;
}

.reading-panel .button-outline {
  width: fit-content;
  background: var(--white);
  border-color: rgba(13, 111, 167, 0.3);
  box-shadow: 0 10px 20px rgba(16, 38, 61, 0.08);
}

.info-panel.support-flyer-panel {
  grid-column: span 3;
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: stretch;
  overflow: hidden;
  padding: 26px;
  border-color: rgba(16, 38, 61, 0.16);
  box-shadow: var(--shadow-md);
}

.support-flyer-panel::before {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 110px;
  height: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 32% 68%, rgba(255, 255, 255, 0.32)),
    linear-gradient(180deg, rgba(202, 222, 241, 0.9), rgba(126, 183, 219, 0.86));
  border: 1px solid rgba(13, 111, 167, 0.18);
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(16, 38, 61, 0.12);
  content: "";
  opacity: 0.82;
  transform: translateX(-50%) rotate(-1deg);
}

.support-flyer-panel > * {
  position: relative;
  z-index: 1;
}

.support-flyer-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  max-width: 48rem;
  padding-top: 16px;
}

.support-flyer-copy h2 {
  max-width: 34rem;
  color: var(--navy);
}

.support-flyer-copy p:not(.section-kicker) {
  max-width: 44rem;
  color: var(--ink-soft);
}

.info-flyer-media {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.info-flyer-media:focus-visible {
  outline: 3px solid rgba(13, 111, 167, 0.52);
  outline-offset: 4px;
}

.info-flyer-media img,
.info-flyer-media .story-file-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 38, 61, 0.16);
  border-radius: calc(var(--radius) - 2px);
  box-shadow:
    0 14px 28px rgba(16, 38, 61, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.8);
}

.info-flyer-media img {
  height: auto;
  display: block;
}

.info-flyer-media .story-file-preview {
  min-height: 260px;
}

.info-flyer-media figcaption {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.childcare-assistance-panel {
  order: 5;
  background:
    radial-gradient(circle at 10% 24%, rgba(47, 109, 85, 0.12) 0 42px, transparent 43px),
    radial-gradient(circle at 93% 18%, rgba(244, 211, 94, 0.22) 0 48px, transparent 49px),
    linear-gradient(90deg, rgba(47, 109, 85, 0.14) 0 7px, transparent 7px 100%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(47, 109, 85, 0.08) 30px 31px),
    linear-gradient(180deg, #fffef4, #f2fbf4);
  border-top: 5px solid var(--green);
}

.childcare-assistance-panel .section-kicker {
  color: var(--green);
}

.childcare-assistance-panel::before,
.iep-help-panel::before {
  display: none;
}

.childcare-assistance-panel .support-flyer-copy,
.iep-help-panel .support-flyer-copy {
  padding-top: 0;
}

.iep-help-panel {
  order: 6;
  background:
    radial-gradient(circle at 88% 18%, rgba(13, 111, 167, 0.16) 0 52px, transparent 53px),
    linear-gradient(90deg, rgba(13, 111, 167, 0.12) 0 56px, transparent 56px 100%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(201, 151, 53, 0.1) 28px 29px),
    linear-gradient(180deg, #f9fcff, #fffaf0);
  border-top: 5px solid var(--blue);
}

.iep-help-panel .section-kicker {
  color: var(--blue);
}

.info-panel.transportation-panel {
  grid-column: span 3;
  order: 7;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, rgba(244, 211, 94, 0.24) 0 42px, transparent 43px),
    linear-gradient(90deg, rgba(201, 151, 53, 0.16) 0 10px, transparent 10px 22px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(13, 111, 167, 0.1) 32px 33px),
    linear-gradient(180deg, #fffdf2, #f0fbff);
  border-color: rgba(201, 151, 53, 0.3);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.transportation-panel::after {
  position: absolute;
  right: 38px;
  bottom: 104px;
  width: 212px;
  height: 76px;
  background:
    radial-gradient(circle at 9px 62px, var(--green) 0 5px, transparent 6px),
    radial-gradient(circle at 76px 38px, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 148px 58px, var(--coral) 0 5px, transparent 6px),
    linear-gradient(145deg, transparent 0 46%, rgba(13, 111, 167, 0.26) 46% 49%, transparent 49% 100%),
    linear-gradient(20deg, transparent 0 53%, rgba(13, 111, 167, 0.2) 53% 56%, transparent 56% 100%);
  opacity: 0.62;
  content: "";
}

.transportation-panel > * {
  position: relative;
  z-index: 1;
}

.transportation-panel h2 {
  color: var(--navy);
}

.transportation-panel p {
  max-width: 48rem;
  color: var(--ink-soft);
}

.transport-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transport-list li {
  position: relative;
  min-height: 74px;
  display: grid;
  align-items: center;
  padding: 13px 14px 13px 42px;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 151, 53, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(16, 38, 61, 0.06);
}

.transport-list li::before {
  position: absolute;
  left: 15px;
  width: 14px;
  height: 14px;
  background: var(--green-soft);
  border: 3px solid var(--green);
  border-radius: 50%;
  content: "";
}

.closures {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 0.64fr);
  gap: 52px;
  align-items: center;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 63, 61, 0.08) 0 72px, transparent 73px),
    var(--pattern-calendar);
  background-size: auto, 72px 72px, 72px 72px, auto, auto;
  border-bottom: 1px solid rgba(201, 151, 53, 0.18);
}

.closures .section-heading {
  padding: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 151, 53, 0.24);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.calendar-frame {
  position: relative;
  padding: 12px;
  cursor: pointer;
  background: var(--white);
  border: 1px solid rgba(201, 151, 53, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.calendar-frame img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper-strong);
  border-radius: calc(var(--radius) - 2px);
}

.calendar-file-preview {
  display: grid;
  min-height: clamp(16rem, 40vw, 34rem);
  place-items: center;
  gap: 0.8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 244, 255, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(13, 111, 167, 0.14) 23px 24px);
  border-radius: calc(var(--radius) - 2px);
  color: var(--navy);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.calendar-file-preview span {
  width: 4rem;
  height: 5rem;
  border: 4px solid currentColor;
  border-radius: 0.35rem;
  background: var(--paper);
  box-shadow: 0.55rem 0.55rem 0 rgba(16, 38, 61, 0.12);
}

.story-file-preview {
  display: grid;
  min-height: clamp(13rem, 30vw, 22rem);
  place-items: center;
  gap: 0.8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 213, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(13, 111, 167, 0.12) 22px 23px);
  color: var(--navy);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.story-file-preview span {
  width: 4rem;
  height: 5rem;
  border: 4px solid currentColor;
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, var(--paper) 0 72%, rgba(13, 111, 167, 0.12) 72% 100%);
  box-shadow: 0.55rem 0.55rem 0 rgba(16, 38, 61, 0.12);
}

.flyer-file-preview {
  min-height: 100%;
  border-radius: calc(var(--radius) - 2px);
}

.story-pdf-preview {
  overflow: hidden;
}

.story-pdf-preview.has-pdf-thumbnail {
  display: block;
  min-height: 0;
  background: var(--white);
  letter-spacing: 0;
}

.story-pdf-preview-canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  background: var(--white);
}

.calendar-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 2px;
  color: var(--navy);
  font-weight: 950;
}

.calendar-frame figcaption span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.calendar-frame:hover,
.calendar-frame:focus-visible {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  outline: none;
  transform: translateY(-2px);
}
