@font-face {
  font-family: "Marketory Sans";
  src: url("./fonts/IBMPlexSansThai-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Marketory Sans";
  src: url("./fonts/IBMPlexSansThai-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Marketory Text";
  src: url("./fonts/IBMPlexSansThaiLooped-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

body[data-view="storefront"] {
  --blue: #173c68;
  --blue-dark: #122f51;
  --navy: #182c42;
  --ink: #20354d;
  --muted: #627184;
  --line: #d9e0e7;
  --font: "Marketory Sans", sans-serif;
  font-family: "Marketory Sans", sans-serif;
}
body[data-view="storefront"] p {
  font-family: "Marketory Text", sans-serif;
}
body[data-view="storefront"] .wrap {
  max-width: 1180px;
}
body[data-view="storefront"] .button,
body[data-view="storefront"] input,
body[data-view="storefront"] select {
  border-radius: 2px;
}
body[data-view="storefront"] .button.primary {
  box-shadow: none;
}
body[data-view="storefront"] .demo-bar {
  background: #fff;
  color: #67778b;
  border-bottom: 1px solid var(--line);
  font: 11px/1.8 "Marketory Sans", sans-serif;
}
body[data-view="storefront"] .demo-bar a {
  color: #365c84;
}
body[data-view="storefront"] .header {
  border: 0;
  background: #fff;
}
body[data-view="storefront"] .nav-row {
  min-height: 91px;
  border-bottom: 1px solid var(--navy);
}
body[data-view="storefront"] .brand {
  font: 400 40px/1 Georgia, serif;
  letter-spacing: -2px;
  gap: 0;
  color: var(--blue);
}
.editorial-wordmark em {
  font-style: italic;
}
body[data-view="storefront"] .desktop-nav {
  font-size: 14px;
  gap: 30px;
  font-weight: 400;
}
body[data-view="storefront"] .nav-pill,
body[data-view="storefront"] .library-link svg {
  display: none;
}
body[data-view="storefront"] .cart-count {
  color: var(--blue);
  background: #fff;
  border: 1px solid #c4cfdd;
}
body[data-view="storefront"] .hero {
  background: #fff;
  border: 0;
}
body[data-view="storefront"] .hero-inner {
  grid-template-columns: 1.12fr 1fr;
  gap: 60px;
  padding: 63px 0 54px;
  min-height: auto;
  border-bottom: 1px solid var(--line);
}
body[data-view="storefront"] .hero .eyebrow {
  font: 400 13px/1.8 "Marketory Sans", sans-serif;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}
body[data-view="storefront"] .hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue);
}
body[data-view="storefront"] .hero h1 {
  font-family: "Marketory Sans", sans-serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -1.7px;
}
body[data-view="storefront"] .hero-copy > p {
  max-width: 410px;
  line-height: 1.95;
  margin-top: 23px;
  font-size: 16px;
}
body[data-view="storefront"] .hero-buttons {
  margin-top: 28px;
}
body[data-view="storefront"] .hero-buttons .button {
  padding: 14px 25px;
  gap: 27px;
  font-size: 15px;
}
.editorial-reading-note {
  display: block;
  font-size: 13px;
  color: #728197;
  margin-top: 18px;
}
.editorial-feature {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 26px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
  min-width: 0;
  align-self: stretch;
}
.editorial-feature .hero-cover {
  position: static;
  width: 100%;
  box-shadow: none;
  transform: none;
}
.editorial-feature-copy > span {
  display: block;
  font: italic 17px/1.5 Georgia, serif;
  color: #8a9aac;
  margin-bottom: 22px;
}
.editorial-feature-copy h2 {
  font: 600 27px/1.65 "Marketory Sans", sans-serif;
  letter-spacing: -.5px;
  margin-bottom: 15px;
}
.editorial-feature-copy p {
  font-size: 13px;
  line-height: 1.95;
}
.editorial-feature-copy .text-button {
  margin-top: 17px;
  padding-bottom: 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--blue);
  font-size: 13px;
}
.editorial-benefits {
  padding: 21px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #58708b;
}
.editorial-benefits span {
  display: flex;
  align-items: center;
  gap: 11px;
}
.editorial-benefits b {
  font: 400 18px Georgia, serif;
  color: var(--blue);
}

.editorial-cover {
  --book-ink: #fff;
  --book-paper: #173c68;
  aspect-ratio: .655;
  background: var(--book-paper);
  color: var(--book-ink);
  border: 1px solid color-mix(in srgb, var(--book-ink) 18%, var(--book-paper));
  padding: 22px 20px 18px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  box-shadow: 3px 5px 9px #10294312;
  font-family: "Marketory Sans", sans-serif;
  container-type: inline-size;
}
.editorial-cover::before {
  position: absolute;
  content: "";
  left: 5px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: .18;
}
.editorial-cover .ec-imprint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px/1.5 Georgia, serif;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  gap: 6px;
}
.editorial-cover .ec-imprint small {
  font: 9px/1.5 "Marketory Sans", sans-serif;
}
.editorial-cover .ec-category {
  font: 400 9px/1.5 "Marketory Sans", sans-serif;
  letter-spacing: .65px;
  opacity: .8;
  margin-top: 19px;
}
.editorial-cover .ec-question {
  font: 600 clamp(21px, 14cqw, 35px)/1.42 "Marketory Sans", sans-serif;
  letter-spacing: -.7px;
  margin-top: 16px;
  color: inherit;
}
.editorial-cover .ec-question span {
  display: block;
}
.editorial-cover .ec-subtitle {
  font: 400 11px/1.85 "Marketory Text", sans-serif;
  color: inherit;
  opacity: .86;
  margin-top: 16px;
}
.editorial-cover .ec-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}
.editorial-cover .ec-number {
  font: italic 400 clamp(34px, 21cqw, 51px)/1 Georgia, serif;
  opacity: .5;
  letter-spacing: -2px;
}
.editorial-cover .ec-footer small {
  font: 8px/1.65 Arial, sans-serif;
  text-align: right;
  opacity: .85;
}
.editorial-cover.long-question .ec-subtitle {
  display: none;
}
body[data-view="storefront"] .cover-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
body[data-view="storefront"] .cover-button .editorial-cover {
  transition: transform .2s;
}
body[data-view="storefront"] .cover-button:hover .editorial-cover {
  transform: translateY(-4px);
}
body[data-view="storefront"] .preview-pill {
  display: none;
}
body[data-view="storefront"] .catalog-section {
  padding: 56px 0;
}
body[data-view="storefront"] .section-heading .eyebrow {
  display: none;
}
body[data-view="storefront"] .heading-row {
  display: block;
}
body[data-view="storefront"] .heading-row h2 {
  font: 600 31px/1.55 "Marketory Sans", sans-serif;
  letter-spacing: -.65px;
}
body[data-view="storefront"] .heading-row .muted {
  display: block;
  margin-top: 7px;
  font: 14px/1.9 "Marketory Text", sans-serif;
}
body[data-view="storefront"] .catalog-tools {
  margin-bottom: 15px;
}
body[data-view="storefront"] .search {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  max-width: 310px;
}
body[data-view="storefront"] .search input {
  font-size: 14px;
}
body[data-view="storefront"] .sort-control select {
  border: 0;
  font-size: 13px;
}
body[data-view="storefront"] .category-tabs {
  gap: 27px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  margin-bottom: 17px;
}
body[data-view="storefront"] .category-tabs button {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #6c7b8e;
  font: 400 14px/1.6 "Marketory Sans", sans-serif;
}
body[data-view="storefront"] .category-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
body[data-view="storefront"] .category-tabs button span,
body[data-view="storefront"] .category-tabs button svg {
  display: none;
}
body[data-view="storefront"] .catalog-results {
  font-size: 12px;
  margin-bottom: 25px;
}
body[data-view="storefront"] .book-grid {
  gap: 40px 30px;
}
body[data-view="storefront"] .book-card {
  display: flex;
  flex-direction: column;
}
body[data-view="storefront"] .book-meta {
  font: 12px/1.7 "Marketory Sans", sans-serif;
  letter-spacing: 0;
  margin-top: 19px;
}
body[data-view="storefront"] .book-title {
  padding: 7px 0 5px;
}
body[data-view="storefront"] .book-title h3 {
  font: 600 18px/1.7 "Marketory Sans", sans-serif;
  min-height: 62px;
  letter-spacing: -.2px;
}
body[data-view="storefront"] .book-subtitle {
  font-size: 13px;
  line-height: 1.9;
  min-height: 52px;
}
body[data-view="storefront"] .book-card-bottom {
  margin-top: auto;
  padding-top: 13px;
}
body[data-view="storefront"] .book-price {
  font: 600 19px "Marketory Sans", sans-serif;
}
body[data-view="storefront"] .book-price small {
  font-size: 12px;
}
body[data-view="storefront"] .add-button {
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--blue);
  width: 40px;
  height: 40px;
}
body[data-view="storefront"] .add-button.added {
  background: #edf2f8;
}
.editorial-pack {
  margin: 9px auto 0;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 42px;
  color: #fff;
  background: #173c68;
}
.editorial-pack h2 {
  font: 600 28px/1.65 "Marketory Sans", sans-serif;
  color: #fff;
}
.editorial-pack p {
  color: #c9d7e7;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 11px;
}
.editorial-pack-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
.editorial-pack-prices > article {
  border-left: 1px solid #ffffff3b;
  padding-left: 24px;
}
.editorial-pack-prices span {
  font: 14px "Marketory Sans", sans-serif;
  color: #d3dfec;
}
.editorial-pack-prices strong {
  display: block;
  font: 400 34px/1.7 Georgia, serif;
}
.editorial-pack-prices .text-button {
  font: 13px "Marketory Sans", sans-serif;
  border-bottom: 1px solid #ffffff70;
  color: #d3dfec;
  padding-bottom: 4px;
  border-radius: 0;
  margin-top: 6px;
}
.editorial-pack-note {
  font-size: 12px;
  margin-top: 13px;
}
body[data-view="storefront"] .how-section {
  padding-top: 64px;
}
body[data-view="storefront"] .how-section h2 {
  font: 600 29px/1.6 "Marketory Sans", sans-serif;
}
body[data-view="storefront"] .step-number {
  font: italic 29px Georgia, serif;
  color: #7189a7;
}
body[data-view="storefront"] .steps h3 {
  font: 600 17px/1.6 "Marketory Sans", sans-serif;
}
body[data-view="storefront"] .steps p {
  font-size: 14px;
}
body[data-view="storefront"] .footer {
  background: #fff;
}
body[data-view="storefront"] .footer .brand {
  font-size: 30px;
}
body[data-view="storefront"] .footer-inner > div:nth-child(2) {
  font-family: "Marketory Sans", sans-serif;
  font-size: 13px;
}
body[data-view="storefront"] .detail-cover {
  background: none;
  padding: 0;
  border-radius: 0;
}
body[data-view="storefront"] .detail-info h2 {
  font-family: "Marketory Sans", sans-serif;
  font-size: 26px;
  font-weight: 600;
}
.library-card > .editorial-cover {
  width: 155px;
  flex-shrink: 0;
  align-self: start;
  padding: 14px 11px 12px 16px;
}
.library-card .editorial-cover .ec-question {
  font-size: 19px;
}
.library-card .editorial-cover .ec-subtitle,
.library-card .editorial-cover .ec-category {
  display: none;
}
.library-card .editorial-cover .ec-imprint {
  font-size: 7px;
}
.library-card .editorial-cover .ec-imprint small,
.library-card .editorial-cover .ec-footer small {
  display: none;
}
body[data-view="storefront"] .library-card h2 {
  font-size: 19px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  body[data-view="storefront"] .hero-inner { gap: 37px; }
  body[data-view="storefront"] .hero h1 { font-size: 48px; }
  .editorial-feature { padding-left: 24px; gap: 22px; }
  .editorial-feature-copy h2 { font-size: 24px; }
  .editorial-feature-copy p { font-size: 12px; }
  .editorial-cover { padding: 18px 16px 15px 21px; }
  .editorial-cover .ec-question { font-size: clamp(20px, 14cqw, 32px); }
  .editorial-cover .ec-category { font-size: 8px; margin-top: 16px; }
  .editorial-cover .ec-subtitle { font-size: 10px; }
  body[data-view="storefront"] .book-grid { gap: 33px 24px; }
  .editorial-pack { padding: 32px; gap: 30px; }
  .editorial-pack h2 { font-size: 26px; }
  .editorial-pack-prices strong { font-size: 29px; }
  .editorial-pack-prices { gap: 19px; }
  .editorial-pack-prices > article { padding-left: 19px; }
}
@media (max-width: 900px) {
  body[data-view="storefront"] .hero-inner { padding: 43px 0; }
  body[data-view="storefront"] .hero h1 { font-size: 42px; }
  .editorial-feature { grid-template-columns: 1fr; padding-left: 30px; }
  .editorial-feature .hero-cover { max-width: 240px; margin: auto; }
  .editorial-feature-copy { display: none; }
  body[data-view="storefront"] .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-view="storefront"] .category-tabs { gap: 22px; }
  .editorial-pack { grid-template-columns: 1fr; gap: 26px; }
  .editorial-pack h2 br { display: none; }
  .editorial-pack-prices > article:first-child { padding-left: 0; border: 0; }
  .editorial-pack-prices { margin: 0 0 5px; }
}
@media (max-width: 650px) {
  body[data-view="storefront"] .demo-bar { font-size: 9px; }
  body[data-view="storefront"] .nav-row { min-height: 76px; }
  body[data-view="storefront"] .brand { font-size: 34px; }
  body[data-view="storefront"] .hero-inner { grid-template-columns: 1fr; padding: 34px 0 27px; gap: 30px; }
  body[data-view="storefront"] .hero .eyebrow { font-size: 12px; margin-bottom: 15px; }
  body[data-view="storefront"] .hero h1 { font-size: 39px; line-height: 1.5; letter-spacing: -1px; }
  body[data-view="storefront"] .hero-copy > p { font-size: 15px; margin-top: 19px; }
  body[data-view="storefront"] .hero-buttons { margin-top: 23px; }
  body[data-view="storefront"] .hero-buttons .button { font-size: 14px; padding: 13px 22px; }
  .editorial-reading-note { font-size: 12px; margin-top: 15px; }
  .editorial-feature { grid-template-columns: 1.1fr 1fr; border-left: 0; border-top: 1px solid var(--line); padding: 29px 0 0; gap: 28px; }
  .editorial-feature .hero-cover { grid-row: 1; grid-column: 2; max-width: none; }
  .editorial-feature-copy { display: block; grid-row: 1; grid-column: 1; }
  .editorial-feature-copy > span { font-size: 16px; margin-bottom: 16px; }
  .editorial-feature-copy h2 { font-size: 22px; }
  .editorial-feature-copy p { font-size: 12px; }
  .editorial-feature-copy .text-button { font-size: 12px; margin-top: 14px; }
  .editorial-cover { padding: 15px 12px 13px 17px; }
  .editorial-cover .ec-imprint { font-size: 8px; padding-bottom: 9px; }
  .editorial-cover .ec-imprint small { font-size: 7px; }
  .editorial-cover .ec-category { margin-top: 14px; font-size: 7px; }
  .editorial-cover .ec-question { font-size: clamp(20px, 15cqw, 29px); margin-top: 13px; line-height: 1.45; letter-spacing: -.6px; }
  .editorial-cover .ec-subtitle { font-size: 9px; margin-top: 12px; }
  .editorial-cover .ec-number { font-size: 34px; }
  .editorial-cover .ec-footer { padding-top: 12px; }
  .editorial-cover .ec-footer small { font-size: 6px; }
  .editorial-feature .editorial-cover .ec-category { display: none; }
  .editorial-feature .editorial-cover .ec-question { font-size: 23px; margin-top: 19px; }
  .editorial-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 17px 0; font-size: 12px; }
  .editorial-benefits span { gap: 8px; }
  .editorial-benefits span:last-child { grid-column: 1 / -1; }
  .editorial-benefits b { font-size: 17px; }
  body[data-view="storefront"] .catalog-section { padding: 35px 0; }
  body[data-view="storefront"] .heading-row h2 { font-size: 26px; }
  body[data-view="storefront"] .heading-row .muted { font-size: 13px; }
  body[data-view="storefront"] .catalog-tools { gap: 13px; margin-top: 0; }
  body[data-view="storefront"] .search { max-width: 100%; }
  body[data-view="storefront"] .sort-control select { font-size: 13px; }
  body[data-view="storefront"] .category-tabs { gap: 23px; padding-right: 18px; }
  body[data-view="storefront"] .category-tabs button { font-size: 14px; }
  body[data-view="storefront"] .catalog-results { margin-bottom: 21px; font-size: 12px; }
  body[data-view="storefront"] .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  body[data-view="storefront"] .book-meta { font-size: 11px; margin-top: 16px; }
  body[data-view="storefront"] .book-title h3 { font-size: 16px; line-height: 1.7; min-height: 83px; }
  body[data-view="storefront"] .book-subtitle { font-size: 12px; line-height: 1.9; min-height: 70px; }
  body[data-view="storefront"] .book-card-bottom { padding-top: 10px; gap: 5px; }
  body[data-view="storefront"] .book-price { font-size: 17px; }
  body[data-view="storefront"] .book-price small { font-size: 10px; }
  .editorial-pack { padding: 27px 24px; gap: 24px; margin-top: 6px; }
  .editorial-pack h2 { font-size: 25px; }
  .editorial-pack h2 br { display: initial; }
  .editorial-pack p { font-size: 13px; }
  .editorial-pack-prices { gap: 10px; }
  .editorial-pack-prices > article { padding-left: 10px; }
  .editorial-pack-prices span { font-size: 12px; }
  .editorial-pack-prices strong { font-size: 25px; }
  .editorial-pack-prices .text-button { font-size: 11px; line-height: 1.8; }
  .editorial-pack-note { font-size: 12px; line-height: 1.9; }
  body[data-view="storefront"] .how-section { padding-top: 40px; }
  body[data-view="storefront"] .how-section h2 { font-size: 26px; }
  body[data-view="storefront"] .steps h3 { font-size: 16px; }
  body[data-view="storefront"] .steps p { font-size: 14px; }
  body[data-view="storefront"] .detail-cover { width: 185px; }
  body[data-view="storefront"] .detail-cover .ec-question { font-size: 25px; }
  body[data-view="storefront"] .detail-info h2 { font-size: 24px; }
  .library-card > .editorial-cover { width: 110px; padding: 11px 9px 9px 14px; }
  .library-card .editorial-cover .ec-question { font-size: 15px; margin-top: 10px; }
  .library-card .editorial-cover .ec-number { font-size: 25px; }
  body[data-view="storefront"] .library-card h2 { font-size: 17px; }
  body[data-view="storefront"] .library-card > div:last-child { display: block; }
}
@media (max-width: 380px) {
  .editorial-cover .ec-category,
  .editorial-cover .ec-subtitle { display: none; }
  .editorial-cover .ec-question { font-size: clamp(15px, 15cqw, 22px); }
  .editorial-cover .ec-imprint { padding-bottom: 8px; }
  .editorial-cover .ec-footer { padding-top: 10px; }
  .editorial-cover .ec-number { font-size: 28px; }
  .editorial-feature .editorial-cover { padding: 12px 10px 11px 15px; }
  .editorial-feature .editorial-cover .ec-question { font-size: clamp(15px, 16cqw, 21px); margin-top: 10px; }
  .editorial-feature .editorial-cover .ec-footer small { display: none; }
}

/* สัดส่วนกระดาษคงเดิมเมื่อซูม เพื่อให้อ่านเหมือนหน้าหนังสือ */
dialog.reader-modal {
  width: min(1120px, calc(100% - 40px));
  height: calc(100dvh - 40px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
}
.reader-modal .reader {
  --reader-scale: 1;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #e5e9ed;
}
.reader-modal .modal-close { top: 19px; right: 20px; }
.reader-toolbar {
  flex-shrink: 0;
  padding: 20px 70px 18px 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #cfd6de;
}
.reader-modal .reader-heading { text-align: left; margin: 0; min-width: 0; }
.reader-modal .reader-heading .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
.reader-modal .reader-heading h2 {
  font: 600 18px/1.5 "Marketory Sans", sans-serif;
  margin: 5px 0 3px;
  padding: 0;
}
.reader-modal .reader-heading > span:last-child { font-size: 12px; color: #69778a; }
.reader-zoom { display: flex; flex-direction: column; flex-shrink: 0; gap: 4px; font-size: 11px; color: #64748a; }
.reader-zoom select { font: 14px "Marketory Sans", sans-serif; min-height: 40px; border: 1px solid #d2d9e2; padding: 5px 10px; color: #20354d; background: #fff; }
.reader-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
}
.reader-paper-frame {
  width: calc(640px * var(--reader-scale));
  height: calc(640px * 210 / 148 * var(--reader-scale));
  margin: 0 auto;
}
.reader-modal .reading-page {
  box-sizing: border-box;
  width: 640px;
  height: calc(640px * 210 / 148);
  min-height: 0;
  padding: 36px 52px 30px;
  border: 1px solid #d8d4ca;
  border-radius: 0;
  background: #fffefa;
  box-shadow: 0 3px 14px #182c4221;
  color: #26323e;
  display: flex;
  flex-direction: column;
  transform: scale(var(--reader-scale));
  transform-origin: top left;
}
.reading-running-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid #d4d6d8;
  padding-bottom: 11px;
  margin-bottom: 31px;
  color: #687585;
  font: 10px/1.6 "Marketory Sans", sans-serif;
}
.reading-running-head span:first-child { letter-spacing: 1.5px; }
.reading-running-head span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reader-modal .page-eyebrow { font: 12px/1.5 "Marketory Sans", sans-serif; color: #5c7591; }
.reader-modal .reading-page h3 { font: 600 29px/1.5 "Marketory Sans", sans-serif; margin: 9px 0 15px; color: #173c68; }
.reader-modal .reading-page p { font: 17.5px/1.95 "Marketory Text", sans-serif; color: #35404b; margin: 0 0 15px; }
.reader-modal .reading-page .reading-lead { font: 20px/1.75 "Marketory Text", sans-serif; color: #1d3b56; margin-bottom: 22px; }
.reader-modal .workbook { border-left: 2px solid #69839a; background: none; padding: 1px 0 1px 17px; margin-top: 22px; }
.reader-modal .workbook > span { font: 600 13px/1.5 "Marketory Sans", sans-serif; color: #294b69; }
.reader-modal .workbook p { font-size: 16px; line-height: 1.85; margin: 6px 0 0; }
.reader-modal .reading-foot { flex-shrink: 0; margin-top: auto; padding-top: 13px; border-top: 1px solid #d4d6d8; font: 10px/1.5 "Marketory Sans", sans-serif; letter-spacing: .6px; color: #617185; }
.reader-modal .reading-foot span:last-child { font: 17px/1 Georgia, serif; }
.reader-modal .reading-page.printed-preview { padding: 0; overflow: hidden; }
.printed-preview > img { display: block; width: 100%; height: 100%; object-fit: fill; }
.preview-transcript { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: pre-wrap; }
.reader-loading { padding: 48px 32px; }
.reader-loading h2 { padding-right: 20px; font-size: 23px; line-height: 1.6; }
.reader-loading p { margin: 20px 0; }
.reader-modal .reader-navigation { margin: 0; padding: 13px 26px; background: #fff; border-top: 1px solid #cfd6de; flex-shrink: 0; }
.reader-modal .reader-navigation > span { color: #4d627a; font: 14px "Marketory Sans", sans-serif; }
.reader-modal .reader-navigation .button { min-height: 42px; font-size: 14px; padding: 8px 18px; }
.form-error { color: #a3312b; font-size: 13px; line-height: 1.8; }
.form-error:empty { display: none; }
.settings-actions > .form-error { color: #a3312b; }
#checkout-form .field { margin-bottom: 6px; }
#checkout-form .field input { font-size: 16px; }
#checkout-form .field input[readonly] { background: #f6f8fb; color: #294b69; }
#checkout-form .checkout-email-note { margin: 0 0 15px; text-align: left; }
#checkout-form .form-error { margin: 0 0 12px; }
#checkout-form > .form-note:last-child { text-align: center; margin-top: 13px; }
#checkout-setup:not([hidden]) { display: inline-block; margin: 0 0 15px; }
.payment-details b,.inspect-customer b,.table-sub { overflow-wrap: anywhere; min-width: 0; }
.payment-details > div > span { flex-shrink: 0; }
.payment-details b { text-align: right; }
.auth-gate { min-height: 55vh; padding-top: 90px; padding-bottom: 90px; text-align: center; }
.auth-gate > svg { width: 32px; height: 32px; color: #173c68; display: block; margin: 0 auto 22px; }
.auth-gate .eyebrow { display: block; font-size: 11px; margin-bottom: 13px; }
.auth-gate h1 { font: 600 30px/1.6 "Marketory Sans", sans-serif; }
.auth-gate p { margin: 15px auto 26px; line-height: 1.9; color: #627184; }
.auth-gate .button { margin: auto; }
.auth-form { padding: 40px 36px 32px; }
.auth-form h2 { font: 600 27px/1.6 "Marketory Sans", sans-serif; margin: 9px 0 13px; }
.auth-form > p { font-size: 15px; line-height: 1.9; margin-bottom: 23px; }
.auth-form strong { overflow-wrap: anywhere; }
.auth-form .field input { font-size: 16px; }
.auth-form .form-note { font-size: 12px; }
.auth-form .form-error { font-size: 13px; }
.auth-form .eyebrow { font-size: 10px; }
.auth-options { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
#otp-code { font: 28px/1.5 "Marketory Sans", sans-serif; letter-spacing: .45em; padding-left: 18px; }
.account-error { padding: 15px 0; font-size: 13px; color: #a3312b; }
.account-action { white-space: nowrap; }
.profile-chip { max-width: 100%; overflow-wrap: anywhere; }
.mobile-nav > button { text-align: left; padding: 10px 0; }
@media (max-width: 650px) {
  .account-action { display: none; }
  .auth-gate { padding-top: 60px; padding-bottom: 60px; }
  .auth-gate h1 { font-size: 25px; }
  .auth-gate p { font-size: 14px; }
  .auth-form { padding: 40px 23px 26px; }
  .auth-form h2 { font-size: 24px; }
  dialog.reader-modal { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; border: 0; }
  .reader-modal .modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .reader-toolbar { display: block; padding: 17px 16px 13px; }
  .reader-modal .reader-heading { padding-right: 39px; }
  .reader-modal .reader-heading h2 { font-size: 16px; line-height: 1.5; }
  .reader-modal .reader-heading .eyebrow { font-size: 9px; letter-spacing: .8px; }
  .reader-modal .reader-heading > span:last-child { font-size: 11px; }
  .reader-zoom { flex-direction: row; align-items: center; gap: 11px; margin-top: 13px; font-size: 12px; }
  .reader-zoom select { min-height: 36px; font-size: 14px; }
  .reader-stage { padding: 16px; }
  .reader-modal .reader-navigation { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .reader-modal .reader-navigation .button { font-size: 13px; min-height: 42px; padding: 8px 13px; }
  .reader-modal .reader-navigation > span { font-size: 12px; }
  .settings-actions { align-items: flex-start; flex-direction: column; }
  .settings-actions > .form-error { font-size: 13px; }
}
.auth-register-link { display: block; margin: 22px auto 0; }
.password-control { display: flex; align-items: center; border: 1px solid #dce2e9; background: #fff; }
.auth-form .password-control input { flex: 1; min-width: 0; border: 0; background: transparent; }
.password-control:focus-within { outline: 2px solid #315b8a; outline-offset: 2px; }
.auth-form .password-control input:focus { outline: none; box-shadow: none; }
.password-toggle { flex-shrink: 0; min-width: 58px; align-self: stretch; padding: 0 12px; font-size: 13px; }
.auth-form .password-hint, .auth-form .username-hint { margin-top: -9px; margin-bottom: 16px; color: #627184; }
.auth-form .auth-options:empty { display: none; }
.auth-form #auth-error:empty { margin-bottom: 0; }
.recovery-panel #recovery-code-display { font: 14px/1.7 ui-monospace, monospace; padding: 15px 10px; text-align: center; letter-spacing: .1px; }
.recovery-panel .recovery-warning { font-size: 13px; padding: 16px 0; margin: 0; color: #66513e; }
.recovery-panel .check-label { margin: 10px 0 22px; align-items: flex-start; }
.account-tools { display: flex; justify-content: flex-end; margin: -15px 0 20px; }
#checkout-username[readonly] { background: #f2f5f8; color: #173c68; }
@media (max-width:650px) {
 .auth-form .auth-options { flex-wrap: wrap; }
 .recovery-panel #recovery-code-display { text-align: left; font-size: 12px; }
 .account-tools { justify-content: flex-start; margin: 0 0 18px; }
}
.recovery-panel textarea { display: block; box-sizing: border-box; width: 100%; border: 1px solid #dce2e9; background: #f5f7fa; color: #173c68; resize: none; overflow-wrap: anywhere; }
