/* Reuse the marketing site's hero, containers, heading fonts and screenshot crop. */
.jlpt-main :focus-visible { outline: 3px solid #d79924; outline-offset: 5px; }
.jlpt-main figure { margin: 0; }
.jlpt-main [hidden] { display: none !important; }
.jlpt-main .jlpt-hero-copy { max-width: 560px; margin-top: 10px; }
.jlpt-hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jlpt-hero-copy .heading { margin-bottom: 20px; }
.jlpt-hero-copy .description { max-width: 540px; margin-bottom: 24px; }
.jlpt-hero-shot img { display: block; width: 100%; height: auto; }
.jlpt-hero-copy .jlpt-level-summary { margin: 0 0 24px; font-size: 14px; line-height: 1.6; }
.jlpt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.jlpt-actions > a:not(.app-store-link) { color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.jlpt-hero-copy .jlpt-artwork-note { max-width: 450px; margin: 16px 0 0; color: #f2f2f2; font-size: 12px; line-height: 1.6; }
.jlpt-main .jlpt-eyebrow { margin: 0 0 12px; color: #006dcc; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
.jlpt-introduction { margin-top: -22px; padding-bottom: 30px; }
.jlpt-introduction > .description { max-width: 760px; margin-bottom: 24px; }
.jlpt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.jlpt-steps li, .jlpt-detail-card, .jlpt-cta-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
}
.jlpt-steps li { padding: 26px 24px; text-align: left; }
.jlpt-step-number { color: #006dcc; font-size: 13px; font-weight: 700; }
.jlpt-steps h3 { margin: 12px 0; font-size: 24px; line-height: 1.2; }
.jlpt-steps p, .jlpt-detail-card p, .jlpt-creator-copy p, .jlpt-cta-card p {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.85;
}
.jlpt-steps p:last-child, .jlpt-detail-card > p:last-child, .jlpt-creator-copy p:last-child { margin-bottom: 0; }
.jlpt-detail-card { padding: 36px 38px; }
.jlpt-detail-card .heading { margin: 0 0 18px; }
.jlpt-vocabulary { padding-bottom: 30px; }
.jlpt-feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.jlpt-reading-example { border: 1px solid #dce6f0; border-radius: 16px; padding: 26px 28px; background: #f5f9fd; text-align: left; }
.jlpt-example-character { margin-bottom: 8px; color: #006dcc; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 88px; line-height: 1.4; }
.jlpt-reading-group + .jlpt-reading-group { margin-top: 20px; }
.jlpt-reading-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; color: #5f5f5f; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.6; }
.jlpt-reading-group h3 > span[lang="ja"] { color: #006dcc; font-size: 18px; font-weight: 700; }
.jlpt-reading-example ul { margin: 0; padding: 0; list-style: none; }
.jlpt-reading-example li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #dce6f0; }
.jlpt-reading-example li > span:first-child { font-size: 28px; line-height: 1.65; white-space: nowrap; }
.jlpt-reading-example rt { font-size: 11px; }
.jlpt-reading-example li > span:last-child { color: #4a4a4a; font-size: 14px; }
.jlpt-reading-example > p:last-child { margin: 8px 0 0; font-size: 13px; }
.jlpt-creator { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; padding-top: 24px; padding-bottom: 54px; }
/* Bootstrap's float clearfix would otherwise occupy two grid cells. */
.jlpt-creator::before, .jlpt-creator::after { display: none; }
.jlpt-creator-label > p:last-child { color: #5f5f5f; font-size: 13px; }
.jlpt-creator-copy { padding-left: 30px; border-left: 3px solid #cbdff0; text-align: left; }
.jlpt-practice { padding-bottom: 30px; }
.jlpt-practice-grid { display: grid; gap: 30px; }
.jlpt-practice-grid > section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 38px; }
.jlpt-practice-grid > section:first-child .jlpt-practice-shot { order: -1; }
.jlpt-practice-copy { max-width: 460px; }
.jlpt-practice-shot { text-align: center; }
.jlpt-practice-shot img { display: block; width: 300px; max-width: 100%; height: auto; margin-inline: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .14)); }
.jlpt-practice-shot figcaption { padding-top: 16px; color: #5f5f5f; font-size: 12px; }
.jlpt-challenge { padding-bottom: 30px; }
.jlpt-challenge-intro { max-width: 760px; }
.jlpt-detail-card .jlpt-challenge-offer { color: #006dcc; font-size: 23px; font-weight: 400; line-height: 1.5; }
.jlpt-challenge-offer strong { font-weight: 600; }
.jlpt-main .jlpt-small { color: #5f5f5f; font-size: 13px; line-height: 1.8; }
.jlpt-cta { padding-top: 10px; padding-bottom: 60px; }
.jlpt-cta-card { padding: 38px 42px; text-align: center; }
.jlpt-cta-card .heading { margin: 0 0 14px; }
.jlpt-cta-card p { max-width: 760px; margin: 0 auto 24px; }
.jlpt-cta-card .app-store-link { margin-bottom: 24px; }
.jlpt-cta-card p:last-child { margin-bottom: 0; }
@media (min-width: 768px) and (max-width: 979px) {
  .jlpt-feature-grid, .jlpt-creator { gap: 30px; }
  .jlpt-reading-example { padding: 20px; }
}
@media (max-width: 767px) {
  .jlpt-main .jlpt-hero-copy { max-width: none; }
  .jlpt-actions { justify-content: center; }
  .jlpt-hero-copy .description, .jlpt-hero-copy .jlpt-artwork-note { margin-inline: auto; }
  .jlpt-introduction { margin-top: 18px; }
  .jlpt-steps, .jlpt-feature-grid, .jlpt-creator, .jlpt-practice-grid > section { grid-template-columns: 1fr; }
  .jlpt-steps { gap: 14px; }
  .jlpt-detail-card, .jlpt-cta-card { padding: 26px 22px; }
  .jlpt-feature-grid, .jlpt-practice-grid > section { gap: 26px; }
  .jlpt-creator { gap: 12px; padding-top: 12px; padding-bottom: 36px; }
  .jlpt-creator h2 br { display: none; }
  .jlpt-creator-copy { padding-left: 20px; }
  .jlpt-practice-copy { max-width: none; }
  .jlpt-practice-grid > section:first-child .jlpt-practice-shot { order: 0; }
  .jlpt-practice-shot img { width: 270px; }
}
