@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --rd-ink: #1d1d1d;
  --rd-muted: #555;
  --rd-subtle: #8e8e8e;
  --rd-line: #e4e4e4;
  --rd-soft: #f7f7f8;
  --rd-white: #fff;
  --rd-primary: #104ff3;
  --rd-deep-teal: #163740;
  --rd-footer: #171717;
  --rd-header-height: 100px;
  --rd-shell-gutter: 80px;
  --rd-shell-width: 1760px;
  --page-width: min(1760px, calc(100% - 160px));
  --workspace: #fff;
  --canvas: #fff;
  --ink: var(--rd-ink);
  --line: var(--rd-line);
  --blue: var(--rd-primary);
}

html,
body {
  min-width: 0;
  min-height: 100%;
  background: var(--rd-white);
  color: var(--rd-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.fhd-canvas {
  display: flex;
  flex-direction: column;
  width: min(1920px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  background: var(--rd-white);
}

.fhd-canvas::before {
  display: none;
}

.page-width {
  width: var(--page-width);
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--rd-ink);
  color: var(--rd-white);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  outline: 3px solid #ffcf21;
  outline-offset: 2px;
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr) max-content;
  align-items: center;
  width: 100%;
  height: var(--rd-header-height);
  padding: 0 var(--rd-shell-gutter);
  border: 0;
  background: var(--rd-white);
  box-shadow: none;
}

body.ebook-reader-workspace .site-header {
  grid-template-columns: 202px minmax(0, 1fr) max-content;
  height: var(--rd-header-height);
  padding: 0 var(--rd-shell-gutter);
}

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

.brand {
  position: relative;
  display: flex;
  align-items: center;
  width: 202px;
  height: 46px;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  top: 3.54px;
  left: 3.5px;
  width: 190px;
  height: 36.48px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 40px;
}

.primary-nav > a,
.primary-nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--rd-ink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
}

.primary-nav > a::after,
.primary-nav-item > a::after {
  display: none;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible,
.primary-nav > a[aria-current="page"],
.primary-nav-item > a:hover,
.primary-nav-item > a:focus-visible,
.primary-nav-item > a[aria-current="page"] {
  color: var(--rd-primary);
  outline: none;
}

.primary-nav > a:focus-visible,
.primary-nav-item > a:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(16, 79, 243, .18);
}

.primary-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.primary-nav-item > a {
  gap: 6px;
}

.nav-caret {
  display: none;
  margin: 0;
  color: #8e8e8e;
  font-size: 13px;
}

.nav-caret img {
  display: block;
  width: 16px;
  height: 16px;
}

.primary-submenu {
  top: calc(100% - 10px);
  width: 234px;
  padding: 10px;
  border: 1px solid var(--rd-line);
  border-radius: 18px;
  background: var(--rd-white);
  box-shadow: 0 20px 50px rgba(29, 29, 29, .14);
}

.primary-submenu a {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--rd-ink);
  font-size: 14px;
  font-weight: 600;
}

.primary-submenu a:hover,
.primary-submenu a:focus-visible,
.primary-submenu a[aria-current="page"] {
  background: #eef3ff;
  color: var(--rd-primary);
}

.header-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-tools > a[href="/admin/"] {
  position: absolute;
  right: 0;
  bottom: -21px;
  margin: 0 !important;
  color: var(--rd-subtle) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.header-tools .icon-button,
.header-tools .site-menu-trigger {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rd-ink);
}

.header-tools .icon-button:hover,
.header-tools .icon-button:focus-visible,
.header-tools .site-menu-trigger:hover,
.header-tools .site-menu-trigger:focus-visible,
.header-tools .site-menu-trigger[aria-expanded="true"] {
  background: var(--rd-soft);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 79, 243, .14);
}

.header-tools .icon-button > img,
.header-tools .site-menu-trigger > img {
  display: block;
  width: auto;
  max-width: 26px;
  height: auto;
  max-height: 26px;
}

.header-tools .site-menu-trigger > img {
  max-width: 24px;
  max-height: 19px;
}

.cart-tool {
  position: relative;
}

.cart-tool > span {
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  border-color: var(--rd-white);
  background: var(--rd-primary);
  font-size: 10px;
}

.header-search-shell {
  position: relative;
  width: 32px;
  height: 32px;
}

.header-search-panel[hidden],
.site-menu-panel[hidden],
.site-menu-group[hidden] {
  display: none;
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  z-index: 110;
  width: 420px;
  padding: 22px;
  border: 1px solid var(--rd-line);
  border-radius: 24px;
  background: var(--rd-white);
  box-shadow: 0 24px 60px rgba(29, 29, 29, .18);
}

.header-search-panel > label {
  display: block;
  margin-bottom: 12px;
  color: var(--rd-ink);
  font-size: 16px;
  font-weight: 700;
}

.header-search-panel > div {
  position: relative;
}

.header-search-panel input {
  width: 100%;
  height: 58px;
  padding: 0 68px 0 22px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: var(--rd-white);
  color: var(--rd-ink);
  font-size: 16px;
  outline: none;
}

.header-search-panel input:focus {
  border-color: var(--rd-primary);
  box-shadow: 0 0 0 3px rgba(16, 79, 243, .14);
}

.header-search-panel button[type="submit"] {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rd-ink);
}

.header-search-panel button[type="submit"] img {
  filter: brightness(0) invert(1);
}

body.site-menu-open,
body.mobile-menu-open {
  overflow: hidden;
}

.site-header.site-menu-open::before {
  position: fixed;
  inset: var(--rd-header-height) 0 0;
  z-index: 85;
  background: rgba(16, 22, 38, .46);
  content: "";
}

.site-menu-panel {
  position: fixed;
  top: var(--rd-header-height);
  left: 50%;
  z-index: 90;
  width: min(1840px, calc(100vw - 80px));
  max-height: calc(100dvh - var(--rd-header-height) - 24px);
  overflow-y: auto;
  border: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(255, 255, 255, .995);
  box-shadow: 0 28px 70px rgba(29, 29, 29, .22);
  transform: translateX(-50%);
  overscroll-behavior: contain;
}

.site-menu-shell {
  width: min(1680px, calc(100% - 80px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.site-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rd-line);
  gap: 24px;
}

.site-menu-heading > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-menu-heading > div:first-child span {
  color: var(--rd-ink);
  font-size: 22px;
  font-weight: 700;
}

.site-menu-heading strong {
  color: var(--rd-subtle);
  font-size: 15px;
  font-weight: 500;
}

.site-menu-heading a {
  color: var(--rd-primary);
  font-size: 14px;
  font-weight: 700;
}

.site-menu-heading button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  background: var(--rd-white);
  color: var(--rd-ink);
  font-size: 28px;
  line-height: 1;
}

.site-menu-heading button:hover,
.site-menu-heading button:focus-visible {
  border-color: var(--rd-primary);
  color: var(--rd-primary);
  outline: 3px solid rgba(16, 79, 243, .14);
}

.site-menu-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  padding-top: 30px;
  gap: 48px;
}

.site-menu-tabs {
  display: grid;
  align-content: start;
  gap: 6px;
}

.site-menu-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rd-ink);
  text-align: left;
}

.site-menu-tabs button span {
  font-size: 15px;
  font-weight: 600;
}

.site-menu-tabs button small {
  color: var(--rd-subtle);
  font-size: 12px;
  font-weight: 600;
}

.site-menu-tabs button:hover,
.site-menu-tabs button:focus-visible {
  background: var(--rd-soft);
  color: var(--rd-primary);
  outline: none;
}

.site-menu-tabs button[aria-selected="true"] {
  background: var(--rd-primary);
  color: var(--rd-white);
}

.site-menu-tabs button[aria-selected="true"] small {
  color: rgba(255, 255, 255, .8);
}

.site-menu-panels {
  min-width: 0;
}

.site-menu-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--rd-ink);
  gap: 20px;
}

.site-menu-group-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-menu-group-heading > div > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rd-primary);
  color: var(--rd-white);
  font-size: 12px;
  font-weight: 700;
}

.site-menu-group-heading h2 {
  margin: 0;
  color: var(--rd-ink);
  font-size: 26px;
  font-weight: 700;
}

.site-menu-group-heading > a {
  color: var(--rd-primary);
  font-size: 14px;
  font-weight: 700;
}

.site-menu-subgroups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 30px 40px;
}

.site-menu-subgroups h3 {
  margin: 0 0 10px;
  color: var(--rd-ink);
  font-size: 16px;
  font-weight: 700;
}

.site-menu-subgroups section > div {
  display: grid;
}

.site-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid #efeff1;
  color: var(--rd-muted);
  font-size: 14px;
  gap: 10px;
}

.site-menu-link:hover,
.site-menu-link:focus-visible {
  color: var(--rd-primary);
  outline: none;
}

.site-menu-link:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(16, 79, 243, .18);
}

.site-menu-link i {
  color: var(--rd-primary);
  font-style: normal;
}

.site-menu-link small {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f0f2;
  color: #767676;
  font-size: 10px;
  font-weight: 600;
}

.site-main {
  flex: 1 0 auto;
  min-height: 600px;
}

.site-footer {
  position: relative;
  width: min(1840px, calc(100% - 80px));
  min-height: 469px;
  margin: 80px auto 40px;
  overflow: visible;
  border-radius: 24px;
  background: var(--rd-footer);
  color: var(--rd-white);
}

.home-redesign .site-footer {
  margin-top: 0;
}

.footer-inner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 60px 80px 80px;
  border: 0;
}

.footer-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px 24px;
  color: var(--rd-white);
  font-size: 18px;
  line-height: 1.45;
}

.footer-quick a,
.footer-policy a {
  transition: opacity 150ms ease;
}

.footer-quick a:hover,
.footer-quick a:focus-visible,
.footer-policy a:hover,
.footer-policy a:focus-visible,
.footer-company a:hover,
.footer-company a:focus-visible {
  opacity: .72;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin: 60px 0;
  background: #555;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 295px minmax(520px, 1.35fr);
  align-items: end;
  gap: 64px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  display: block;
  width: 202px;
  height: 46px;
  margin: 0;
  overflow: hidden;
}

.footer-brand img {
  width: 190px;
  height: auto;
}

.footer-policy {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px 24px;
  color: var(--rd-white);
  font-size: 16px;
  line-height: 1.6;
}

.footer-cs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-cs strong {
  margin-bottom: 4px;
  color: var(--rd-white);
  font-size: 18px;
  font-weight: 700;
}

.footer-cs > a {
  color: var(--rd-white);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-cs span {
  color: #d8d8d8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.footer-company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--rd-white);
  font-size: 15px;
  line-height: 1.6;
}

.footer-company-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-company-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-company-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-company-row p {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-company-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 12px;
  background: #e4e4e4;
  font-style: normal;
}

.footer-company p,
.footer-company-summary p {
  margin: 0;
  color: var(--rd-white);
  font-size: inherit;
}

.footer-company b {
  font-weight: 700;
}

.footer-company a {
  color: inherit;
}

.footer-company,
.footer-company p,
.footer-company span,
.footer-company a,
.footer-cs,
.footer-cs a,
.footer-cs span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-company .footer-copyright {
  margin-top: 14px;
  color: #d8d8d8;
}

.footer-top-button {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: #121212;
  color: var(--rd-white);
  font-size: 28px;
}

.footer-top-button:hover,
.footer-top-button:focus-visible {
  border-color: var(--rd-white);
  outline: 3px solid rgba(255, 255, 255, .22);
}

.footer-top-button img {
  width: 24px;
  height: 31px;
  object-fit: contain;
}

@media (min-width: 1641px) {
  .site-footer {
    background-color: transparent;
    background-image: url("images/redesign/footer/footer-1.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .footer-quick {
    min-height: 60px;
    align-content: center;
    align-items: center;
  }

  .footer-main {
    grid-template-columns: 345px 295px 684px;
    justify-content: space-between;
    gap: 0;
  }

  .footer-brand-column {
    width: 345px;
    height: 148px;
  }

  .footer-brand img {
    margin-top: 3.54px;
    margin-left: 3.51px;
  }

  .footer-policy {
    display: flex;
    flex-wrap: wrap;
    width: 345px;
    gap: 10px 24px;
    font-size: 18px;
    line-height: 26px;
  }

  .footer-policy a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .footer-cs {
    align-self: end;
    width: 295px;
    gap: 0;
  }

  .footer-cs strong {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 21px;
  }

  .footer-cs > a {
    margin-bottom: 8px;
    font-size: 40px;
    line-height: 48px;
  }

  .footer-cs span {
    font-size: 18px;
    line-height: 26px;
  }

  .footer-company {
    width: 684px;
    height: 148px;
    gap: 24px;
    font-size: 18px;
    line-height: 26px;
  }

  .footer-company b {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .footer-company-details {
    flex: 0 0 98px;
    width: 100%;
    height: 98px;
    gap: 10px;
  }

  .footer-company-row,
  .footer-company-summary {
    flex-wrap: nowrap;
    min-height: 26px;
    gap: 10px;
  }

  .footer-company-row p,
  .footer-company-summary p {
    flex: 0 0 auto;
    gap: 4px;
    white-space: nowrap;
  }

  .footer-company .footer-copyright {
    margin-top: 0;
    font-size: 18px;
    line-height: 26px;
  }

  .footer-top-button {
    border: 0;
  }
}

@media (max-width: 1640px) {
  :root {
    --rd-shell-gutter: 48px;
    --page-width: min(1480px, calc(100% - 96px));
  }

  .site-header {
    grid-template-columns: 190px minmax(0, 1fr) max-content;
  }

  .brand,
  .footer-brand {
    width: 190px;
  }

  .brand-logo,
  .footer-brand img {
    width: 176px;
  }

  .brand-logo {
    height: auto;
  }

  .primary-nav {
    gap: 28px;
  }

  .primary-nav > a,
  .primary-nav-item > a {
    font-size: 16px;
  }

  .site-menu-panel,
  .site-footer {
    width: calc(100% - 48px);
  }

  .footer-inner {
    padding-right: 56px;
    padding-left: 56px;
  }

  .footer-main {
    grid-template-columns: minmax(300px, 1fr) 270px minmax(440px, 1.2fr);
    gap: 42px;
  }

  .footer-policy {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 1320px) {
  :root {
    --rd-shell-gutter: 32px;
  }

  .site-header {
    grid-template-columns: 176px minmax(0, 1fr) max-content;
  }

  .brand-logo {
    width: 164px;
  }

  .primary-nav {
    gap: 20px;
  }

  .primary-nav > a,
  .primary-nav-item > a {
    font-size: 15px;
  }

  .header-tools {
    gap: 10px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-company {
    grid-column: 1 / -1;
    padding-right: 72px;
  }
}

@media (max-width: 1180px) {
  :root {
    --rd-header-height: 76px;
    --page-width: calc(100% - 48px);
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(160px, 1fr) max-content;
    height: var(--rd-header-height);
    padding: 0 24px;
    border-bottom: 1px solid #efeff1;
  }

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

  .brand {
    width: 172px;
    height: 42px;
  }

  .brand-logo {
    width: 166px;
  }

  .primary-nav {
    display: none;
  }

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

  .header-tools {
    grid-column: 2;
    gap: 12px;
  }

  .header-tools > a[href="/admin/"] {
    display: none;
  }

  .site-header.site-menu-open::before {
    inset: 0;
  }

  .site-menu-panel {
    top: 0;
    right: 0;
    left: auto;
    width: min(560px, 100vw);
    height: 100dvh;
    max-height: none;
    border-radius: 24px 0 0 24px;
    transform: none;
  }

  .site-menu-shell {
    width: 100%;
    padding: 0 28px 40px;
  }

  .site-menu-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 86px;
    padding: 16px 0;
    background: rgba(255, 255, 255, .98);
  }

  .site-menu-heading > div:first-child {
    display: grid;
    gap: 3px;
  }

  .site-menu-heading > div:first-child span {
    font-size: 20px;
  }

  .site-menu-heading strong {
    font-size: 13px;
  }

  .site-menu-heading > div:last-child a {
    display: none;
  }

  .site-menu-layout {
    display: block;
    padding-top: 22px;
  }

  .site-menu-tabs {
    display: flex;
    padding-bottom: 16px;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: thin;
  }

  .site-menu-tabs button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--rd-line);
    background: var(--rd-white);
    gap: 9px;
  }

  .site-menu-tabs button[aria-selected="true"] {
    border-color: var(--rd-primary);
    background: var(--rd-primary);
  }

  .site-menu-group-heading {
    margin-top: 8px;
  }

  .site-menu-group-heading h2 {
    font-size: 22px;
  }

  .site-menu-subgroups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .header-search-panel {
    position: fixed;
    top: 84px;
    right: 24px;
    width: min(420px, calc(100vw - 48px));
  }

  .site-footer {
    width: calc(100% - 48px);
    min-height: 0;
    margin-top: 64px;
    margin-bottom: 24px;
  }

  .footer-inner {
    padding: 48px 40px 56px;
  }

  .footer-divider {
    margin: 40px 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-company {
    grid-column: auto;
    padding-right: 64px;
  }
}

@media (max-width: 640px) {
  :root {
    --rd-header-height: 68px;
    --page-width: calc(100% - 32px);
  }

  .site-header {
    grid-template-columns: minmax(124px, 1fr) max-content;
    padding: 0 16px;
  }

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

  .brand {
    width: 148px;
    height: 34px;
  }

  .brand-logo {
    width: 142px;
    height: auto;
  }

  .header-tools {
    gap: 6px;
  }

  .header-tools .icon-button,
  .header-tools .site-menu-trigger,
  .header-search-shell {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .header-tools .icon-button:first-of-type {
    display: inline-flex;
  }

  .header-tools > a.icon-button,
  .header-tools > .site-menu-trigger {
    display: inline-flex !important;
  }

  .header-tools .icon-button > img,
  .header-tools .site-menu-trigger > img {
    max-width: 22px;
    max-height: 22px;
  }

  .header-tools .site-menu-trigger > img {
    max-height: 17px;
  }

  .header-search-panel {
    top: 76px;
    right: 8px;
    width: calc(100vw - 16px);
    padding: 18px;
    border-radius: 20px;
  }

  .header-search-panel input {
    height: 54px;
    padding-left: 18px;
    font-size: 15px;
  }

  .header-search-panel button[type="submit"] {
    width: 44px;
    height: 44px;
  }

  .site-menu-panel {
    width: 100vw;
    border-radius: 0;
  }

  .site-menu-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-menu-heading {
    min-height: 76px;
  }

  .site-menu-heading strong {
    display: none;
  }

  .site-menu-heading button {
    width: 38px;
    height: 38px;
  }

  .site-menu-group-heading > a {
    display: none;
  }

  .site-menu-subgroups {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: calc(100% - 24px);
    margin: 48px 12px 12px;
    border-radius: 20px;
  }

  .footer-inner {
    padding: 38px 24px 44px;
  }

  .footer-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    font-size: 14px;
  }

  .footer-divider {
    margin: 32px 0;
  }

  .footer-main {
    gap: 34px;
  }

  .footer-company-separator {
    display: none;
  }

  .footer-brand-column {
    gap: 28px;
  }

  .footer-brand {
    width: 166px;
    height: 38px;
  }

  .footer-brand img {
    width: 158px;
  }

  .footer-policy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px 16px;
    font-size: 13px;
  }

  .footer-cs > a {
    max-width: 100%;
    font-size: clamp(26px, 8.9vw, 32px);
    white-space: normal;
  }

  .footer-cs span,
  .footer-company {
    font-size: 13px;
  }

  .footer-company-summary {
    display: grid;
    gap: 6px;
  }

  .footer-company {
    padding-right: 0;
  }

  .footer-top-button {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .brand {
    width: 128px;
  }

  .brand-logo {
    width: 124px;
  }

  .header-tools {
    gap: 4px;
  }

  .footer-quick,
  .footer-policy {
    grid-template-columns: 1fr;
  }

  .footer-company .footer-copyright {
    width: calc(100% - 72px);
  }
}

@media (max-width: 340px) {
  .site-header,
  body.ebook-reader-workspace .site-header {
    grid-template-columns: minmax(116px, 1fr) max-content;
    padding-inline: 12px;
  }

  .brand {
    width: 116px;
  }

  .brand-logo {
    width: 112px;
  }

  .header-tools {
    gap: 3px;
  }
}

/* Figma mobile source: Ig0QrMxumbKIMF9tCqcLDd / node 46:390 (mo_main_A). */
@media (max-width: 640px) {
  :root {
    --rd-header-height: 54px;
    --page-width: calc(100% - 32px);
  }

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

  .brand {
    width: 142px;
    height: 32px;
  }

  .brand-logo {
    top: 3px;
    left: 2.5px;
    width: 134px;
    height: 26px;
  }

  .header-tools {
    gap: 8px;
  }

  .header-tools .header-search-shell,
  .header-tools .header-search-toggle,
  .header-tools .site-menu-trigger {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .header-tools > a.cart-tool.icon-button,
  .header-tools > a.icon-button:not(.cart-tool) {
    display: none !important;
  }

  .header-tools .header-search-toggle > img {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
  }

  .header-tools .site-menu-trigger > img {
    width: 22px;
    height: 16px;
    max-width: 22px;
    max-height: 16px;
  }

  .header-search-panel {
    top: 62px;
    right: 8px;
    width: calc(100vw - 16px);
  }

  .site-menu-heading {
    min-height: 54px;
  }

  .site-footer {
    width: calc(100% - 32px);
    min-height: 872px;
    margin: 48px 16px 16px;
    border-radius: 24px;
    background-color: transparent;
    background-image: url("images/redesign/mobile/footer-shape.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .home-redesign .site-footer {
    margin-top: 0;
  }

  .footer-inner {
    min-height: 872px;
    padding: 24px;
  }

  .footer-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 190px;
    align-content: start;
    gap: 10px 16px;
    font-size: 14px;
    line-height: 22px;
  }

  .footer-divider {
    margin: 40px 0;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .footer-brand-column {
    gap: 24px;
  }

  .footer-brand {
    width: 142px;
    height: 32px;
  }

  .footer-brand img {
    width: 134px;
    height: auto;
    margin: 3px 0 0 2.5px;
  }

  .footer-policy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px 16px;
    font-size: 14px;
    line-height: 22px;
  }

  .footer-cs {
    gap: 0;
  }

  .footer-cs strong {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 19px;
  }

  .footer-cs > a {
    margin-bottom: 4px;
    font-size: 32px;
    line-height: 38px;
  }

  .footer-cs span {
    font-size: 14px;
    line-height: 26px;
  }

  .footer-company {
    padding-right: 0;
    gap: 8px;
    font-size: 13px;
    line-height: 26px;
  }

  .footer-company-details {
    gap: 2px;
  }

  .footer-company-row,
  .footer-company-summary,
  .footer-company-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .footer-company-row p,
  .footer-company-summary p {
    align-items: flex-start;
    line-height: 26px;
  }

  .footer-company-row:not(.footer-company-summary):not(.footer-company-contact) p,
  .footer-company-contact p:first-of-type {
    line-height: 18px;
  }

  .footer-company-row:not(.footer-company-summary):not(.footer-company-contact) p b,
  .footer-company-contact p:first-of-type b {
    line-height: 16px;
  }

  .footer-company-row:not(.footer-company-summary):not(.footer-company-contact) p span,
  .footer-company-contact p:first-of-type span {
    line-height: 18px;
  }

  .footer-company .footer-copyright {
    width: 100%;
    margin-top: 16px;
    line-height: 26px;
  }

  .footer-top-button {
    right: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    border: 0;
  }

  .footer-top-button img {
    width: 20px;
    height: 26px;
  }
}

@media (max-width: 340px) {
  .footer-company .footer-copyright {
    width: calc(100% - 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .footer-quick a,
  .footer-policy a {
    transition: none;
  }
}
