.app {
  background-color: #fffaf1;
  background-image:
    linear-gradient(90deg, transparent 65px, rgba(221, 176, 165, .28) 66px 67px, transparent 68px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(160, 195, 197, .12) 31px 32px);
}

.app .top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fdf8ee;
  color: #173c4c;
  border-radius: 0 0 28px 28px;
  min-height: 330px;
  padding-bottom: 69px;
}

.app .top::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  background: #ead7b8;
  opacity: .4;
  clip-path: polygon(0 20%, 24% 90%, 54% 35%, 75% 70%, 100% 24%, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

.app .top::after {
  content: "";
  position: absolute;
  top: -4px;
  right: clamp(40px, 11vw, 120px);
  width: min(48%, 500px);
  aspect-ratio: 3 / 2;
  background: url("school-doodle-original.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.app .toprow,
.app .hero { position: relative; z-index: 2; }
.app .hero { max-width: 550px; padding-top: 62px; }
.app .hero p { color: #4d6b72; }
.app .eyebrow { color: #8a6a50; }
.app .pill { background: #e4eee7; border-color: #b9d5cc; color: #24576a; }
.app .brand-mark { background: transparent; border-radius: 0; }
.app .brand-name { color: #183c4d; }
.app .brand-subtitle { color: #55727a; }
.app .brand-amp { color: #b9754b; }

.app .wrap:not(.home) .card {
  box-shadow: 0 6px 20px rgba(31, 64, 64, .055);
}
.app .wrap:not(.home) .tabs {
  background: #e8f0ed;
  border: 1px solid #d7e6e1;
}
.app .wrap:not(.home) .tabs button.active { background: #fffaf1; color: #24546a; }
.app .program-intro,
.app .course-wrap > .card:first-of-type,
.app .mock-wrap > .card:first-of-type,
.app .contest-guide > .card:first-of-type,
.app .oral-wrap > .card:first-of-type,
.app .ep2-wrap > .card:first-of-type {
  border-top: 3px solid #e6b47d;
}

.home-screen .home { margin-top: -35px; }
.home-screen .home-side { padding-top: 0; }
.home-screen .home .grid { grid-template-columns: 1.3fr 1fr; gap: 18px; }
.home-screen .home .card { box-shadow: 0 6px 20px rgba(31, 64, 64, .07); }

.home-screen .mission {
  background: radial-gradient(circle at 102% -12%, rgba(242, 212, 163, .65) 0 82px, transparent 83px), #dff4e9;
  border-color: #b9e4d1;
}
.home-screen .mission .btn { background: #1d5a51; }
.home-screen .mission h2 { color: #173e3d; }

.home-screen .program {
  margin-top: 18px;
  padding: 20px 24px 23px;
  background: #fff;
  border: 1px solid #e2ebe6;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(31, 64, 64, .07);
}
.home-screen .program-title { margin: 0 0 9px; }
.home-screen .program .item .icon { background: #edf2ff; color: #4969a2; }
.home-screen .program .item:nth-child(odd) .icon { background: #fff0e4; color: #b46f4a; }
.home-screen .program .item:last-of-type .icon { background: #e4f2ee; color: #378a76; }

.home-screen .home-side .card:last-child {
  display: block;
  background: #fff3de;
  border-color: #f0dfbb;
}
.home-screen .home-side .card:last-child h3 { color: #303e3c; font-size: 19px; }
.home-screen .home-side .card:last-child p { color: #566962; }

.contest-comparison h2 { margin-top: 12px; }
.contest-compare {
  width: 100%;
  margin: 20px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d9e5de;
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}
.contest-compare th,
.contest-compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3ebe5; }
.contest-compare th:not(:last-child),
.contest-compare td:not(:last-child) { border-right: 1px solid #e3ebe5; }
.contest-compare thead th { background: #e4eee7; color: #24576a; font-size: 13px; }
.contest-compare tbody th { width: 18%; color: #254b45; background: #f6faf6; }
.contest-compare tbody tr:last-child > * { border-bottom: 0; }
.contest-comparison-links { font-size: 14px; }

@media (max-width: 700px) {
  .app {
    background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(160, 195, 197, .10) 31px 32px);
  }
  .app .top { min-height: 0; padding-bottom: 64px; }
  .app .top::after {
    top: auto;
    right: 8px;
    bottom: 0;
    left: auto;
    width: 260px;
    height: 173px;
  }
  .app .hero { max-width: none; padding-top: 37px; padding-right: 105px; }
  .home-screen .home { margin-top: 0; padding-top: 0; }
  .home-screen .home .grid { grid-template-columns: 1fr; }
  .home-screen .home-side { padding-top: 2px; }
  .home-screen .program { padding: 18px; }
  .home-screen .program-title { flex-wrap: wrap; }

  .contest-compare { display: block; border: 0; margin: 16px 0; }
  .contest-compare thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .contest-compare tbody,
  .contest-compare tr,
  .contest-compare th,
  .contest-compare td { display: block; width: 100%; }
  .contest-compare tr { border: 1px solid #d9e5de; border-radius: 13px; overflow: hidden; margin-bottom: 12px; }
  .contest-compare th,
  .contest-compare td { border: 0; padding: 11px 14px; }
  .contest-compare td { border-top: 1px solid #e3ebe5; }
  .contest-compare td::before { content: attr(data-label); display: block; color: #24576a; font-weight: 800; margin-bottom: 3px; }
}

.footer button { position: relative; }
.nav-new {
  position: absolute;
  top: 2px;
  right: 7px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #bd693e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.tabs .tab-new {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f8dfc5;
  color: #7f4527;
  font-size: 12px;
  font-weight: 800;
}
.new-badge, .subject .new-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8dfc5;
  color: #7f4527;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}
.site-update-notice {
  position: fixed;
  z-index: 50;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(670px, calc(100% - 28px));
  padding: 13px 15px;
  border: 1px solid #ddc08e;
  border-radius: 16px;
  background: #fff5e3;
  box-shadow: 0 12px 38px #18352e2c;
  color: #303e3c;
  font-size: 14px;
  line-height: 1.4;
}
.site-update-notice span { flex: 1; }
.site-update-notice button {
  border: 0;
  border-radius: 9px;
  background: #245a50;
  color: white;
  padding: 9px 11px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.site-update-notice .site-update-close {
  background: transparent;
  color: #566962;
  font-size: 21px;
  padding: 3px 7px;
}
@media (max-width: 700px) {
  .site-update-notice { bottom: 107px; flex-wrap: wrap; }
  .site-update-notice span { flex-basis: 100%; }
  .site-update-notice .site-update-close { position: absolute; top: 3px; right: 5px; }
}
