body.worksheet-landing {
  margin: 0;
  color: #0b1220;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

.landing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.book-promo-wrap {
  padding: 20px 0 0;
}

.book-promo {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(16, 41, 82, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(10, 47, 126, 0.96) 0%, rgba(16, 77, 173, 0.94) 48%, rgba(31, 118, 194, 0.92) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  color: #f8fbff;
  overflow: hidden;
  position: relative;
}

.book-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 72%);
  pointer-events: none;
}

.book-promo > * {
  position: relative;
  z-index: 1;
}

.book-promo__cover {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(5, 14, 34, 0.28);
}

.book-promo__cover img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
  object-position: right center;
}

.book-promo__body h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  line-height: 1.02;
  color: #ffffff;
}

.book-promo__body p {
  margin: 0;
  max-width: 60ch;
  color: rgba(238, 245, 255, 0.9);
}

.book-promo__eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-promo__actions {
  display: flex;
  align-items: center;
}

.book-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f3577;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(5, 14, 34, 0.18);
}

.book-promo__cta:hover,
.book-promo__cta:focus-visible {
  background: #eff5ff;
}

.landing-header {
  padding: 40px 0 28px;
}

.landing-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.breadcrumbs,
.eyebrow {
  margin: 0 0 12px;
  color: #44506a;
  font-size: 0.95rem;
}

.landing-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
  color: #1d2840;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.cta-primary {
  background: #1d4ed8;
  color: #ffffff;
}

.cta-secondary {
  border: 1px solid rgba(13, 38, 76, 0.16);
  color: #12305f;
  background: rgba(255, 255, 255, 0.72);
}

.landing-layout {
  padding-bottom: 24px;
}

.landing-app-card,
.content-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 41, 82, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.landing-app-card {
  padding: 18px;
}

.content-card {
  padding: 24px;
}

.section-heading h2,
.content-card h2,
.content-card h3 {
  margin: 0 0 10px;
}

.section-heading p,
.content-card p {
  margin: 0;
}

.app-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #44506a;
}

.preview-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(13, 38, 76, 0.12);
  background: #ffffff;
}

.preview-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.chip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e7eefc;
  color: #12305f;
  font-weight: 600;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 20px 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(16, 41, 82, 0.12);
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin-top: 10px;
}

.landing-footer {
  padding: 0 20px 48px;
}

.hub-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.hub-topic-title {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

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

.hub-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(16, 41, 82, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #44506a;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 120ms ease, border-color 120ms ease;
}

.fav-btn:hover {
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.4);
}

.fav-btn.is-active {
  color: #d97706;
}

.hub-card-link {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.hub-card-link:hover h4,
.hub-card-link:focus-visible h4 {
  color: #1d4ed8;
}

.hub-card-thumbnail {
  display: grid;
  align-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #dce8ff 0%, #eef4ff 100%);
  border-right: 1px solid rgba(13, 38, 76, 0.12);
}

.hub-card-thumbnail svg {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.hub-card-body {
  padding: 20px 22px;
}

.hub-card-body h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  transition: color 120ms ease;
}

.hub-card-grade {
  margin: 0 0 8px;
  color: #44506a;
  font-size: 0.92rem;
  font-weight: 600;
}

.hub-card-body p {
  margin: 0 0 14px;
  color: #1d2840;
}

.hub-card-words {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-card-words li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7eefc;
  color: #12305f;
  font-size: 0.92rem;
  font-weight: 600;
}

.locale-switcher {
  position: relative;
}

.locale-switcher__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 41, 82, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #0b1220;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  user-select: none;
}

.locale-switcher__summary::-webkit-details-marker {
  display: none;
}

.locale-switcher__summary-label {
  font-weight: 600;
}

.locale-switcher__flag {
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.12);
  object-fit: cover;
}

.locale-switcher__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #44506a;
  border-bottom: 2px solid #44506a;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 120ms ease;
}

.locale-switcher[open] .locale-switcher__chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.locale-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(16, 41, 82, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  z-index: 30;
}

.locale-switcher__option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.locale-switcher__option:hover,
.locale-switcher__option:focus-visible,
.locale-switcher__option.is-current {
  background: #eef4ff;
}

.locale-switcher__text {
  display: grid;
  gap: 1px;
}

.locale-switcher__country {
  font-size: 0.96rem;
  font-weight: 600;
}

.locale-switcher__language {
  font-size: 0.82rem;
  color: #44506a;
}

.static-text-shell {
  padding: 0 20px 48px;
}

.static-text-card {
  max-width: 900px;
}

.static-text-card p,
.static-text-card ul {
  margin-top: 0;
}

.note {
  padding: 12px 14px;
  border: 1px solid rgba(16, 41, 82, 0.12);
  border-radius: 14px;
  background: #f8fbff;
}

.static-text-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.simple-header {
  padding-bottom: 18px;
}

.simple-header h1 {
  margin-top: 4px;
}

.manifesto-page {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f3f6ff 45%, #eef3fb 100%);
}

.manifesto-header {
  padding-bottom: 22px;
}

.manifesto-hero {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(16, 41, 82, 0.96) 0%, rgba(25, 55, 109, 0.94) 46%, rgba(14, 77, 122, 0.9) 100%);
  color: #f8fbff;
  border: 0;
  overflow: hidden;
  position: relative;
}

.manifesto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 46%, transparent 70%);
  pointer-events: none;
}

.manifesto-eyebrow,
.manifesto-lead,
.manifesto-hero h1 {
  position: relative;
  z-index: 1;
}

.manifesto-eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(235, 244, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.manifesto-lead {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 1.2rem;
  color: rgba(241, 247, 255, 0.94);
}

.manifesto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 22px;
  padding: 0 20px 56px;
}

.manifesto-main,
.manifesto-rail {
  display: grid;
  gap: 20px;
  align-content: start;
}

.manifesto-card {
  padding: 28px;
}

.manifesto-card--tall {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.manifesto-card p,
.manifesto-signal p {
  margin: 0 0 14px;
  color: #1f2a44;
  font-size: 1.04rem;
}

.manifesto-card p:last-child,
.manifesto-signal p:last-child {
  margin-bottom: 0;
}

.manifesto-rail {
  position: sticky;
  top: 22px;
}

.manifesto-signal {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(246, 249, 255, 0.96) 0%, rgba(238, 244, 255, 0.96) 100%);
}

.manifesto-signal h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.manifesto-signal--accent {
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.98) 0%, rgba(255, 244, 216, 0.98) 100%);
  border-color: rgba(180, 129, 21, 0.18);
}

.manifesto-lines {
  display: grid;
  gap: 14px;
}

.manifesto-lines p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #10294f;
}

.manifesto-lines--compact p {
  font-size: 1rem;
}

.manifesto-card--closing {
  background:
    linear-gradient(180deg, rgba(16, 41, 82, 0.96) 0%, rgba(18, 58, 102, 0.94) 100%);
  color: #f8fbff;
}

.manifesto-card--closing p {
  color: rgba(244, 248, 255, 0.95);
}

.manifesto-closing-lines {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.manifesto-closing-lines p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.fav-page-loading {
  color: #44506a;
  text-align: center;
  padding: 40px 0;
}

.fav-page-grid {
  grid-template-columns: 1fr;
}

.fav-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fav-page-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.fav-page-card__star {
  color: #d97706;
  font-size: 1rem;
}

.fav-page-card__title {
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-page-card__name {
  font-weight: 600;
  font-size: 1rem;
}

.fav-page-card__meta {
  font-size: 0.88rem;
  color: #44506a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-page-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.fav-page-card__open {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(13, 38, 76, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #12305f;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.fav-page-card__open:hover {
  background: #eef4ff;
}

.fav-page-card__delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #44506a;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.fav-page-card__delete:hover {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

a {
  color: #1d4ed8;
}

@media (max-width: 920px) {
  .book-promo {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .book-promo__actions {
    grid-column: 1 / -1;
  }

  .landing-layout,
  .content-grid,
  .hub-card-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-layout {
    grid-template-columns: 1fr;
  }

  .manifesto-rail {
    position: static;
  }

  .hub-card-link {
    grid-template-columns: 1fr;
  }

  .landing-header-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .locale-switcher {
    width: 100%;
  }

  .locale-switcher__summary {
    width: 100%;
    justify-content: space-between;
  }

  .hub-card-thumbnail {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 38, 76, 0.12);
  }
}

@media (max-width: 640px) {
  .book-promo {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .book-promo__cover {
    max-width: 240px;
  }

  .book-promo__cover img {
    height: 152px;
  }
}
