.detail {
  padding-block: clamp(2rem, 4.8vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.detail .back {
  margin-bottom: 1.15rem;
  color: var(--accent);
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.8rem);
  padding: clamp(1.15rem, 3.3vw, 3rem);
  border-radius: 1.5rem;
  background: var(--pale);
}

.detail-head h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 5.2vw, 5.2rem);
  overflow-wrap: anywhere;
}

.detail-head img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.46;
  border-radius: 1.05rem;
  object-fit: cover;
}

.detail-head .button { margin-top: 1.4rem; }

.detail .terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail .terms li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5.5vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.detail-body h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  letter-spacing: -0.045em;
}

.detail-copy section + section { margin-top: 2rem; }
.detail-copy ul { margin: 0.55rem 0 0; padding-left: 1.3rem; }
.detail-copy li + li { margin-top: 0.35rem; }
.detail-copy p, .detail-copy li { color: var(--muted); }

.apply-box {
  padding: clamp(1.2rem, 3.6vw, 2rem);
  border-radius: 1.4rem;
  background: var(--teal);
  color: #fff;
  scroll-margin-top: 1.5rem;
}

.apply-box p { margin-bottom: 1rem; color: #e1edeb; }
.apply-box a:not(.button) { text-underline-offset: 0.2em; }
.apply-box a:focus-visible { outline-color: var(--lime); }
.apply-box .email { display: block; margin-block: 0.65rem 1.1rem; overflow-wrap: anywhere; }
.apply-box address, .legal address { font-style: normal; }
.apply-box address { margin-bottom: 0.65rem; }
.subpage .legal { min-height: 65vh; padding-block: clamp(2rem, 6vw, 5rem); }

@media (max-width: 48rem) {
  .detail-head, .detail-body { grid-template-columns: minmax(0, 1fr); }
  .detail-head img { aspect-ratio: 1.8; }
}

@media (max-width: 33rem) {
  .subpage .site-header .brand span { max-width: 7rem; }
  .subpage .site-header .button { padding-inline: 0.8rem; white-space: nowrap; }
  .detail-head { border-radius: 1.05rem; }
}
