.page-section {
  min-height: calc(var(--fhd-height) - 88px);
  padding: 36px 0 84px;
  background: var(--paper);
}

.breadcrumb {
  margin-bottom: 20px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

.page-heading h1,
.cbt-heading h1 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.3;
}

.page-heading p,
.cbt-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.page-heading > strong {
  margin-top: 14px;
  color: var(--blue);
  font-size: 14px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  gap: 10px;
}

.filter-pills button,
.sort-button {
  min-width: 78px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-pills button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.sort-button {
  width: 184px;
  height: 44px;
  border-radius: 8px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 42px;
}

.catalog-grid .product-card {
  grid-template-columns: 108px minmax(0, 1fr);
  width: auto;
  min-height: 204px;
  padding: 18px;
}

.catalog-grid .product-card img {
  width: 108px;
  height: 164px;
}

.catalog-grid .product-card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.catalog-grid .product-card p {
  margin-bottom: 10px;
}

.catalog-grid .product-card-copy > a {
  right: 18px;
  bottom: 18px;
  left: auto;
  width: 132px;
}

.catalog-series-section + .catalog-series-section {
  margin-top: 72px;
}

.catalog-series-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.catalog-series-heading .eyebrow {
  margin-bottom: 7px;
}

.catalog-series-heading h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.3;
}

.catalog-series-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-series-heading > strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 14px;
}

.summary-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.summary-book-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 227px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--summary-accent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--white) 0%, var(--summary-soft) 100%);
  box-shadow: 0 10px 24px rgba(25, 40, 62, 0.06);
  gap: 18px;
}

.summary-book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-book-cover img {
  width: 132px;
  height: 187px;
  border-radius: 2px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(27, 35, 50, 0.17);
}

.summary-book-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.summary-book-label {
  margin-bottom: 10px;
  color: var(--summary-accent);
  font-size: 12px;
  font-weight: 800;
}

.summary-book-copy h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.4;
  word-break: keep-all;
}

.summary-book-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.published-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.published-book-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 408px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--published-accent);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(25, 40, 62, 0.07);
}

.published-book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: #f5f7fa;
}

.published-book-cover img {
  width: 154px;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(27, 35, 50, 0.16);
}

.published-book-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 24px 24px;
}

.published-book-label {
  margin-bottom: 9px;
  color: var(--published-accent);
  font-size: 12px;
  font-weight: 800;
}

.published-book-copy h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.3;
}

.published-book-byline {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.published-book-meta {
  display: grid;
  margin: 0 0 18px;
  gap: 7px;
}

.published-book-meta div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.published-book-meta dt,
.published-book-meta dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.published-book-meta dt {
  color: var(--subtle);
  font-weight: 700;
}

.published-book-meta dd {
  color: #334155;
}

.published-book-description {
  margin-bottom: 20px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.published-book-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  gap: 5px;
}

.published-book-link:hover {
  text-decoration: underline;
}

.published-books-note {
  margin: 20px 0 0;
  color: var(--subtle);
  font-size: 12px;
  text-align: right;
}

.product-detail-page {
  background: var(--white);
}

.product-detail {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  min-height: 650px;
  margin-bottom: 28px;
  gap: 76px;
}

.product-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 650px;
  border-radius: 8px;
  background: var(--book-soft);
}

.product-visual img {
  width: 308px;
  height: 466px;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.18);
}

.product-visual > div {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  gap: 16px;
}

.product-visual button {
  border: 0;
  background: transparent;
  color: var(--book-color);
  font-size: 14px;
  font-weight: 750;
}

.product-info {
  padding-top: 14px;
}

.product-kicker {
  margin-bottom: 10px;
  color: var(--book-color);
  font-size: 14px;
  font-weight: 800;
}

.product-info h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.25;
}

.product-description {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.rating {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 750;
}

.purchase-details {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.purchase-details > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  min-height: 62px;
}

.purchase-details dt {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 650;
}

.purchase-details dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.purchase-details .price {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
}

.choice {
  min-width: 96px;
  height: 38px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--book-color);
  font-size: 13px;
  font-weight: 750;
}

.choice.active {
  border-color: var(--book-color);
  background: var(--book-color);
  color: var(--white);
}

.purchase-actions {
  display: flex;
  margin-top: 24px;
  gap: 12px;
}

.purchase-actions .outline {
  width: 220px;
  border-color: var(--book-color);
  color: var(--book-color);
}

.product-buy {
  width: 300px;
  background: var(--book-color);
  color: var(--white);
}

.purchase-actions .wish {
  width: 60px;
  padding: 0;
  border-color: var(--line);
  background: var(--white);
  color: var(--book-color);
  font-size: 22px;
}

.purchase-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 88px;
  margin-top: 24px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--book-soft);
  color: var(--book-color);
  font-size: 13px;
  font-weight: 750;
  gap: 16px;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-tabs a {
  position: relative;
  padding: 22px 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.detail-tabs a.active {
  color: var(--book-color);
}

.detail-tabs a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: var(--book-color);
  content: "";
}

.detail-lower {
  display: grid;
  grid-template-columns: 520px 1fr 360px;
  align-items: start;
  padding: 42px 0 0;
  gap: 44px;
}

.detail-lower h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.detail-lower p,
.detail-lower ol {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-lower ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 22px;
  gap: 6px 28px;
}

.linked-resource-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.linked-resource-pills a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--book-color);
  font-size: 13px;
  font-weight: 750;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.summary-strip > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
}

.summary-strip > div + div {
  border-left: 1px solid var(--line);
}

.summary-strip span {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 13px;
}

.summary-strip strong {
  font-size: 22px;
}

.purple { color: var(--purple); }
.orange { color: var(--orange); }
.green { color: var(--green); }
.teal { color: var(--teal); }
.blue { color: var(--blue); }

.library-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 36px;
}

.account-sidebar,
.resource-sidebar,
.mypage-layout > aside {
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.account-sidebar > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.account-sidebar > span {
  display: block;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-size: 11px;
}

.account-sidebar nav,
.resource-sidebar,
.mypage-layout > aside {
  display: flex;
  flex-direction: column;
}

.account-sidebar nav {
  margin-top: 20px;
  gap: 6px;
}

.account-sidebar nav a,
.resource-sidebar a,
.mypage-layout > aside a {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.account-sidebar nav a.active,
.resource-sidebar a.active,
.mypage-layout > aside a.active {
  background: #e9eefa;
  color: var(--blue);
  font-weight: 800;
}

.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 12px;
}

.subheading h2 {
  margin: 0;
  font-size: 24px;
}

.subheading button,
.subheading a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ebook-row {
  display: grid;
  grid-template-columns: 76px 390px 1fr 168px;
  align-items: center;
  min-height: 146px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  gap: 24px;
}

.ebook-row + .ebook-row {
  margin-top: 14px;
}

.ebook-row > img {
  width: 72px;
  height: 110px;
  object-fit: contain;
}

.ebook-row > div:nth-child(2) > span {
  color: var(--book-color);
  font-size: 12px;
  font-weight: 800;
}

.ebook-row h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.ebook-row p {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
}

.ebook-progress b {
  display: block;
  margin-bottom: 16px;
  color: var(--book-color);
  font-size: 13px;
}

.ebook-progress i,
.recent-learning i {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6eaf0;
}

.ebook-progress u,
.recent-learning u {
  display: block;
  height: 100%;
  background: var(--book-color);
  text-decoration: none;
}

.ebook-button {
  min-height: 46px;
  background: var(--book-color);
  color: var(--white);
}

.resource-filters {
  display: grid;
  grid-template-columns: 260px 220px 150px 1fr;
  align-items: center;
  height: 82px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  gap: 14px;
}

.resource-filters button,
.resource-filters input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.resource-filters label {
  justify-self: end;
  width: 414px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: start;
  gap: 26px;
}

.resource-sidebar h2,
.mypage-layout > aside h2 {
  margin: 0 0 20px 14px;
  font-size: 17px;
}

.resource-sidebar a {
  display: flex;
  justify-content: space-between;
}

.resource-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.resource-table,
.review-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.resource-table th,
.resource-table td,
.review-table th,
.review-table td {
  border-bottom: 1px solid #eceff3;
  text-align: left;
}

.resource-table th {
  height: 62px;
  padding: 0 24px;
  color: var(--subtle);
  font-size: 13px;
}

.resource-table th:first-child { width: 48%; }
.resource-table th:nth-child(2) { width: 24%; }
.resource-table th:nth-child(3) { width: 14%; }
.resource-table th:nth-child(4) { width: 14%; }

.resource-table td {
  height: 84px;
  padding: 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.resource-table tr:nth-child(even) td {
  background: #fafbfc;
}

.resource-table td:first-child {
  color: var(--ink);
}

.resource-table td:first-child strong {
  margin-left: 16px;
  font-size: 15px;
}

.resource-table td:last-child {
  text-align: right;
}

.resource-table td button {
  width: 136px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 32px;
  border-radius: 999px;
  background: #f2f4f8;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.type-tag.purple { color: var(--purple); }
.type-tag.magenta { color: var(--magenta); }
.type-tag.red { color: var(--red); }
.type-tag.orange { color: var(--orange); }
.type-tag.teal { color: var(--teal); }

.cbt-heading {
  display: grid;
  grid-template-columns: 1fr 576px;
  align-items: center;
  margin-bottom: 30px;
  gap: 40px;
}

.cbt-heading aside {
  position: relative;
  min-height: 100px;
  padding: 20px 180px 20px 24px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.cbt-heading aside strong,
.cbt-heading aside span {
  display: block;
}

.cbt-heading aside strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.cbt-heading aside span {
  color: #dce6ff;
  font-size: 13px;
}

.cbt-heading aside a {
  position: absolute;
  top: 28px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 44px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.cbt-filters {
  margin-bottom: 24px;
}

.cbt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 42px;
}

.cbt-card {
  position: relative;
  min-height: 196px;
  padding: 20px 24px 18px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cbt-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--book-color);
  content: "";
}

.cbt-card h2 {
  display: inline-block;
  margin: 0 0 18px 14px;
  font-size: 18px;
}

.cbt-card > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.cbt-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbt-card > div span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--book-soft);
  color: var(--book-color);
  font-size: 11px;
  font-weight: 750;
}

.cbt-card > div span:nth-child(2) {
  background: #f2f4f8;
  color: var(--muted);
}

.cbt-card > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 42px;
  margin-left: auto;
  border-radius: 8px;
  background: var(--book-color);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.exam-page .fhd-canvas {
  background: #f3f5f8;
}

.exam-header {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  align-items: center;
  height: 88px;
  padding: 0 56px;
  background: var(--white);
}

.exam-header > a {
  font-size: 22px;
  font-weight: 800;
}

.exam-header > strong {
  font-size: 18px;
  text-align: center;
}

.exam-header > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.exam-header span {
  color: var(--subtle);
  font-size: 12px;
}

.exam-header span b {
  display: block;
  color: var(--red);
  font-size: 22px;
}

.exam-header > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 48px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
}

.exam-progress {
  height: 4px;
  background: #e1e6ed;
}

.exam-progress i {
  display: block;
  width: 43%;
  height: 100%;
  background: var(--green);
}

.exam-layout {
  display: grid;
  grid-template-columns: 1180px 470px;
  width: 1680px;
  height: 842px;
  margin: 40px auto 106px;
  gap: 30px;
}

.question-panel,
.question-nav {
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.question-number {
  display: flex;
  align-items: center;
  gap: 14px;
}

.question-number b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 34px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 13px;
}

.question-number span {
  color: var(--subtle);
  font-size: 13px;
}

.question-panel h1 {
  margin: 30px 0 32px;
  font-size: 25px;
  line-height: 1.55;
}

.answer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-list li + li {
  margin-top: 18px;
}

.answer-list button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
  gap: 20px;
}

.answer-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid #aab3c0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.answer-list li.selected button {
  border-color: var(--purple);
  background: #f0ecfa;
  color: var(--purple);
  font-weight: 750;
}

.answer-list li.selected i {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.question-actions {
  display: grid;
  grid-template-columns: 150px 1fr 160px 232px;
  margin-top: 38px;
  gap: 16px;
}

.question-actions button {
  height: 46px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.question-actions button:first-child {
  border-color: var(--line);
  color: var(--muted);
}

.question-actions button.next {
  background: var(--blue);
  color: var(--white);
}

.question-panel > p {
  margin: 24px 0 0;
  color: var(--subtle);
  font-size: 12px;
}

.question-nav h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.question-nav > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.legend {
  display: flex;
  margin-bottom: 28px;
  gap: 28px;
}

.legend span {
  position: relative;
  padding-left: 16px;
  color: var(--subtle);
  font-size: 12px;
}

.legend span::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.legend span:nth-child(2)::before { background: var(--purple); }
.legend span:nth-child(3)::before { background: #e5e7eb; }

.number-grid {
  display: grid;
  grid-template-columns: repeat(10, 34px);
  gap: 14px 8px;
}

.number-grid button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
}

.number-grid button.answered {
  background: #e9eefa;
  color: var(--blue);
}

.number-grid button.current {
  background: var(--purple);
  color: var(--white);
}

.question-nav > a {
  display: block;
  margin-top: 34px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.question-nav hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.question-nav h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.question-nav ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.result-summary {
  display: grid;
  grid-template-columns: 500px 1fr;
  margin-bottom: 42px;
  gap: 32px;
}

.score-card,
.performance-card {
  height: 292px;
  padding: 28px 30px;
  border-radius: 8px;
}

.score-card {
  position: relative;
  background: var(--blue);
  color: var(--white);
}

.score-card > span {
  color: #dce6ff;
  font-size: 14px;
  font-weight: 750;
}

.score-card > strong {
  display: block;
  margin: 12px 0 14px;
  font-size: 58px;
}

.score-card > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-card > div b {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green);
  font-size: 12px;
}

.score-card > div em {
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.score-card p {
  margin: 26px 0 0;
  color: #dce6ff;
  font-size: 14px;
}

.score-card > a {
  position: absolute;
  right: 30px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 44px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.performance-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.performance-card h2 {
  margin-bottom: 24px;
  font-size: 20px;
}

.score-bar {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.score-bar + .score-bar {
  margin-top: 18px;
}

.score-bar b {
  color: var(--muted);
  font-weight: 650;
}

.score-bar span {
  font-weight: 800;
  text-align: right;
}

.score-bar.red u { background: var(--red); }
.score-bar.red span { color: var(--red); }
.score-bar.orange u { background: var(--orange); }
.score-bar.orange span { color: var(--orange); }
.score-bar.green u { background: var(--green); }
.score-bar.green span { color: var(--green); }
.score-bar.teal u { background: var(--teal); }
.score-bar.teal span { color: var(--teal); }

.review-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.review-heading h2 {
  margin: 0;
  font-size: 26px;
}

.review-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-table th,
.review-table td {
  height: 62px;
  padding: 0 24px;
  font-size: 14px;
}

.review-table th {
  color: var(--subtle);
  font-size: 13px;
}

.review-table th:nth-child(1) { width: 8%; }
.review-table th:nth-child(2) { width: 10%; }
.review-table th:nth-child(3) { width: 10%; }
.review-table th:nth-child(4) { width: 10%; }
.review-table th:nth-child(5) { width: 35%; }
.review-table td:last-child { text-align: right; }
.review-table a { color: var(--blue); font-weight: 750; }
.wrong { color: var(--red); font-weight: 800; }
.correct { color: var(--green); font-weight: 800; }

.exam-facts {
  display: grid;
  grid-template-columns: 720px repeat(3, 1fr);
  margin-bottom: 48px;
  gap: 24px;
}

.exam-facts article {
  position: relative;
  height: 252px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.exam-facts article > span {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 650;
}

.exam-facts article > strong {
  display: block;
  margin: 18px 0;
  font-size: 28px;
}

.exam-facts article > p {
  color: var(--muted);
  font-size: 13px;
}

.exam-facts article > a {
  position: absolute;
  bottom: 28px;
  left: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.exam-facts .dday-card {
  padding: 30px 32px;
  border: 0;
  background: var(--blue);
  color: var(--white);
}

.dday-card > span {
  color: #dce6ff !important;
}

.dday-card > strong {
  margin: 10px 0 !important;
  color: var(--white);
  font-size: 50px !important;
}

.dday-card > b {
  display: block;
  font-size: 17px;
}

.dday-card > p {
  margin-top: 18px;
  color: #dce6ff !important;
}

.dday-card > button {
  position: absolute;
  right: 32px;
  bottom: 34px;
  width: 164px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.dday-card > .dday-link {
  right: 32px;
  bottom: 34px;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 46px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.exam-info-lower {
  display: grid;
  grid-template-columns: 952px 1fr;
  gap: 36px;
}

.exam-info-lower h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.timeline,
.notice-list {
  height: 298px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 112px 34px 50px;
}

.timeline > i {
  position: absolute;
  top: 81px;
  right: 96px;
  left: 96px;
  height: 4px;
  background: #d8ddea;
}

.timeline > div {
  position: relative;
  text-align: center;
}

.timeline > div::before {
  position: absolute;
  top: -47px;
  left: calc(50% - 17px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.timeline > div.current::before {
  background: var(--red);
}

.timeline b,
.timeline span {
  display: block;
}

.timeline b {
  margin-bottom: 10px;
  font-size: 14px;
}

.timeline span {
  color: var(--subtle);
  font-size: 12px;
}

.timeline > p {
  position: absolute;
  bottom: 22px;
  left: 28px;
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
}

.notice-list {
  padding: 14px 20px;
}

.notice-list a {
  display: grid;
  grid-template-columns: 58px 1fr 50px;
  align-items: center;
  height: 64px;
  gap: 14px;
}

.notice-list a + a {
  border-top: 1px solid #eceff3;
}

.notice-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
}

.notice-list a:first-child b {
  background: #fbe9ed;
  color: var(--red);
}

.notice-list span {
  font-size: 14px;
  font-weight: 650;
}

.notice-list time {
  color: var(--subtle);
  font-size: 11px;
  text-align: right;
}

.support-hero {
  height: 252px;
  background: #e9eefa;
}

.support-hero > div {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  height: 100%;
}

.support-hero h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.support-hero p {
  color: var(--muted);
}

.support-search-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 760px;
  height: 60px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 15px;
  font-weight: 750;
}

.support-search-link span {
  font-size: 20px;
}

.support-hero > div > strong {
  color: var(--blue);
  font-size: 18px;
  line-height: 1.8;
  text-align: right;
}

.support-hero small {
  font-size: 14px;
}

.support-page {
  padding-top: 44px;
}

.support-page > div > h2,
.support-lower h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.quick-help {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 48px;
  gap: 32px;
}

.quick-help a {
  display: flex;
  flex-direction: column;
  height: 150px;
  padding: 22px 24px;
  border-radius: 8px;
  background: #e9eefa;
  color: var(--blue);
}

.quick-help a.teal { background: #e7f4f5; color: var(--teal); }
.quick-help a.orange { background: #fdf0e5; color: var(--orange); }
.quick-help a.purple { background: #eeeaf8; color: var(--purple); }

.quick-help strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.quick-help span {
  color: var(--muted);
  font-size: 13px;
}

.quick-help b {
  margin-top: auto;
  font-size: 12px;
}

.support-lower {
  display: grid;
  grid-template-columns: 980px 1fr;
  gap: 36px;
}

.faq-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.support-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-section-heading > a {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.support-faq-preview details + details {
  border-top: 1px solid var(--line);
}

.support-faq-preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.support-faq-preview summary::-webkit-details-marker {
  display: none;
}

.support-faq-preview summary::after {
  content: "+";
  color: var(--blue);
  font-size: 20px;
}

.support-faq-preview details[open] summary::after {
  content: "−";
}

.support-faq-preview p {
  margin: 0;
  padding: 0 58px 20px 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.support-lower > aside {
  height: 300px;
  padding: 30px 28px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.support-lower > aside p {
  color: #dce6ff;
  line-height: 1.7;
}

.support-lower > aside .support-contact-button {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 48px;
  margin-top: 36px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.support-lower > aside > a:last-child {
  float: right;
  margin-top: 52px;
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
}

.profile-strip {
  display: grid;
  grid-template-columns: 80px 1fr 180px;
  align-items: center;
  height: 132px;
  margin-bottom: 32px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  gap: 24px;
}

.profile-strip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e9eefa;
  color: var(--blue);
  font-size: 25px;
  font-weight: 800;
}

.profile-strip > div {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 8px 18px;
}

.profile-strip strong {
  font-size: 20px;
}

.profile-strip small {
  color: var(--subtle);
  font-size: 12px;
}

.profile-strip b {
  grid-column: 1 / -1;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecf8e9;
  color: var(--green);
  font-size: 11px;
}

.profile-strip > button {
  width: 180px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.my-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
  gap: 32px;
}

.my-stats article {
  position: relative;
  height: 126px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.my-stats span,
.my-stats strong {
  display: block;
}

.my-stats span {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 13px;
}

.my-stats strong {
  font-size: 24px;
}

.my-stats a {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.mypage-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
}

.mypage-layout > aside {
  min-height: 430px;
}

.recent-order,
.recent-learning {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.recent-order {
  grid-template-columns: 1fr 280px;
  min-height: 164px;
  padding: 24px;
}

.recent-order > div:first-child > span {
  margin-right: 16px;
  color: var(--subtle);
  font-size: 12px;
}

.recent-order > div:first-child > b {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fdf0e5;
  color: var(--orange);
  font-size: 11px;
}

.recent-order h3 {
  margin: 20px 0 6px;
  font-size: 18px;
}

.recent-order p,
.recent-learning p {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
}

.recent-order > div:last-child {
  text-align: right;
}

.recent-order > div:last-child strong {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
}

.recent-order button {
  width: 170px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.learning-title {
  margin-top: 30px;
}

.recent-learning {
  grid-template-columns: 280px 1fr 172px;
  min-height: 120px;
  padding: 22px 24px;
  gap: 36px;
}

.recent-learning h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.recent-learning i {
  --book-color: var(--purple);
}

.recent-learning u {
  width: 68%;
}

.recent-learning a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 8px;
  background: var(--purple);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.legal-hero {
  padding: 52px 0 48px;
  border-top: 6px solid var(--blue);
  border-bottom: 1px solid #dbe3f1;
  background: #eef3ff;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.legal-hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
}

.legal-hero > div > p:not(.legal-eyebrow) {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-meta {
  display: flex;
  margin-top: 22px;
  gap: 8px;
}

.legal-meta span {
  padding: 6px 10px;
  border: 1px solid #ccd8ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.legal-page {
  min-height: 720px;
  padding: 52px 0 88px;
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.legal-navigation {
  position: sticky;
  top: 24px;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.legal-navigation > strong {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
}

.legal-navigation > nav {
  display: grid;
  gap: 4px;
}

.legal-navigation > nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.legal-navigation > nav a:hover {
  color: var(--blue);
}

.legal-navigation > nav a[aria-current="page"] {
  border-left-color: var(--blue);
  background: #e9eefb;
  color: var(--blue);
  font-weight: 800;
}

.legal-contents {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-contents > span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
}

.legal-contents ul {
  max-height: 380px;
  margin: 14px 0 0;
  padding-left: 0;
  overflow-y: auto;
  color: var(--subtle);
  list-style: none;
}

.legal-contents li {
  margin-bottom: 9px;
  padding-left: 0;
  font-size: 11px;
  line-height: 1.5;
}

.legal-contents a:hover {
  color: var(--blue);
}

.legal-document {
  padding: 18px 56px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-section {
  padding: 38px 0 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.45;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-section li {
  margin-bottom: 10px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.75;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-info-list {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.legal-info-list > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.legal-info-list dt,
.legal-info-list dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.65;
}

.legal-info-list dt {
  background: #f7f9fc;
  color: var(--ink);
  font-weight: 750;
}

.legal-info-list dd {
  color: var(--muted);
}

.legal-section .legal-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  background: #edf8f8;
  color: #315b60;
  font-size: 13px;
}

.legal-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 36px;
}

.legal-document-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.legal-document-footer strong {
  color: var(--ink);
  font-size: 13px;
}

.legal-document-footer a:not(.legal-contact),
.legal-document-footer span {
  color: var(--subtle);
  font-size: 11px;
}

.legal-document-footer a:not(.legal-contact):hover {
  color: var(--blue);
}

.legal-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 42px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.legal-contact:hover {
  background: var(--blue);
  color: var(--white);
}

/* Static information content */
.content-hero {
  padding: 52px 0 48px;
  border-top: 6px solid var(--purple);
  border-bottom: 1px solid #dbe3f1;
  background: #f1f4fb;
}

.content-eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.content-hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
}

.content-hero > div > p:not(.content-eyebrow) {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.content-hero > div > span {
  display: inline-block;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
}

.faq-hero { border-top-color: var(--teal); }
.notice-hero { border-top-color: var(--orange); }
.sitemap-hero { border-top-color: var(--green); }

.content-page {
  min-height: 720px;
  padding: 52px 0 88px;
  background: var(--paper);
}

.content-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.content-navigation,
.faq-category-nav {
  position: sticky;
  top: 24px;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.content-navigation > strong,
.faq-category-nav > strong {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
}

.content-navigation > nav,
.faq-category-nav > nav {
  display: grid;
  gap: 4px;
}

.content-navigation > nav a,
.faq-category-nav > nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.content-navigation > nav a:hover,
.faq-category-nav > nav a:hover {
  color: var(--blue);
}

.content-navigation > nav a[aria-current="page"] {
  border-left-color: var(--blue);
  background: #e9eefb;
  color: var(--blue);
  font-weight: 800;
}

.content-contents {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-contents > span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
}

.content-contents ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.content-contents li {
  margin-bottom: 9px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.5;
}

.content-document {
  padding: 18px 56px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.content-section {
  padding: 38px 0 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.content-section h2 {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.45;
}

.content-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.content-section ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.content-section li {
  margin-bottom: 10px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.75;
}

.content-info-list {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.content-info-list > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.content-info-list dt,
.content-info-list dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.65;
}

.content-info-list dt {
  background: #f7f9fc;
  color: var(--ink);
  font-weight: 750;
}

.content-info-list dd {
  color: var(--muted);
}

.content-section .content-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  background: #fff7ed;
  color: #79512f;
  font-size: 13px;
}

.content-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  gap: 10px 24px;
}

.content-links a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.content-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 36px;
}

.content-document-footer > div {
  display: grid;
  gap: 6px;
}

.content-document-footer strong {
  font-size: 13px;
}

.content-document-footer span {
  color: var(--subtle);
  font-size: 11px;
}

.content-document-footer > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 42px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.faq-contact-link {
  display: block;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.faq-groups {
  border-top: 1px solid var(--line);
}

.faq-group {
  padding: 38px 0 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.faq-group h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.faq-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-details details + details {
  border-top: 1px solid var(--line);
}

.faq-details summary {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.faq-details summary::-webkit-details-marker {
  display: none;
}

.faq-details summary::after {
  grid-column: 3;
  color: var(--blue);
  content: "+";
  font-size: 20px;
}

.faq-details details[open] summary::after {
  content: "−";
}

.faq-details summary > span,
.faq-details details > div > span {
  color: var(--blue);
  font-weight: 850;
}

.faq-details details > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 18px 58px 22px 24px;
  border-top: 1px solid #edf0f5;
  background: #f8fafc;
}

.faq-details details > div > span {
  color: var(--green);
}

.faq-details p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.notice-board {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.notice-board-head,
.notice-board summary {
  display: grid;
  grid-template-columns: 120px 1fr 130px;
  align-items: center;
  gap: 20px;
}

.notice-board-head {
  min-height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #f5f7fb;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 750;
}

.notice-board details + details {
  border-top: 1px solid var(--line);
}

.notice-board summary {
  min-height: 82px;
  padding: 0 24px;
  cursor: pointer;
  list-style: none;
}

.notice-board summary::-webkit-details-marker {
  display: none;
}

.notice-board summary > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.notice-board summary strong {
  font-size: 15px;
}

.notice-board summary small {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}

.notice-board time {
  color: var(--subtle);
  font-size: 12px;
  text-align: right;
}

.notice-body {
  padding: 24px 174px 28px 164px;
  border-top: 1px solid #edf0f5;
  background: #f8fafc;
}

.notice-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.sitemap-page {
  padding-top: 44px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 56px;
}

.sitemap-grid > section {
  min-height: 310px;
  padding: 30px 0 36px;
  border-top: 3px solid var(--ink);
}

.sitemap-grid h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

.sitemap-grid nav {
  display: grid;
}

.sitemap-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sitemap-grid a:hover {
  color: var(--blue);
}

.sitemap-grid a span {
  color: var(--blue);
}

/* Exam information */
.exam-info-heading {
  align-items: flex-end;
}

.exam-info-heading > div > span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.exam-info-heading > small {
  padding-bottom: 5px;
  color: var(--subtle);
  font-size: 12px;
}

.exam-update-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 168px;
  margin-bottom: 22px;
  padding: 30px 36px;
  border-left: 8px solid var(--green);
  background: var(--blue);
  color: var(--white);
}

.exam-update-band span {
  display: block;
  margin-bottom: 8px;
  color: #c8f1bc;
  font-size: 13px;
  font-weight: 800;
}

.exam-update-band h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 34px;
}

.exam-update-band p {
  margin: 0;
  color: #dce6ff;
  font-size: 14px;
}

.exam-update-band > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.exam-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.exam-stat-grid article {
  min-height: 148px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
}

.exam-stat-grid article:nth-child(2) { border-top-color: var(--green); }
.exam-stat-grid article:nth-child(3) { border-top-color: var(--purple); }
.exam-stat-grid article:nth-child(4) { border-top-color: var(--orange); }

.exam-stat-grid span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.exam-stat-grid strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 28px;
}

.exam-stat-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.exam-document-section {
  border-top: 5px solid var(--green);
}

.exam-document-intro {
  margin: -2px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.exam-document-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-document-meta > div {
  padding: 0 22px;
}

.exam-document-meta > div:first-child {
  padding-left: 0;
}

.exam-document-meta > div + div {
  border-left: 1px solid var(--line);
}

.exam-document-meta dt {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
}

.exam-document-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.exam-document-navigation {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 0;
}

.exam-document-navigation a {
  padding: 0 20px;
  border-left: 1px solid var(--line);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.exam-document-navigation a:first-child {
  padding-left: 0;
  border-left: 0;
}

.exam-content-section {
  margin-bottom: 28px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.exam-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.exam-section-heading.compact {
  margin-bottom: 20px;
}

.exam-section-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.exam-section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.exam-section-heading > p {
  margin: 0 0 3px;
  color: var(--subtle);
  font-size: 12px;
}

.exam-timetable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.exam-timetable caption {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
}

.exam-timetable th,
.exam-timetable td {
  height: 70px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.exam-timetable th {
  height: 44px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
}

.exam-timetable th:nth-child(1) { width: 9%; }
.exam-timetable th:nth-child(2) { width: 47%; }
.exam-timetable th:nth-child(3) { width: 12%; }
.exam-timetable th:nth-child(4) { width: 14%; }
.exam-timetable th:nth-child(5) { width: 18%; }

.exam-timetable tbody tr:last-child td {
  border-bottom: 0;
}

.exam-timetable td:nth-child(2) {
  text-align: left;
}

.exam-timetable td > strong,
.exam-timetable td > span {
  display: block;
}

.exam-timetable td > span {
  margin-top: 6px;
  color: var(--subtle);
  font-size: 12px;
}

.exam-timetable td > small {
  color: var(--subtle);
}

.exam-preparation-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}

.exam-check-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: exam-check;
}

.exam-check-list li {
  position: relative;
  min-height: 66px;
  padding: 14px 0 14px 54px;
  border-top: 1px solid #eceff3;
  counter-increment: exam-check;
}

.exam-check-list li::before {
  position: absolute;
  top: 15px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9eefb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  content: counter(exam-check, decimal-leading-zero);
}

.exam-check-list b,
.exam-check-list p {
  display: block;
}

.exam-check-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.exam-day-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-day-list li {
  display: grid;
  grid-template-columns: 142px 1fr;
  align-items: center;
  min-height: 61px;
  border-top: 1px solid #eceff3;
}

.exam-day-list b {
  color: var(--purple);
  font-size: 13px;
}

.exam-day-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.exam-scope-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.exam-scope-list li {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 14px;
}

.exam-scope-list b {
  color: var(--red);
  font-size: 12px;
}

.exam-scope-list span {
  font-size: 13px;
  font-weight: 700;
}

.exam-scope-subtitle {
  margin: 0 0 14px;
  font-size: 15px;
}

.exam-scope-subtitle.law {
  margin-top: 30px;
}

.exam-law-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
  counter-reset: exam-law;
}

.exam-law-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 10px 16px 10px 54px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  counter-increment: exam-law;
}

.exam-law-list li::before {
  position: absolute;
  left: 17px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 850;
  content: counter(exam-law, decimal-leading-zero);
}

.exam-scope-note {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 11px;
}

.exam-passing-band {
  display: grid;
  grid-template-columns: 390px 1fr;
  align-items: center;
  min-height: 128px;
  margin-bottom: 28px;
  padding: 26px 34px;
  border-left: 8px solid var(--orange);
  background: #fff4e8;
}

.exam-passing-band span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.exam-passing-band h2 {
  margin: 0;
  font-size: 24px;
}

.exam-passing-band p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.exam-official-section {
  margin-bottom: 18px;
  padding-top: 8px;
}

.exam-source-row {
  display: grid;
  grid-template-columns: 1fr 184px;
  align-items: center;
  min-height: 120px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  gap: 30px;
}

.exam-source-row dl {
  display: grid;
  grid-template-columns: 2fr 1fr .7fr .7fr;
  margin: 0;
}

.exam-source-row dl > div {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.exam-source-row dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.exam-source-row dt {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
}

.exam-source-row dd {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.exam-source-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.exam-source-note {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 11px;
}

/* Transactional member features */
.format-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.format-options .choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  cursor: pointer;
}

.format-options .choice input {
  position: absolute;
  opacity: 0;
}

.format-options .choice:has(input:checked) {
  border-color: var(--book-color);
  background: var(--book-color);
  color: var(--white);
}

.format-options .choice.disabled {
  cursor: not-allowed;
  opacity: .45;
}

.format-options small {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 11px;
}

.quantity-input {
  width: 88px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.narrow-page {
  width: 1080px;
}

.commerce-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 32px;
}

.cart-items,
.checkout-fields > section,
.order-summary,
.order-detail-grid > section,
.content-form,
.completion-panel,
.message-thread,
.reply-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-items > h2,
.checkout-fields > section > h2,
.order-summary > h2,
.order-detail-grid > section > h2 {
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 150px 60px;
  align-items: center;
  min-height: 130px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row span,
.cart-row p,
.checkout-item span {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
}

.cart-row h3 {
  margin: 6px 0;
  font-size: 18px;
}

.cart-row form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-row input {
  width: 64px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.cart-row button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.text-danger {
  color: var(--red) !important;
}

.order-summary {
  position: sticky;
  top: 24px;
  padding-bottom: 22px;
}

.order-summary dl,
.detail-dl {
  margin: 0;
  padding: 22px 24px;
}

.order-summary dl > div,
.detail-dl > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 20px;
}

.order-summary dl > div:last-child {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.order-summary dt,
.order-summary dd,
.detail-dl dt,
.detail-dl dd {
  margin: 0;
}

.order-summary > .button,
.order-summary > a,
.order-summary > button {
  display: flex;
  width: calc(100% - 48px);
  margin: 10px 24px 0;
  text-align: center;
}

.checkout-fields {
  display: grid;
  gap: 24px;
}

.checkout-fields > section {
  overflow: hidden;
  padding-bottom: 24px;
}

.checkout-fields > section > p {
  margin: 24px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  gap: 18px 20px;
}

.form-grid label,
.content-form label {
  display: grid;
  gap: 8px;
}

.form-grid label:nth-child(4),
.form-grid label:nth-child(5),
.form-grid label:nth-child(6) {
  grid-column: 1 / -1;
}

.form-grid span,
.content-form label > span {
  font-size: 12px;
  font-weight: 750;
}

.form-grid input,
.content-form input,
.content-form select,
.content-form textarea,
.reply-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
}

.form-grid small,
.content-form small,
.errorlist {
  margin: 0;
  color: var(--red);
  font-size: 11px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  align-items: center;
  min-height: 76px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.checkout-item:last-child {
  border-bottom: 0;
}

.checkout-item strong {
  text-align: right;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  margin: 0 24px 16px;
  font-size: 12px;
  gap: 8px;
}

.order-summary > small {
  display: block;
  margin: 10px 24px 0;
  color: var(--subtle);
  font-size: 10px;
}

.completion-panel {
  padding: 70px 80px;
  text-align: center;
}

.completion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #e9f7ea;
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.completion-panel h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.notice-box {
  margin: 30px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--orange);
  background: #fff7ed;
  color: #7c3e0c;
  font-size: 13px;
  text-align: left;
}

.data-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.data-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.data-list > a:last-child {
  border-bottom: 0;
}

.data-list > a:hover {
  background: #f8faff;
}

.data-list b,
.data-list span {
  display: block;
}

.data-list span {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 12px;
}

.data-list em {
  margin-right: 20px;
  color: var(--orange);
  font-size: 12px;
  font-style: normal;
}

.empty-state {
  width: 100%;
  padding: 68px 30px;
  border: 1px dashed #c7cfdd;
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.empty-state p {
  color: var(--muted);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.order-detail-grid > section {
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #b9d8c5;
  border-radius: 999px;
  background: #eef9f1;
  color: #176437;
  font-size: 12px;
  font-weight: 800;
}

.profile-strip > .button {
  width: 180px;
}

.inline-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  background: var(--white);
  color: var(--subtle);
  text-align: center;
}

/* eBook reader */
.reader-heading {
  align-items: center;
}

.reader-heading span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

.reader-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  min-height: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.reader-chapters {
  height: 100%;
  border-right: 1px solid var(--line);
}

.reader-chapters h2 {
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.reader-chapters a {
  display: grid;
  padding: 15px 18px;
  border-bottom: 1px solid #edf0f5;
  gap: 4px;
}

.reader-chapters a.active {
  border-left: 5px solid var(--purple);
  background: #f1eef9;
  color: var(--purple);
}

.reader-chapters b {
  font-size: 10px;
}

.reader-chapters span {
  font-size: 12px;
}

.reader-chapters nav > a small {
  color: var(--subtle);
  font-size: 10px;
}

.reader-search {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.reader-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 6px;
}

.reader-search input,
.reader-search button {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  font-size: 11px;
}

.reader-search input {
  padding: 0 10px;
}

.reader-search button {
  padding: 0;
  background: var(--blue);
  color: var(--white);
  font-weight: 750;
}

.reader-search-response {
  margin-top: 10px;
}

.reader-search-response > p {
  margin: 0 2px 7px;
  color: var(--muted);
  font-size: 10px;
}

[data-ebook-search-results] {
  display: grid;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.reader-chapters [data-ebook-search-results] a {
  display: grid;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  background: var(--white);
  gap: 3px;
}

.reader-chapters [data-ebook-search-results] a:last-child {
  border-bottom: 0;
}

.reader-chapters [data-ebook-search-results] a:hover,
.reader-chapters [data-ebook-search-results] a:focus-visible {
  background: #f3f6fc;
}

[data-ebook-search-results] strong {
  color: var(--blue);
  font-size: 10px;
}

[data-ebook-search-results] span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

[data-ebook-search-results] small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reader-document {
  min-width: 0;
  background: #eef1f6;
}

.reader-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) max-content minmax(180px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  gap: 18px;
}

.reader-document-title {
  display: grid;
  gap: 2px;
}

.reader-document-title span {
  color: var(--subtle);
  font-size: 11px;
}

.reader-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reader-page-nav > span {
  color: var(--muted);
  font-size: 11px;
}

.reader-page-nav button,
.reader-page-nav input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.reader-page-nav button {
  width: 36px;
  padding: 0;
  font-size: 22px;
}

.reader-page-nav button:disabled {
  cursor: default;
  opacity: .35;
}

.reader-page-nav input {
  width: 58px;
  padding: 0 7px;
  text-align: center;
}

.reader-original-link {
  justify-self: end;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.annotation-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 62px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  gap: 8px 14px;
}

.annotation-tool-group,
.annotation-history,
.annotation-zoom {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.annotation-toolbar button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.annotation-tool-group button + button,
.annotation-history button + button,
.annotation-zoom button + button {
  border-left: 1px solid var(--line);
}

.annotation-tool-group button.active {
  background: var(--blue);
  color: var(--white);
}

.annotation-colors {
  display: flex;
  align-items: center;
  gap: 7px;
}

.annotation-colors button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 3px solid var(--white);
  border-radius: 50%;
  outline: 1px solid #cdd3dd;
  background: var(--swatch);
}

.annotation-colors button.active {
  outline: 3px solid #8293be;
}

.annotation-width {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  gap: 7px;
}

.annotation-width input {
  width: 88px;
  accent-color: var(--blue);
}

.annotation-width output {
  width: 16px;
  color: var(--ink);
  text-align: center;
}

.finger-draw-toggle {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
}

.finger-draw-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.annotation-history button:first-child,
.annotation-history button:nth-child(2),
.annotation-zoom button:first-child,
.annotation-zoom button:last-child {
  width: 36px;
  padding: 0;
  font-size: 18px;
}

.annotation-save {
  margin-left: auto;
  border-radius: 6px !important;
  background: var(--blue) !important;
  color: var(--white);
}

.annotation-save-status {
  min-width: 55px;
  color: #33734b;
  font-size: 10px;
  font-weight: 750;
}

.annotation-save-status[data-state="pending"],
.annotation-save-status[data-state="saving"] {
  color: #875b00;
}

.annotation-save-status[data-state="error"] {
  color: var(--red);
}

.annotation-csrf {
  display: none;
}

.reader-canvas-shell {
  height: calc(100vh - 250px);
  min-height: 640px;
  max-height: 920px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #dfe4eb;
  scrollbar-gutter: stable;
}

.reader-page-stage {
  position: relative;
  width: 800px;
  min-width: 280px;
  min-height: 400px;
  margin: 16px auto;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(28, 39, 55, .16);
}

.reader-page-stage img,
.reader-page-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reader-page-stage img {
  z-index: 1;
  user-select: none;
}

.reader-page-stage canvas {
  z-index: 2;
  cursor: crosshair;
  touch-action: pan-y pinch-zoom;
}

.reader-page-stage canvas.finger-draw {
  touch-action: none;
}

.reader-canvas-shell.reader-zoomed .reader-page-stage canvas {
  touch-action: pan-x pan-y;
}

.reader-page-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.reader-page-loading[hidden] {
  display: none;
}

.reader-page-loading[data-state="error"] {
  color: var(--red);
}

.annotation-help {
  margin: 0;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--subtle);
  font-size: 10px;
}

.reader-document-error {
  display: grid;
  place-content: center;
  min-height: 720px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  gap: 8px;
}

.reader-document-error strong {
  color: var(--ink);
  font-size: 18px;
}

@media (max-width: 1500px) {
  html.ebook-reader-responsive,
  body.ebook-reader-workspace {
    min-width: 0;
    min-height: 100%;
  }

  body.ebook-reader-workspace {
    --fhd-width: 100%;
    --page-width: calc(100% - 40px);
    width: 100%;
  }

  body.ebook-reader-workspace .fhd-canvas {
    width: 100%;
    min-height: 100vh;
    overflow: visible;
  }

  body.ebook-reader-workspace .fhd-canvas::before {
    display: none;
  }

  body.ebook-reader-workspace .site-header {
    grid-template-columns: max-content minmax(0, 1fr);
    height: 72px;
    padding: 0 24px;
  }

  body.ebook-reader-workspace .primary-nav {
    display: none;
  }

  body.ebook-reader-workspace .header-tools {
    justify-self: end;
  }

  .reader-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .annotation-toolbar {
    gap: 8px;
  }

  .annotation-save {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  body.ebook-reader-workspace {
    --page-width: calc(100% - 24px);
  }

  body.ebook-reader-workspace .site-header {
    height: 64px;
    padding: 0 14px;
  }

  body.ebook-reader-workspace .brand-name small,
  body.ebook-reader-workspace .header-tools > a:first-child {
    display: none;
  }

  .ebook-reader-page .page-width {
    width: 100%;
    padding: 0 12px;
  }

  .reader-heading {
    align-items: end;
  }

  .reader-layout {
    display: block;
    min-height: 0;
    border: 0;
  }

  .reader-chapters {
    height: auto;
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .reader-chapters h2 {
    display: none;
  }

  .reader-chapters nav {
    display: flex;
    overflow-x: auto;
    background: var(--white);
  }

  .reader-chapters a {
    min-width: 170px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .reader-chapters a.active {
    border-top: 4px solid var(--purple);
    border-left: 0;
  }

  .reader-toolbar {
    grid-template-columns: 1fr max-content;
    padding: 10px 12px;
  }

  .reader-page-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .reader-original-link {
    grid-column: 2;
    grid-row: 1;
  }

  .annotation-toolbar {
    position: sticky;
    top: 0;
    padding: 8px;
  }

  .annotation-width input {
    width: 72px;
  }

  .annotation-save-status {
    min-width: auto;
  }

  .reader-canvas-shell {
    height: calc(100vh - 260px);
    min-height: 500px;
  }

  .annotation-help {
    display: none;
  }
}

@media (max-width: 560px) {
  .reader-heading .button,
  .finger-draw-toggle span,
  .annotation-width,
  .annotation-save-status {
    display: none;
  }

  .annotation-toolbar button {
    padding: 0 9px;
  }

  .annotation-colors button:nth-child(n+4) {
    display: none;
  }

  .reader-canvas-shell {
    height: calc(100vh - 220px);
  }
}

/* CBT data-backed flow */
.cbt-card > div form {
  margin-left: auto;
}

.cbt-card > div form button {
  width: 122px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--book-color);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.cbt-attempt-form {
  display: grid;
  gap: 22px;
}

.cbt-question-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cbt-question-block header {
  display: grid;
  grid-template-columns: 48px 1fr max-content;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.cbt-question-block header > b {
  color: var(--blue);
  font-size: 22px;
}

.cbt-question-block header span,
.cbt-question-block header label {
  color: var(--subtle);
  font-size: 11px;
}

.cbt-question-block h2 {
  margin: 0;
  padding: 28px 30px 20px;
  font-size: 18px;
  line-height: 1.7;
}

.cbt-question-block ol {
  margin: 0;
  padding: 0 30px 30px;
  list-style: none;
}

.cbt-question-block li + li {
  margin-top: 8px;
}

.cbt-question-block li label {
  display: grid;
  grid-template-columns: 0 34px 1fr;
  align-items: center;
  min-height: 50px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.cbt-question-block li label:has(input:checked) {
  border-color: var(--blue);
  background: #eef2fb;
}

.cbt-question-block li input {
  opacity: 0;
}

.cbt-question-block li i {
  font-style: normal;
  font-weight: 800;
}

.cbt-submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  gap: 10px;
}

.cbt-submit-bar .product-buy {
  width: 180px;
  background: var(--blue);
}

.answer-review-list {
  display: grid;
  gap: 16px;
}

.answer-review {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 7px;
  background: var(--white);
}

.answer-review.wrong {
  border-left-color: var(--red);
}

.answer-review header {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.answer-review header span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.answer-review.wrong header span {
  color: var(--red);
}

.answer-review > p,
.answer-review dl {
  margin: 0;
  padding: 18px 22px;
}

.answer-review dl {
  background: #f8f9fc;
}

.answer-review dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  margin-bottom: 8px;
}

.answer-review dt,
.answer-review dd {
  margin: 0;
  font-size: 12px;
}

.answer-review dt {
  color: var(--subtle);
  font-weight: 750;
}

/* One-to-one support */
.content-form {
  display: grid;
  padding: 28px;
  gap: 20px;
}

.content-form > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.content-form .product-buy {
  width: 180px;
  background: var(--blue);
}

.message-thread {
  overflow: hidden;
}

.message-thread article {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.message-thread article:last-child {
  border-bottom: 0;
}

.message-thread article.staff {
  background: #eef2fb;
}

.message-thread header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.message-thread header span {
  color: var(--subtle);
  font-size: 11px;
}

.message-thread p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.reply-form {
  margin-top: 22px;
}
/* Connected catalog, resources, and search controls */
.header-search {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.header-search label {
  display: block;
}

.header-search input {
  width: 96px;
  height: 34px;
  border: 1px solid #d5dce8;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #101828;
}

.header-search input:focus {
  width: 150px;
  outline: 2px solid #2c4895;
  outline-offset: 1px;
}

.resource-filters select,
.catalog-sort select {
  min-height: 42px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  padding: 0 34px 0 12px;
  background: #fff;
  color: #172033;
}

.resource-filters .resource-search {
  flex: 1 1 220px;
}

.resource-filters .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-table td:first-child strong,
.resource-table td:first-child small {
  display: block;
}

.resource-table td:first-child small {
  margin-top: 5px;
  color: #667085;
  line-height: 1.45;
}

.resource-files {
  min-width: 190px;
}

.resource-files a,
.resource-files span {
  display: block;
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.resource-files a {
  color: #24469a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-sort {
  display: inline-flex;
}

.catalog-empty {
  padding: 48px 20px;
  text-align: center;
  border-top: 1px solid #d7deea;
  color: #667085;
}

.product-stock-note {
  margin: 14px 0;
  color: #206f4f;
  font-weight: 700;
}

.button.wish.active {
  color: #d12346;
  border-color: #d12346;
  background: #fff0f3;
}

.detail-intro,
.detail-preview,
.detail-resources {
  scroll-margin-top: 110px;
  padding: 42px 0;
  border-bottom: 1px solid #d9e0eb;
}

.detail-intro h2,
.detail-preview h2,
.detail-resources h2 {
  margin: 0 0 10px;
}

.detail-preview,
.detail-resources {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.product-preview-dialog {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  border: 0;
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.24);
}

.product-preview-dialog::backdrop {
  background: rgba(16, 24, 40, 0.58);
}

.product-preview-dialog > div {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
}

.product-preview-dialog img {
  width: 100%;
  height: auto;
  border: 1px solid #d7deea;
}

.product-preview-dialog ol {
  margin: 12px 0 0;
  padding-left: 22px;
  columns: 2;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 28px;
  cursor: pointer;
}

.search-main-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  max-width: 760px;
  margin: 18px 0 36px;
}

.search-main-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  padding: 0 15px;
}

.search-results {
  display: grid;
  gap: 28px;
}

.search-results section {
  border-top: 2px solid #172033;
}

.search-results h2 {
  margin: 0;
  padding: 18px 6px 12px;
  font-size: 20px;
}

.search-results h2 span {
  color: #2c4895;
}

.search-results section > a {
  display: block;
  padding: 16px 6px;
  border-top: 1px solid #e0e6ef;
  color: #172033;
}

.search-results section > a:hover b {
  color: #2c4895;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-results p {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.55;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.profile-actions form {
  margin: 0;
}

.my-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.inline-action {
  margin-left: 8px;
  color: #24469a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-payment {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.checkout-payment select {
  min-height: 44px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}

.cbt-timer {
  min-width: 112px;
  color: #2c4895;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cbt-timer.urgent {
  color: #d92d20;
}

@media (max-width: 900px) {
  .header-search input {
    width: 72px;
  }

  .detail-preview,
  .detail-resources {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-preview-dialog > div {
    grid-template-columns: 1fr;
  }

  .product-preview-dialog img {
    width: min(240px, 100%);
    margin: 0 auto;
  }

  .product-preview-dialog ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .resource-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resource-filters select,
  .resource-filters label,
  .resource-filters input {
    width: 100%;
  }

  .search-main-form {
    grid-template-columns: 1fr;
  }

  .profile-actions,
  .order-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .profile-actions .button,
  .order-actions .button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .my-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .my-stats {
    grid-template-columns: 1fr;
  }
}

/* Responsive user experience */
@media (max-width: 1100px) {
  .catalog-grid,
  .cbt-card-grid,
  .published-book-grid,
  .summary-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .product-detail {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 42px;
  }

  .product-visual {
    height: 590px;
  }

  .detail-lower {
    grid-template-columns: 1fr 1fr;
  }

  .detail-lower > :last-child {
    grid-column: 1 / -1;
  }

  .library-layout,
  .resource-layout,
  .mypage-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }

  .ebook-row {
    grid-template-columns: 70px minmax(210px, 1fr) minmax(150px, .7fr);
  }

  .ebook-row .ebook-button {
    grid-column: 2 / -1;
    justify-self: end;
    width: 168px;
  }

  .resource-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .resource-filters label {
    justify-self: stretch;
    width: auto;
  }

  .cbt-heading {
    grid-template-columns: 1fr 460px;
  }

  .support-lower,
  .support-hero > div,
  .exam-hero,
  .exam-layout,
  .policy-layout,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .checkout-shell {
    width: min(100%, 1080px);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .page-section {
    min-height: 0;
    padding: 24px 0 56px;
  }

  .breadcrumb {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
  }

  .page-heading h1,
  .cbt-heading h1 {
    margin-bottom: 8px;
    font-size: 30px;
  }

  .page-heading p,
  .cbt-heading p {
    font-size: 14px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-series-section + .catalog-series-section {
    margin-top: 52px;
  }

  .catalog-series-heading h2 {
    font-size: 24px;
  }

  .filter-pills {
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .filter-pills button {
    flex: 0 0 auto;
  }

  .sort-button {
    width: 100%;
  }

  .product-detail {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
  }

  .product-visual {
    height: auto;
    min-height: 440px;
    padding: 32px 20px;
  }

  .product-visual img {
    width: min(260px, 66vw);
    height: auto;
    max-height: 390px;
  }

  .product-info {
    padding-top: 0;
  }

  .product-info h1 {
    font-size: 34px;
  }

  .product-description {
    font-size: 15px;
  }

  .purchase-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
  }

  .detail-tabs {
    display: flex;
    overflow-x: auto;
  }

  .detail-tabs a {
    flex: 0 0 132px;
  }

  .detail-lower {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .detail-lower > :last-child {
    grid-column: auto;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .summary-strip > div {
    min-height: 88px;
    padding: 16px 20px;
  }

  .summary-strip > div + div {
    border-left: 0;
  }

  .summary-strip > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .summary-strip > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .library-layout,
  .resource-layout,
  .mypage-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar,
  .resource-sidebar,
  .mypage-layout > aside {
    padding: 14px;
  }

  .account-sidebar > span {
    padding-bottom: 12px;
  }

  .account-sidebar nav,
  .resource-sidebar,
  .mypage-layout > aside {
    flex-direction: row;
    padding-bottom: 2px;
    overflow-x: auto;
    gap: 6px;
  }

  .mypage-layout > aside {
    min-height: 0;
  }

  .account-sidebar nav {
    margin-top: 12px;
  }

  .account-sidebar nav a,
  .resource-sidebar a,
  .mypage-layout > aside a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .resource-sidebar h2,
  .mypage-layout > aside h2 {
    display: none;
  }

  .ebook-row {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
    gap: 10px 16px;
  }

  .ebook-row > img {
    grid-row: 1 / 3;
  }

  .ebook-progress {
    grid-column: 2;
  }

  .ebook-progress b {
    margin-bottom: 7px;
  }

  .ebook-row .ebook-button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .resource-filters {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
    padding: 14px;
  }

  .resource-table-wrap,
  .order-table-wrap,
  .review-table-wrap {
    overflow-x: auto;
  }

  .resource-table,
  .review-table {
    min-width: 760px;
  }

  .cbt-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cbt-heading aside {
    min-height: 108px;
  }

  .support-hero {
    height: auto;
  }

  .support-hero > div {
    padding: 32px 0;
  }

  .support-search-link {
    width: 100%;
  }

  .support-category-grid,
  .document-card-grid,
  .notice-grid,
  .faq-category-grid,
  .exam-summary-grid,
  .exam-card-grid,
  .profile-grid,
  .order-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-lower > aside {
    height: auto;
    min-height: 220px;
  }

  .search-results,
  .search-result-group,
  .content-document,
  .policy-document,
  .faq-list,
  .notice-list {
    min-width: 0;
  }

  .auth-shell,
  .transaction-shell,
  .checkout-shell {
    width: 100%;
  }

  .auth-card,
  .transaction-card {
    padding: 28px 22px;
  }

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

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

  .order-summary {
    position: static;
  }

  .cart-row {
    grid-template-columns: minmax(0, 1fr) 120px;
    padding: 18px;
    gap: 12px;
  }

  .cart-row > :first-child {
    grid-column: 1 / -1;
  }

  .profile-strip {
    grid-template-columns: 64px minmax(0, 1fr);
    height: auto;
    padding: 20px;
    gap: 16px;
  }

  .profile-strip > span {
    width: 64px;
    height: 64px;
    font-size: 21px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .recent-order,
  .recent-learning {
    grid-template-columns: minmax(0, 1fr) max-content;
    min-height: 0;
    padding: 20px;
    gap: 18px;
  }

  .recent-order > div:last-child {
    min-width: 140px;
  }

  .checkout-item {
    grid-template-columns: 120px minmax(0, 1fr) 110px;
  }

  .cbt-question-block header {
    padding: 0 18px;
  }

  .cbt-question-block h2 {
    padding: 22px 20px 16px;
  }

  .cbt-question-block ol {
    padding: 0 20px 22px;
  }

  .checkout-fields .field-grid,
  .profile-form .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-section {
    padding-top: 18px;
  }

  .page-heading {
    display: grid;
  }

  .page-heading h1,
  .cbt-heading h1 {
    font-size: 26px;
  }

  .catalog-grid,
  .cbt-card-grid,
  .published-book-grid,
  .summary-book-grid,
  .support-category-grid,
  .document-card-grid,
  .notice-grid,
  .faq-category-grid,
  .exam-summary-grid,
  .exam-card-grid,
  .profile-grid,
  .order-summary-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid .product-card {
    min-height: 196px;
  }

  .catalog-series-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .summary-book-card {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 206px;
    padding: 16px;
    gap: 16px;
  }

  .summary-book-cover img {
    width: 118px;
    height: 167px;
  }

  .published-book-card {
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 330px;
  }

  .published-book-cover {
    padding: 18px 12px;
  }

  .published-book-cover img {
    width: 108px;
    height: auto;
  }

  .published-book-copy {
    padding: 20px 16px;
  }

  .published-book-copy h2 {
    font-size: 19px;
  }

  .product-info h1 {
    font-size: 29px;
  }

  .purchase-details > div {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .purchase-details .price {
    font-size: 25px;
  }

  .purchase-actions {
    display: grid;
    grid-template-columns: 1fr 54px;
  }

  .purchase-actions .outline,
  .product-buy {
    width: 100%;
  }

  .product-buy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .purchase-actions .outline {
    grid-column: 1;
  }

  .purchase-actions .wish {
    grid-column: 2;
    width: 54px;
  }

  .purchase-benefits {
    grid-template-columns: 1fr;
  }

  .detail-lower ol {
    grid-template-columns: 1fr;
  }

  .summary-strip strong {
    font-size: 18px;
  }

  .subheading h2 {
    font-size: 21px;
  }

  .resource-filters {
    grid-template-columns: 1fr;
  }

  .cbt-heading aside {
    padding: 18px;
  }

  .cbt-heading aside a {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .cbt-card {
    min-height: 178px;
  }

  .support-search-link {
    padding: 14px 16px;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .cart-row > * {
    grid-column: 1;
  }

  .cart-row form,
  .cart-row input,
  .cart-row button {
    width: 100%;
  }

  .profile-strip {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px;
  }

  .profile-strip > span {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .profile-strip > div:not(.profile-actions) {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-actions .button,
  .profile-actions form,
  .profile-actions button {
    width: 100%;
  }

  .recent-order,
  .recent-learning {
    grid-template-columns: 1fr;
  }

  .recent-order > div:last-child {
    min-width: 0;
    text-align: left;
  }

  .recent-order > div:last-child strong {
    margin-bottom: 12px;
  }

  .recent-learning a {
    width: 100%;
  }

  .checkout-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .checkout-item strong {
    text-align: left;
  }

  .cbt-question-block header {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px 14px;
    gap: 4px;
  }

  .cbt-question-block header label {
    grid-column: 1 / -1;
  }

  .cbt-question-block h2 {
    padding: 18px 16px 14px;
    font-size: 16px;
  }

  .cbt-question-block ol {
    padding: 0 14px 18px;
  }

  .cbt-question-block li label {
    grid-template-columns: 0 28px minmax(0, 1fr);
    padding: 8px 10px;
  }

  .cbt-submit-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .cbt-submit-bar .button,
  .cbt-submit-bar .product-buy {
    width: 100%;
  }
}

/* Mobile-first eBook workspace */
.reader-toolbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.reader-focus-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--blue);
  font-size: 20px;
}

@media (min-width: 901px) and (max-width: 1500px) {
  body.ebook-reader-workspace .site-header {
    grid-template-columns: 210px minmax(0, 1fr) max-content;
  }

  body.ebook-reader-workspace .primary-nav {
    display: flex;
  }
}

@media (max-width: 900px) {
  body.ebook-reader-workspace .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
  }

  body.ebook-reader-workspace .site-header.menu-open .primary-nav {
    display: flex;
  }

  .ebook-reader-page {
    padding: 0 0 82px;
  }

  .ebook-reader-page .breadcrumb {
    display: none;
  }

  .reader-heading {
    min-height: 56px;
    margin: 0;
    padding: 8px 4px;
  }

  .reader-heading > div {
    min-width: 0;
  }

  .reader-heading span,
  .reader-heading p {
    display: none;
  }

  .reader-heading h1 {
    margin: 0;
    overflow: hidden;
    font-size: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reader-chapters {
    border-right: 0;
    border-left: 0;
  }

  .reader-search {
    padding: 8px 10px;
  }

  .reader-search form {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .reader-search-response {
    margin-top: 8px;
  }

  [data-ebook-search-results] {
    max-height: 36vh;
  }

  .reader-chapters nav {
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .reader-chapters nav > a {
    min-width: min(46vw, 190px);
    padding: 10px 12px;
    scroll-snap-align: start;
  }

  .reader-toolbar {
    position: sticky;
    top: 64px;
    z-index: 8;
    min-height: 52px;
    padding: 7px 10px;
  }

  .reader-document-title strong {
    max-width: 52vw;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reader-document-title span {
    font-size: 10px;
  }

  .reader-toolbar-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .reader-original-link {
    grid-column: auto;
    grid-row: auto;
  }

  .annotation-toolbar {
    position: sticky;
    top: 116px;
    z-index: 7;
    flex-wrap: nowrap;
    min-height: 50px;
    padding: 7px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .annotation-toolbar > * {
    flex: 0 0 auto;
  }

  .annotation-save {
    margin-left: 0;
  }

  .reader-page-nav {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    z-index: 30;
    grid-column: auto;
    grid-row: auto;
    width: max-content;
    margin: 0 auto;
    padding: 6px 8px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .2);
  }

  .reader-page-nav button,
  .reader-page-nav input {
    height: 38px;
  }

  .reader-page-nav button {
    width: 44px;
  }

  .reader-canvas-shell {
    height: calc(100dvh - 180px);
    min-height: 420px;
    max-height: none;
    padding-bottom: 72px;
  }

  .reader-page-stage {
    margin: 10px auto;
  }

  .finger-draw-toggle span {
    display: inline;
  }
}

@media (max-width: 560px) {
  .reader-heading {
    min-height: 48px;
  }

  .reader-heading h1 {
    font-size: 18px;
  }

  .reader-chapters nav > a {
    min-width: 44vw;
  }

  .reader-toolbar {
    top: 64px;
  }

  .reader-original-link {
    display: none;
  }

  .annotation-toolbar {
    top: 116px;
  }

  .annotation-toolbar button {
    padding: 0 9px;
  }

  .annotation-colors button:nth-child(n+4) {
    display: block;
  }

  .finger-draw-toggle span {
    max-width: 64px;
    font-size: 9px;
    line-height: 1.15;
  }

  .reader-canvas-shell {
    height: calc(100dvh - 168px);
    min-height: 360px;
  }
}

body.ebook-focus-mode {
  overflow: hidden;
}

body.ebook-focus-mode .site-header,
body.ebook-focus-mode .reader-heading,
body.ebook-focus-mode .ebook-reader-page .breadcrumb,
body.ebook-focus-mode .reader-chapters {
  display: none;
}

body.ebook-focus-mode .ebook-reader-page {
  min-height: 100dvh;
  padding: 0;
}

body.ebook-focus-mode .ebook-reader-page .page-width {
  width: 100%;
  padding: 0;
}

body.ebook-focus-mode .reader-layout {
  display: block;
  min-height: 100dvh;
  border: 0;
}

body.ebook-focus-mode .reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
}

body.ebook-focus-mode .annotation-toolbar {
  position: sticky;
  top: 52px;
  z-index: 7;
}

body.ebook-focus-mode .reader-canvas-shell {
  height: calc(100dvh - 102px);
  min-height: 0;
  max-height: none;
}

/* Task 2026-07-23: aligned filters and resilient mobile public pages. */
.resource-filters {
  grid-template-columns:
    minmax(180px, 240px)
    minmax(170px, 220px)
    130px
    minmax(200px, 1fr)
    90px
    auto;
}

.resource-filters label {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.resource-filters select,
.resource-filters input {
  width: 100%;
}

.exam-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1100px) {
  .resource-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-stat-grid,
  .exam-document-meta,
  .exam-scope-list,
  .exam-law-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-preparation-grid,
  .exam-passing-band,
  .exam-source-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .exam-source-row {
    padding: 20px 0;
  }

  .exam-source-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .site-header .header-search {
    display: none;
  }

  .site-header .header-tools {
    width: auto;
  }
}

@media (max-width: 640px) {
  .resource-filters {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .exam-info-page,
  .exam-info-page .page-width,
  .exam-info-page section,
  .exam-info-page div {
    min-width: 0;
  }

  .exam-info-heading {
    align-items: start;
  }

  .exam-update-band {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
  }

  .exam-update-band h2 {
    font-size: 28px;
    line-height: 1.35;
  }

  .exam-update-band > a {
    width: 100%;
  }

  .exam-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .exam-stat-grid article {
    min-height: 138px;
    padding: 18px 16px;
  }

  .exam-stat-grid strong {
    font-size: 24px;
  }

  .exam-content-section {
    padding: 22px 18px;
  }

  .exam-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .exam-document-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .exam-document-meta > div,
  .exam-document-meta > div:first-child {
    padding: 0 12px;
  }

  .exam-document-meta > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .exam-document-navigation {
    flex-wrap: wrap;
    gap: 10px 0;
  }

  .exam-document-navigation a {
    padding: 0 12px;
  }

  .exam-table-scroll {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .exam-timetable {
    min-width: 680px;
  }

  .exam-day-list li {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
  }

  .exam-scope-list,
  .exam-law-list,
  .exam-source-row dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .exam-passing-band {
    padding: 24px 20px;
    gap: 14px;
  }

  .exam-source-row {
    gap: 18px;
  }

  .exam-source-row dl > div,
  .exam-source-row dl > div:first-child {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .exam-source-row > a {
    width: 100%;
  }

  .quick-help {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .quick-help a {
    width: 100%;
    height: auto;
    min-height: 132px;
  }

  .support-hero > div > strong {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand {
    max-width: 142px;
  }

  .brand-logo {
    width: 140px;
  }

  .site-header .header-tools > .icon-button:not(.cart-tool) {
    display: none;
  }

  .hero-books {
    margin-top: -56px;
  }
}
