/* Shared finish for translated home pages. */
.localized-home {
  color: #243b53;
  background: #fffdfc;
  letter-spacing: 0;
}

.localized-home *,
.localized-home *::before,
.localized-home *::after {
  box-sizing: border-box;
}

.localized-home .announcement-bar {
  position: relative !important;
  inset: auto !important;
  z-index: 3;
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 12px !important;
  border: 1px solid #f5d59a;
  border-radius: 16px;
  background: #fff8ea;
  box-shadow: 0 8px 22px rgba(76, 54, 31, .07);
}

.localized-home .ny-banner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
}

.localized-home .language-switcher {
  position: fixed !important;
  right: clamp(12px, 2vw, 24px) !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  z-index: 1200 !important;
  display: flex !important;
  gap: 6px;
  align-items: center;
  padding: 7px !important;
  border: 1px solid #dbe7ef;
  border-radius: 999px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 26px rgba(38, 67, 86, .16);
  backdrop-filter: blur(9px);
}

.localized-home .language-switcher a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  transition: background-color .2s ease, transform .2s ease;
}

.localized-home .language-switcher a:hover,
.localized-home .language-switcher a:focus-visible {
  background: #edf6fb;
  transform: translateY(-1px);
}

.localized-home .language-switcher img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 999px;
}

.localized-home .localized-book-shelf {
  position: relative;
  padding: clamp(36px, 5vw, 62px) clamp(16px, 4vw, 34px) !important;
  background: #fff7f3 !important;
  overflow: hidden;
}

.localized-home .localized-book-shelf::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: #f4e0d7;
}

.localized-home .localized-book-shelf .container {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.localized-home .localized-book-shelf h2 {
  margin-top: 0;
  color: #244b68;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.localized-home .scroll-hint-text {
  color: #597589;
  font-size: .96rem;
}

.localized-home .localized-rail-controls {
  display: flex;
  justify-content: center;
  gap: 9px;
  width: min(1120px, 100%);
  margin: 12px auto 20px;
}

.localized-home [data-localized-book-scroll] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d2e2ea;
  border-radius: 999px;
  background: #fff;
  color: #23506d;
  font-size: 1.7rem;
  cursor: pointer;
}

.localized-home [data-localized-book-scroll]:hover,
.localized-home [data-localized-book-scroll]:focus-visible {
  background: #eaf5fa;
  border-color: #a6cbdb;
}

.localized-home .auto-book-rail {
  display: flex !important;
  gap: 16px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 2px 18px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #f19184 transparent;
}

.localized-home .auto-book-rail > .book-card {
  flex: 0 0 clamp(244px, 29vw, 286px);
  min-width: 0;
  border: 1px solid #f0ddd6;
  border-radius: 14px;
  scroll-snap-align: start;
  box-shadow: 0 6px 16px rgba(54, 61, 70, .07);
}

.localized-home .hlm-res {
  padding-block: clamp(42px, 6vw, 70px);
}

.localized-home .hlm-topic-panel {
  border-radius: 18px;
}

/* Japanese home: calmer header controls and a connected welcome action. */
html[lang="ja"] body.localized-home {
  --ja-header-height: 86px;
  --ja-nav-height: 66px;
  padding-top: calc(var(--ja-header-height) + var(--ja-nav-height));
}

html[lang="ja"] .localized-home .main-header {
  display: block;
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--ja-header-height);
  min-height: var(--ja-header-height);
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e6edf2;
  box-shadow: none;
}

html[lang="ja"] .localized-home .header-container {
  box-sizing: border-box;
  height: var(--ja-header-height);
  margin-inline: auto;
  max-width: 1120px;
  padding: 16px 18px;
}

html[lang="ja"] .localized-home .logo {
  height: 48px;
}

html[lang="ja"] .localized-home .site-title {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}

html[lang="ja"] .localized-home #navLinks {
  position: fixed;
  top: var(--ja-header-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  box-shadow: 0 5px 14px rgba(37, 78, 112, .08);
  min-height: var(--ja-nav-height);
  overflow: visible;
  padding: 12px 12px;
}

html[lang="ja"] .localized-home #feelings,
html[lang="ja"] .localized-home #books,
html[lang="ja"] .localized-home #worksheets,
html[lang="ja"] .localized-home #topics,
html[lang="ja"] .localized-home #subscribe {
  scroll-margin-top: calc(var(--ja-header-height) + var(--ja-nav-height) + 14px);
}

html[lang="ja"] .localized-home #navLinks .nav-inner {
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 41px;
}

html[lang="ja"] .localized-home #navLinks a,
html[lang="ja"] .localized-home .ja-nav-more summary {
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  color: #315570;
  cursor: pointer;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 700;
  padding: .66rem .82rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

html[lang="ja"] .localized-home #navLinks a:hover,
html[lang="ja"] .localized-home #navLinks a:focus-visible,
html[lang="ja"] .localized-home .ja-nav-more summary:hover,
html[lang="ja"] .localized-home .ja-nav-more summary:focus-visible {
  background: #f1f7fa;
  color: #173e5c;
}

html[lang="ja"] .localized-home #navLinks .subscribe-btn {
  background: #d85b51 !important;
  border-radius: 999px;
  color: #fff !important;
  margin-left: 8px;
  padding-inline: 1.15rem;
}

html[lang="ja"] .localized-home #navLinks .subscribe-btn:hover,
html[lang="ja"] .localized-home #navLinks .subscribe-btn:focus-visible {
  background: #bf4840 !important;
}

html[lang="ja"] .localized-home .ja-nav-more {
  position: relative;
}

html[lang="ja"] .localized-home .ja-nav-more summary {
  align-items: center;
  gap: 7px;
  list-style: none;
}

html[lang="ja"] .localized-home .ja-nav-more summary::-webkit-details-marker {
  display: none;
}

html[lang="ja"] .localized-home .ja-nav-more summary::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: #6a8190;
  margin-top: 5px;
}

html[lang="ja"] .localized-home .ja-nav-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 206px;
  padding: 8px;
  border: 1px solid #dde8ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(37, 78, 112, .13);
}

html[lang="ja"] .localized-home .ja-nav-more__menu a {
  width: 100%;
}

html[lang="ja"] .localized-home .ny-banner-inner {
  gap: 16px;
  padding: 14px 18px;
}

html[lang="ja"] .localized-home .ny-text {
  flex: 1 1 auto;
}

html[lang="ja"] .localized-home .ny-banner__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  background: #254e70;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

html[lang="ja"] .localized-home .ny-banner__action:hover,
html[lang="ja"] .localized-home .ny-banner__action:focus-visible {
  background: #173e5c;
}

html[lang="ja"] .localized-home .ja-feelings {
  padding-top: clamp(42px, 6vw, 60px);
}

html[lang="ja"] .localized-home .ja-feelings .feelings-grid {
  border-color: #e6ecf0;
  box-shadow: 0 10px 27px rgba(37, 78, 112, .08);
}

html[lang="ja"] .localized-home .ja-feelings__more {
  gap: 12px;
  padding-top: 4px;
}

html[lang="ja"] .localized-home .ja-feelings__more .ja-more-feelings {
  background: #d85b51 !important;
  border: 1px solid #d85b51;
  color: #fff !important;
}

html[lang="ja"] .localized-home .ja-feelings__more .ja-tools {
  background: #fff !important;
  border: 1px solid #b9d2de;
  color: #254e70 !important;
  font-weight: 800;
  text-decoration: none;
}

html[lang="ja"] .localized-home .ja-feelings__more .ja-tools:hover,
html[lang="ja"] .localized-home .ja-feelings__more .ja-tools:focus-visible {
  background: #edf6fa !important;
  border-color: #8bb9ca;
}

/* Traditional Chinese home: match the refined, quieter top experience. */
html[lang="zh-Hant"] body.localized-home {
  --tw-header-height: 73px;
  --tw-nav-height: 66px;
  padding-top: calc(var(--tw-header-height) + var(--tw-nav-height));
}

html[lang="zh-Hant"] .localized-home .sticky-header {
  display: block;
  box-sizing: border-box;
  padding: 0;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--tw-header-height);
  min-height: var(--tw-header-height);
  background: #fff;
  border-bottom: 1px solid #e6edf2;
  box-shadow: none;
}

html[lang="zh-Hant"] .localized-home .header-container {
  box-sizing: border-box;
  height: var(--tw-header-height);
  max-width: 1120px;
  margin-inline: auto;
  padding: 12px 14px;
}

html[lang="zh-Hant"] .localized-home .logo {
  height: 48px;
}

html[lang="zh-Hant"] .localized-home .site-title {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}

html[lang="zh-Hant"] .localized-home .sticky-nav {
  position: fixed;
  top: var(--tw-header-height);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--tw-nav-height);
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  box-shadow: 0 5px 14px rgba(37, 78, 112, .08);
  padding: 12px;
}

html[lang="zh-Hant"] .localized-home #feelings,
html[lang="zh-Hant"] .localized-home #books,
html[lang="zh-Hant"] .localized-home #worksheets,
html[lang="zh-Hant"] .localized-home #topics,
html[lang="zh-Hant"] .localized-home #subscribe {
  scroll-margin-top: calc(var(--tw-header-height) + var(--tw-nav-height) + 14px);
}

html[lang="zh-Hant"] .localized-home .quick-links {
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 41px;
}

html[lang="zh-Hant"] .localized-home .quick-links > a,
html[lang="zh-Hant"] .localized-home .tw-nav-more summary {
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  color: #315570;
  cursor: pointer;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 700;
  padding: .66rem .82rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

html[lang="zh-Hant"] .localized-home .quick-links > a:hover,
html[lang="zh-Hant"] .localized-home .quick-links > a:focus-visible,
html[lang="zh-Hant"] .localized-home .tw-nav-more summary:hover,
html[lang="zh-Hant"] .localized-home .tw-nav-more summary:focus-visible {
  background: #f1f7fa;
  color: #173e5c;
}

html[lang="zh-Hant"] .localized-home .quick-links .subscribe-btn {
  background: #d85b51 !important;
  border-radius: 999px;
  color: #fff !important;
  margin-left: 8px;
  padding-inline: 1.15rem;
}

html[lang="zh-Hant"] .localized-home .quick-links .subscribe-btn:hover,
html[lang="zh-Hant"] .localized-home .quick-links .subscribe-btn:focus-visible {
  background: #bf4840 !important;
}

html[lang="zh-Hant"] .localized-home .tw-nav-more {
  position: relative;
}

html[lang="zh-Hant"] .localized-home .tw-nav-more summary {
  align-items: center;
  gap: 7px;
  list-style: none;
}

html[lang="zh-Hant"] .localized-home .tw-nav-more summary::-webkit-details-marker {
  display: none;
}

html[lang="zh-Hant"] .localized-home .tw-nav-more summary::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: #6a8190;
  margin-top: 5px;
}

html[lang="zh-Hant"] .localized-home .tw-nav-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 206px;
  padding: 8px;
  border: 1px solid #dde8ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(37, 78, 112, .13);
}

html[lang="zh-Hant"] .localized-home .tw-nav-more__menu a {
  width: 100%;
  border-radius: 7px;
  box-shadow: none;
  background: transparent;
  color: #315570;
  padding: .6rem .7rem;
}

html[lang="zh-Hant"] .localized-home .ny-banner-inner {
  gap: 16px;
  padding: 14px 18px;
}

html[lang="zh-Hant"] .localized-home .ny-text {
  flex: 1 1 auto;
}

html[lang="zh-Hant"] .localized-home .ny-banner__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  background: #254e70;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

html[lang="zh-Hant"] .localized-home .ny-banner__action:hover,
html[lang="zh-Hant"] .localized-home .ny-banner__action:focus-visible {
  background: #173e5c;
}

html[lang="zh-Hant"] .localized-home .tw-feelings {
  padding-top: clamp(42px, 6vw, 60px);
}

html[lang="zh-Hant"] .localized-home .tw-feelings .feelings-grid {
  border-color: #e6ecf0;
  box-shadow: 0 10px 27px rgba(37, 78, 112, .08);
}

html[lang="zh-Hant"] .localized-home .tw-feelings__more {
  gap: 12px;
  padding-top: 4px;
}

html[lang="zh-Hant"] .localized-home .tw-feelings__more .tw-more-feelings {
  background: #d85b51 !important;
  border: 1px solid #d85b51;
  color: #fff !important;
}

html[lang="zh-Hant"] .localized-home .tw-feelings__more .tw-tools {
  background: #fff !important;
  border: 1px solid #b9d2de;
  color: #254e70 !important;
  font-weight: 800;
  text-decoration: none;
}

html[lang="zh-Hant"] .localized-home .tw-feelings__more .tw-tools:hover,
html[lang="zh-Hant"] .localized-home .tw-feelings__more .tw-tools:focus-visible {
  background: #edf6fa !important;
  border-color: #8bb9ca;
}

/* Korean home: calm navigation and a connected welcome experience. */
html[lang="ko"] body.localized-home {
  --ko-header-height: 73px;
  --ko-nav-height: 66px;
  padding-top: calc(var(--ko-header-height) + var(--ko-nav-height));
}

html[lang="ko"] .localized-home .sticky-header {
  display: block;
  box-sizing: border-box;
  padding: 0;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--ko-header-height);
  min-height: var(--ko-header-height);
  background: #fff;
  border-bottom: 1px solid #e6edf2;
  box-shadow: none;
}

html[lang="ko"] .localized-home .header-container {
  box-sizing: border-box;
  height: var(--ko-header-height);
  max-width: 1120px;
  margin-inline: auto;
  padding: 12px 14px;
}

html[lang="ko"] .localized-home .logo {
  height: 48px;
}

html[lang="ko"] .localized-home .site-title {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}

html[lang="ko"] .localized-home .sticky-nav {
  position: fixed;
  top: var(--ko-header-height);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--ko-nav-height);
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  box-shadow: 0 5px 14px rgba(37, 78, 112, .08);
  padding: 12px;
}

html[lang="ko"] .localized-home #feelings,
html[lang="ko"] .localized-home #books,
html[lang="ko"] .localized-home #worksheets,
html[lang="ko"] .localized-home #topics,
html[lang="ko"] .localized-home #subscribe {
  scroll-margin-top: calc(var(--ko-header-height) + var(--ko-nav-height) + 14px);
}

html[lang="ko"] .localized-home .quick-links {
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 41px;
}

html[lang="ko"] .localized-home .quick-links > a,
html[lang="ko"] .localized-home .ko-nav-more summary {
  display: inline-flex;
  padding: .66rem .82rem;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #315570;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

html[lang="ko"] .localized-home .quick-links > a:hover,
html[lang="ko"] .localized-home .quick-links > a:focus-visible,
html[lang="ko"] .localized-home .ko-nav-more summary:hover,
html[lang="ko"] .localized-home .ko-nav-more summary:focus-visible {
  background: #f1f7fa;
  color: #173e5c;
}

html[lang="ko"] .localized-home .quick-links .subscribe-btn {
  margin-left: 8px;
  padding-inline: 1.15rem;
  border-radius: 999px;
  background: #d85b51 !important;
  color: #fff !important;
}

html[lang="ko"] .localized-home .quick-links .subscribe-btn:hover,
html[lang="ko"] .localized-home .quick-links .subscribe-btn:focus-visible {
  background: #bf4840 !important;
}

html[lang="ko"] .localized-home .ko-nav-more {
  position: relative;
}

html[lang="ko"] .localized-home .ko-nav-more summary {
  align-items: center;
  gap: 7px;
  list-style: none;
}

html[lang="ko"] .localized-home .ko-nav-more summary::-webkit-details-marker {
  display: none;
}

html[lang="ko"] .localized-home .ko-nav-more summary::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: #6a8190;
  margin-top: 5px;
}

html[lang="ko"] .localized-home .ko-nav-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 206px;
  padding: 8px;
  border: 1px solid #dde8ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(37, 78, 112, .13);
}

html[lang="ko"] .localized-home .ko-nav-more__menu a {
  width: 100%;
  padding: .6rem .7rem;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: #315570;
}

html[lang="ko"] .localized-home .ny-banner-inner {
  gap: 16px;
  padding: 14px 18px;
}

html[lang="ko"] .localized-home .ny-text {
  flex: 1 1 auto;
}

html[lang="ko"] .localized-home .ny-banner__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  background: #254e70;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

html[lang="ko"] .localized-home .ny-banner__action:hover,
html[lang="ko"] .localized-home .ny-banner__action:focus-visible {
  background: #173e5c;
}

html[lang="ko"] .localized-home .ko-feelings {
  padding-top: clamp(42px, 6vw, 60px);
}

html[lang="ko"] .localized-home .ko-feelings .feelings-grid {
  border-color: #e6ecf0;
  box-shadow: 0 10px 27px rgba(37, 78, 112, .08);
}

html[lang="ko"] .localized-home .ko-feelings__more {
  gap: 12px;
  padding-top: 4px;
}

html[lang="ko"] .localized-home .ko-feelings__more .ko-more-feelings {
  background: #d85b51 !important;
  border: 1px solid #d85b51;
  color: #fff !important;
}

html[lang="ko"] .localized-home .ko-feelings__more .ko-tools {
  background: #fff !important;
  border: 1px solid #b9d2de;
  color: #254e70 !important;
  font-weight: 800;
  text-decoration: none;
}

html[lang="ko"] .localized-home .ko-feelings__more .ko-tools:hover,
html[lang="ko"] .localized-home .ko-feelings__more .ko-tools:focus-visible {
  background: #edf6fa !important;
  border-color: #8bb9ca;
}

html[lang="zh-CN"] body.localized-home {
  --cn-header-height: 73px;
  --cn-nav-height: 66px;
  padding-top: calc(var(--cn-header-height) + var(--cn-nav-height));
}

html[lang="zh-CN"] .localized-home .sticky-header {
  display: block;
  box-sizing: border-box;
  padding: 0;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--cn-header-height);
  min-height: var(--cn-header-height);
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  box-shadow: none;
}

html[lang="zh-CN"] .localized-home .header-container {
  box-sizing: border-box;
  height: var(--cn-header-height);
  max-width: 1120px;
  margin-inline: auto;
  padding: 12px 16px;
}

html[lang="zh-CN"] .localized-home .logo {
  height: 48px;
}

html[lang="zh-CN"] .localized-home .site-title {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}

html[lang="zh-CN"] .localized-home .sticky-nav {
  position: fixed;
  top: var(--cn-header-height);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--cn-nav-height);
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  box-shadow: 0 5px 14px rgba(37, 78, 112, .08);
  padding: 12px;
}

html[lang="zh-CN"] .localized-home #feelings,
html[lang="zh-CN"] .localized-home #books,
html[lang="zh-CN"] .localized-home #worksheets,
html[lang="zh-CN"] .localized-home #topics,
html[lang="zh-CN"] .localized-home #subscribe {
  scroll-margin-top: calc(var(--cn-header-height) + var(--cn-nav-height) + 14px);
}

html[lang="zh-CN"] .localized-home .quick-links {
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  justify-content: center;
  min-height: 41px;
}

html[lang="zh-CN"] .localized-home .quick-links > a,
html[lang="zh-CN"] .localized-home .cn-nav-more summary {
  background: transparent;
  border-radius: 8px;
  color: #31566f;
  font-size: .94rem;
  font-weight: 700;
  padding: 10px 14px;
}

html[lang="zh-CN"] .localized-home .quick-links > a:hover,
html[lang="zh-CN"] .localized-home .quick-links > a:focus-visible,
html[lang="zh-CN"] .localized-home .cn-nav-more summary:hover,
html[lang="zh-CN"] .localized-home .cn-nav-more summary:focus-visible {
  background: #f1f7fa;
  color: #173e5c;
}

html[lang="zh-CN"] .localized-home .quick-links .subscribe-btn {
  background: #d85b51 !important;
  border-radius: 999px;
  color: #fff !important;
  padding-inline: 20px;
}

html[lang="zh-CN"] .localized-home .quick-links .subscribe-btn:hover,
html[lang="zh-CN"] .localized-home .quick-links .subscribe-btn:focus-visible {
  background: #bf4840 !important;
}

html[lang="zh-CN"] .localized-home .cn-nav-more {
  position: relative;
}

html[lang="zh-CN"] .localized-home .cn-nav-more summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  list-style: none;
}

html[lang="zh-CN"] .localized-home .cn-nav-more summary::-webkit-details-marker {
  display: none;
}

html[lang="zh-CN"] .localized-home .cn-nav-more summary::after {
  border: 4px solid transparent;
  border-top-color: currentColor;
  content: "";
  margin-top: 5px;
}

html[lang="zh-CN"] .localized-home .cn-nav-more__menu {
  background: #fff;
  border: 1px solid #e3eaee;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(27, 58, 80, .13);
  display: grid;
  gap: 3px;
  min-width: 170px;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

html[lang="zh-CN"] .localized-home .cn-nav-more__menu a {
  border-radius: 7px;
  color: #31566f;
  font-weight: 700;
  padding: 9px 11px;
  text-decoration: none;
  width: 100%;
}

html[lang="zh-CN"] .localized-home .cn-nav-more__menu a:hover,
html[lang="zh-CN"] .localized-home .cn-nav-more__menu a:focus-visible {
  background: #f1f7fa;
}

html[lang="zh-CN"] .localized-home .ny-banner-inner {
  align-items: center;
  gap: 16px;
}

html[lang="zh-CN"] .localized-home .ny-text {
  flex: 1 1 auto;
}

html[lang="zh-CN"] .localized-home .ny-banner__action {
  align-items: center;
  background: #254e70;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 44px;
  padding: .65rem 1.05rem;
  text-decoration: none;
}

html[lang="zh-CN"] .localized-home .ny-banner__action:hover,
html[lang="zh-CN"] .localized-home .ny-banner__action:focus-visible {
  background: #173e5c;
}

html[lang="zh-CN"] .localized-home .cn-feelings {
  padding-top: clamp(42px, 6vw, 60px);
}

html[lang="zh-CN"] .localized-home .cn-feelings .feelings-grid {
  border-color: #e6ecf0;
  box-shadow: 0 10px 27px rgba(37, 78, 112, .08);
}

html[lang="zh-CN"] .localized-home .cn-feelings__more {
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: 4px;
}

html[lang="zh-CN"] .localized-home .cn-feelings__more .cn-more-feelings {
  background: #d85b51 !important;
  border: 1px solid #d85b51;
  color: #fff !important;
}

html[lang="zh-CN"] .localized-home .cn-feelings__more .cn-tools {
  background: #fff !important;
  border: 1px solid #b9d2de;
  color: #254e70 !important;
  font-weight: 800;
  text-decoration: none;
}

html[lang="zh-CN"] .localized-home .cn-feelings__more .cn-tools:hover,
html[lang="zh-CN"] .localized-home .cn-feelings__more .cn-tools:focus-visible {
  background: #edf6fa !important;
  border-color: #8bb9ca;
}

.localized-pathways {
  padding: clamp(42px, 6vw, 68px) clamp(16px, 4vw, 28px);
  background: #f3f9fb;
}

.localized-pathways__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.localized-pathways__heading {
  max-width: 680px;
  margin-bottom: 25px;
}

.localized-pathways__eyebrow {
  margin: 0 0 8px;
  color: #db685d;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.localized-pathways h2 {
  margin: 0 0 9px;
  color: #214b68;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.localized-pathways__heading > p:last-child {
  margin: 0;
  color: #526c7b;
  line-height: 1.65;
}

.localized-pathways__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.localized-pathways__card {
  display: block;
  min-height: 158px;
  padding: 19px 18px;
  color: #233e53;
  text-decoration: none;
  border: 1px solid #dae8ee;
  border-radius: 8px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.localized-pathways__card:hover,
.localized-pathways__card:focus-visible {
  transform: translateY(-3px);
  border-color: #b7d7e3;
  box-shadow: 0 10px 22px rgba(40, 68, 89, .1);
}

.localized-pathways__icon {
  display: block;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.localized-pathways__card strong {
  display: block;
  margin-bottom: 6px;
  color: #1f4966;
  font-size: 1.03rem;
}

.localized-pathways__card small {
  color: #607785;
  font-size: .92rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .localized-pathways__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html[lang="ja"] body.localized-home {
    --ja-header-height: 80px;
    padding-top: var(--ja-header-height);
  }

  html[lang="ja"] .localized-home .header-container {
    padding: 10px 12px;
  }

  html[lang="ja"] .localized-home .logo {
    height: 42px;
  }

  html[lang="ja"] .localized-home #feelings,
  html[lang="ja"] .localized-home #books,
  html[lang="ja"] .localized-home #worksheets,
  html[lang="ja"] .localized-home #topics,
  html[lang="ja"] .localized-home #subscribe {
    scroll-margin-top: calc(var(--ja-header-height) + 12px);
  }

  html[lang="zh-CN"] body.localized-home {
    --cn-header-height: 73px;
    padding-top: var(--cn-header-height);
  }

  html[lang="zh-CN"] .localized-home #feelings,
  html[lang="zh-CN"] .localized-home #books,
  html[lang="zh-CN"] .localized-home #worksheets,
  html[lang="zh-CN"] .localized-home #topics,
  html[lang="zh-CN"] .localized-home #subscribe {
    scroll-margin-top: calc(var(--cn-header-height) + 12px);
  }

  html[lang="ko"] body.localized-home {
    --ko-header-height: 73px;
    padding-top: var(--ko-header-height);
  }

  html[lang="ko"] .localized-home #feelings,
  html[lang="ko"] .localized-home #books,
  html[lang="ko"] .localized-home #worksheets,
  html[lang="ko"] .localized-home #topics,
  html[lang="ko"] .localized-home #subscribe {
    scroll-margin-top: calc(var(--ko-header-height) + 12px);
  }

  html[lang="zh-Hant"] body.localized-home {
    --tw-header-height: 73px;
    padding-top: var(--tw-header-height);
  }

  html[lang="zh-Hant"] .localized-home #feelings,
  html[lang="zh-Hant"] .localized-home #books,
  html[lang="zh-Hant"] .localized-home #worksheets,
  html[lang="zh-Hant"] .localized-home #topics,
  html[lang="zh-Hant"] .localized-home #subscribe {
    scroll-margin-top: calc(var(--tw-header-height) + 12px);
  }
}

@media (max-width: 720px) {
  .localized-home {
    padding-bottom: 72px;
  }

  .localized-home .announcement-bar {
    width: calc(100% - 24px);
    margin-top: 10px !important;
    padding: 12px !important;
    border-radius: 13px;
  }

  .localized-home .announcement-link--extra {
    display: none;
  }

  .localized-home .ny-banner {
    width: calc(100% - 24px);
    margin-bottom: 14px;
  }

  .localized-home .language-switcher {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  .localized-home .localized-rail-controls {
    margin: 12px auto 14px;
    justify-content: center;
  }

  html[lang="ja"] .localized-home .ny-banner-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html[lang="ja"] .localized-home .ny-banner__action {
    margin-left: 40px;
  }

  html[lang="ja"] .localized-home .ja-feelings__more {
    flex-direction: column;
  }

  html[lang="ja"] .localized-home .ja-feelings__more .ja-more-feelings,
  html[lang="ja"] .localized-home .ja-feelings__more .ja-tools {
    width: 100%;
  }

  html[lang="zh-Hant"] .localized-home .ny-banner-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html[lang="zh-Hant"] .localized-home .header-brand {
    flex-direction: row;
    align-items: center;
  }

  html[lang="zh-Hant"] .localized-home .ny-banner__action {
    margin-left: 40px;
  }

  html[lang="zh-Hant"] .localized-home .tw-feelings__more {
    flex-direction: column;
  }

  html[lang="zh-Hant"] .localized-home .tw-feelings__more .tw-more-feelings,
  html[lang="zh-Hant"] .localized-home .tw-feelings__more .tw-tools {
    width: 100%;
  }

  html[lang="ko"] .localized-home .ny-banner-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html[lang="ko"] .localized-home .header-brand {
    flex-direction: row;
    align-items: center;
  }

  html[lang="ko"] .localized-home .ny-banner__action {
    margin-left: 40px;
  }

  html[lang="ko"] .localized-home .ko-feelings__more {
    flex-direction: column;
  }

  html[lang="ko"] .localized-home .ko-feelings__more .ko-more-feelings,
  html[lang="ko"] .localized-home .ko-feelings__more .ko-tools {
    width: 100%;
  }

  html[lang="zh-CN"] .localized-home .ny-banner-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html[lang="zh-CN"] .localized-home .header-brand {
    align-items: center;
    flex-direction: row;
  }

  html[lang="zh-CN"] .localized-home .ny-banner__action {
    margin-left: 40px;
  }

  html[lang="zh-CN"] .localized-home .cn-feelings__more {
    flex-direction: column;
  }

  html[lang="zh-CN"] .localized-home .cn-feelings__more .cn-more-feelings,
  html[lang="zh-CN"] .localized-home .cn-feelings__more .cn-tools {
    width: 100%;
  }

  .localized-home .auto-book-rail > .book-card {
    flex-basis: min(78vw, 280px);
  }

  .localized-pathways {
    padding-block: 38px;
  }
}

@media (max-width: 480px) {
  .localized-pathways__grid {
    grid-template-columns: 1fr;
  }
}

/* Shared localized polish: steadier headers, drawer, and topic browsing. */
.localized-home {
  --localized-focus: rgba(37, 78, 112, 0.24);
  --localized-header-surface: rgba(255, 255, 255, 0.96);
}

.localized-home :focus-visible {
  outline: 3px solid var(--localized-focus);
  outline-offset: 3px;
}

.localized-home .sticky-header,
.localized-home .main-header {
  background: var(--localized-header-surface) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.localized-home .sticky-nav,
.localized-home #navLinks {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.localized-home .menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #dce8ee;
  border-radius: 10px;
  background: #fff;
  color: #254e70;
  box-shadow: 0 8px 20px rgba(37, 78, 112, .09);
  line-height: 1;
}

.localized-home .menu-toggle[aria-expanded="true"] {
  background: #254e70;
  border-color: #254e70;
  color: #fff;
}

.localized-home .nav-backdrop {
  background: rgba(14, 31, 43, .42);
  backdrop-filter: blur(2px);
}

.localized-home .mobile-nav {
  gap: 3px;
  border-left: 1px solid rgba(219, 231, 236, .9);
  background:
    radial-gradient(125% 125% at 50% 10%, rgba(255,255,255,.98) 42%, rgba(20,184,166,.12) 100%),
    #fff;
}

.localized-home .mobile-nav a,
.localized-home .mobile-nav button {
  min-height: 44px;
}

.localized-home .mobile-nav a:focus-visible,
.localized-home .mobile-nav button:focus-visible {
  outline: 3px solid rgba(37, 78, 112, .22);
  outline-offset: 2px;
}

.localized-home .body-lock,
body.localized-home.body-lock {
  overflow: hidden;
  touch-action: none;
}

.localized-home .hlm-res {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 60% 20%, rgba(175, 109, 255, .18), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(255, 100, 180, .16), transparent 65%),
    radial-gradient(ellipse 65% 40% at 50% 60%, rgba(120, 190, 255, .2), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%) !important;
}

.localized-home .hlm-res::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 78, 112, .16), transparent);
  content: "";
}

.localized-home .hlm-topic-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 236, .86) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(125% 125% at 50% 10%, rgba(255,255,255,.12) 40%, rgba(20,184,166,.18) 100%),
    linear-gradient(145deg, #254e70 0%, #315f7a 100%) !important;
  box-shadow: 0 20px 48px rgba(37, 78, 112, .18) !important;
}

.localized-home .hlm-topic-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #14b8a6, #ec4899);
  content: "";
}

.localized-home .hlm-tp__heading {
  letter-spacing: 0 !important;
}

.localized-home .hlm-tp__search {
  position: relative;
}

.localized-home .hlm-tp__search::before {
  position: absolute;
  left: .82rem;
  top: 50%;
  z-index: 1;
  width: .82rem;
  height: .82rem;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  transform: translateY(-58%);
  content: "";
}

.localized-home .hlm-tp__search::after {
  position: absolute;
  left: 1.48rem;
  top: 58%;
  z-index: 1;
  width: .42rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  transform: rotate(45deg);
  content: "";
}

.localized-home .hlm-tp__search input[type="search"] {
  min-height: 46px;
  padding-left: 2.35rem !important;
  border-radius: 12px !important;
}

.localized-home .hlm-tp__list {
  padding-right: .45rem !important;
}

.localized-home .hlm-tp__list a {
  position: relative;
  min-height: 44px;
  padding-left: 2.65rem !important;
  border-radius: 11px !important;
}

.localized-home .hlm-tp__list a::before {
  position: absolute;
  left: .7rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.36rem;
  height: 1.36rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-50%);
  content: ".";
}

.localized-home .hlm-tp__list li:nth-child(1) a::before { content: "E"; }
.localized-home .hlm-tp__list li:nth-child(2) a::before { content: "~"; }
.localized-home .hlm-tp__list li:nth-child(3) a::before { content: "+"; }
.localized-home .hlm-tp__list li:nth-child(4) a::before { content: "..."; }
.localized-home .hlm-tp__list li:nth-child(5) a::before { content: "H"; }
.localized-home .hlm-tp__list li:nth-child(8) a::before { content: "!"; }
.localized-home .hlm-tp__list li:nth-child(9) a::before { content: "C"; }

.localized-home .hlm-tp__list a:hover,
.localized-home .hlm-tp__list a:focus-visible {
  background: rgba(255, 255, 255, .16) !important;
}

.localized-home .hlm-tp__nav {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
}

@media (max-width: 768px) {
  .localized-home .mobile-nav {
    width: min(88vw, 380px);
  }

  .localized-home .hlm-topic-panel {
    padding: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .localized-home *,
  .localized-home *::before,
  .localized-home *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================================
   Gentle localized home motion
   Order: entrance, card lift, selective glow.
   ===================================================== */
@keyframes hlm-local-soft-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hlm-local-glow {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(37, 78, 112, .16) !important;
  }

  50% {
    box-shadow: 0 22px 52px rgba(20, 184, 166, .22) !important;
  }
}

/* 1. Page and section entrance */
.localized-home main > section,
.localized-home .hlm-topic-panel,
.localized-home .character-card,
.localized-home .book-card,
.localized-home .worksheet-card {
  animation: hlm-local-soft-rise .56s ease-out both;
}

/* 2. Card hover lift */
.localized-home .character-card,
.localized-home .book-card,
.localized-home .worksheet-card,
.localized-home .hlm-tp__list a {
  transition:
    transform .22s ease,
    box-shadow .24s ease,
    background-color .24s ease,
    border-color .24s ease !important;
  will-change: transform;
}

.localized-home .character-card:hover,
.localized-home .book-card:hover,
.localized-home .worksheet-card:hover,
.localized-home .hlm-tp__list a:hover {
  transform: translateY(-4px);
}

/* 3. Selective glow for the topic finder panel */
.localized-home .hlm-topic-panel {
  animation:
    hlm-local-soft-rise .56s ease-out both,
    hlm-local-glow 5.4s ease-in-out infinite .9s;
}

@media (prefers-reduced-motion: reduce) {
  .localized-home *,
  .localized-home *::before,
  .localized-home *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
