.iep-workbook {
  min-height: 75vh;
  background: #f6f9f9;
  color: #243434;
}

.iep-workbook__shell {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
}

.iep-workbook__hero {
  padding: 3.8rem 0 2.7rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.12), transparent 24rem),
    linear-gradient(135deg, #176d67 0%, #2d9a92 100%);
}

.iep-workbook__back {
  display: inline-block;
  margin-bottom: 1.3rem;
  color: #e4f5f3;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.iep-workbook__back:hover,
.iep-workbook__back:focus-visible {
  text-decoration: underline;
}

.iep-workbook__eyebrow {
  margin: 0 0 .55rem;
  color: #d9f0ee;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.iep-workbook__hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.iep-workbook__intro {
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,.94);
  font-size: 1.08rem;
  line-height: 1.7;
}

.iep-workbook__notice {
  max-width: 800px;
  margin-top: 1.5rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  background: rgba(11, 70, 66, .22);
  color: rgba(255,255,255,.94);
  font-size: .92rem;
  line-height: 1.55;
}

.iep-workbook__notice strong {
  color: #fff;
}

.iep-workbook__workspace {
  padding: 2rem 0 5rem;
}

.iep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.iep-toolbar__primary {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.iep-button {
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid #b9cdcd;
  border-radius: 8px;
  background: #fff;
  color: #284848;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.iep-button:hover,
.iep-button:focus-visible {
  border-color: #2d9a92;
  outline: 3px solid rgba(45,154,146,.12);
}

.iep-button--primary {
  border-color: #2d9a92;
  background: #2d9a92;
  color: #fff;
}

.iep-button--primary:hover,
.iep-button--primary:focus-visible {
  background: #227f78;
}

.iep-button--quiet {
  border-color: transparent;
  background: transparent;
  color: #617172;
}

.iep-student-line {
  display: grid;
  grid-template-columns: 1.1fr .7fr 1.2fr;
  gap: .8rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #d4e2e2;
  border-radius: 12px;
  background: #fff;
}

.iep-student-line label,
.iep-dialog label {
  color: #365555;
  font-size: .82rem;
  font-weight: 800;
}

.iep-student-line input,
.iep-dialog input,
.iep-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: .35rem;
  padding: .65rem .72rem;
  border: 1px solid #b7c9c9;
  border-radius: 7px;
  background: #fff;
  color: #1f3232;
  font: inherit;
}

.iep-sections {
  display: grid;
  gap: .85rem;
}

.iep-section {
  overflow: hidden;
  border: 1px solid #cfdddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 66, 63, .045);
}

.iep-section__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.05rem .4rem;
}

.iep-section__copy {
  min-width: 0;
}

.iep-section__number {
  display: inline-block;
  margin-bottom: .35rem;
  color: #2d9a92;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iep-section h2 {
  margin: 0;
  color: #193b39;
  font-size: 1.12rem;
  line-height: 1.3;
}

.iep-section__description {
  margin: .45rem 0 0;
  color: #5b6d6d;
  font-size: .92rem;
  line-height: 1.55;
}

.iep-section__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .25rem;
}

.iep-icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #617172;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.iep-icon-button:hover,
.iep-icon-button:focus-visible {
  border-color: #c4d8d8;
  background: #f1f7f7;
  color: #176d67;
  outline: none;
}

.iep-icon-button--delete:hover,
.iep-icon-button--delete:focus-visible {
  border-color: #e2bbbb;
  background: #fff1f1;
  color: #9a3333;
}

.iep-section__notes {
  display: block;
  width: calc(100% - 2.1rem);
  min-height: 7.2rem;
  box-sizing: border-box;
  margin: .55rem 1.05rem 1.05rem;
  padding: .8rem;
  border: 1px solid #b9cbcb;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      to bottom,
      #fff 0,
      #fff 1.65rem,
      #edf2f2 1.68rem
    );
  color: #263939;
  font: inherit;
  line-height: 1.65rem;
  resize: vertical;
}

.iep-section__notes:focus {
  border-color: #2d9a92;
  outline: 3px solid rgba(45,154,146,.13);
}

.iep-bottom-actions {
  margin-top: 1.2rem;
  text-align: center;
}

.iep-workbook__source {
  max-width: 760px;
  margin: 2rem auto 0;
  color: #6d7b7b;
  font-size: .82rem;
  line-height: 1.55;
  text-align: center;
}

.iep-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.iep-dialog::backdrop {
  background: rgba(20, 39, 39, .55);
}

.iep-dialog form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.iep-dialog__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.iep-dialog__heading h2 {
  margin: 0;
  color: #183b3a;
  font-size: 1.3rem;
}

.iep-dialog__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4f4;
  color: #526767;
  font-size: 1.45rem;
  cursor: pointer;
}

.iep-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}

@media (max-width: 720px) {
  .iep-workbook__hero {
    padding: 2.8rem 0 2.1rem;
  }

  .iep-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .iep-toolbar__primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .iep-student-line {
    grid-template-columns: 1fr;
  }

  .iep-section__top {
    gap: .5rem;
  }

  .iep-section__controls {
    flex-direction: column;
  }
}

@media print {
  @page {
    margin: .55in;
  }

  body {
    background: #fff !important;
  }

  header,
  footer,
  .site-header,
  .site-footer,
  .iep-toolbar,
  .iep-bottom-actions,
  .iep-workbook__back,
  .iep-section__controls,
  .iep-dialog {
    display: none !important;
  }

  .iep-workbook,
  .iep-workbook__workspace {
    background: #fff !important;
  }

  .iep-workbook__hero {
    padding: 0 0 .25in;
    color: #111;
    background: #fff !important;
  }

  .iep-workbook__hero h1,
  .iep-workbook__eyebrow,
  .iep-workbook__intro,
  .iep-workbook__notice {
    color: #111 !important;
  }

  .iep-workbook__notice {
    border-color: #bbb;
    background: #fff;
  }

  .iep-workbook__workspace {
    padding: .15in 0 0;
  }

  .iep-workbook__shell {
    width: 100%;
  }

  .iep-student-line {
    border-color: #aaa;
  }

  .iep-student-line input {
    border: 0;
    border-bottom: 1px solid #777;
    border-radius: 0;
  }

  .iep-section {
    break-inside: avoid;
    box-shadow: none;
    border-color: #aaa;
  }

  .iep-section__notes {
    min-height: 1.15in;
    border-color: #999;
    resize: none;
  }

  .iep-workbook__source {
    margin-top: .2in;
  }
}


/* Privacy-safe on-screen identifying fields */
.iep-privacy-fields {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #d4e2e2;
  border-radius: 12px;
  background: #fff;
}

.iep-privacy-fields__message {
  margin: 0 0 .9rem;
  color: #4f6666;
  font-size: .9rem;
  line-height: 1.55;
}

.iep-privacy-fields__message strong {
  color: #2f5050;
}

.iep-privacy-fields__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.iep-privacy-fields__grid label {
  color: #657575;
  font-size: .82rem;
  font-weight: 800;
}

.iep-privacy-fields__grid input {
  width: 100%;
  box-sizing: border-box;
  margin-top: .35rem;
  padding: .65rem .72rem;
  border: 1px solid #ced8d8;
  border-radius: 7px;
  background: #eef1f1;
  color: #7a8787;
  font: inherit;
  cursor: not-allowed;
}

.iep-loading {
  padding: 1.2rem;
  border: 1px dashed #bdd1d1;
  border-radius: 10px;
  background: #fff;
  color: #617172;
  text-align: center;
}

/* The identifying-information and attendance page is only for print. */
.iep-print-only {
  display: none;
}

@media (max-width: 720px) {
  .iep-privacy-fields__grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .iep-privacy-fields,
  .iep-loading {
    display: none !important;
  }

  .iep-print-only {
    display: block !important;
  }

  .iep-print-details {
    margin: 0 0 .25in;
    padding: .16in;
    border: 1px solid #8a8a8a;
  }

  .iep-print-details h2 {
    margin: 0 0 .13in;
    font-size: 16pt;
    color: #111;
  }

  .iep-print-details__grid {
    display: grid;
    grid-template-columns: 1.5fr .65fr 1fr;
    gap: .12in .18in;
  }

  .iep-print-details__grid > div {
    display: flex;
    align-items: flex-end;
    min-height: .3in;
    gap: .08in;
  }

  .iep-print-details__grid strong {
    flex: 0 0 auto;
    font-size: 9pt;
  }

  .iep-print-details__grid span {
    display: block;
    flex: 1 1 auto;
    min-width: .6in;
    border-bottom: 1px solid #555;
  }

  .iep-print-details__wide {
    grid-column: 1 / -1;
  }

  .iep-print-attendees {
    margin-top: .2in;
  }

  .iep-print-attendees h3 {
    margin: 0 0 .04in;
    font-size: 12pt;
  }

  .iep-print-attendees p {
    margin: 0 0 .08in;
    font-size: 8.5pt;
  }

  .iep-print-attendees table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .iep-print-attendees th,
  .iep-print-attendees td {
    height: .26in;
    padding: .04in .07in;
    border: 1px solid #777;
    text-align: left;
    font-size: 8.5pt;
  }

  .iep-print-attendees th:first-child,
  .iep-print-attendees td:first-child {
    width: 48%;
  }

  .iep-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}


/* Non-HIPAA / sensitive-data warning */
.iep-phi-warning {
  position: relative;
  max-width: 800px;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dfaaaa;
  border-left: 5px solid #b63737;
  border-radius: 9px;
  background: #fff0f0;
  color: #6d2929;
  font-size: .92rem;
  line-height: 1.55;
}

.iep-phi-warning strong {
  display: block;
  margin-bottom: .22rem;
  color: #8f2020;
}

.iep-phi-warning__link {
  display: inline;
  margin: 0 0 0 .25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f2020;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.iep-phi-warning__link:hover,
.iep-phi-warning__link:focus-visible {
  color: #651414;
  outline: none;
}

.iep-privacy-dialog__content {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.iep-privacy-dialog__body {
  color: #465c5c;
  line-height: 1.65;
}

.iep-privacy-dialog__body p {
  margin: 0 0 .85rem;
}

.iep-privacy-dialog__body ul {
  margin: .35rem 0 1rem 1.25rem;
  padding: 0;
}

.iep-privacy-dialog__body li + li {
  margin-top: .3rem;
}

.iep-privacy-dialog__links {
  padding-top: .25rem;
  border-top: 1px solid #d8e7e8;
  font-size: .9rem;
}

.iep-privacy-dialog__links a {
  color: #227f78;
  font-weight: 800;
}

@media print {
  .iep-phi-warning {
    display: none !important;
  }
}
