@font-face {
  font-family: Pretendard;
  src: url("./vendor/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bs-body-font-family: Pretendard, system-ui, sans-serif;
  --bs-body-color: #243531;
  --bs-body-bg: #fff;
  --bs-primary: #236253;
  --bs-link-color: #236253;
  --bs-link-hover-color: #143f35;
  --bs-border-color: #dde4e0;
  --bs-border-radius: 6px;
  --ink: #243531;
  --muted: #61736b;
  --accent: #236253;
  --line: #dde4e0;
  --soft: #f3f6f4;
}
* {
  letter-spacing: 0;
}
body {
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
a {
  text-decoration: none;
}
.container-xl {
  max-width: 1360px;
  padding-inline: 32px;
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
  min-height: 40px;
}
.btn-sm {
  min-height: 36px;
  font-size: 13px;
}
.btn-primary {
  --bs-btn-bg: #236253;
  --bs-btn-border-color: #236253;
  --bs-btn-hover-bg: #194d41;
  --bs-btn-hover-border-color: #194d41;
  --bs-btn-active-bg: #164b3e;
  --bs-btn-disabled-bg: #667e76;
  --bs-btn-disabled-border-color: #667e76;
}
.btn-primary .icon {
  filter: brightness(0) invert(1);
}
.btn-outline-primary {
  --bs-btn-color: #236253;
  --bs-btn-border-color: #a4bdb3;
  --bs-btn-hover-bg: #edf4ef;
  --bs-btn-hover-color: #194d41;
  --bs-btn-hover-border-color: #236253;
  --bs-btn-active-bg: #edf4ef;
  --bs-btn-active-color: #194d41;
}
.btn-outline-secondary {
  --bs-btn-color: #4d6258;
  --bs-btn-border-color: #d2dcd6;
  --bs-btn-hover-bg: #f1f5f2;
  --bs-btn-hover-color: #243531;
  --bs-btn-hover-border-color: #a5b8ae;
}
.btn-link {
  color: var(--accent);
  text-decoration: none;
}
.form-control,
.form-select {
  font-size: 14px;
  min-height: 42px;
}
.form-control:focus,
.form-select:focus {
  border-color: #537f70;
  box-shadow: 0 0 0 3px #2362531a;
}
:focus-visible {
  outline: 3px solid #9db9aa;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.subtle {
  color: var(--muted);
  font-size: 13px;
}
.icon-button {
  width: 36px;
  min-height: 36px;
  padding: 7px;
  flex-shrink: 0;
}
.icon-button img {
  width: 18px;
  height: 18px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 300;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: white;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.library-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  color: #183c32;
  white-space: nowrap;
}
.brand-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 6px;
}
.brand-symbol img {
  filter: brightness(0) invert(1);
}
.main-nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
  align-self: stretch;
  align-items: stretch;
  font-size: 14px;
}
.main-nav a {
  display: flex;
  align-items: center;
  color: #5c6c65;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
#account-link {
  white-space: nowrap;
}
.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 33px 0 21px;
}
.page-heading h1 {
  font-size: 28px;
  font-weight: 750;
  margin: 0;
  line-height: 1.35;
}
.edition-note {
  font-size: 13px;
  color: var(--muted);
}
.edition-note span {
  margin-inline: 9px;
  color: #b5c2ba;
}
.service-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.service-switch .nav {
  gap: 28px;
}
.nav-link {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  padding: 13px 0;
}
.nav-underline .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#basket-count {
  font-variant-numeric: tabular-nums;
  min-width: 16px;
  color: var(--accent);
  font-weight: 750;
}
.type-shortcuts {
  margin-top: 9px;
  margin-bottom: 28px;
}
.type-shortcut {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 16px;
  gap: 15px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 15px;
  text-align: left;
  min-height: 110px;
  color: var(--ink);
}
.type-shortcut:hover,
.type-shortcut[aria-pressed="true"] {
  border-color: #71998a;
  background: #f7faf8;
}
.type-shortcut[aria-pressed="true"] {
  box-shadow: inset 0 -2px var(--accent);
}
.type-shortcut > img:first-child {
  width: 58px;
  height: 76px;
  object-fit: contain;
}
.type-shortcut strong {
  display: block;
  font-size: 15px;
}
.type-shortcut small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.type-shortcut .shortcut-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, 1fr);
  gap: 36px;
  align-items: start;
}
.workspace > * {
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 28px;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}
.search-input {
  position: relative;
  min-width: 0;
}
.search-input > .icon {
  position: absolute;
  top: 13px;
  left: 13px;
  opacity: 0.6;
}
.search-input .form-control {
  padding-left: 41px;
}
.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 17px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sort-label select {
  width: 90px;
  min-height: 30px;
  border: 0;
  font-size: 12px;
}
.catalog-table {
  width: 100%;
  table-layout: fixed;
  margin: 0;
}
.catalog-table th {
  background: var(--soft);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 12px;
  border-bottom-color: var(--line);
}
.catalog-table td {
  padding: 0 12px;
  height: 62px;
  vertical-align: middle;
  border-color: var(--line);
}
.catalog-table tr[data-previewed="true"] td {
  background: #f0f6f2;
}
.catalog-table tr[data-previewed="true"] td:first-child {
  box-shadow: inset 3px 0 var(--accent);
}
.catalog-table tbody tr:hover td {
  background: #f6f8f6;
}
.catalog-table .pages-cell {
  width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}
.catalog-table .add-cell {
  width: 57px;
  text-align: center;
  padding: 0 7px;
}
.document-link {
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  display: block;
  width: 100%;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.document-link strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.document-link small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.add-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
  border: 1px solid #d6e0d9;
  border-radius: 4px;
  background: #fff;
}
.add-button img {
  width: 16px;
  height: 16px;
}
.add-button[aria-pressed="true"] {
  background: #e4efe8;
  border-color: #98b5a4;
}
.catalog-empty {
  padding: 36px 15px !important;
  height: 200px !important;
  text-align: center;
  color: var(--muted);
}
.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pagination-row .btn {
  border: 1px solid var(--line);
}
.membership-line {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  color: var(--muted);
}
.preview-column {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.preview-heading {
  min-height: 59px;
}
.preview-heading h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.preview-heading p {
  margin: 0 0 12px;
  font-size: 12px;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.preview-toolbar .btn-group button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  min-height: 30px;
  padding: 4px 12px;
}
.preview-toolbar .btn-group button[aria-pressed="true"] {
  background: #eaf1eb;
  color: var(--accent);
  font-weight: 700;
}
.page-preview {
  position: relative;
  width: 100%;
  height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px;
  background: #f0f3f1;
  border: 1px solid #e2e8e3;
  border-radius: 4px;
  cursor: zoom-in;
  overflow: hidden;
}
.preview-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}
.preview-spread > img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 2px 8px #283c3419;
  background: #fff;
}
.page-preview > span:not(.preview-spread) {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}
.preview-reference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  font-size: 11px;
  color: var(--muted);
}
.toc {
  border-top: 1px solid var(--line);
  margin: 6px 0 13px;
  font-size: 13px;
}
.toc summary {
  padding: 10px 0;
  cursor: pointer;
  color: #486254;
}
.toc ol {
  padding-left: 20px;
  font-size: 12px;
  max-height: 150px;
  overflow: auto;
}
.toc li {
  margin: 5px 0;
}
.toc li span {
  float: right;
  margin-right: 8px;
  color: var(--muted);
}
.toc p {
  font-size: 12px;
  margin: 8px 0;
}
.preview-actions {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}
.reading-basis {
  border-top: 1px solid var(--line);
  margin: 26px 0 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.reading-basis p {
  margin: 3px 0;
}
.site-footer {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer > div {
  display: flex;
  gap: 15px;
}
.site-footer strong {
  color: var(--ink);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  gap: 18px;
}
.site-footer a {
  color: var(--muted);
}
.paper-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.3fr);
  gap: 72px;
  max-width: 1100px;
  margin: 40px auto 60px;
}
.paper-product {
  text-align: center;
  grid-column: 1;
  grid-row: 1;
}
.paper-description {
  grid-column: 2;
  grid-row: 1;
}
.paper-cover-stage {
  background: var(--soft);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 420px;
}
.paper-cover-stage figure {
  min-width: 0;
  margin: 0;
}
.paper-cover-stage figcaption {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.paper-cover-stage img {
  width: 245px;
  max-width: 100%;
  height: auto;
  border: 1px solid #dce5df;
  box-shadow:
    7px 8px 0 #dce3dc,
    9px 9px 12px #233e3415;
}
.product-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.paper-description h2 {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 700;
  margin: 12px 0 8px;
}
.paper-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
}
.binding-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #f8faf8;
}
.binding-notice .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-top: 1px;
}
.binding-notice strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}
.binding-notice span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.product-facts > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  gap: 10px;
}
.product-facts dt {
  font-weight: 500;
  color: var(--muted);
}
.product-facts dd {
  margin: 0;
}
.paper-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 25px 0;
}
.paper-price strong {
  font-size: 28px;
  font-weight: 700;
}
.paper-price span {
  font-size: 12px;
  color: var(--muted);
}
.paper-order {
  display: grid;
  grid-template-columns: auto 80px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.paper-order label {
  font-size: 13px;
}
.paper-checkout-link {
  min-height: 40px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-weight: 700;
}
.future-edition {
  margin-top: 30px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}
.future-edition span {
  color: var(--muted);
}
.library-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  width: min(590px, calc(100% - 28px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 15px 60px #1c302433;
}
.library-dialog::backdrop {
  background: #1b2a245c;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.dialog-heading h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
.basket-list {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  max-height: 42dvh;
  overflow: auto;
}
.basket-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.basket-list li strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.basket-list li small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.basket-controls {
  display: flex;
  gap: 2px;
  align-items: center;
}
.basket-footer {
  padding: 18px 20px;
}
.basket-footer p {
  margin-bottom: 8px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.zoom-dialog {
  width: min(1050px, calc(100% - 20px));
}
.zoom-content {
  padding: 20px;
  background: #f0f3f1;
}
.zoom-content img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}
.output-dialog {
  width: min(1250px, calc(100% - 20px));
}
.output-content {
  padding: 24px;
}
.output-content h3 {
  font-size: 20px;
}
.output-content iframe {
  display: block;
  width: 100%;
  height: 73dvh;
  border: 0;
}
.output-content:has(iframe) {
  padding: 0;
}
.output-content .subtle {
  margin-top: 10px;
}
.output-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.library-notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  box-shadow: 0 4px 20px #19352720;
  max-width: calc(100% - 32px);
  z-index: 50;
  font-size: 14px;
}
#quote-form {
  padding: 20px;
}
#quote-document {
  margin-top: 24px;
}
#quote-document table {
  font-size: 13px;
}
#quote-document th {
  font-weight: 550;
  color: var(--muted);
}
#quote-document h3 {
  margin: 0 0 18px;
  font-size: 24px;
  text-align: center;
}
.quote-meta-table,
.quote-item-table,
.quote-total-table {
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.quote-meta-table th,
.quote-meta-table td,
.quote-item-table th,
.quote-item-table td,
.quote-total-table th,
.quote-total-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: middle;
}
.quote-meta-table th,
.quote-total-table th {
  width: 118px;
  background: #f5f7f5;
}
.quote-item-table th {
  background: #f5f7f5;
  text-align: center;
}
.quote-item-table td:nth-child(n+3),
.quote-total-table td {
  text-align: right;
}
.quote-total-table {
  width: min(360px, 100%);
  margin-left: auto;
}
.quote-total-table tr:last-child th,
.quote-total-table tr:last-child td {
  color: var(--ink);
  font-weight: 750;
}
.quote-info {
  font-size: 12px;
  color: var(--muted);
}
#payment-result {
  margin: 12px 0 0;
  font-size: 13px;
}
.header-inner {
  min-height: 64px;
}
.page-heading {
  padding: 24px 0 17px;
}
.type-shortcuts {
  margin-top: 3px;
  margin-bottom: 20px;
}
.type-shortcut {
  min-height: 90px;
  padding-block: 9px;
}
.type-shortcut > img:first-child {
  height: 63px;
}
.section-heading {
  margin-bottom: 12px;
}
.catalog-table td {
  height: 48px;
}
.document-link {
  padding: 6px 0;
}
.document-link small {
  display: none;
}
.catalog-table th {
  vertical-align: middle;
  height: 36px;
  padding-block: 7px;
}
.result-summary {
  margin-top: 12px;
}
.preview-actions {
  margin: 14px 0 17px;
}
.preview-heading {
  min-height: 0;
}
.preview-back {
  display: none;
}
.page-preview {
  height: 390px;
}
.membership-line {
  font-size: 13px;
}
.preview-heading p {
  font-size: 13px;
}
.preview-reference {
  font-size: 12px;
}
@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 26px;
    overflow: auto;
    margin: 0;
  }
  .main-nav a {
    padding: 10px 0;
  }
  #account-link {
    margin-left: auto;
  }
  .workspace {
    gap: 22px;
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, 1fr);
  }
  .preview-column {
    padding-left: 22px;
  }
  .type-shortcut {
    gap: 9px;
    padding: 12px;
    grid-template-columns: 45px minmax(0, 1fr);
  }
  .type-shortcut > img:first-child {
    width: 45px;
  }
  .type-shortcut .shortcut-arrow {
    display: none;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .paper-layout {
    gap: 35px;
  }
  .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-column {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .page-preview {
    height: 420px;
  }
  .preview-heading {
    min-height: 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .type-shortcuts {
    margin-bottom: 24px;
  }
  .paper-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .paper-cover-stage {
    min-height: 0;
  }
  .paper-cover-stage img {
    width: 210px;
  }
  .paper-product {
    max-width: 440px;
    margin: auto;
    width: 100%;
  }
}
@media (max-width: 575px) {
  .container-xl {
    padding-inline: 18px;
  }
  .library-brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand-symbol {
    width: 29px;
    height: 29px;
  }
  .header-inner {
    gap: 8px;
  }
  .main-nav {
    gap: 21px;
    font-size: 13px;
  }
  .page-heading {
    padding: 23px 0 17px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .edition-note {
    font-size: 12px;
  }
  .service-switch {
    gap: 7px;
  }
  .service-switch .nav {
    gap: 18px;
  }
  .nav-link {
    font-size: 14px;
  }
  .nav-link .icon {
    display: none;
  }
  #basket-toggle {
    font-size: 12px;
    padding: 6px 9px;
  }
  .type-shortcut {
    min-height: 89px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }
  .type-shortcut > img:first-child {
    width: 38px;
    height: 61px;
  }
  .type-shortcut strong {
    font-size: 14px;
  }
  .type-shortcut small {
    font-size: 11px;
  }
  .search-row {
    grid-template-columns: minmax(0, 1fr) 113px;
    gap: 8px;
  }
  .form-control,
  .form-select {
    font-size: 13px;
  }
  .catalog-table td {
    padding-inline: 9px;
  }
  .document-link strong {
    font-size: 13px;
  }
  .catalog-table .pages-cell {
    width: 63px;
    font-size: 12px;
  }
  .catalog-table .add-cell {
    width: 46px;
  }
  .page-preview {
    height: 360px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .site-footer > div {
    flex-direction: column;
    gap: 3px;
  }
  .site-footer nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .dialog-heading {
    padding: 12px 14px;
  }
  .dialog-heading h2 {
    font-size: 16px;
  }
  .output-content {
    padding: 18px;
  }
  .basket-list {
    padding-inline: 14px;
  }
  .basket-list li {
    font-size: 13px;
  }
  .basket-controls .icon-button {
    width: 30px;
    min-height: 32px;
    padding: 5px;
  }
  .paper-description h2 {
    font-size: 24px;
  }
  .paper-price {
    flex-wrap: wrap;
  }
  .paper-order {
    grid-template-columns: auto 70px minmax(0, 1fr);
  }
  .future-edition {
    flex-direction: column;
    gap: 5px;
    align-items: start;
  }
}
@media (max-width: 850px) {
  .workspace:not(.preview-open) .preview-column {
    display: none;
  }
  .workspace.preview-open .catalog-column {
    display: none;
  }
  .preview-column {
    border: 0;
    padding: 0;
  }
  .preview-back {
    display: inline-flex;
    padding-left: 0;
    margin-bottom: 14px;
  }
  .page-preview {
    height: min(430px, 48dvh);
  }
  .type-shortcuts {
    margin-bottom: 20px;
  }
  .workspace.preview-open .section-heading {
    display: none;
  }
}
@media (max-width: 575px) {
  .type-shortcuts {
    --bs-gutter-y: 10px;
    --bs-gutter-x: 10px;
  }
  .type-shortcut {
    min-height: 74px;
  }
  .type-shortcut > img:first-child {
    height: 48px;
  }
  .type-shortcut small {
    font-size: 11px;
  }
  .catalog-table td {
    height: 48px;
  }
  .membership-line {
    flex-wrap: wrap;
  }
  .preview-actions {
    grid-template-columns: 85px minmax(0, 1fr);
  }
  .page-preview {
    padding: 12px;
  }
  .reading-basis {
    font-size: 12px;
  }
}
.nav-link {
  transition: none;
}
:focus-visible {
  outline-color: #447666;
}
@media (min-width: 851px) and (max-height: 850px) {
  .header-inner {
    min-height: 56px;
    flex-wrap: nowrap;
    padding-top: 0;
    gap: 18px;
  }
  .main-nav {
    order: 0;
    width: auto;
    margin-left: auto;
    gap: 19px;
    overflow: visible;
  }
  .main-nav a {
    padding: 0;
  }
  .page-heading {
    padding: 14px 0 10px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .nav-link {
    padding-block: 9px;
  }
  .type-shortcuts {
    margin-top: 0;
    margin-bottom: 14px;
  }
  .type-shortcut {
    min-height: 68px;
    padding-block: 7px;
  }
  .type-shortcut > img:first-child {
    height: 48px;
  }
  .section-heading {
    margin-bottom: 8px;
  }
  .result-summary {
    margin-block: 8px 4px;
  }
  .catalog-table td {
    height: 42px;
  }
  .catalog-table th {
    height: 32px;
    padding-block: 5px;
  }
  .pagination-row {
    padding-block: 12px;
  }
  .page-preview {
    height: 260px;
  }
  .preview-spread {
    grid-template-columns: minmax(0, auto);
  }
  .preview-spread > img + img {
    display: none;
  }
  .preview-actions {
    margin-block: 10px;
  }
  .preview-reference {
    min-height: 30px;
  }
  .toc {
    margin-top: 0;
  }
}
@media (max-width: 850px) {
  .paper-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
  }
  .paper-description {
    display: contents;
  }
  .paper-description .product-label {
    order: 0;
  }
  .paper-description h2 {
    order: 1;
    margin-top: 8px;
  }
  .paper-description .paper-subtitle {
    order: 2;
    margin-bottom: 0;
  }
  .paper-price {
    order: 3;
    margin: 16px 0;
  }
  .paper-order {
    order: 4;
  }
  #paper-state {
    order: 5;
    margin-bottom: 22px;
  }
  .paper-product {
    order: 6;
  }
  .product-facts {
    order: 7;
    margin-top: 24px;
  }
  .future-edition {
    order: 8;
    margin-top: 12px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  html,
  body {
    width: 210mm;
    min-height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body > * {
    display: none !important;
  }
  body > #quote-dialog[open] {
    display: block !important;
    position: absolute !important;
    inset: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    max-width: none;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  #quote-dialog .dialog-heading,
  #quote-form > label,
  #quote-form > input,
  #quote-form > .dialog-actions,
  #quote-payment-note,
  #payment-result {
    display: none;
  }
  #quote-form {
    box-sizing: border-box;
    width: 210mm;
    min-height: 297mm;
    padding: 18mm 19mm 16mm;
  }
  #quote-document {
    margin: 0;
  }
  #quote-document h3 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  #quote-document th:last-child,
  #quote-document td:last-child {
    text-align: right;
  }
  .library-dialog::backdrop {
    background: none;
  }
}
