/* MEN'S LAB immersive library experience. */
:root {
  --ml-library-ink: #171916;
  --ml-library-green: #153c32;
  --ml-library-green-deep: #0b241d;
  --ml-library-ivory: #f4f0e7;
  --ml-library-paper: #fffdf7;
  --ml-library-cobalt: #375a7f;
  --ml-library-oxblood: #8a2830;
  --ml-library-brass: #b48a45;
  --ml-library-walnut: #5b3822;
  --ml-library-line: #cfc5b3;
  --ml-library-muted: #716b61;
}

body.gentlestyle-body {
  background: var(--ml-library-green-deep);
}

.ml-library-site,
.ml-library-site *,
.ml-library-site *::before,
.ml-library-site *::after {
  box-sizing: border-box;
}

.ml-library-shell,
body:not(.home) .gentlestyle-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  box-shadow: none;
}

.ml-library-width {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

/* Header */
.gentlestyle-book-header {
  height: 76px;
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(23, 25, 22, 0.14);
  background: rgba(247, 243, 234, 0.97);
  box-shadow: 0 4px 18px rgba(18, 25, 21, 0.08);
}

.gentlestyle-site-header__inner {
  width: 100%;
  max-width: 1440px;
  gap: 34px;
}

.gentlestyle-book-header__brand {
  flex-basis: 230px;
  width: 230px;
}

.gentlestyle-main-nav {
  gap: 22px;
}

.gentlestyle-main-nav__link {
  min-height: 52px;
  padding: 0 2px;
  gap: 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #353732;
  background: transparent;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.gentlestyle-main-nav__link:hover,
.gentlestyle-main-nav__link[aria-current="page"] {
  color: var(--ml-library-green);
  border-bottom-color: var(--ml-library-brass);
  background: transparent;
}

.gentlestyle-main-nav__bullet,
.gentlestyle-nav-icon {
  display: none;
}

.gentlestyle-main-nav__link .gentlestyle-numeric {
  color: var(--ml-library-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gentlestyle-header-tools {
  gap: 4px;
  margin-left: 4px;
}

.gentlestyle-header-icon,
.gentlestyle-header-search {
  width: 44px;
  height: 44px;
}

.gentlestyle-header-about {
  min-width: 70px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--ml-library-line);
  border-radius: 0;
  color: var(--ml-library-green);
  background: transparent;
}

.gentlestyle-header-about:hover {
  color: var(--ml-library-oxblood);
  background: transparent;
}

.gentlestyle-header-search-panel {
  top: 76px;
  border-radius: 0;
}

/* Home library stage */
.ml-library-stage {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: var(--ml-library-ivory);
  background: #18251f;
  isolation: isolate;
}

.ml-library-stage__scene,
.ml-library-stage__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ml-library-stage__scene {
  z-index: -3;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

.ml-library-stage__veil {
  z-index: -2;
  background: rgba(7, 18, 15, 0.22);
  box-shadow: inset 0 120px 100px rgba(5, 12, 10, 0.18), inset 0 -280px 180px rgba(4, 14, 11, 0.62);
}

.ml-library-stage__heading {
  position: absolute;
  z-index: 4;
  top: 70px;
  left: max(36px, calc((100% - 1370px) / 2));
  width: 300px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.ml-library-stage__heading p,
.ml-library-stage__heading h1,
.ml-library-stage__heading strong {
  margin: 0;
  letter-spacing: 0;
}

.ml-library-stage__heading p {
  margin-bottom: 8px;
  color: #e7d2a8;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.ml-library-stage__heading h1 {
  margin-bottom: 22px;
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
}

.ml-library-stage__heading strong {
  display: block;
  color: #fffdf7;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.45;
}

.ml-library-browser {
  position: absolute;
  z-index: 3;
  inset: 0 0 66px;
}

.ml-spine-shelf {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 330px;
  padding: 0 30px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(660px, 760px) minmax(0, 1fr);
  align-items: end;
  transition: grid-template-columns 360ms ease;
}

.ml-spine-shelf::before,
.ml-category-aisle__books::after,
.ml-volume-rail::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  background: var(--ml-library-walnut);
  border-top: 4px solid #8d6037;
  border-bottom: 8px solid #2e1d13;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.2), 0 14px 30px rgba(0, 0, 0, 0.34);
}

.ml-spine-shelf__group {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.ml-spine-shelf__group--left {
  grid-column: 1;
  justify-content: flex-end;
}

.ml-spine-shelf__group--right {
  grid-column: 3;
  justify-content: flex-start;
}

.ml-spine {
  --ml-spine-color: #4d4a43;
  position: relative;
  width: 50px;
  height: var(--ml-spine-height, 250px);
  min-width: 44px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px 3px 1px 1px;
  color: #f1eadc;
  background: var(--ml-spine-color);
  box-shadow: inset 5px 0 10px rgba(255, 255, 255, 0.05), inset -6px 0 10px rgba(0, 0, 0, 0.18), 5px 6px 12px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 220ms ease, width 220ms ease, filter 220ms ease;
}

.ml-spine[data-book-category-slug="ai-sidebusiness"] { --ml-spine-color: #153c32; }
.ml-spine[data-book-category-slug="wordpress-operation"] { --ml-spine-color: #375a7f; }
.ml-spine[data-book-category-slug="coconala-strategy"] { --ml-spine-color: #565249; }
.ml-spine[data-book-category-slug="blog-monetization"] { --ml-spine-color: #8a2830; }
.ml-spine[data-book-category-slug="mens-beauty"] { --ml-spine-color: #746259; }

.ml-spine:hover,
.ml-spine:focus-visible {
  z-index: 3;
  filter: brightness(1.12);
  transform: translateY(-18px);
}

.ml-spine.is-selected {
  z-index: 4;
  width: 66px;
  color: #e7c37d;
  transform: translateY(-30px);
}

.ml-spine__classification,
.ml-spine__mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0;
}

.ml-spine__classification {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(231, 195, 125, 0.7);
}

.ml-spine__title {
  min-height: 0;
  max-height: calc(100% - 62px);
  overflow: hidden;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}

.ml-open-book {
  --ml-book-accent: var(--ml-library-green);
  position: absolute;
  z-index: 6;
  bottom: 76px;
  left: 50%;
  width: min(760px, calc(100% - 340px));
  height: 438px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--ml-library-ink);
  filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.42));
  transform: translateX(-50%);
  transform-origin: center bottom;
  transition: opacity 260ms ease, transform 360ms ease;
}

.ml-open-book[data-category="wordpress-operation"] { --ml-book-accent: var(--ml-library-cobalt); }
.ml-open-book[data-category="coconala-strategy"] { --ml-book-accent: #5b574d; }
.ml-open-book[data-category="blog-monetization"] { --ml-book-accent: var(--ml-library-oxblood); }
.ml-open-book[data-category="mens-beauty"] { --ml-book-accent: #765f55; }

.ml-open-book::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: rgba(93, 73, 48, 0.32);
  box-shadow: -7px 0 12px rgba(0, 0, 0, 0.08), 7px 0 12px rgba(255, 255, 255, 0.58);
}

.ml-open-book__page {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: var(--ml-library-paper);
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 620px auto;
  border: 1px solid #d7ccba;
}

.ml-open-book__page--visual {
  padding: 30px 34px 26px 38px;
  border-radius: 20px 3px 3px 10px;
  box-shadow: inset -20px 0 24px rgba(75, 58, 35, 0.05);
}

.ml-open-book__page--copy {
  padding: 40px 42px 34px 36px;
  display: flex;
  flex-direction: column;
  border-radius: 3px 20px 10px 3px;
  box-shadow: inset 20px 0 24px rgba(75, 58, 35, 0.05);
}

.ml-open-book__classification,
.ml-open-book__meta,
.ml-open-book__reading {
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

.ml-open-book__classification {
  margin: 0 0 13px;
  color: var(--ml-library-muted);
  font-size: 10px;
  font-weight: 800;
}

.ml-open-book figure {
  height: 310px;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: #ebe5d9;
}

.ml-open-book figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.ml-open-book__stamp {
  position: absolute;
  right: 26px;
  bottom: 21px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 40, 48, 0.48);
  border-radius: 50%;
  color: rgba(138, 40, 48, 0.72);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.ml-open-book__meta {
  margin-bottom: 24px;
  padding-bottom: 11px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #d8cfbf;
  color: var(--ml-book-accent);
  font-size: 10px;
  font-weight: 800;
}

.ml-open-book__meta time {
  color: var(--ml-library-muted);
}

.ml-open-book__page--copy h2 {
  margin: 0 0 18px;
  color: var(--ml-library-ink);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}

.ml-open-book__page--copy > p {
  margin: 0;
  color: #4e4b45;
  font-size: 13px;
  line-height: 1.9;
}

.ml-open-book__reading {
  margin-top: auto;
  color: var(--ml-library-muted);
  font-size: 10px;
  font-weight: 700;
}

.ml-open-book__read {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ml-book-accent);
  color: var(--ml-library-ink);
  font-size: 17px;
  font-weight: 700;
}

.ml-open-book__read:hover {
  color: var(--ml-book-accent);
}

.ml-open-book__close {
  position: absolute;
  z-index: 12;
  top: 17px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(89, 79, 65, 0.28);
  border-radius: 50%;
  color: #5d584f;
  background: rgba(255, 253, 247, 0.94);
  font-family: system-ui, sans-serif;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.ml-open-book__close:hover {
  color: var(--ml-library-oxblood);
  border-color: var(--ml-library-oxblood);
}

.ml-open-book__bookmark,
.ml-article-opening__bookmark {
  position: absolute;
  z-index: 8;
  bottom: -35px;
  left: calc(50% - 13px);
  width: 26px;
  height: 54px;
  background: var(--ml-library-brass);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

.ml-open-book__page-sweep {
  position: absolute;
  z-index: 10;
  top: 8px;
  right: 5px;
  bottom: 8px;
  left: 50%;
  pointer-events: none;
  background: rgba(255, 253, 247, 0.92);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.ml-open-book.is-turning .ml-open-book__page-sweep {
  animation: ml-page-sweep 320ms ease;
}

@keyframes ml-page-sweep {
  0% { opacity: 0; transform: scaleX(0); }
  48% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); transform-origin: right center; }
}

.ml-library-stage.is-preview-closed .ml-open-book {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 40px) scale(0.82);
}

.ml-library-stage.is-preview-closed .ml-spine-shelf {
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
}

.ml-library-controls {
  position: absolute;
  z-index: 9;
  right: 22px;
  bottom: 205px;
  left: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
}

.ml-library-controls button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 253, 247, 0.46);
  border-radius: 50%;
  color: #fffdf7;
  background: rgba(9, 30, 24, 0.82);
  font-size: 22px;
  cursor: pointer;
  pointer-events: auto;
}

.ml-library-controls button:last-child {
  justify-self: end;
}

.ml-library-controls button:hover {
  color: #161916;
  border-color: var(--ml-library-brass);
  background: var(--ml-library-brass);
}

.ml-library-controls > span {
  align-self: end;
  color: rgba(255, 253, 247, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.ml-library-stage.is-preview-closed .ml-library-controls > span {
  opacity: 1;
}

.ml-stage-categories {
  position: absolute;
  z-index: 11;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 66px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(7, 31, 25, 0.97);
  border-top: 1px solid rgba(180, 138, 69, 0.55);
}

.ml-stage-categories a {
  min-width: 158px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-right: 1px solid rgba(244, 240, 231, 0.2);
  color: #f4f0e7;
  font-size: 12px;
  font-weight: 700;
}

.ml-stage-categories a:first-child {
  border-left: 1px solid rgba(244, 240, 231, 0.2);
}

.ml-stage-categories a:hover {
  color: #e8c77f;
  background: rgba(255, 255, 255, 0.05);
}

.ml-stage-categories em {
  color: #c1b9aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-style: normal;
}

/* Shelves below the stage */
.ml-new-arrivals {
  padding: 70px 0 76px;
  color: var(--ml-library-ivory);
  background: var(--ml-library-green-deep);
}

.ml-section-heading {
  margin-bottom: 38px;
  padding-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(69, 63, 53, 0.28);
}

.ml-section-heading p,
.ml-section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.ml-section-heading p {
  margin-bottom: 7px;
  color: var(--ml-library-oxblood);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.ml-section-heading h2 {
  color: var(--ml-library-ink);
  font-size: 30px;
  font-weight: 600;
}

.ml-section-heading a,
.ml-section-heading__count {
  color: #545149;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.ml-section-heading--light {
  border-bottom-color: rgba(244, 240, 231, 0.22);
}

.ml-section-heading--light p {
  color: #d9b673;
}

.ml-section-heading--light h2,
.ml-section-heading--light a {
  color: var(--ml-library-ivory);
}

.ml-volume-rail {
  position: relative;
  min-width: 0;
  padding: 0 12px 56px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ml-library-brass) rgba(255, 255, 255, 0.08);
}

.ml-volume-rail::after {
  right: -12px;
  left: -12px;
  height: 34px;
  border-top-width: 3px;
  border-bottom-width: 6px;
}

.ml-new-volume {
  position: relative;
  z-index: 2;
  min-width: 0;
  color: var(--ml-library-ivory);
  scroll-snap-align: start;
}

.ml-new-volume__book {
  --ml-volume-spine: var(--ml-library-green);
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 18px 16px 20px 27px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 11px;
  overflow: hidden;
  background-color: #ebe5d9;
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 420px auto;
  box-shadow: 10px 12px 18px rgba(0, 0, 0, 0.34);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.ml-new-volume[data-category="wordpress-operation"] .ml-new-volume__book { --ml-volume-spine: var(--ml-library-cobalt); }
.ml-new-volume[data-category="coconala-strategy"] .ml-new-volume__book { --ml-volume-spine: #575249; }
.ml-new-volume[data-category="blog-monetization"] .ml-new-volume__book { --ml-volume-spine: var(--ml-library-oxblood); }
.ml-new-volume[data-category="mens-beauty"] .ml-new-volume__book { --ml-volume-spine: #745e55; }

.ml-new-volume:hover .ml-new-volume__book,
.ml-new-volume:focus-visible .ml-new-volume__book {
  box-shadow: 12px 18px 22px rgba(0, 0, 0, 0.42);
  transform: translateY(-10px);
}

.ml-new-volume__spine {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: var(--ml-volume-spine);
  box-shadow: inset -4px 0 5px rgba(0, 0, 0, 0.2);
}

.ml-new-volume__book::after,
.ml-shelf-volume__cover::after,
.ml-catalog-volume__cover::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 0;
  bottom: 3px;
  width: 4px;
  background: #e8e1d5;
  box-shadow: inset 1px 0 rgba(93, 76, 53, 0.18);
}

.ml-new-volume__book img {
  grid-row: 2;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(51, 39, 24, 0.18);
}

.ml-new-volume__plate {
  position: relative;
  z-index: 4;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
  padding: 5px 8px;
  color: #17201b;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(92, 78, 57, 0.4);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 8px;
  font-weight: 800;
}

.ml-new-volume__cover-title {
  position: relative;
  z-index: 2;
  grid-row: 3;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ml-library-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-new-volume__seal {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 40, 48, 0.45);
  border-radius: 50%;
  color: rgba(138, 40, 48, 0.72);
  font-family: Georgia, serif;
  font-size: 7px;
  font-style: italic;
}

.ml-new-volume__copy {
  min-width: 0;
  padding: 17px 2px 0;
  display: block;
}

.ml-new-volume__copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f4f0e7;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ml-new-volume__copy > span {
  margin-top: 8px;
  display: block;
  color: #a9a398;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.ml-category-library {
  padding: 82px 0 100px;
  color: var(--ml-library-ink);
  background-color: var(--ml-library-ivory);
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 760px auto;
}

.ml-category-library__aisles {
  border-top: 1px solid var(--ml-library-line);
}

.ml-category-aisle {
  --ml-aisle-accent: var(--ml-library-green);
  padding: 42px 0 32px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 46px;
  border-bottom: 1px solid var(--ml-library-line);
}

.ml-category-aisle[data-category="wordpress-operation"] { --ml-aisle-accent: var(--ml-library-cobalt); }
.ml-category-aisle[data-category="coconala-strategy"] { --ml-aisle-accent: #575249; }
.ml-category-aisle[data-category="blog-monetization"] { --ml-aisle-accent: var(--ml-library-oxblood); }
.ml-category-aisle[data-category="mens-beauty"] { --ml-aisle-accent: #745e55; }

.ml-category-aisle__sign {
  padding-top: 20px;
}

.ml-category-aisle__sign p,
.ml-category-aisle__sign h3 {
  margin: 0;
  letter-spacing: 0;
}

.ml-category-aisle__sign p {
  color: var(--ml-aisle-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
}

.ml-category-aisle__sign h3 {
  margin-top: 10px;
  color: var(--ml-library-ink);
  font-size: 22px;
  line-height: 1.55;
}

.ml-category-aisle__sign a {
  min-height: 44px;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--ml-aisle-accent);
  color: var(--ml-aisle-accent);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.ml-category-aisle__books {
  position: relative;
  min-width: 0;
  padding: 0 10px 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: end;
}

.ml-category-aisle__books::after {
  height: 28px;
  border-top-width: 3px;
  border-bottom-width: 5px;
  box-shadow: 0 -5px 12px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.12);
}

.ml-shelf-volume {
  position: relative;
  z-index: 2;
  min-width: 0;
  color: var(--ml-library-ink);
}

.ml-shelf-volume__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 22px 15px 26px 25px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 13px;
  overflow: hidden;
  background-color: #ebe5d9;
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 420px auto;
  box-shadow: 8px 10px 16px rgba(55, 43, 28, 0.24);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.ml-shelf-volume__cover::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 13px;
  background: var(--ml-aisle-accent);
  box-shadow: inset -4px 0 5px rgba(0, 0, 0, 0.18);
}

.ml-shelf-volume:hover .ml-shelf-volume__cover,
.ml-shelf-volume:focus-visible .ml-shelf-volume__cover {
  box-shadow: 10px 16px 20px rgba(55, 43, 28, 0.3);
  transform: translateY(-9px);
}

.ml-shelf-volume__cover img {
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 5px 10px rgba(51, 39, 24, 0.16);
}

.ml-shelf-volume__cover-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ml-library-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-shelf-volume__index {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  padding: 4px 7px;
  color: var(--ml-library-ink);
  background: rgba(244, 240, 231, 0.9);
  border: 1px solid rgba(90, 72, 49, 0.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.ml-shelf-volume > strong {
  margin-top: 15px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Listing and category pages */
.gentlestyle-subpage-section {
  padding: 50px 32px 100px;
  background-color: var(--ml-library-ivory) !important;
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 760px auto;
}

.gentlestyle-listing-page > .flex,
.gentlestyle-category-page__layout,
.gentlestyle-single-page > .flex {
  width: min(1280px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.gentlestyle-category-breadcrumb,
.gentlestyle-breadcrumb {
  font-family: system-ui, -apple-system, sans-serif;
}

.gentlestyle-category-hero {
  position: relative;
  min-height: 270px;
  margin: 0 0 34px;
  padding: 42px 220px 42px 42px;
  display: block;
  overflow: hidden;
  color: var(--ml-library-ivory);
  background: var(--ml-library-green);
  border: 0;
  border-bottom: 12px solid var(--ml-library-walnut);
  box-shadow: 0 12px 24px rgba(40, 33, 23, 0.14);
}

.gentlestyle-category-hero__copy {
  max-width: 680px;
}

.gentlestyle-category-hero__label,
.gentlestyle-category-hero__copy h1,
.gentlestyle-category-hero__copy > p {
  color: var(--ml-library-ivory) !important;
}

.gentlestyle-category-hero__copy h1 {
  margin: 10px 0 18px;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 0;
}

.gentlestyle-category-hero__copy > p {
  max-width: 620px;
  font-size: 14px;
  line-height: 2;
}

.gentlestyle-category-hero__meta {
  margin-top: 22px;
  color: #ddd5c8;
}

.gentlestyle-category-hero__meta a {
  color: #f1d18d;
}

.gentlestyle-category-hero__image {
  position: absolute;
  top: 30px;
  right: 34px;
  bottom: 30px;
  width: 150px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}

.gentlestyle-category-hero__image img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.gentlestyle-category-filter {
  margin: 0 0 42px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--ml-library-line);
  background: #ece5d8;
}

.gentlestyle-category-filter a {
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid var(--ml-library-line);
  border-radius: 0;
  color: #42433e;
  background: transparent;
  font-size: 11px;
  text-align: center;
}

.gentlestyle-category-filter a:last-child {
  border-right: 0;
}

.gentlestyle-category-filter a:hover,
.gentlestyle-category-filter a.is-current {
  color: #fffdf7;
  background: var(--ml-library-green);
}

.gentlestyle-category-filter em {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-style: normal;
}

.gentlestyle-arrivals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.ml-catalog-volume {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.ml-catalog-volume::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  background: var(--ml-library-walnut);
  border-top: 2px solid #95663a;
  box-shadow: 0 7px 12px rgba(48, 37, 23, 0.15);
}

.ml-catalog-volume__link {
  position: relative;
  z-index: 2;
  min-height: 290px;
  padding: 18px 18px 34px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  color: var(--ml-library-ink);
}

.ml-catalog-volume__object {
  position: relative;
  width: 180px;
  height: 240px;
  display: block;
  align-self: end;
  transition: transform 220ms ease;
}

.ml-catalog-volume:hover .ml-catalog-volume__object {
  transform: translateY(-8px);
}

.ml-catalog-volume__spine {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: var(--ml-library-green);
  box-shadow: inset -4px 0 5px rgba(0, 0, 0, 0.2);
}

.ml-catalog-volume[data-category="wordpress-operation"] .ml-catalog-volume__spine { background: var(--ml-library-cobalt); }
.ml-catalog-volume[data-category="coconala-strategy"] .ml-catalog-volume__spine { background: #575249; }
.ml-catalog-volume[data-category="blog-monetization"] .ml-catalog-volume__spine { background: var(--ml-library-oxblood); }
.ml-catalog-volume[data-category="mens-beauty"] .ml-catalog-volume__spine { background: #745e55; }

.ml-catalog-volume__cover {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background-color: #ebe5d9;
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 360px auto;
  box-shadow: 8px 10px 17px rgba(55, 43, 28, 0.24);
}

.ml-catalog-volume__cover::before {
  content: "MEN'S LAB";
  position: absolute;
  right: 12px;
  bottom: 34px;
  left: 24px;
  color: var(--ml-library-muted);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.ml-catalog-volume__cover img {
  position: absolute;
  top: 30px;
  right: 12px;
  width: calc(100% - 34px);
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 5px 10px rgba(51, 39, 24, 0.16);
}

.ml-catalog-volume__index {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  padding: 4px 6px;
  color: var(--ml-library-ink);
  background: rgba(244, 240, 231, 0.92);
  border: 1px solid rgba(90, 72, 49, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.ml-catalog-volume__record {
  min-width: 0;
  padding: 10px 0 2px;
  display: flex;
  flex-direction: column;
}

.ml-catalog-volume__meta {
  margin: 0 0 18px;
  padding: 0 0 10px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--ml-library-line);
  color: var(--ml-library-muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
}

.ml-catalog-volume__title {
  margin: 0 0 10px;
  color: var(--ml-library-ink);
  background: transparent;
  font-size: 20px;
  line-height: 1.55;
}

.ml-catalog-volume__subtitle {
  margin: 0 0 12px;
  color: var(--ml-library-oxblood);
  background: transparent;
  font-size: 12px;
  font-style: normal;
}

.ml-catalog-volume__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #555149;
  background: transparent;
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-catalog-volume__footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--ml-library-muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
}

.ml-catalog-volume__footer span {
  color: var(--ml-library-green);
  font-weight: 800;
}

/* Article opening and reading pages */
.gentlestyle-single-page {
  padding-top: 40px;
}

.gentlestyle-single-page > .flex > div:first-child {
  min-width: 0;
}

.ml-article-opening {
  position: relative;
  min-height: 430px;
  margin: 0 0 42px;
  display: grid;
  grid-template-columns: 46% 54%;
  color: var(--ml-library-ink);
  filter: drop-shadow(0 18px 24px rgba(51, 39, 24, 0.18));
}

.ml-article-opening::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 12px;
  bottom: 12px;
  left: 46%;
  width: 1px;
  background: rgba(93, 73, 48, 0.26);
  box-shadow: -7px 0 14px rgba(0, 0, 0, 0.06), 7px 0 14px rgba(255, 255, 255, 0.6);
}

.ml-article-opening .gentlestyle-single-figure,
.ml-article-opening .gentlestyle-single-header {
  min-width: 0;
  margin: 0;
  background-color: var(--ml-library-paper);
  background-image: url("./assets/menslab-light-archive/paper-texture.png");
  background-size: 620px auto;
  border: 1px solid #d7ccba;
}

.ml-article-opening .gentlestyle-single-figure {
  padding: 34px 30px 28px 34px;
  border-radius: 18px 3px 3px 8px;
  box-shadow: inset -18px 0 24px rgba(75, 58, 35, 0.05);
}

.ml-article-opening .gentlestyle-single-figure__image {
  width: 100%;
  height: 310px;
  max-width: none;
  object-fit: contain;
  background: #ebe5d9;
  border: 0;
  box-shadow: none;
}

.ml-article-opening figcaption {
  margin-top: 16px;
  color: var(--ml-library-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  text-align: center;
}

.ml-article-opening .gentlestyle-single-header {
  position: relative;
  padding: 54px 44px 34px 38px;
  display: flex;
  flex-direction: column;
  border-radius: 3px 18px 8px 3px;
  box-shadow: inset 18px 0 24px rgba(75, 58, 35, 0.05);
}

.ml-article-opening .gentlestyle-single-kicker {
  margin: 0 0 22px;
  color: var(--ml-library-oxblood);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

.ml-article-opening .gentlestyle-single-header h1 {
  margin: 0 0 28px;
  color: var(--ml-library-ink);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0;
}

.ml-article-opening .gentlestyle-single-dates {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ml-library-muted);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.ml-article-opening__reading {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--ml-library-line);
  color: var(--ml-library-green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.ml-article-opening__bookmark {
  bottom: -28px;
  left: calc(46% - 11px);
  width: 22px;
  height: 46px;
}

.gentlestyle-reading-copy {
  max-width: 780px;
  margin: 0 auto;
}

.gentlestyle-reading-copy > .absolute {
  display: none;
}

.gentlestyle-reading-copy > .sm\:pl-6 {
  padding-left: 0;
}

.gentlestyle-content {
  font-size: 16px;
  line-height: 2;
}

.gentlestyle-content h2 {
  margin-top: 64px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid var(--ml-library-green);
  color: var(--ml-library-ink);
  font-size: 27px;
  letter-spacing: 0;
}

.gentlestyle-content h3 {
  margin-top: 44px;
  padding-left: 16px;
  border-left: 4px solid var(--ml-library-brass);
  color: var(--ml-library-ink);
  font-size: 21px;
  letter-spacing: 0;
}

.gentlestyle-content img {
  border: 0;
  box-shadow: 0 12px 24px rgba(51, 39, 24, 0.14);
}

.gentlestyle-content table {
  font-family: system-ui, -apple-system, sans-serif;
}

.gentlestyle-sidebar-panel {
  border: 0;
  border-top: 4px solid var(--ml-library-green);
  border-bottom: 8px solid var(--ml-library-walnut);
  border-radius: 0;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: 0 10px 20px rgba(51, 39, 24, 0.1);
}

.gentlestyle-sidebar-subscribe {
  border-width: 1px;
  border-color: rgba(180, 138, 69, 0.5);
  background: var(--ml-library-green-deep);
}

.gentlestyle-conversion-panel {
  border: 0;
  border-top: 3px solid var(--ml-library-green);
  border-bottom: 10px solid var(--ml-library-walnut);
  border-radius: 0;
  background: #fffdf7;
}

/* Footer */
.gentlestyle-library-footer,
footer.bg-\[\#1A1A18\] {
  background: #081d17 !important;
}

@media (max-width: 1180px) {
  .gentlestyle-main-nav {
    gap: 13px;
  }

  .gentlestyle-main-nav__link {
    font-size: 11px;
  }

  .gentlestyle-main-nav__link .gentlestyle-numeric {
    display: none;
  }

  .ml-library-stage {
    min-height: 760px;
  }

  .ml-spine-shelf {
    grid-template-columns: minmax(0, 1fr) 610px minmax(0, 1fr);
  }

  .ml-spine {
    width: 43px;
    min-width: 39px;
  }

  .ml-spine.is-selected {
    width: 54px;
  }

  .ml-open-book {
    width: 650px;
    height: 400px;
  }

  .ml-open-book__page--visual {
    padding: 27px 29px 24px 32px;
  }

  .ml-open-book figure {
    height: 280px;
  }

  .ml-open-book__page--copy {
    padding: 34px 35px 29px 31px;
  }

  .ml-open-book__page--copy h2 {
    font-size: 23px;
  }

  .ml-volume-rail {
    grid-auto-columns: 175px;
  }
}

@media (max-width: 960px) {
  .gentlestyle-main-nav {
    display: none !important;
  }

  .gentlestyle-menu-button {
    width: 46px;
    height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
  }

  .ml-library-stage__heading {
    top: 38px;
    left: 30px;
    width: 260px;
  }

  .ml-library-stage__heading h1 {
    margin-bottom: 13px;
  }

  .ml-library-stage__heading strong {
    font-size: 32px;
    line-height: 1.35;
  }

  .ml-spine-shelf {
    padding-right: 16px;
    padding-left: 16px;
    grid-template-columns: minmax(0, 1fr) 540px minmax(0, 1fr);
  }

  .ml-spine-shelf__group .ml-spine:nth-child(n+5) {
    display: none;
  }

  .ml-stage-categories {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ml-stage-categories a {
    flex: 0 0 155px;
    white-space: nowrap;
  }

  .ml-category-aisle {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 30px;
  }

  .ml-category-aisle__books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ml-category-aisle__books .ml-shelf-volume:nth-child(n+4) {
    display: none;
  }

  .gentlestyle-listing-page > .flex,
  .gentlestyle-category-page__layout,
  .gentlestyle-single-page > .flex {
    gap: 48px;
  }

  .ml-article-opening {
    grid-template-columns: 42% 58%;
  }

  .ml-article-opening::before {
    left: 42%;
  }

  .ml-article-opening .gentlestyle-single-header {
    padding: 42px 32px 30px;
  }

  .ml-article-opening .gentlestyle-single-header h1 {
    font-size: 28px;
  }

  .ml-article-opening__bookmark {
    left: calc(42% - 11px);
  }
}

@media (max-width: 780px) {
  .gentlestyle-book-header {
    height: 66px;
    min-height: 66px;
    padding: 0 18px;
  }

  .gentlestyle-site-header__inner {
    gap: 16px;
  }

  .gentlestyle-book-header__brand {
    flex-basis: 205px;
    width: 205px;
  }

  .gentlestyle-header-search-panel {
    top: 66px;
  }

  .gentlestyle-mobile-category-strip {
    height: 46px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    border-color: rgba(180, 138, 69, 0.42);
    background: var(--ml-library-green-deep);
  }

  .gentlestyle-mobile-category-strip__link,
  .gentlestyle-mobile-category-strip__link:nth-child(n + 4) {
    flex: 0 0 142px;
    height: 46px;
    padding: 0 13px;
    border-right-color: rgba(244, 240, 231, 0.16);
    border-bottom: 0;
    color: var(--ml-library-ivory);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 11px;
    scroll-snap-align: start;
  }

  .gentlestyle-mobile-category-strip__link[aria-current="page"] {
    color: #f0ca7d;
    box-shadow: inset 0 -3px var(--ml-library-brass);
  }

  .gentlestyle-mobile-category-strip__link .gentlestyle-numeric {
    color: #cfc7b9;
  }

  .gentlestyle-mobile-menu {
    top: 112px;
  }

  .ml-library-width {
    width: calc(100% - 32px);
  }

  .ml-library-stage {
    min-height: 1320px;
    padding-bottom: 62px;
    overflow: hidden;
    background: var(--ml-library-green-deep);
  }

  .ml-library-stage__scene {
    height: 500px;
    object-position: center top;
  }

  .ml-library-stage__veil {
    height: 500px;
    background: rgba(4, 17, 13, 0.25);
    box-shadow: inset 0 -190px 120px rgba(4, 17, 13, 0.62);
  }

  .ml-library-stage__heading {
    top: 48px;
    left: 24px;
    width: 270px;
  }

  .ml-library-stage__heading p {
    font-size: 9px;
  }

  .ml-library-stage__heading h1 {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .ml-library-stage__heading strong {
    font-size: 34px;
    line-height: 1.42;
  }

  .ml-library-browser {
    inset: 0 0 62px;
  }

  .ml-spine-shelf,
  .ml-library-stage.is-preview-closed .ml-spine-shelf {
    top: 190px;
    right: 0;
    bottom: auto;
    left: 0;
    min-height: 260px;
    height: 260px;
    padding: 0 18px 32px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .ml-spine-shelf::before {
    position: absolute;
    top: auto;
    bottom: 0;
    height: 31px;
    border-top-width: 3px;
    border-bottom-width: 5px;
  }

  .ml-spine-shelf__group {
    flex: 0 0 auto;
    gap: 3px;
  }

  .ml-spine-shelf__group--left,
  .ml-spine-shelf__group--right {
    justify-content: flex-start;
  }

  .ml-spine-shelf__group .ml-spine:nth-child(n+5) {
    display: flex;
  }

  .ml-spine {
    width: 47px;
    min-width: 47px;
    max-height: 218px;
    scroll-snap-align: center;
  }

  .ml-spine.is-selected {
    width: 66px;
    min-width: 66px;
    transform: translateY(-18px);
  }

  .ml-open-book {
    top: 475px;
    bottom: auto;
    left: 16px;
    width: calc(100% - 32px);
    height: 680px;
    grid-template-columns: 1fr;
    grid-template-rows: 300px 380px;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
    transform: none;
  }

  .ml-open-book::before {
    top: 300px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    height: 1px;
    box-shadow: 0 -7px 12px rgba(0, 0, 0, 0.06), 0 7px 12px rgba(255, 255, 255, 0.58);
  }

  .ml-open-book__page--visual {
    padding: 23px 24px 20px;
    border-radius: 16px 16px 3px 3px;
    box-shadow: inset 0 -18px 24px rgba(75, 58, 35, 0.05);
  }

  .ml-open-book__classification {
    margin-bottom: 10px;
  }

  .ml-open-book figure {
    height: 220px;
  }

  .ml-open-book__stamp {
    right: 19px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }

  .ml-open-book__page--copy {
    padding: 29px 29px 26px;
    border-radius: 3px 3px 12px 12px;
    box-shadow: inset 0 18px 24px rgba(75, 58, 35, 0.05);
  }

  .ml-open-book__meta {
    margin-bottom: 17px;
  }

  .ml-open-book__page--copy h2 {
    margin-bottom: 14px;
    font-size: 23px;
    line-height: 1.5;
  }

  .ml-open-book__page--copy > p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ml-open-book__read {
    margin-top: 12px;
    font-size: 16px;
  }

  .ml-open-book__close {
    top: 14px;
    right: 14px;
  }

  .ml-open-book__bookmark {
    left: calc(50% - 11px);
    width: 22px;
    height: 46px;
  }

  .ml-open-book__page-sweep {
    top: 300px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    transform-origin: center top;
  }

  .ml-library-stage.is-preview-closed .ml-open-book {
    transform: translateY(44px) scale(0.9);
  }

  .ml-library-controls {
    top: 429px;
    right: 17px;
    bottom: auto;
    left: 17px;
  }

  .ml-library-controls button {
    width: 44px;
    height: 44px;
  }

  .ml-library-controls > span,
  .ml-library-stage.is-preview-closed .ml-library-controls > span {
    padding: 6px 10px;
    color: #f4f0e7;
    background: rgba(8, 29, 23, 0.74);
    opacity: 1;
  }

  .ml-stage-categories {
    min-height: 62px;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ml-stage-categories a {
    flex: 0 0 150px;
    min-width: 150px;
    padding: 0 18px;
    scroll-snap-align: start;
  }

  .ml-new-arrivals {
    padding: 54px 0 60px;
  }

  .ml-section-heading {
    margin-bottom: 28px;
  }

  .ml-section-heading h2 {
    font-size: 25px;
  }

  .ml-volume-rail {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 18px;
    padding-left: 18px;
    grid-auto-columns: 190px;
    gap: 24px;
  }

  .ml-category-library {
    padding: 62px 0 76px;
  }

  .ml-category-aisle {
    padding: 34px 0 28px;
    display: block;
  }

  .ml-category-aisle__sign {
    padding: 0 0 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 18px;
  }

  .ml-category-aisle__sign p,
  .ml-category-aisle__sign h3 {
    grid-column: 1;
  }

  .ml-category-aisle__sign a {
    min-height: 44px;
    margin: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .ml-category-aisle__books {
    margin-right: -16px;
    padding-right: 18px;
    padding-left: 6px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 170px;
    grid-template-columns: none;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ml-category-aisle__books .ml-shelf-volume:nth-child(n+4) {
    display: block;
  }

  .ml-shelf-volume {
    scroll-snap-align: start;
  }

  .gentlestyle-subpage-section {
    padding: 30px 16px 76px;
  }

  .gentlestyle-category-page__layout {
    gap: 48px;
  }

  .gentlestyle-category-hero {
    min-height: 0;
    padding: 32px 26px 120px;
  }

  .gentlestyle-category-hero__copy h1 {
    font-size: 30px;
  }

  .gentlestyle-category-hero__image {
    top: auto;
    right: 22px;
    bottom: 18px;
    width: 86px;
    height: 86px;
  }

  .gentlestyle-category-hero__image img {
    width: 82px;
    height: 82px;
  }

  .gentlestyle-category-filter {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gentlestyle-category-filter a {
    flex: 0 0 148px;
    scroll-snap-align: start;
  }

  .ml-catalog-volume__link {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 14px 8px 34px;
  }

  .ml-catalog-volume__object {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .ml-catalog-volume__cover::before {
    display: none;
  }

  .ml-catalog-volume__cover img {
    top: 16px;
    right: 14px;
    width: calc(100% - 44px);
  }

  .ml-catalog-volume__title {
    font-size: 20px;
  }

  .ml-catalog-volume__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ml-catalog-volume__meta {
    margin-bottom: 12px;
    display: flex;
  }

  .ml-catalog-volume__footer {
    display: flex;
  }

  .ml-article-opening {
    min-height: 0;
    grid-template-columns: 1fr;
    filter: drop-shadow(0 12px 18px rgba(51, 39, 24, 0.15));
  }

  .ml-article-opening::before {
    top: 300px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    height: 1px;
  }

  .ml-article-opening .gentlestyle-single-figure {
    height: 300px;
    padding: 24px;
    border-radius: 14px 14px 3px 3px;
  }

  .ml-article-opening .gentlestyle-single-figure__image {
    height: 230px;
  }

  .ml-article-opening figcaption {
    margin-top: 10px;
  }

  .ml-article-opening .gentlestyle-single-header {
    min-height: 350px;
    padding: 34px 28px 29px;
    border-radius: 3px 3px 10px 10px;
  }

  .ml-article-opening .gentlestyle-single-header h1 {
    font-size: 27px;
    line-height: 1.52;
  }

  .ml-article-opening__bookmark {
    left: calc(50% - 11px);
  }

  .gentlestyle-content {
    font-size: 15px;
    line-height: 1.95;
  }

  .gentlestyle-content h2 {
    margin-top: 52px;
    font-size: 23px;
  }

  .gentlestyle-content h3 {
    margin-top: 38px;
    font-size: 19px;
  }
}

@media (max-width: 460px) {
  .gentlestyle-book-header__brand {
    flex-basis: 184px;
    width: 184px;
  }

  .ml-library-stage {
    min-height: 1290px;
  }

  .ml-library-stage__heading strong {
    font-size: 31px;
  }

  .ml-open-book {
    height: 650px;
    grid-template-rows: 285px 365px;
  }

  .ml-open-book::before,
  .ml-open-book__page-sweep {
    top: 285px;
  }

  .ml-open-book figure {
    height: 206px;
  }

  .ml-open-book__page--copy h2 {
    font-size: 21px;
  }

  .ml-open-book__page--copy {
    padding: 26px 24px 23px;
  }

  .ml-stage-categories a {
    flex-basis: 142px;
    min-width: 142px;
  }

  .ml-section-heading__count {
    display: none;
  }

  .ml-category-aisle__sign a {
    gap: 10px;
  }

  .ml-catalog-volume__link {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ml-catalog-volume__object {
    width: 100%;
    height: auto;
  }

  .ml-catalog-volume__title {
    font-size: 19px;
  }
}

@media (min-width: 781px) and (max-height: 820px) {
  .ml-library-stage {
    height: 620px;
    min-height: 620px;
  }

  .ml-library-stage__heading {
    top: 26px;
    width: 245px;
  }

  .ml-library-stage__heading h1 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .ml-library-stage__heading strong {
    font-size: 30px;
    line-height: 1.32;
  }

  .ml-open-book {
    width: min(650px, calc(100% - 170px));
    height: 340px;
  }

  .ml-open-book__page--visual {
    padding: 22px 26px 20px 29px;
  }

  .ml-open-book figure {
    height: 230px;
  }

  .ml-open-book__page--copy {
    padding: 28px 31px 25px 28px;
  }

  .ml-open-book__meta {
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .ml-open-book__page--copy h2 {
    margin-bottom: 11px;
    font-size: 22px;
    line-height: 1.45;
  }

  .ml-open-book__page--copy > p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ml-open-book__read {
    min-height: 38px;
    margin-top: 9px;
    font-size: 15px;
  }

  .ml-library-controls {
    bottom: 150px;
  }

  .ml-new-arrivals {
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-spine,
  .ml-open-book,
  .ml-new-volume__book,
  .ml-shelf-volume__cover,
  .ml-catalog-volume__object {
    transition: none;
  }

  .ml-open-book.is-turning .ml-open-book__page-sweep {
    animation: none;
  }
}
