/* Match the training site's opening, without changing the library's other pages. */
.ace-day .ace-chooser-heading .ace-hero-spread {
  --ace-hero-serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ace-hero-sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 32px);
  padding: clamp(28px, 4vw, 62px) 0 clamp(16px, 2.5vw, 36px);
  color: #20364b;
  font-family: var(--ace-hero-sans);
}
.ace-day .ace-chooser-heading .ace-hero-words {
  min-width: 0;
  max-width: 43rem;
}
.ace-day .ace-chooser-heading .ace-hero-words h1 {
  margin: .6rem 0 1.1rem;
  color: #20364b;
  font-family: var(--ace-hero-serif) !important;
  font-weight: 600 !important;
  font-size: clamp(2.12rem, 4.6vw, 4rem);
  line-height: 1.27;
  letter-spacing: .01em;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.ace-day .ace-chooser-heading .ace-hero-evidence {
  margin: 0 0 .35rem;
  gap: 3px 9px;
  color: #2e6490;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: .035em;
}
.ace-day .ace-chooser-heading .ace-hero-evidence .ace-hero-scale > strong {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 650 !important;
  line-height: 1.4;
}
.ace-day .ace-chooser-heading .ace-hero-scale > strong > span {
  font-size: .8em;
}
.ace-day .ace-chooser-heading .ace-hero-scale-separator {
  color: #4d6070;
  font-size: 1rem;
}
.ace-day .ace-chooser-heading .ace-hero-evidence-note {
  color: #4d6070;
  font-size: .92rem;
  line-height: 1.65;
}
.ace-day .ace-chooser-heading .ace-hero-words .ace-hero-lead {
  max-width: 36em;
  margin: 0;
  color: #20364b;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.85;
}
.ace-day .ace-chooser-heading .ace-hero-lead strong {
  margin-top: .65em;
  color: inherit;
  font-weight: 750 !important;
}
.ace-day .ace-chooser-heading .ace-hero-contents {
  margin-top: .55rem;
  font-size: 1rem;
  line-height: 1.65;
}
.ace-day .ace-chooser-heading .ace-hero-day {
  min-width: 0;
  width: 100%;
  margin: 0;
}
.ace-day .ace-chooser-heading .ace-hero-day > img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.ace-day .ace-chooser-heading .ace-hero-day figcaption {
  gap: 12px;
  padding-top: 12px;
  color: #4d6070;
}
.ace-day .ace-chooser-heading .ace-hero-day figcaption small {
  font-size: .875rem;
  line-height: 1.65;
}
.ace-day .ace-chooser-heading .ace-hero-day figcaption strong {
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 600 !important;
  line-height: 1.65;
}
@media (min-width: 980px) {
  .ace-day .ace-chooser-heading .ace-hero-spread {
    grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
    gap: 12px;
    min-height: 395px;
  }
}
@media (min-width: 601px) and (max-width: 979px) {
  .ace-day .ace-chooser-heading .ace-hero-day > img {max-height: 300px}
}
@media (max-width: 600px) {
  .ace-day .ace-chooser-heading .ace-hero-spread {
    grid-template-areas: "intro" "title" "image" "text" "contents";
    gap: 4px;
    padding: 22px 0 14px;
  }
  .ace-day .ace-chooser-heading .ace-hero-words {display: contents; container-type: normal}
  .ace-day .ace-chooser-heading .ace-hero-evidence {grid-area: intro}
  .ace-day .ace-chooser-heading .ace-hero-words h1 {
    grid-area: title;
    margin: 0;
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
  .ace-day .ace-chooser-heading .ace-hero-day {grid-area: image; order: 0; margin-top: 4px}
  .ace-day .ace-chooser-heading .ace-hero-day > img {max-height: 210px}
  .ace-day .ace-chooser-heading .ace-hero-day figcaption {gap: 8px; padding-top: 8px}
  .ace-day .ace-chooser-heading .ace-hero-words .ace-hero-lead {grid-area: text; margin: .4rem 0}
  .ace-day .ace-chooser-heading .ace-hero-contents {grid-area: contents; width: fit-content}
}
