/* MEN'S LAB 5.0 - generated-material library experience */
:root {
  --ml-ink: #17231d;
  --ml-forest: #123125;
  --ml-forest-deep: #071d16;
  --ml-oxblood: #772b2f;
  --ml-brass: #b58b45;
  --ml-brass-light: #d7bb7b;
  --ml-paper: #f5efe3;
  --ml-paper-light: #fffaf0;
  --ml-walnut: #56341f;
  --ml-muted: #6f685e;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #eee5d7;
}

.ml-library-site,
.ml-reader-site {
  background: #eee5d7;
  color: var(--ml-ink);
}

.ml-library-shell,
.ml-reader-shell {
  width: 100%;
  max-width: none !important;
  margin: 0;
  background: #f3ecdf;
  box-shadow: none !important;
}

/* Header */
.gentlestyle-site-header {
  position: relative;
  z-index: 100;
  min-height: 86px;
  padding: 0 32px !important;
  border-bottom: 1px solid rgba(76, 50, 29, 0.2);
  background-color: rgba(250, 246, 237, 0.97) !important;
  background-image: url('./assets/menslab-light-archive/paper-texture.webp');
  background-size: 620px auto;
  box-shadow: 0 8px 28px rgba(31, 23, 15, 0.08);
}

.gentlestyle-site-header__inner {
  width: min(100%, 1440px);
  max-width: 1440px !important;
  min-height: 86px;
  margin: 0 auto;
  align-items: center !important;
}

.gentlestyle-logo-lockup {
  width: clamp(220px, 15vw, 270px) !important;
  height: auto !important;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.gentlestyle-main-nav {
  align-items: stretch;
  gap: 2px !important;
  margin: 0 !important;
}

.gentlestyle-main-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 0 !important;
  background: transparent !important;
  color: #332a23 !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.gentlestyle-main-nav__link::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  background: var(--ml-oxblood);
  content: '';
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gentlestyle-main-nav__link:hover::after,
.gentlestyle-main-nav__link[aria-current='page']::after {
  opacity: 1;
  transform: scaleX(1);
}

.gentlestyle-main-nav__link[aria-current='page'] {
  color: var(--ml-oxblood) !important;
}

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

.gentlestyle-header-tools {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(68, 47, 31, 0.2);
}

/* Generated-material home hero */
.ml-premium-stage {
  position: relative;
  width: 100%;
  height: clamp(760px, calc(100svh - 130px), 820px) !important;
  min-height: 760px !important;
  overflow: clip;
  background: #2c2119;
  isolation: isolate;
}

.ml-premium-stage .ml-library-stage__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.02);
  transform: none;
}

.ml-premium-stage .ml-library-stage__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 18, 13, 0.76) 0%, rgba(8, 18, 14, 0.27) 19%, transparent 40%, transparent 76%, rgba(8, 18, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(11, 13, 10, 0.08) 45%, rgba(5, 14, 10, 0.64) 100%);
  pointer-events: none;
}

.ml-premium-stage__intro {
  position: absolute !important;
  top: clamp(38px, 6vh, 72px) !important;
  left: max(32px, calc((100% - 1440px) / 2 + 8px)) !important;
  z-index: 7 !important;
  width: 300px !important;
  color: #fff8ea !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.ml-premium-stage__intro p {
  margin: 0 0 12px;
  color: var(--ml-brass-light) !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.16em !important;
}

.ml-premium-stage__intro h1 {
  margin: 0 0 22px;
  color: #fffaf0 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px !important;
  line-height: 1;
  letter-spacing: 0.06em !important;
}

.ml-premium-stage__intro strong {
  display: block;
  margin: 0 0 16px;
  color: #fffaf0 !important;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(34px, 2.5vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

.ml-premium-stage__intro span {
  display: block;
  max-width: 270px;
  color: rgba(255, 249, 237, 0.82);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.ml-premium-reader {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: none;
}

.ml-open-book--material {
  position: absolute !important;
  top: clamp(38px, 5vh, 68px) !important;
  left: 58% !important;
  z-index: 8 !important;
  width: min(58vw, 1040px) !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%);
  pointer-events: auto;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  grid-template-columns: none !important;
}

.ml-open-book__shell,
.ml-open-book__mobile-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(8, 7, 4, 0.36));
  pointer-events: none;
}

.ml-open-book__mobile-shell {
  display: none;
}

.ml-open-book--material .ml-open-book__page {
  position: absolute !important;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ml-open-book--material .ml-open-book__page::before,
.ml-open-book--material .ml-open-book__page::after {
  display: none !important;
}

.ml-open-book--material .ml-open-book__page--visual {
  top: 13.5% !important;
  left: 10.7% !important;
  width: 37.2% !important;
  height: 72% !important;
}

.ml-open-book--material .ml-open-book__classification {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 !important;
  color: #655b4c;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.08em !important;
}

.ml-open-book--material .ml-open-book__page--visual figure {
  position: absolute;
  top: 10%;
  right: 2%;
  left: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(84, 68, 46, 0.2) !important;
  border-radius: 2px;
  background: #eae1d1 !important;
  box-shadow: 0 10px 22px rgba(54, 37, 21, 0.14);
}

.ml-open-book--material .ml-open-book__page--visual figure img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

.ml-open-book__folio {
  position: absolute;
  bottom: 3%;
  left: 0;
  color: #817666;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ml-open-book--material .ml-open-book__page--copy {
  top: 14% !important;
  left: 53.1% !important;
  width: 35.8% !important;
  height: 70% !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.ml-open-book--material .ml-open-book__meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin: 0 0 8% !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid rgba(75, 59, 40, 0.25) !important;
  color: #6a5e4d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.04em !important;
}

.ml-open-book--material .ml-open-book__page--copy h2 {
  display: -webkit-box;
  max-height: 5.1em;
  margin: 0 0 5% !important;
  overflow: hidden;
  color: #1d201c !important;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(20px, 1.55vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

.ml-open-book--material .ml-open-book__page--copy > p {
  display: -webkit-box;
  max-height: 5.4em;
  margin: 0 0 auto !important;
  overflow: hidden;
  color: #5f584d !important;
  font-size: clamp(11px, 0.72vw, 13px) !important;
  font-weight: 500;
  line-height: 1.8 !important;
  letter-spacing: 0 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-open-book--material .ml-open-book__reading {
  display: block;
  margin-top: 14px;
  color: #756b5d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.ml-open-book--material .ml-open-book__read {
  display: flex !important;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(69, 54, 37, 0.6) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1a3529 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

.ml-open-book--material .ml-open-book__read:hover {
  color: var(--ml-oxblood) !important;
}

.ml-open-book__page-sweep {
  position: absolute;
  top: 9%;
  bottom: 10%;
  left: 50%;
  z-index: 6;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 251, 240, 0.72), transparent);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.04);
  transform-origin: left center;
}

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

@keyframes ml-material-page-turn {
  0% { opacity: 0; transform: scaleX(0.03); }
  45% { opacity: 0.78; }
  100% { opacity: 0; transform: scaleX(1); }
}

.ml-premium-reader .ml-library-controls {
  position: absolute !important;
  top: clamp(470px, 61vh, 590px) !important;
  left: 58% !important;
  z-index: 12;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 230, 200, 0.36) !important;
  border-radius: 4px !important;
  background: rgba(8, 29, 21, 0.88) !important;
  color: #fff7e8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  right: auto !important;
  bottom: auto !important;
  grid-template-columns: none !important;
  justify-content: center !important;
}

.ml-premium-reader .ml-library-controls button {
  display: grid;
  width: 34px !important;
  height: 34px !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff8eb !important;
  font-size: 16px;
}

.ml-premium-reader .ml-library-controls button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.ml-premium-reader .ml-library-controls span {
  display: block !important;
  opacity: 1 !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* One generated row, ten semantic hit areas */
.ml-volume-selector {
  position: absolute;
  right: 50%;
  bottom: 50px;
  z-index: 5;
  width: min(68vw, 900px);
  height: clamp(250px, 25vw, 340px);
  overflow: visible;
  transform: translateX(50%);
  pointer-events: auto;
}

.ml-volume-selector__books {
  position: absolute;
  right: 0;
  bottom: -5%;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 12px rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.ml-volume-selector__grid {
  position: absolute;
  right: 3.7%;
  bottom: 7.2%;
  left: 3.9%;
  display: grid;
  height: 73.5%;
  grid-template-columns: 11.55fr 9.72fr 11.2fr 9.08fr 11.2fr 9.23fr 9.93fr 9.86fr 9.15fr 8.38fr;
  align-items: end;
}

.ml-volume-selector__book {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.ml-volume-selector__book::after {
  position: absolute;
  right: 9%;
  bottom: 0;
  left: 9%;
  height: 4px;
  background: var(--ml-brass-light);
  box-shadow: 0 0 14px rgba(220, 186, 111, 0.6);
  content: '';
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ml-volume-selector__book:hover::after,
.ml-volume-selector__book:focus-visible::after,
.ml-volume-selector__book.is-selected::after {
  opacity: 1;
  transform: translateY(0);
}

.ml-volume-selector__book:focus-visible {
  outline: 2px solid #f5d58d;
  outline-offset: 2px;
}

.ml-volume-selector__plate {
  position: absolute;
  top: 31%;
  left: 50%;
  color: #fff1c9;
  font-family: Georgia, serif;
  font-size: clamp(7px, 0.55vw, 10px);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px #3a2514;
  transform: translate(-50%, -50%);
}

.ml-volume-selector__tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  display: block;
  width: 230px;
  padding: 13px 15px;
  border-top: 2px solid var(--ml-brass);
  background: rgba(249, 243, 231, 0.97);
  color: var(--ml-ink);
  box-shadow: 0 14px 32px rgba(8, 7, 4, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ml-volume-selector__tooltip::after {
  position: absolute;
  top: 100%;
  left: calc(50% - 6px);
  border: 6px solid transparent;
  border-top-color: rgba(249, 243, 231, 0.97);
  content: '';
}

.ml-volume-selector__tooltip em {
  display: block;
  margin-bottom: 5px;
  color: var(--ml-oxblood);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ml-volume-selector__tooltip strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ml-ink);
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ml-volume-selector__book:hover .ml-volume-selector__tooltip,
.ml-volume-selector__book:focus-visible .ml-volume-selector__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ml-stage-categories--premium {
  position: absolute !important;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20 !important;
  display: grid !important;
  height: 64px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(213, 181, 115, 0.55) !important;
  background: rgba(6, 30, 22, 0.96) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.ml-stage-categories--premium a {
  display: flex !important;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px !important;
  border: 0 !important;
  border-right: 1px solid rgba(231, 210, 168, 0.17) !important;
  background: transparent !important;
  color: #fff7e9 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0 !important;
}

.ml-stage-categories--premium a:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f4ce7d !important;
}

.ml-stage-categories--premium em {
  color: var(--ml-brass-light) !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-style: normal;
}

/* Generated closed-book component */
.ml-material-volume {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}

.ml-material-volume__shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 16px rgba(42, 27, 17, 0.24));
  pointer-events: none;
}

.ml-material-volume__art {
  position: absolute;
  top: 27.5%;
  right: 18%;
  left: 27.5%;
  z-index: 2;
  display: block;
  height: 20.5%;
  overflow: hidden;
  border: 1px solid rgba(61, 49, 35, 0.18);
  border-radius: 1px;
  background: #e8dfcf;
}

.ml-material-volume__art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.ml-material-volume__plate {
  position: absolute;
  top: 14.8%;
  left: 49.5%;
  z-index: 3;
  width: 20%;
  overflow: hidden;
  color: #4c3a24;
  font-family: Georgia, serif;
  font-size: clamp(7px, 0.58vw, 10px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px rgba(255, 247, 220, 0.7);
  white-space: nowrap;
  transform: translateX(-50%);
}

.ml-material-volume__title {
  position: absolute;
  top: 52%;
  right: 19%;
  left: 29%;
  z-index: 3;
  display: -webkit-box;
  overflow: hidden;
  color: #243028;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(10px, 0.78vw, 14px);
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ml-new-arrivals {
  padding-top: 42px !important;
  padding-bottom: 90px !important;
  background-color: #f2eadc !important;
  background-image: url('./assets/menslab-light-archive/paper-texture.webp');
  background-size: 720px auto;
}

.ml-new-arrivals .ml-section-heading h2,
.ml-new-arrivals .ml-section-heading a {
  color: var(--ml-ink) !important;
}

.ml-new-arrivals .ml-section-heading p {
  color: var(--ml-oxblood) !important;
}

.ml-volume-rail {
  gap: clamp(20px, 2.5vw, 42px) !important;
  align-items: start;
  padding: 20px 8px 34px !important;
}

.ml-new-volume {
  width: clamp(180px, 15vw, 230px) !important;
  min-width: clamp(180px, 15vw, 230px) !important;
}

.ml-new-volume:hover .ml-material-volume__shell,
.ml-shelf-volume:hover .ml-material-volume__shell,
.ml-catalog-volume__link:hover .ml-material-volume__shell {
  filter: drop-shadow(0 24px 19px rgba(42, 27, 17, 0.32));
  transform: translateY(-7px);
}

.ml-material-volume__shell {
  transition: filter 200ms ease, transform 200ms ease;
}

.ml-new-volume__copy {
  display: block !important;
  padding: 12px 8px 0 22% !important;
}

.ml-new-volume__copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #222a25 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ml-new-volume__copy span {
  display: block;
  margin-top: 5px;
  color: #766d61 !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px !important;
}

.ml-category-library {
  background: #173125 !important;
  color: #f7efe0;
}

.ml-category-aisle {
  border-color: rgba(220, 190, 130, 0.24) !important;
  background: rgba(6, 22, 16, 0.24) !important;
}

.ml-category-aisle__sign h3,
.ml-category-aisle__sign a,
.ml-category-library .ml-section-heading h2 {
  color: #fff6e6 !important;
}

.ml-category-aisle__sign p,
.ml-category-library .ml-section-heading p,
.ml-category-library .ml-section-heading__count {
  color: var(--ml-brass-light) !important;
}

.ml-shelf-volume {
  width: min(100%, 190px) !important;
}

.ml-shelf-volume > strong {
  color: #fff7e9 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

/* Catalog and category pages */
.ml-catalog-volume {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ml-catalog-volume__link {
  display: grid !important;
  min-height: 310px;
  grid-template-columns: minmax(360px, 48%) minmax(0, 1fr);
  gap: clamp(28px, 3.2vw, 44px);
  align-items: center;
  padding: 24px 0 40px !important;
  border-bottom: 1px solid rgba(75, 56, 38, 0.2);
}

.ml-catalog-volume__object {
  width: 100% !important;
  max-width: 520px;
  margin: 0 auto;
}

.ml-catalog-volume__object--thumbnail {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: center;
  overflow: visible;
  background: #e8decb;
  box-shadow: 0 18px 28px rgba(38, 26, 14, 0.18);
  transform: perspective(1000px) rotateY(0.8deg);
}

.ml-catalog-volume__object--thumbnail .ml-catalog-volume__spine {
  top: -4px;
  bottom: -4px;
  left: -17px;
  z-index: 2;
  width: 18px;
  box-shadow: inset -2px 0 rgba(228, 195, 125, 0.22), 4px 5px 8px rgba(35, 23, 12, 0.18);
}

.ml-catalog-volume__object--thumbnail .ml-catalog-volume__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  background: #d9d1c1;
  box-shadow: inset 0 0 0 1px rgba(50, 35, 20, 0.22);
}

.ml-catalog-volume__object--thumbnail .ml-catalog-volume__cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border: 0;
  box-shadow: none;
  transform: none;
}

.ml-catalog-volume__object--thumbnail .ml-catalog-volume__cover::before,
.ml-catalog-volume__object--thumbnail .ml-catalog-volume__cover::after {
  display: none;
}

.ml-catalog-volume__plate {
  position: absolute;
  right: 12px;
  bottom: 11px;
  z-index: 3;
  min-height: 25px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(225, 190, 116, 0.55);
  background: rgba(7, 34, 25, 0.9);
  color: #f4ddb0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.ml-catalog-volume__record {
  padding: 0 !important;
}

.ml-catalog-volume__title {
  font-size: clamp(22px, 1.75vw, 28px) !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  overflow-wrap: normal;
  word-break: auto-phrase;
}

.ml-catalog-volume__excerpt {
  font-size: 14px !important;
  line-height: 2 !important;
}

/* Article: library desk to reading folio */
.ml-reader-site {
  background: #e9dfd0;
}

.ml-reader-article {
  padding: 0 !important;
  background: #eee5d7 !important;
}

.ml-article-masthead {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #3d2c20;
  isolation: isolate;
}

.ml-article-masthead__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ml-article-masthead__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 18, 13, 0.1), rgba(9, 18, 14, 0.5) 56%, rgba(7, 16, 12, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.42));
}

.ml-article-masthead__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1360px);
  margin: 0 auto;
  padding: 36px 0 48px;
}

.ml-article-masthead__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 28px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(255, 246, 228, 0.34) !important;
  color: #fff5e4 !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ml-article-masthead__breadcrumb a,
.ml-article-masthead__breadcrumb span,
.ml-article-masthead__breadcrumb b {
  color: inherit !important;
}

.ml-article-opening--material {
  display: grid !important;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr) !important;
  gap: clamp(52px, 7vw, 110px) !important;
  align-items: center !important;
  padding: 0 clamp(20px, 4vw, 64px) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ml-article-opening--material::before,
.ml-article-opening--material::after {
  display: none !important;
}

.ml-article-volume {
  position: relative !important;
  width: min(100%, 340px) !important;
  aspect-ratio: 2 / 3 !important;
  margin: 0 auto !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ml-article-volume__shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.45));
}

.ml-article-volume__art {
  position: absolute;
  top: 27.5%;
  right: 18%;
  left: 27.5%;
  display: block;
  height: 20.5%;
  overflow: hidden;
  border: 1px solid rgba(60, 46, 30, 0.22);
  background: #e8decf;
}

.ml-article-volume__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ml-article-volume__title {
  position: absolute;
  top: 52%;
  right: 19%;
  left: 29%;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  color: #243028;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.ml-article-volume__plate {
  position: absolute;
  top: 14.8%;
  left: 49.5%;
  z-index: 2;
  width: 20%;
  color: #49351f;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

.ml-article-volume figcaption {
  position: absolute !important;
  right: 18%;
  bottom: 8%;
  left: 27%;
  z-index: 2;
  padding: 0 !important;
  color: #534b40 !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 8px !important;
  font-weight: 800;
  letter-spacing: 0.1em !important;
  text-align: center;
}

.ml-article-opening--material .gentlestyle-single-header {
  position: relative;
  align-self: center;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff7e8;
  box-shadow: none !important;
}

.ml-article-opening--material .gentlestyle-single-kicker {
  color: var(--ml-brass-light) !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.1em !important;
}

.ml-article-opening--material .gentlestyle-single-header h1 {
  max-width: 820px;
  margin: 18px 0 26px !important;
  color: #fffaf0 !important;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(34px, 3.4vw, 58px) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  overflow-wrap: normal;
  word-break: auto-phrase;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.42);
}

.ml-article-opening--material.is-title-long .gentlestyle-single-header h1 {
  font-size: clamp(30px, 2.8vw, 48px) !important;
  line-height: 1.48 !important;
}

.ml-article-opening--material .gentlestyle-single-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255, 247, 232, 0.78) !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px !important;
}

.ml-article-opening--material .gentlestyle-single-dates a,
.ml-article-opening--material .gentlestyle-single-dates time {
  color: inherit !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ml-article-opening--material .ml-article-opening__reading {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 24px;
  padding: 0 14px;
  border: 1px solid rgba(239, 207, 145, 0.45);
  color: #f2d493;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  width: fit-content !important;
  max-width: max-content !important;
  align-self: flex-start;
}

.ml-reader-layout {
  display: grid !important;
  width: min(100% - 48px, 1280px);
  grid-template-columns: minmax(0, 860px) minmax(260px, 320px);
  gap: clamp(42px, 6vw, 86px) !important;
  align-items: start;
  margin: 0 auto;
  padding: 76px 0 110px;
}

.ml-reader-main {
  width: auto !important;
  min-width: 0;
}

.ml-reader-paper {
  position: relative;
  margin-top: 30px;
  padding: clamp(40px, 6vw, 74px) !important;
  border: 1px solid rgba(104, 81, 52, 0.23);
  border-top: 4px solid var(--ml-forest);
  background-color: #faf4e8;
  background-image: url('./assets/menslab-light-archive/paper-texture.webp');
  background-size: 680px auto;
  box-shadow: 0 28px 50px rgba(62, 43, 25, 0.12);
}

.ml-reader-paper__rule {
  position: absolute;
  top: 52px;
  bottom: 52px;
  left: 34px;
  width: 1px;
  background: rgba(126, 43, 46, 0.23);
}

.ml-reader-paper > .sm\:pl-6 {
  padding-left: 0 !important;
}

.ml-reader-paper > .sm\:pl-6 > p:first-child {
  color: #312d27;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 2.1 !important;
  letter-spacing: 0 !important;
}

.ml-reader-paper .gentlestyle-content {
  font-size: 16px;
  line-height: 2.1;
}

.ml-reader-paper .gentlestyle-content h2 {
  margin-top: 2.8em;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--ml-forest) !important;
  background: transparent !important;
  color: #1e2922 !important;
  font-size: clamp(24px, 2.4vw, 30px) !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.ml-reader-paper .gentlestyle-content h3 {
  margin-top: 2.2em;
  padding-left: 16px;
  border-left: 4px solid var(--ml-oxblood);
  color: #242923;
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: 0;
}

.ml-reader-paper .gentlestyle-content img {
  max-width: 100%;
  height: auto;
}

.ml-reader-layout > aside {
  position: sticky;
  top: 24px;
  width: auto !important;
  min-width: 0;
}

.ml-reader-main .gentlestyle-disclosure,
.ml-reader-main .gentlestyle-financial-notice {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ml-reader-main article.bg-\[\#FCFBF8\] {
  border: 0 !important;
  border-top: 2px solid var(--ml-brass) !important;
  background: rgba(255, 250, 240, 0.7) !important;
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 1380px) {
  .ml-premium-stage__intro {
    left: 28px !important;
    width: 230px !important;
  }

  .ml-premium-stage__intro strong {
    font-size: 34px !important;
  }

  .ml-open-book--material {
    left: 61% !important;
    width: min(64vw, 900px) !important;
  }

  .ml-premium-reader .ml-library-controls {
    left: 61% !important;
  }
}

@media (max-width: 1024px) {
  .gentlestyle-site-header {
    padding: 0 20px !important;
  }

  .gentlestyle-main-nav__link {
    padding: 0 8px;
    font-size: 10px !important;
  }

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

  .ml-premium-stage {
    min-height: 900px !important;
  }

  .ml-premium-stage__intro {
    top: 26px !important;
    left: 24px !important;
  }

  .ml-premium-stage__intro span {
    display: none;
  }

  .ml-open-book--material {
    top: 128px !important;
    left: 50% !important;
    width: min(92vw, 850px) !important;
  }

  .ml-premium-reader .ml-library-controls {
    top: 620px !important;
    left: 50% !important;
  }

  .ml-volume-selector {
    bottom: 46px;
    width: min(92vw, 900px);
  }

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

  .ml-reader-layout > aside {
    position: static;
  }
}

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

  .gentlestyle-site-header__inner {
    min-height: 66px;
  }

  .gentlestyle-logo-lockup {
    width: 188px !important;
    max-height: 48px;
  }

  .ml-premium-stage {
    min-height: 980px !important;
  }

  .ml-premium-stage .ml-library-stage__scene {
    object-position: 47% center;
  }

  .ml-premium-stage .ml-library-stage__veil {
    background:
      linear-gradient(180deg, rgba(4, 18, 13, 0.74) 0%, rgba(4, 18, 13, 0.18) 31%, rgba(4, 18, 13, 0.34) 66%, rgba(4, 18, 13, 0.8) 100%);
  }

  .ml-premium-stage__intro {
    top: 24px !important;
    left: 20px !important;
    width: calc(100% - 40px) !important;
    text-align: center;
  }

  .ml-premium-stage__intro p {
    margin-bottom: 7px;
    font-size: 8px !important;
  }

  .ml-premium-stage__intro h1 {
    margin-bottom: 10px;
    font-size: 20px !important;
  }

  .ml-premium-stage__intro strong {
    font-size: 27px !important;
    line-height: 1.45 !important;
  }

  .ml-open-book--material {
    top: 165px !important;
    left: 50% !important;
    width: min(90vw, 350px) !important;
    aspect-ratio: 2 / 3;
  }

  .ml-open-book__shell {
    display: none;
  }

  .ml-open-book__mobile-shell {
    display: block;
    filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.42));
  }

  .ml-open-book--material .ml-open-book__page--visual {
    top: 27.5% !important;
    left: 27.5% !important;
    width: 54.5% !important;
    height: 20.5% !important;
  }

  .ml-open-book--material .ml-open-book__classification {
    top: -23%;
    left: 22%;
    width: 56%;
    overflow: hidden;
    color: #4d3c28;
    font-size: 7px !important;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ml-open-book--material .ml-open-book__page--visual figure {
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
  }

  .ml-open-book__folio {
    display: none;
  }

  .ml-open-book--material .ml-open-book__page--copy {
    top: 51% !important;
    left: 29% !important;
    width: 52% !important;
    height: 36% !important;
  }

  .ml-open-book--material .ml-open-book__meta {
    min-height: 20px;
    margin-bottom: 8px !important;
    padding-bottom: 5px !important;
    font-size: 7px !important;
  }

  .ml-open-book--material .ml-open-book__page--copy h2 {
    max-height: 4.8em;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: 3;
  }

  .ml-open-book--material .ml-open-book__page--copy > p,
  .ml-open-book--material .ml-open-book__reading {
    display: none;
  }

  .ml-open-book--material .ml-open-book__read {
    min-height: 34px;
    margin-top: auto !important;
    font-size: 10px !important;
  }

  .ml-premium-reader .ml-library-controls {
    top: 666px !important;
    left: 50% !important;
  }

  .ml-volume-selector {
    right: auto;
    bottom: 62px;
    left: 0;
    width: 100%;
    height: 210px;
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .ml-volume-selector::-webkit-scrollbar {
    display: none;
  }

  .ml-volume-selector::after {
    display: block;
    width: 720px;
    height: 1px;
    content: '';
  }

  .ml-volume-selector__books {
    right: auto;
    bottom: -5px;
    left: 12px;
    width: 720px;
  }

  .ml-volume-selector__grid {
    right: auto;
    bottom: 12px;
    left: 40px;
    width: 666px;
    height: 157px;
  }

  .ml-volume-selector__book {
    scroll-snap-align: center;
  }

  .ml-volume-selector__tooltip {
    display: none;
  }

  .ml-volume-selector__plate {
    font-size: 7px;
  }

  .ml-stage-categories--premium {
    height: 54px;
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    scrollbar-width: none;
  }

  .ml-stage-categories--premium::-webkit-scrollbar {
    display: none;
  }

  .ml-stage-categories--premium a {
    font-size: 10px !important;
  }

  .ml-new-arrivals {
    padding: 52px 0 70px !important;
  }

  .ml-volume-rail {
    gap: 16px !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .ml-new-volume {
    width: 196px !important;
    min-width: 196px !important;
  }

  .ml-material-volume__title {
    font-size: 11px;
  }

  .ml-catalog-volume__link {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0 46px !important;
  }

  .ml-catalog-volume__object--thumbnail {
    width: min(calc(100% - 20px), 420px) !important;
    max-width: 420px;
  }

  .ml-catalog-volume__title {
    font-size: 21px !important;
    line-height: 1.6 !important;
  }

  .ml-catalog-volume__subtitle {
    display: block;
  }

  .ml-catalog-volume__excerpt {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.9 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ml-article-masthead {
    min-height: 620px;
  }

  .ml-article-masthead__scene {
    object-position: 38% center;
  }

  .ml-article-masthead__veil {
    background: linear-gradient(180deg, rgba(6, 17, 12, 0.34), rgba(5, 16, 11, 0.84));
  }

  .ml-article-masthead__inner {
    width: min(100% - 32px, 560px);
    padding-top: 24px;
  }

  .ml-article-masthead__breadcrumb {
    font-size: 8px;
  }

  .ml-article-opening--material {
    grid-template-columns: 138px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: center !important;
    padding: 26px 0 0 !important;
  }

  .ml-article-volume {
    width: 138px !important;
  }

  .ml-article-volume__plate {
    font-size: 7px;
  }

  .ml-article-volume figcaption {
    font-size: 5px !important;
  }

  .ml-article-volume__title {
    display: none;
  }

  .ml-article-opening--material .gentlestyle-single-kicker {
    font-size: 8px !important;
  }

  .ml-article-opening--material .gentlestyle-single-header h1 {
    margin: 10px 0 16px !important;
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.55 !important;
  }

  .ml-article-opening--material .gentlestyle-single-dates {
    gap: 5px 12px;
    font-size: 8px !important;
  }

  .ml-article-opening--material .ml-article-opening__reading {
    min-height: 28px;
    margin-top: 14px;
    font-size: 8px;
  }

  .ml-reader-layout {
    width: min(100% - 24px, 720px);
    padding: 38px 0 70px;
  }

  .ml-reader-paper {
    padding: 34px 24px !important;
  }

  .ml-reader-paper__rule {
    display: none;
  }

  .ml-reader-paper > .sm\:pl-6 > p:first-child,
  .ml-reader-paper .gentlestyle-content {
    font-size: 15px !important;
    line-height: 2 !important;
  }
}

@media (max-width: 420px) {
  .ml-article-opening--material {
    grid-template-columns: 128px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .ml-article-volume {
    width: 128px !important;
  }

  .ml-article-opening--material .gentlestyle-single-header h1 {
    font-size: 22px !important;
  }

  .ml-article-opening--material .gentlestyle-single-editor {
    display: none;
  }

  .ml-catalog-volume__object--thumbnail {
    width: min(calc(100% - 18px), 390px) !important;
    max-width: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-material-volume__shell,
  .ml-volume-selector__tooltip,
  .ml-volume-selector__book::after {
    transition: none !important;
  }

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