/* Static search-entry pages reuse Hanyu's established editorial system.
   Interactive tools remain in their existing page-specific styles. */

.seo-page {
  background: #f7f5ef;
}

.seo-hero {
  padding-top: 54px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.seo-breadcrumb {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: #77736c;
  font-size: 10px;
}

.seo-breadcrumb a {
  color: #554f48;
  text-decoration: underline;
  text-decoration-color: #cbc2b6;
  text-underline-offset: 4px;
}

.seo-breadcrumb a:hover,
.seo-breadcrumb a:focus-visible {
  color: #8a4315;
  text-decoration-color: #8a4315;
}

.seo-clone-breadcrumb {
  padding-top: 28px;
}

.seo-clone-breadcrumb .seo-breadcrumb {
  margin-bottom: 0;
}

.seo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.35fr);
  align-items: end;
  gap: clamp(44px, 7vw, 108px);
}

.seo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8a4315;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seo-hero__eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.seo-hero h1 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(50px, 6.1vw, 88px);
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.seo-hero h1 em {
  color: #974613;
  font-family: var(--serif);
  font-weight: 500;
}

.seo-hero__lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #625f58;
  font-size: 16px;
  line-height: 1.75;
}

.seo-hero__facts {
  border: 1px solid #2d444d;
  color: #fff;
  background: #112b35;
}

.seo-hero__facts > span {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 7px;
  padding: 14px 18px;
}

.seo-hero__facts > span + span {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.seo-hero__facts small {
  color: #d2ae79;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.seo-hero__facts strong {
  color: #f5f2eb;
  font-size: 13px;
  line-height: 1.4;
}

.seo-section {
  padding-block: 72px;
}

.seo-section--tint {
  border-block: 1px solid var(--line);
  background: #efede7;
}

.seo-section--dark {
  color: #fff;
  background: #112b35;
}

.seo-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.seo-section-heading > div {
  display: grid;
  gap: 10px;
}

.seo-section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.seo-section-heading p {
  margin: 0;
  color: #6a6760;
  font-size: 13px;
  line-height: 1.7;
}

.seo-section--dark .seo-section-heading p {
  color: #b9c5c7;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-route-card {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: space-between;
  gap: 28px;
  padding: 26px;
  border: 1px solid #cbc7bf;
  color: #282723;
  background: #fff;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.seo-route-card:hover,
.seo-route-card:focus-visible {
  border-color: #9e806a;
  outline: 2px solid transparent;
  background: #fffaf2;
  box-shadow: 0 16px 40px rgba(35, 29, 23, 0.09);
}

.seo-route-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.seo-route-card__index,
.seo-route-card__glyph {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d6ccc0;
  border-radius: 50%;
  color: #8a4315;
  font-size: 9px;
  font-weight: 800;
}

.seo-route-card__glyph {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.seo-route-card__time {
  color: #79756e;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-route-card__copy {
  display: grid;
  gap: 10px;
}

.seo-route-card__copy strong {
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.seo-route-card__copy p {
  margin: 0;
  color: #6a6760;
  font-size: 12px;
  line-height: 1.65;
}

.seo-route-card__copy em {
  color: #8a4315;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.seo-word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #ccc7bf;
  border-left: 1px solid #ccc7bf;
}

.seo-word-card {
  min-width: 0;
  min-height: 172px;
  padding: 21px;
  border-right: 1px solid #ccc7bf;
  border-bottom: 1px solid #ccc7bf;
  background: #fff;
}

.seo-word-card__word {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.seo-word-card__word strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.seo-word-card__word span {
  color: #9b4b17;
  font-size: 10px;
}

.seo-word-card > strong {
  display: block;
  margin-top: 12px;
  color: #35332f;
  font-size: 11px;
  line-height: 1.45;
}

.seo-word-card p {
  margin: 10px 0 0;
  color: #74716a;
  font-size: 10px;
  line-height: 1.55;
}

.seo-word-card__translation {
  display: block;
  margin-top: 7px;
  color: #4f4a44;
  font-size: 10px;
  line-height: 1.55;
}

.seo-word-card__translation span {
  margin-right: 7px;
  color: #9b4b17;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.vocabulary-target-word {
  color: #b42318;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.seo-scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.3fr);
  align-items: start;
  gap: 18px;
}

.seo-content-panel {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid #ccc7bf;
  background: #fff;
}

.seo-content-panel h2,
.seo-content-panel h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.seo-content-panel h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.seo-content-panel h3 {
  font-size: 20px;
}

.seo-content-panel > p {
  margin: 15px 0 0;
  color: #67645e;
  font-size: 13px;
  line-height: 1.75;
}

.seo-target-words {
  display: grid;
  gap: 10px;
}

.seo-target-word {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 11px 14px;
  border: 1px solid #d4cec5;
  background: #f8f4ed;
}

.seo-target-word > strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.seo-target-word span {
  display: grid;
  gap: 4px;
}

.seo-target-word span strong {
  color: #914311;
  font-size: 10px;
}

.seo-target-word span small {
  color: #66635d;
  font-size: 10px;
}

.seo-dialogue {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  background: #d6d1c9;
}

.seo-dialogue-line {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: #fff;
}

.seo-dialogue-line > span {
  color: #914311;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-dialogue-line > div {
  display: grid;
  gap: 7px;
}

.seo-dialogue-line strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.seo-dialogue-line em,
.seo-dialogue-line small {
  font-size: 10px;
  font-style: normal;
  line-height: 1.5;
}

.seo-dialogue-line em {
  color: #9b4b17;
}

.seo-dialogue-line small {
  color: #6f6c65;
}

.seo-pattern-box {
  display: grid;
  gap: 11px;
  margin-top: 26px;
  padding: 24px;
  color: #fff;
  background: #112b35;
}

.seo-pattern-box span {
  color: #d5ad76;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.seo-pattern-box strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.seo-pattern-box p {
  margin: 0;
  color: #bdc8ca;
  font-size: 11px;
  line-height: 1.6;
}

.seo-phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.seo-phrase-grid > div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid #d2ccc4;
  background: #fff;
}

.seo-phrase-grid strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.seo-phrase-grid em,
.seo-phrase-grid small {
  font-size: 9px;
  font-style: normal;
  line-height: 1.5;
}

.seo-phrase-grid em {
  color: #9b4b17;
}

.seo-phrase-grid small {
  color: #6b6861;
}

.seo-answer {
  margin-top: 24px;
  border: 1px solid #cfc8bf;
  background: #fff;
}

.seo-answer summary {
  min-height: 52px;
  padding: 16px 18px;
  color: #33312d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.seo-answer > div {
  padding: 20px;
  border-top: 1px solid #d7d1c9;
  color: #625f58;
  font-size: 12px;
  line-height: 1.7;
}

.seo-check-options {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: option;
}

.seo-check-options li {
  position: relative;
  min-height: 48px;
  padding: 14px 16px 14px 48px;
  border: 1px solid #d6d0c8;
  background: #f9f6f0;
  counter-increment: option;
  font-size: 12px;
  line-height: 1.55;
}

.seo-check-options li::before {
  position: absolute;
  top: 13px;
  left: 16px;
  color: #9b4b17;
  content: counter(option, upper-alpha);
  font-size: 9px;
  font-weight: 800;
}

.seo-feature-image {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #c9c2b9;
  background: #ded8cf;
}

.seo-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.seo-feature-image span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(17, 43, 53, 0.88);
  font-size: 9px;
  line-height: 1.45;
}

.seo-directory-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.seo-directory-rail a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid #cbc5bd;
  color: #44413c;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.seo-directory-rail a:hover,
.seo-directory-rail a:focus-visible,
.seo-directory-rail a[aria-current="page"] {
  border-color: #9b4b17;
  color: #fff;
  outline: 2px solid transparent;
  background: #9b4b17;
}

.seo-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-block: 34px 70px;
  padding: 28px 30px;
  color: #fff;
  background: #171714;
}

.seo-next > div {
  display: grid;
  gap: 7px;
}

.seo-next small {
  color: #d1aa73;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.seo-next strong {
  font-size: 20px;
}

.seo-next p {
  margin: 0;
  color: #bcbcb6;
  font-size: 11px;
}

.seo-next nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-next nav > a:not(.button) {
  color: #fff;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .seo-hero__grid,
  .seo-scenario-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-hero__grid {
    align-items: start;
    gap: 34px;
  }

  .seo-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-hero__facts > span {
    min-height: 82px;
  }

  .seo-hero__facts > span + span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .seo-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .seo-card-grid--three,
  .seo-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-directory-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seo-next {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .seo-hero {
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .seo-breadcrumb {
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .seo-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .seo-hero__lead {
    font-size: 14px;
  }

  .seo-hero__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-hero__facts > span {
    min-height: 66px;
  }

  .seo-hero__facts > span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .seo-section {
    padding-block: 50px;
  }

  .seo-card-grid,
  .seo-card-grid--three,
  .seo-phrase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-word-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    border-left: 1px solid #ccc7bf;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
  }

  .seo-word-card {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
  }

  .seo-route-card {
    min-height: 205px;
    padding: 22px;
  }

  .seo-word-card {
    min-height: 150px;
  }

  .seo-dialogue-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 17px;
  }

  .seo-target-word {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .seo-directory-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-next {
    margin-bottom: 48px;
    padding: 24px;
  }

  .seo-next nav {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-route-card,
  .seo-directory-rail a {
    transition: none;
  }
}

/* Compact premium editorial system for searchable lesson and resource pages. */
.seo-page {
  background: #fbf9f4;
}

.seo-hero {
  padding-top: 30px;
  padding-bottom: 36px;
  border-color: #ded8ce;
  background:
    radial-gradient(circle at 91% 0, rgba(231, 181, 164, 0.18), transparent 22rem),
    #fbf9f4;
}

.seo-breadcrumb {
  min-height: 30px;
  margin-bottom: 20px;
  font-size: 9px;
}

.seo-clone-breadcrumb {
  padding-top: 18px;
}

.seo-hero__grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.seo-hero h1 {
  max-width: 800px;
  margin-top: 13px;
  font-family: var(--serif);
  font-size: clamp(41px, 4vw, 55px);
  font-weight: 520;
  letter-spacing: -0.052em;
  line-height: 1.01;
}

.seo-hero__lead {
  max-width: 700px;
  margin-top: 17px;
  font-size: 14px;
  line-height: 1.67;
}

.seo-hero__facts {
  overflow: hidden;
  padding: 7px;
  border: 0;
  border-radius: 18px;
  background: #103f38;
  box-shadow: 0 18px 48px rgba(29, 48, 42, 0.14);
}

.seo-hero__facts > span {
  min-height: 62px;
  padding: 11px 14px;
  border-radius: 11px;
}

.seo-hero__facts > span + span {
  border-color: rgba(255, 255, 255, 0.12);
}

.seo-hero__facts small {
  color: #e7b5a4;
}

.seo-section {
  padding-block: clamp(46px, 5vw, 60px);
}

.seo-section--tint {
  border-color: #ded8ce;
  background: #f4f0e8;
}

.seo-section--dark {
  background: #103f38;
}

.seo-section-heading {
  gap: 36px;
  margin-bottom: 26px;
}

.seo-section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.seo-card-grid {
  gap: 14px;
}

.seo-route-card,
.seo-word-card,
.seo-phrase-card,
.seo-dialogue,
.seo-example-card {
  border-color: #d8d1c6;
  border-radius: 17px;
  box-shadow: 0 12px 34px rgba(34, 48, 41, 0.045);
}

.seo-route-card {
  min-height: 205px;
  padding: 23px;
}

.festival-directory-grid {
  align-items: stretch;
}

.festival-route-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  align-content: start;
  gap: 0;
}

.festival-route-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9dfd0;
}

.festival-route-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.festival-route-card:hover .festival-route-card__image img,
.festival-route-card:focus-visible .festival-route-card__image img {
  transform: scale(1.025);
}

.festival-route-card .seo-route-card__top {
  padding: 18px 22px 0;
}

.festival-route-card .seo-route-card__copy {
  padding: 18px 22px 24px;
}

.festival-route-card .seo-route-card__copy em {
  color: #8a4315;
}

.festival-principles .seo-route-card {
  min-height: 190px;
}

.festival-directory-return {
  width: fit-content;
  margin-top: 24px;
}

.seo-next {
  border-radius: 20px;
  background: #103f38;
}

@media (max-width: 900px) {
  .seo-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .seo-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-hero__facts > span + span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .seo-hero {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .seo-breadcrumb {
    margin-bottom: 14px;
  }

  .seo-hero h1 {
    font-size: clamp(34px, 10vw, 40px);
  }

  .seo-hero__lead {
    margin-top: 14px;
    font-size: 13px;
  }

  .seo-hero__facts {
    padding: 5px;
    border-radius: 14px;
  }

  .seo-hero__facts > span {
    min-height: 58px;
    padding: 9px;
  }

  .seo-hero__facts strong {
    font-size: 10px;
  }

  .seo-section {
    padding-block: 38px;
  }

  .seo-section-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .seo-section-heading h2 {
    font-size: 31px;
  }

  .seo-route-card {
    min-height: 190px;
    padding: 21px;
    border-radius: 15px;
  }

  .seo-next {
    border-radius: 17px;
  }
}
