.apec-page {
  --apec-ink: #1b3027;
  --apec-muted: #53665a;
  --apec-green: #205b43;
  --apec-line: #d5e1d7;
  color: var(--apec-ink);
  background: #fff;
}

.apec-page main {
  padding-top: 72px;
}

.apec-page .nav-action,
.apec-page .button.primary {
  color: #fff;
  background: var(--apec-green);
}

.apec-page .button.secondary {
  color: var(--apec-green);
  background: #fff;
  border: 1px solid #8fa89a;
}

.apec-page :focus-visible {
  outline: 3px solid #a34222;
  outline-offset: 4px;
}

.apec-page [id] {
  scroll-margin-top: 96px;
}

.apec-wrap {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}

.apec-skip {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 25;
  padding: 12px 16px;
  background: #fff;
  transform: translateY(-150%);
}

.apec-skip:focus {
  transform: none;
}

.apec-masthead {
  background: #eff5ee;
  border-bottom: 1px solid var(--apec-line);
}

.apec-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 24px 0;
  color: var(--apec-muted);
  font-size: .875rem;
}

.apec-breadcrumb a:hover {
  text-decoration: underline;
}

.apec-hero {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding-block: clamp(34px, 6vw, 82px);
}

.apec-kicker {
  margin: 0 0 18px;
  color: #963c24;
  font-size: .9375rem;
  font-weight: 760;
}

.apec-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.apec-hero h1 > span {
  display: block;
  color: var(--apec-green);
}

.apec-hero h1 small {
  font-size: .49em;
  font-weight: 700;
  white-space: nowrap;
}

.apec-byline {
  margin-block: 19px 0;
  color: var(--apec-muted);
  font-size: .875rem;
  line-height: 1.65;
}

.apec-byline time {
  white-space: nowrap;
}

.apec-hero-intro {
  margin-block: 13px 0;
  font-size: 1rem;
  line-height: 1.65;
}

.apec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.apec-page .button {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .9375rem;
  line-height: 1.35;
  text-align: center;
}

.apec-hero figure,
.apec-classroom {
  min-width: 0;
  margin: 0;
}

.apec-hero img,
.apec-classroom img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.apec-hero img {
  aspect-ratio: 4 / 3;
  border-radius: 72px 12px 12px 12px;
}

.apec-page figcaption {
  margin-top: 9px;
  color: var(--apec-muted);
  font-size: .875rem;
  line-height: 1.6;
}

.apec-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(185px, 220px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(32px, 6vw, 70px);
}

.apec-toc {
  position: sticky;
  top: 98px;
  grid-column: 2;
  grid-row: 1;
  padding: 17px 20px;
  border-left: 2px solid var(--apec-line);
}

.apec-toc p {
  margin: 0;
  color: var(--apec-muted);
  font-weight: 700;
}

.apec-toc ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.apec-toc a {
  display: block;
  padding-block: 8px;
  color: var(--apec-green);
  font-size: .9375rem;
}

.apec-toc a:hover {
  text-decoration: underline;
}

.apec-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.apec-answer {
  padding: clamp(20px, 3.2vw, 36px);
  border-left: 4px solid var(--apec-green);
  border-radius: 0 12px 12px 0;
  background: #eff5ee;
}

.apec-content h2,
.apec-booking h2 {
  margin: 0 0 15px;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.apec-content h3 {
  margin: 25px 0 8px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.apec-content p,
.apec-content ul {
  margin-block: 12px 0;
}

.apec-content ul {
  padding-left: 1.4em;
}

.apec-content li + li {
  margin-top: 4px;
}

.apec-section {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--apec-line);
}

.apec-content a:not(.button),
.apec-booking a {
  color: var(--apec-green);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.apec-classroom {
  margin-block: 22px;
}

.apec-classroom img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.apec-content .apec-campuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.apec-campuses li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: #f3f7f2;
  border: 1px solid var(--apec-line);
  border-radius: 10px;
}

.apec-content .apec-campuses li,
.apec-campuses h3,
.apec-campuses p {
  margin: 0;
}

.apec-campuses a {
  margin-top: auto;
  padding-block: 5px;
  font-size: .9375rem;
}

.apec-content details {
  border-bottom: 1px solid var(--apec-line);
}

.apec-content summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 700;
}

.apec-content details p {
  margin: 0 0 14px;
  color: var(--apec-muted);
}

.apec-content .apec-note,
.apec-sources {
  color: var(--apec-muted);
  font-size: .9375rem;
}

.apec-content .apec-note {
  margin-top: 22px;
}

.apec-booking {
  padding-block: clamp(26px, 6vw, 68px);
  background: #eff5ee;
}

.apec-booking-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.apec-booking p {
  line-height: 1.75;
}

.apec-booking .trial-form {
  min-width: 0;
  padding: clamp(16px, 3.2vw, 32px);
  border: 1px solid var(--apec-line);
  border-radius: 12px;
  background: #fff;
}

.apec-booking .trial-form :is(input[type="tel"], select) {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  border-color: #a9b9ae;
  font-size: 1rem;
}

.apec-booking .trial-form label {
  min-width: 0;
  font-size: .9375rem;
}

.apec-booking .trial-form .consent-check {
  color: var(--apec-ink);
}

.apec-form-actions .button {
  width: 100%;
}

.apec-booking [data-trial-status] {
  margin: 0;
  color: var(--apec-green);
}

.apec-booking [data-trial-status]:not(:empty) {
  margin-top: 8px;
}

@media (max-width: 850px) {
  .apec-wrap {
    width: calc(100% - 44px);
  }

  .apec-layout {
    display: block;
  }

  .apec-toc {
    position: static;
    margin-bottom: 26px;
  }

  .apec-toc ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
  }
}

@media (max-width: 760px) {
  .apec-page main {
    padding-top: 112px;
  }

  .apec-page [id] {
    scroll-margin-top: 124px;
  }
}

@media (max-width: 650px) {
  .apec-wrap {
    width: calc(100% - 32px);
  }

  .apec-hero,
  .apec-booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .apec-hero img {
    aspect-ratio: 16 / 10;
    border-top-left-radius: 44px;
  }

  .apec-toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apec-content .apec-campuses,
  .apec-booking .trial-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
