/* MEN'S LAB 7.0 - unified private library system */
:root {
  --ml-ink: #1d211d;
  --ml-muted: #666157;
  --ml-paper: #f5efe2;
  --ml-paper-bright: #fffaf0;
  --ml-line: rgba(67, 55, 39, 0.22);
  --ml-green: #12372b;
  --ml-green-deep: #08271f;
  --ml-gold: #b9934a;
  --ml-oxblood: #8a3f3b;
  --ml-walnut: #4a2c19;
  --ml-shadow: 0 18px 38px rgba(31, 22, 13, 0.16);
  --ml-serif: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', Georgia, serif;
  --ml-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--ml-green-deep);
}

body.gentlestyle-body {
  margin: 0;
  overflow-x: clip;
  color: var(--ml-ink);
  background: var(--ml-green-deep);
  font-family: var(--ml-serif);
  text-rendering: optimizeLegibility;
}

.gentlestyle-shell,
.ml-library-shell,
.ml-reader-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  background-color: var(--ml-paper);
  background-image: url('./assets/menslab-light-archive/paper-texture.webp');
  background-size: 760px auto;
  box-shadow: none;
}

.gentlestyle-shell *,
.gentlestyle-shell *::before,
.gentlestyle-shell *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.gentlestyle-shell img {
  max-width: 100%;
}

.gentlestyle-shell .text-\[6px\],
.gentlestyle-shell .text-\[7px\],
.gentlestyle-shell .text-\[8px\],
.gentlestyle-shell .text-\[9px\],
.gentlestyle-shell .text-\[10px\] {
  font-size: 11px;
}

.gentlestyle-shell a {
  color: inherit;
  text-decoration: none;
}

.gentlestyle-shell a:focus-visible,
.gentlestyle-shell button:focus-visible,
.gentlestyle-shell input:focus-visible {
  outline: 3px solid #d5ad5c;
  outline-offset: 3px;
}

.gentlestyle-site-header {
  position: relative;
  z-index: 120;
  min-height: 82px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(82, 63, 38, 0.16);
  background: rgba(249, 244, 234, 0.97);
  backdrop-filter: blur(12px);
}

.gentlestyle-site-header__inner {
  width: min(1280px, 100%);
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
}

.gentlestyle-book-header__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.gentlestyle-logo-lockup {
  display: block;
  width: 246px;
  height: auto;
}

.gentlestyle-main-nav {
  align-items: stretch;
  gap: 0;
  margin: 0;
}

.gentlestyle-main-nav__link {
  position: relative;
  min-height: 82px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #413d36;
  font-family: var(--ml-serif);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

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

.gentlestyle-main-nav__link .gentlestyle-numeric {
  margin-left: 1px;
  color: #8b7e69;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

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

.gentlestyle-header-tools {
  min-height: 82px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--ml-line);
}

.gentlestyle-header-icon,
.gentlestyle-header-search,
.gentlestyle-menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: var(--ml-green-deep);
  background: transparent;
  cursor: pointer;
}

.gentlestyle-header-icon svg,
.gentlestyle-header-search svg,
.gentlestyle-menu-button svg {
  width: 20px;
  height: 20px;
}

.gentlestyle-header-about {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: var(--ml-green-deep);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.gentlestyle-header-search-panel {
  position: relative;
  z-index: 115;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ml-line);
  background: var(--ml-paper-bright);
}

.gentlestyle-header-search-panel.hidden,
.gentlestyle-mobile-menu.hidden {
  display: none;
}

.gentlestyle-header-search-panel form {
  width: min(680px, 100%);
  margin: 0 auto;
}

.gentlestyle-header-search-panel label,
.gentlestyle-mobile-menu__search label {
  display: block;
  margin-bottom: 8px;
  color: var(--ml-muted);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 700;
}

.gentlestyle-header-search-panel form > div,
.gentlestyle-mobile-menu__search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.gentlestyle-header-search-panel input,
.gentlestyle-mobile-menu__search input,
.gentlestyle-subpage-search input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #b9ad99;
  border-radius: 0;
  color: var(--ml-ink);
  background: #fffdfa;
  font-size: 16px;
}

.gentlestyle-header-search-panel button,
.gentlestyle-mobile-menu__search button,
.gentlestyle-subpage-search button {
  min-width: 88px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ml-green);
  border-radius: 0;
  color: #fffaf0;
  background: var(--ml-green);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.gentlestyle-mobile-category-strip,
.gentlestyle-mobile-menu,
.gentlestyle-menu-button {
  display: none;
}

/* Home: library entrance and selected volume */
.ml-library-site {
  min-height: 100vh;
  color: #fff8ea;
  background: var(--ml-green-deep);
}

.ml-library-stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #071a14;
}

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

.ml-library-stage__scene {
  display: block;
  object-fit: cover;
  object-position: center;
}

.ml-library-stage__veil {
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 13, 10, 0.88) 0%, rgba(3, 13, 10, 0.55) 28%, rgba(3, 13, 10, 0.08) 62%, rgba(3, 13, 10, 0.36) 100%);
}

.ml-library-stage__heading {
  position: absolute;
  top: 92px;
  left: max(40px, calc((100vw - 1280px) / 2 + 20px));
  z-index: 4;
  width: 310px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.72);
}

.ml-library-stage__heading p,
.ml-library-stage__heading small {
  margin: 0 0 12px;
  display: block;
  color: #e2c476;
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.ml-library-stage__heading h1 {
  margin: 0 0 24px;
  color: #fff7e8;
  font-size: 28px;
  line-height: 1.2;
}

.ml-library-stage__heading strong {
  display: block;
  color: #fffaf0;
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 600;
  line-height: 1.55;
}

.ml-library-stage__heading span {
  margin-top: 20px;
  display: block;
  color: #e9dfca;
  font-size: 14px;
  line-height: 1.9;
}

.ml-library-stage__heading small {
  margin-top: 28px;
}

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

.ml-open-book {
  position: absolute;
  top: 70px;
  left: max(350px, 31vw);
  width: min(66vw, 930px);
  aspect-ratio: 3 / 2;
  color: var(--ml-ink);
  background: url('./assets/menslab-premium-library/open-book-v2.webp') center / contain no-repeat;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.42));
}

.ml-open-book__page {
  position: absolute;
  min-width: 0;
}

.ml-open-book__page--visual {
  top: 14%;
  left: 8.5%;
  width: 38.5%;
  height: 67%;
}

.ml-open-book__classification,
.ml-open-book__folio {
  position: absolute;
  z-index: 2;
  color: #685f51;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 800;
}

.ml-open-book__classification {
  top: 0;
  left: 0;
  margin: 0;
}

.ml-open-book__folio {
  bottom: 0;
  left: 0;
}

.ml-open-book__page--visual figure,
.ml-open-book__page--visual picture {
  position: absolute;
  inset: 8% 3% 7%;
  margin: 0;
  display: grid;
  place-items: center;
}

.ml-open-book__page--visual picture {
  inset: 0;
}

.ml-open-book__page--visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ml-open-book__page--copy {
  top: 14%;
  left: 53%;
  width: 38%;
  height: 67%;
  padding: 2% 2.5% 1%;
  display: flex;
  flex-direction: column;
}

.ml-open-book__meta {
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(71, 57, 37, 0.25);
  color: #655c4e;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 700;
}

.ml-open-book__page--copy h2 {
  margin: 24px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  color: #191b18;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ml-open-book__page--copy > p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #514c43;
  font-size: 13px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-open-book__reading {
  margin-top: auto;
  color: #6d6253;
  font-family: var(--ml-sans);
  font-size: 11px;
}

.ml-open-book__read {
  min-height: 42px;
  margin-top: 12px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #6a5c46;
  border-bottom: 1px solid #6a5c46;
  color: var(--ml-green-deep);
  font-size: 14px;
  font-weight: 800;
}

.ml-open-book__page-sweep {
  position: absolute;
  inset: 8% 48% 8% auto;
  width: 2px;
  background: rgba(87, 65, 39, 0.18);
}

.ml-library-controls {
  position: absolute;
  right: 26%;
  bottom: 146px;
  z-index: 9;
  min-height: 48px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(215, 184, 112, 0.62);
  border-radius: 4px;
  color: #fff6df;
  background: rgba(5, 33, 24, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.ml-library-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #f5db99;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

.ml-library-controls > span {
  min-width: 64px;
  text-align: center;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ml-volume-selector {
  position: absolute;
  right: 3%;
  bottom: 20px;
  left: 31%;
  z-index: 8;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ml-volume-selector__grid {
  min-width: max-content;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.ml-volume-selector__book {
  position: relative;
  width: 56px;
  height: 116px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(223, 194, 129, 0.45);
  border-radius: 2px 5px 5px 2px;
  background: #102d23;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease;
}

.ml-volume-selector__book > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ml-volume-selector__book.is-selected {
  border-color: #e0bd70;
  transform: translateY(-12px);
}

.ml-volume-selector__plate {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 22px;
  padding: 3px 4px;
  color: #fff3d1;
  background: rgba(7, 35, 26, 0.9);
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 800;
}

.ml-mobile-entry-cue,
.ml-mobile-volume-caption,
.ml-mobile-shelf-directory,
.ml-mobile-archive-portal {
  display: none;
}

.ml-stage-categories-wrap {
  color: #f8ecd2;
  background: var(--ml-green-deep);
}

.ml-stage-categories {
  width: min(1280px, 100%);
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid rgba(218, 186, 112, 0.22);
}

.ml-stage-categories a {
  min-height: 62px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid rgba(218, 186, 112, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.ml-stage-categories em {
  color: #d8b66a;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-style: normal;
}

.ml-library-width,
.ml-category-collection__inner,
.gentlestyle-subpage-section > .flex,
.gentlestyle-subpage-section > div,
.ml-reader-layout {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.ml-new-arrivals {
  padding: 76px 0 82px;
  color: #fff7e8;
  background: #0a2a20;
}

.ml-section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(104, 86, 58, 0.28);
}

.ml-section-heading p,
.ml-category-aisle__sign p {
  margin: 0 0 7px;
  color: var(--ml-oxblood);
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 800;
}

.ml-section-heading h2,
.ml-category-aisle__sign h3 {
  margin: 0 0 12px;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.35;
}

.ml-section-heading--light {
  border-color: rgba(235, 217, 174, 0.3);
}

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

.ml-section-heading a,
.ml-section-heading__count {
  min-height: 44px;
  padding-bottom: 10px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.ml-volume-rail {
  padding: 10px 4px 20px;
  display: grid;
  grid-auto-columns: minmax(190px, 1fr);
  grid-auto-flow: column;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: #b38a4b transparent;
}

.ml-new-volume {
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.ml-new-volume__book,
.ml-shelf-volume__cover,
.ml-material-volume--generated {
  display: block;
  background: transparent;
}

.ml-new-volume__book {
  width: min(100%, 230px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
}

.ml-generated-volume-cover,
.ml-material-volume--generated > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.3));
}

.ml-material-volume__shell,
.ml-material-volume__plate,
.ml-material-volume__title {
  display: none;
}

.ml-new-volume__copy {
  padding: 18px 4px 0;
  display: flex;
  flex-direction: column;
}

.ml-new-volume__meta {
  margin-bottom: 7px;
  color: #d8bb7c;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 700;
}

.ml-new-volume__copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff9eb;
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-new-volume__copy > span:last-child {
  margin-top: 9px;
  color: #afaa9d;
  font-family: var(--ml-sans);
  font-size: 11px;
}

.ml-category-library {
  padding: 84px 0 96px;
  color: var(--ml-ink);
  background-color: var(--ml-paper);
  background-image: url('./assets/menslab-light-archive/paper-texture.webp');
  background-size: 760px auto;
}

.ml-category-library__aisles {
  display: grid;
  gap: 54px;
}

.ml-category-aisle {
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  border-bottom: 1px solid var(--ml-line);
}

.ml-category-aisle__sign h3 {
  font-size: 24px;
}

.ml-category-aisle__sign a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ml-green);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.ml-category-aisle__books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ml-shelf-volume {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ml-shelf-volume__cover {
  aspect-ratio: 2 / 3;
}

.ml-shelf-volume > strong {
  margin-top: 14px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Category room and archive catalog */
.ml-category-room {
  --ml-category-accent: #c0a164;
  position: relative;
  min-height: 450px;
  overflow: hidden;
  color: #fff8e8;
  background: #071b14;
}

.ml-category-room[data-category='wordpress-operation'],
.ml-category-collection[data-category='wordpress-operation'] { --ml-category-accent: #88aabe; }
.ml-category-room[data-category='coconala-strategy'],
.ml-category-collection[data-category='coconala-strategy'] { --ml-category-accent: #c5a56c; }
.ml-category-room[data-category='blog-monetization'],
.ml-category-collection[data-category='blog-monetization'] { --ml-category-accent: #c48376; }
.ml-category-room[data-category='mens-beauty'],
.ml-category-collection[data-category='mens-beauty'] { --ml-category-accent: #d1a49a; }

.ml-category-room__picture,
.ml-category-room__picture img,
.ml-category-room__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ml-category-room__picture img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.ml-category-room__veil {
  background: linear-gradient(90deg, rgba(3, 15, 11, 0.92) 0%, rgba(3, 15, 11, 0.66) 44%, rgba(3, 15, 11, 0.18) 78%, rgba(3, 15, 11, 0.38) 100%);
}

.ml-category-room__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 450px;
  margin: 0 auto;
}

.ml-category-room__breadcrumb {
  position: absolute;
  top: 28px;
  left: 0;
  display: flex;
  gap: 8px;
  color: #e4d7ba;
  font-family: var(--ml-sans);
  font-size: 12px;
}

.ml-category-room__copy {
  position: absolute;
  top: 88px;
  left: 0;
  width: min(520px, 48%);
}

.ml-category-room__label {
  margin: 0 0 14px;
  color: var(--ml-category-accent);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.ml-category-room__copy h1 {
  margin: 0;
  color: #fff9ed;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.3;
}

.ml-category-room__description {
  max-width: 42em;
  margin: 20px 0 0;
  color: #eee5d2;
  font-size: 14px;
  line-height: 2;
}

.ml-category-room__meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--ml-sans);
  font-size: 12px;
}

.ml-category-room__meta b {
  color: var(--ml-category-accent);
  font-size: 20px;
}

.ml-category-room__meta a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(236, 216, 173, 0.55);
  color: #fff8e8;
  font-weight: 800;
}

.ml-category-room__path {
  position: absolute;
  right: 0;
  bottom: 32px;
  width: min(530px, 46%);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid rgba(232, 215, 177, 0.42);
  border-bottom: 1px solid rgba(232, 215, 177, 0.42);
}

.ml-category-room__path li {
  min-width: 0;
  min-height: 88px;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-content: center;
  gap: 4px 8px;
  border-right: 1px solid rgba(232, 215, 177, 0.22);
}

.ml-category-room__path li:last-child {
  border-right: 0;
}

.ml-category-room__path span {
  grid-row: 1 / 3;
  color: var(--ml-category-accent);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.ml-category-room__path strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}

.ml-category-room__path small {
  color: #d8cfbd;
  font-size: 11px;
  line-height: 1.5;
}

.ml-category-room__seal {
  display: none;
}

.ml-category-room--continuation,
.ml-category-room--continuation .ml-category-room__inner {
  min-height: 230px;
}

.ml-category-room--continuation .ml-category-room__copy {
  top: 76px;
  width: 70%;
}

.ml-category-room--continuation .ml-category-room__copy h1 {
  font-size: 36px;
}

.ml-category-room--continuation .ml-category-room__description,
.ml-category-room--continuation .ml-category-room__path,
.ml-category-room--continuation .ml-category-room__meta a {
  display: none;
}

.ml-category-collection,
.gentlestyle-listing-page,
.gentlestyle-search-page,
.gentlestyle-page-view,
.gentlestyle-error-page {
  padding: 64px 0 90px;
  color: var(--ml-ink);
  background-color: var(--ml-paper);
  background-image: url('./assets/menslab-light-archive/paper-texture.webp');
  background-size: 760px auto;
}

.ml-category-drawer-tabs,
.gentlestyle-category-filter {
  margin: 0 0 58px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ml-line);
  border-bottom: 1px solid var(--ml-line);
}

.ml-category-drawer-tabs a,
.gentlestyle-category-filter a {
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--ml-line);
  color: #454037;
  font-size: 13px;
  font-weight: 700;
}

.ml-category-drawer-tabs a:last-child,
.gentlestyle-category-filter a:last-child {
  border-right: 0;
}

.ml-category-drawer-tabs a.is-current,
.gentlestyle-category-filter a.is-current {
  color: #fff9eb;
  background: var(--ml-green);
}

.ml-category-drawer-tabs em,
.gentlestyle-category-filter em {
  color: var(--ml-category-accent, var(--ml-gold));
  font-family: var(--ml-sans);
  font-size: 11px;
  font-style: normal;
}

.ml-category-featured {
  margin-bottom: 76px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
  border-bottom: 1px solid var(--ml-line);
}

.ml-category-featured__visual {
  min-width: 0;
}

.ml-category-featured__visual > a {
  width: min(100%, 340px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  display: block;
}

.ml-category-featured__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(44, 29, 15, 0.25));
}

.ml-category-featured__classification {
  display: none;
}

.ml-category-featured__copy > p:first-child,
.ml-category-index-heading p,
.ml-catalog-volume__folio {
  margin: 0 0 12px;
  color: var(--ml-oxblood);
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 800;
}

.ml-category-featured__copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ml-category-featured__copy > span {
  margin-top: 16px;
  display: block;
  color: var(--ml-oxblood);
  font-size: 14px;
}

.ml-category-featured__excerpt {
  margin: 22px 0 0;
  color: #524d44;
  font-size: 15px;
  line-height: 2;
}

.ml-category-featured__footer {
  margin-top: 24px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ml-line);
  color: var(--ml-muted);
  font-family: var(--ml-sans);
  font-size: 11px;
}

.ml-category-featured__read {
  min-height: 46px;
  margin-top: 20px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: #fff9eb;
  background: var(--ml-green);
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.gentlestyle-category-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
}

.gentlestyle-category-page__main {
  width: auto;
  min-width: 0;
}

.ml-category-index-heading,
.gentlestyle-listing-intro {
  margin-bottom: 28px;
  padding-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--ml-green-deep);
}

.ml-category-index-heading h2 {
  margin: 0;
  font-size: 28px;
}

.ml-category-index-heading > span {
  padding-bottom: 3px;
  color: var(--ml-muted);
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 700;
}

.gentlestyle-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 28px;
}

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

.ml-catalog-volume__link {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ml-catalog-volume__object {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  display: block;
  background: transparent;
}

.ml-catalog-volume__cover,
.ml-catalog-volume__cover--generated {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ml-catalog-volume__cover img,
.ml-catalog-volume__cover--generated img {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 16px 14px rgba(45, 30, 16, 0.24));
}

.ml-catalog-volume__spine,
.ml-catalog-volume__plate {
  display: none;
}

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

.ml-catalog-volume__folio {
  margin-bottom: 8px;
}

.ml-catalog-volume__meta {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--ml-line);
  border-bottom: 1px solid var(--ml-line);
  color: var(--ml-muted);
  font-family: var(--ml-sans);
  font-size: 11px;
}

.ml-catalog-volume__title {
  margin-top: 14px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ml-ink);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ml-catalog-volume__subtitle,
.ml-catalog-volume__excerpt {
  display: none;
}

.ml-catalog-volume__footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ml-muted);
  font-family: var(--ml-sans);
  font-size: 11px;
}

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

.gentlestyle-sidebar,
.ml-category-sidebar {
  width: auto;
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--ml-line);
}

.gentlestyle-sidebar > * + * {
  margin-top: 42px;
}

.gentlestyle-sidebar-panel {
  padding: 26px 22px;
  border: 1px solid var(--ml-line);
  border-top: 4px solid var(--ml-green);
  border-radius: 0;
  background: rgba(255, 251, 242, 0.72);
  box-shadow: none;
}

.gentlestyle-sidebar-panel > div.absolute {
  display: none;
}

.gentlestyle-sidebar-mark {
  width: 58px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #b99b62;
  color: var(--ml-green);
  background: #f2e5c9;
  font-family: var(--ml-sans);
  font-size: 13px;
  font-weight: 800;
}

.ml-category-sidebar__path {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ml-line);
}

.ml-category-sidebar__path li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--ml-line);
  font-size: 12px;
}

.ml-category-sidebar__path span {
  color: var(--ml-oxblood);
  font-family: var(--ml-sans);
  font-size: 11px;
}

.gentlestyle-sidebar-subscribe {
  padding: 28px;
  border: 1px solid #345247;
  border-radius: 0;
  background: var(--ml-green-deep);
}

.gentlestyle-listing-intro {
  display: block;
}

.gentlestyle-listing-intro > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.gentlestyle-listing-intro h1 {
  font-size: 30px;
}

.gentlestyle-listing-intro p {
  color: var(--ml-muted);
  font-size: 15px;
  line-height: 2;
}

.gentlestyle-subpage-section > .flex,
.gentlestyle-subpage-section > div.flex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
}

.gentlestyle-subpage-section .lg\:w-\[65\%\],
.gentlestyle-subpage-section .lg\:w-\[35\%\] {
  width: auto;
}

.gentlestyle-subpage-search {
  margin-bottom: 34px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  border: 0;
  background: transparent;
}

.gentlestyle-search-prompt {
  padding: 44px 0;
  border-top: 1px solid var(--ml-line);
  border-bottom: 1px solid var(--ml-line);
}

/* Article entrance and reading pages */
.ml-reader-site,
.ml-reader-article {
  color: var(--ml-ink);
  background: var(--ml-paper);
}

.gentlestyle-arch-divider {
  display: none;
}

.ml-article-masthead {
  --ml-category-ink: #be9c59;
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #fff9eb;
  background: #071810;
}

.ml-article-masthead__scene-picture,
.ml-article-masthead__scene,
.ml-article-masthead__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ml-article-masthead__scene {
  display: block;
  object-fit: cover;
  object-position: center;
}

.ml-article-masthead__veil {
  background: linear-gradient(90deg, rgba(3, 13, 9, 0.82) 0%, rgba(3, 13, 9, 0.26) 48%, rgba(3, 13, 9, 0.76) 100%);
}

.ml-article-masthead__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 28px;
}

.ml-article-masthead__breadcrumb,
.gentlestyle-breadcrumb {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #e7dbc3;
  font-family: var(--ml-sans);
  font-size: 12px;
}

.ml-article-opening {
  min-height: 500px;
  padding: 36px 0 42px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
}

.ml-article-volume {
  width: 250px;
  margin: 0 auto;
}

.ml-article-volume__artwork,
.ml-article-volume__generated-cover,
.ml-article-volume__fallback-art {
  width: 100%;
  display: block;
}

.ml-article-volume__generated-cover {
  aspect-ratio: 2 / 3;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.45));
}

.ml-article-volume figcaption {
  margin-top: 13px;
  color: #d9c9aa;
  font-family: var(--ml-sans);
  font-size: 11px;
  text-align: center;
}

.ml-article-opening .gentlestyle-single-header {
  max-width: 760px;
  padding: 38px clamp(26px, 4vw, 58px);
  border-top: 1px solid rgba(231, 211, 169, 0.5);
  border-bottom: 1px solid rgba(231, 211, 169, 0.5);
  background: rgba(7, 24, 17, 0.76);
  backdrop-filter: blur(8px);
}

.gentlestyle-single-kicker {
  margin: 0 0 14px;
  color: #e2bd6a;
  font-family: var(--ml-sans);
  font-size: 12px;
  font-weight: 800;
}

.ml-article-opening .gentlestyle-single-header h1 {
  margin: 0;
  color: #fff9ed;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ml-article-opening__dek {
  margin: 22px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #e5dccb;
  font-size: 15px;
  line-height: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gentlestyle-single-dates {
  margin-top: 24px;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid rgba(231, 211, 169, 0.24);
  color: #cfc3ae;
  font-family: var(--ml-sans);
  font-size: 11px;
}

.ml-article-opening__reading {
  margin-top: 14px;
  display: inline-flex;
  color: #e2bd6a;
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 800;
}

.ml-reader-layout {
  padding: 70px 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}

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

.gentlestyle-disclosure,
.gentlestyle-financial-notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  border: 1px solid var(--ml-line);
  border-left: 5px solid var(--ml-gold);
  color: #4e493f;
  background: rgba(255, 251, 242, 0.76);
  font-family: var(--ml-sans);
  font-size: 13px;
  line-height: 1.8;
}

.gentlestyle-disclosure__badge {
  flex: 0 0 auto;
  color: var(--ml-oxblood);
  font-weight: 900;
}

.gentlestyle-financial-notice {
  display: block;
  border-left-color: var(--ml-oxblood);
}

.gentlestyle-financial-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ml-oxblood);
}

.ml-reader-paper {
  position: relative;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid rgba(77, 60, 37, 0.16);
  background: rgba(255, 251, 242, 0.82);
  box-shadow: 0 20px 44px rgba(58, 42, 24, 0.08);
}

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

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

.ml-story-shelf {
  margin: 0 0 54px;
}

.ml-story-shelf__copy {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.ml-story-shelf__eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ml-oxblood);
  font-family: var(--ml-sans);
  font-size: 11px;
  font-weight: 800;
}

.ml-story-shelf__copy h2 {
  margin: 0;
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.45;
}

.ml-story-shelf__copy > p:last-child {
  margin: 0;
  color: var(--ml-muted);
  font-size: 14px;
  line-height: 1.9;
}

.ml-story-shelf__visual {
  position: relative;
  overflow: hidden;
  background: #181d18;
}

.ml-story-shelf__visual > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
}

.ml-story-shelf__index {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  color: #f9efdc;
  background: var(--ml-green-deep);
}

.ml-story-shelf__index li {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 3px;
  border-right: 1px solid rgba(232, 211, 165, 0.2);
}

.ml-story-shelf__index li:last-child {
  border-right: 0;
}

.ml-story-shelf__index span {
  color: #d8b562;
  font-family: var(--ml-sans);
  font-size: 11px;
}

.ml-story-shelf__index strong {
  font-size: 13px;
}

.ml-story-shelf__index small {
  color: #c8c0b1;
  font-size: 11px;
  line-height: 1.5;
}

.gentlestyle-content,
.ml-book-content {
  color: #282a26;
  font-size: 17px;
  line-height: 2.05;
  overflow-wrap: anywhere;
}

.gentlestyle-content > *:first-child {
  margin-top: 0;
}

.gentlestyle-content p,
.gentlestyle-content ul,
.gentlestyle-content ol,
.gentlestyle-content figure,
.gentlestyle-content table,
.gentlestyle-content .wp-block-table {
  margin-top: 0;
  margin-bottom: 1.9em;
}

.gentlestyle-content h2 {
  margin: 2.8em 0 1em;
  padding: 16px 0 13px;
  border-top: 3px solid var(--ml-green);
  border-bottom: 1px solid var(--ml-line);
  color: var(--ml-ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.55;
}

.gentlestyle-content h3 {
  margin: 2.2em 0 0.9em;
  padding-left: 14px;
  border-left: 4px solid var(--ml-gold);
  color: var(--ml-ink);
  font-size: 23px;
  line-height: 1.6;
}

.gentlestyle-content h4 {
  margin: 2em 0 0.8em;
  color: var(--ml-green);
  font-size: 19px;
}

.gentlestyle-content a {
  color: #7d3430;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gentlestyle-content img {
  height: auto;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.gentlestyle-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 5px solid var(--ml-green);
  background: #efe6d4;
}

.gentlestyle-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--ml-sans);
  font-size: 14px;
  line-height: 1.65;
}

.gentlestyle-content th,
.gentlestyle-content td {
  padding: 13px 14px;
  border: 1px solid #c7baa4;
  text-align: left;
  vertical-align: top;
}

.gentlestyle-content th {
  color: #fff8e8;
  background: var(--ml-green);
}

.gentlestyle-content .table-scroll,
.gentlestyle-content .wp-block-table {
  position: relative;
  overflow-x: auto;
}

.ml-table-scroll-cue {
  position: sticky;
  left: 8px;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  display: none;
  place-items: center;
  color: #fff7e5;
  background: var(--ml-green);
  font-family: var(--ml-sans);
}

.is-scrollable .ml-table-scroll-cue {
  display: inline-grid;
}

#rtoc-mokuji-wrapper {
  margin: 42px 0;
  padding: 0;
  border: 1px solid var(--ml-line);
  border-top: 4px solid var(--ml-green);
  border-radius: 0;
  background: #fbf5e9;
  box-shadow: none;
}

#rtoc-mokuji-title {
  min-height: 64px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ml-green-deep);
  font-size: 20px;
}

#rtoc-mokuji-wrapper .rtoc_open_close {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #fff8e8;
  background: var(--ml-green);
  font-family: var(--ml-sans);
  font-size: 12px;
}

#rtoc-mokuji-wrapper .rtoc-mokuji-content {
  padding: 0 22px 22px;
}

#rtoc_return {
  width: 50px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ml-gold);
  border-radius: 0;
  color: #fff8e8;
  background: var(--ml-green-deep);
  font-family: var(--ml-sans);
  font-size: 11px;
}

#rtoc_return *,
#rtoc-mokuji-wrapper .rtoc_open_close,
#rtoc-mokuji-wrapper .rtoc_open_close * {
  font-size: 11px;
}

/* Rich Table of Contents ships fixed-size inline overrides. Keep its utility
   labels legible without leaking specificity into the rest of the theme. */
.ml-reader-site #rtoc-mokuji-title > button.rtoc_open_close {
  font-size: 11px !important;
}

body.gentlestyle-body #rtoc_return.back_button_left > a {
  font-size: 11px !important;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content {
  border: 1px solid var(--ml-line);
  border-top: 4px solid var(--ml-green);
  border-color: var(--ml-line) !important;
  border-top-color: var(--ml-green) !important;
  border-radius: 0;
  background: #fbf5e9;
  box-shadow: none;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content #rtoc-mokuji-title {
  min-height: 64px;
  padding: 14px 18px;
  color: var(--ml-green-deep);
  background: transparent;
  font-size: 20px;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content #rtoc-mokuji-title > button.rtoc_open_close {
  width: auto;
  min-width: 64px;
  min-height: 44px;
  height: auto;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ml-gold);
  border-radius: 0;
  color: #fff8e8;
  background: var(--ml-green-deep);
  font-family: var(--ml-sans);
  font-size: 11px !important;
  line-height: 1;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content a {
  color: var(--ml-green-deep);
  text-decoration-color: var(--ml-gold);
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content .rtoc-item::before {
  color: var(--ml-gold-deep) !important;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content .rtoc-item::after,
.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content #rtocAC.accent-point::after {
  background-color: var(--ml-gold) !important;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content .mokuji_ul > .rtoc-item::before {
  background-color: var(--ml-gold) !important;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content .decimal_ol > .rtoc-item::before,
.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content .mokuji_ol > .rtoc-item::before {
  background: transparent !important;
}

.ml-reader-site #rtoc-mokuji-wrapper.rtoc-mokuji-content li::marker {
  color: var(--ml-gold-deep);
}

body.gentlestyle-body #rtoc_return.back_button_left > a {
  border: 1px solid var(--ml-gold);
  border-radius: 0;
  color: #fff8e8;
  background-color: var(--ml-green-deep) !important;
  box-shadow: 0 8px 20px rgba(3, 18, 13, 0.22);
}

.gentlestyle-affiliate-cta,
.gentlestyle-conversion-panel,
.gentlestyle-money-route {
  margin: 44px 0;
  padding: 28px;
  border: 1px solid var(--ml-line);
  border-top: 4px solid var(--ml-green);
  border-radius: 0;
  background: #f4ead8;
}

.gentlestyle-affiliate-button,
.gentlestyle-conversion-link {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ml-green);
  border-radius: 0;
  color: #fff8e8;
  background: var(--ml-green);
  font-family: var(--ml-sans);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.gentlestyle-conversion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gentlestyle-conversion-link--ghost {
  color: var(--ml-green);
  background: transparent;
}

.ml-related-shelf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ml-related-volume {
  min-width: 0;
  padding: 18px;
  border: 0;
  border-top: 4px solid var(--ml-green);
  background: rgba(255, 251, 242, 0.7);
}

.ml-adjacent-volumes {
  border-top: 1px solid var(--ml-line);
}

/* Footer */
.gentlestyle-shell > .relative > footer,
.gentlestyle-shell footer.bg-\[\#1A1A18\] {
  padding: 58px max(24px, calc((100vw - 1180px) / 2));
  color: #e8dfce;
  background: #151a16;
}

@media (hover: hover) and (pointer: fine) {
  .ml-volume-selector__book:hover,
  .ml-catalog-volume__link:hover .ml-catalog-volume__cover img,
  .ml-new-volume:hover .ml-generated-volume-cover,
  .ml-shelf-volume:hover .ml-generated-volume-cover {
    transform: translateY(-6px);
  }

  .ml-catalog-volume__cover img,
  .ml-generated-volume-cover {
    transition: transform 180ms ease;
  }
}

@media (max-width: 1080px) {
  .gentlestyle-main-nav__link {
    padding: 0 9px;
    font-size: 12px;
  }

  .gentlestyle-logo-lockup {
    width: 210px;
  }

  .ml-library-stage__heading {
    width: 270px;
  }

  .ml-open-book {
    left: 28%;
    width: 72vw;
  }

  .gentlestyle-category-page__layout,
  .gentlestyle-subpage-section > .flex,
  .gentlestyle-subpage-section > div.flex,
  .ml-reader-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 38px;
  }
}

@media (max-width: 780px) {
  .gentlestyle-site-header {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .gentlestyle-logo-lockup {
    width: 190px;
  }

  .gentlestyle-main-nav {
    display: none;
  }

  .gentlestyle-menu-button {
    display: grid;
    margin: 0;
  }

  .gentlestyle-mobile-category-strip {
    position: relative;
    z-index: 110;
    min-height: 50px;
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--ml-line);
    background: #f4ecdd;
    scrollbar-width: none;
  }

  .gentlestyle-mobile-category-strip::-webkit-scrollbar {
    display: none;
  }

  .gentlestyle-mobile-category-strip__link {
    position: relative;
    min-width: max-content;
    min-height: 50px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #39362f;
    font-size: 12px;
    font-weight: 700;
  }

  .gentlestyle-mobile-category-strip__link[aria-current='page']::after {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    background: var(--ml-oxblood);
    content: '';
  }

  .gentlestyle-mobile-category-strip__link .gentlestyle-numeric {
    color: #8b7e69;
    font-family: var(--ml-sans);
    font-size: 11px;
  }

  .gentlestyle-mobile-menu {
    position: absolute;
    top: 114px;
    left: 0;
    z-index: 150;
    width: 100%;
    display: block;
    color: #fff8e8;
    background: var(--ml-green-deep);
  }

  .gentlestyle-mobile-menu.hidden {
    display: none;
  }

  .gentlestyle-mobile-menu__link {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(234, 213, 169, 0.16);
  }

  .ml-library-stage {
    min-height: 0;
    padding: 0 0 34px;
  }

  .ml-library-stage__scene-picture,
  .ml-library-stage__scene,
  .ml-library-stage__veil {
    height: 100%;
  }

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

  .ml-library-stage__veil {
    background: linear-gradient(180deg, rgba(3, 15, 11, 0.76) 0%, rgba(3, 15, 11, 0.12) 34%, rgba(3, 15, 11, 0.7) 72%, rgba(3, 15, 11, 0.96) 100%);
  }

  .ml-library-stage__heading {
    position: relative;
    top: auto;
    left: auto;
    z-index: 4;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
  }

  .ml-library-stage__heading p,
  .ml-library-stage__heading small {
    font-size: 11px;
  }

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

  .ml-library-stage__heading strong {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.5;
  }

  .ml-library-stage__heading span {
    margin-top: 10px;
    font-size: 12px;
  }

  .ml-library-stage__heading small {
    margin-top: 14px;
  }

  .ml-library-browser {
    position: relative;
    inset: auto;
    z-index: 4;
    padding-top: 24px;
  }

  .ml-open-book {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 28px);
    max-width: 430px;
    aspect-ratio: auto;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background: none;
    filter: none;
  }

  .ml-open-book__page {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
  }

  .ml-open-book__page--visual {
    min-height: 228px;
  }

  .ml-open-book__classification,
  .ml-open-book__folio,
  .ml-open-book__page-sweep {
    display: none;
  }

  .ml-open-book__page--visual figure,
  .ml-open-book__page--visual picture {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .ml-open-book__page--visual img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.52));
  }

  .ml-open-book__page--copy {
    min-height: 228px;
    padding: 18px 0;
    justify-content: center;
    color: #fff8e8;
  }

  .ml-open-book__meta {
    color: #d7c6a6;
    border-color: rgba(235, 213, 167, 0.3);
    font-size: 11px;
  }

  .ml-open-book__page--copy h2 {
    margin: 16px 0 10px;
    color: #fff9ed;
    font-size: 20px;
    line-height: 1.55;
    -webkit-line-clamp: 5;
  }

  .ml-open-book__page--copy > p {
    color: #ddd3c1;
    font-size: 12px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
  }

  .ml-open-book__reading {
    margin-top: 12px;
    color: #d8bd7e;
    font-size: 11px;
  }

  .ml-open-book__read {
    min-height: 44px;
    color: #fff8e8;
    border-color: rgba(235, 213, 167, 0.45);
    font-size: 13px;
  }

  .ml-library-controls {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    margin: 20px auto 0;
    display: flex;
  }

  .ml-volume-selector {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 22px;
    padding: 14px 16px 8px;
  }

  .ml-volume-selector__grid {
    gap: 12px;
  }

  .ml-volume-selector__book {
    width: 72px;
    height: 108px;
    scroll-snap-align: center;
  }

  .ml-volume-selector__book.is-selected {
    transform: translateY(-7px);
  }

  .ml-mobile-entry-cue {
    position: relative;
    top: auto;
    left: auto;
    min-height: 44px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5c778;
    font-family: var(--ml-sans);
    font-size: 12px;
    font-weight: 800;
  }

  .ml-stage-categories {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .ml-stage-categories a {
    min-width: max-content;
    min-height: 54px;
    padding: 0 18px;
    font-size: 12px;
  }

  .ml-mobile-shelf-directory {
    position: relative;
    min-height: 520px;
    display: block;
    overflow: hidden;
    color: #fff8e8;
    background: #071a14;
  }

  .ml-mobile-shelf-directory__scene,
  .ml-mobile-shelf-directory__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .ml-mobile-shelf-directory__scene {
    object-fit: cover;
  }

  .ml-mobile-shelf-directory__veil {
    background: rgba(3, 15, 11, 0.62);
  }

  .ml-mobile-shelf-directory__inner {
    position: relative;
    z-index: 2;
    padding: 52px 18px;
  }

  .ml-mobile-shelf-directory__heading p {
    margin: 0 0 8px;
    color: #e2c274;
    font-family: var(--ml-sans);
    font-size: 11px;
    font-weight: 800;
  }

  .ml-mobile-shelf-directory__heading h2 {
    margin: 0 0 28px;
    font-size: 30px;
  }

  .ml-mobile-shelf-directory__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(224, 195, 128, 0.32);
  }

  .ml-mobile-shelf-directory__nav a {
    min-height: 96px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(5, 30, 22, 0.92);
  }

  .ml-mobile-shelf-directory__nav b,
  .ml-mobile-shelf-directory__nav em {
    color: #d8bb77;
    font-family: var(--ml-sans);
    font-size: 11px;
    font-style: normal;
  }

  .ml-mobile-shelf-directory__nav span {
    margin: 5px 0;
    font-size: 14px;
    font-weight: 700;
  }

  .ml-library-width,
  .ml-category-collection__inner,
  .gentlestyle-subpage-section > .flex,
  .gentlestyle-subpage-section > div,
  .ml-reader-layout {
    width: calc(100% - 28px);
  }

  .ml-new-arrivals {
    padding: 58px 0 66px;
  }

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

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

  .ml-volume-rail {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 18px;
    padding-left: 18px;
    grid-auto-columns: minmax(220px, 68vw);
    gap: 18px;
  }

  .ml-new-volume__book {
    width: min(100%, 250px);
  }

  .ml-category-library {
    padding: 64px 0 74px;
  }

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

  .ml-category-aisle__books {
    margin-right: -14px;
    padding-right: 14px;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .ml-shelf-volume {
    width: 150px;
    min-width: 150px;
    scroll-snap-align: start;
  }

  .ml-category-room,
  .ml-category-room__inner {
    min-height: 440px;
  }

  .ml-category-room__picture img {
    object-position: center 42%;
  }

  .ml-category-room__veil {
    background: linear-gradient(180deg, rgba(3, 15, 11, 0.86) 0%, rgba(3, 15, 11, 0.5) 48%, rgba(3, 15, 11, 0.9) 100%);
  }

  .ml-category-room__breadcrumb {
    top: 18px;
    font-size: 11px;
  }

  .ml-category-room__copy {
    top: 62px;
    width: 100%;
  }

  .ml-category-room__label {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .ml-category-room__copy h1 {
    max-width: calc(100% - 10px);
    font-size: clamp(34px, 10vw, 44px);
  }

  .ml-category-room__description {
    max-width: 32em;
    margin-top: 12px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ml-category-room__meta {
    margin-top: 14px;
  }

  .ml-category-room__path {
    right: 0;
    bottom: 16px;
    left: 0;
    width: 100%;
  }

  .ml-category-room__path li {
    min-height: 66px;
    padding: 9px 7px;
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .ml-category-room__path strong {
    font-size: 12px;
  }

  .ml-category-room__path small {
    display: none;
  }

  .ml-category-room--continuation,
  .ml-category-room--continuation .ml-category-room__inner {
    min-height: 210px;
  }

  .ml-category-room--continuation .ml-category-room__copy {
    top: 62px;
  }

  .ml-category-room--continuation .ml-category-room__copy h1 {
    font-size: 30px;
  }

  .ml-category-collection,
  .gentlestyle-listing-page,
  .gentlestyle-search-page,
  .gentlestyle-page-view,
  .gentlestyle-error-page {
    padding: 38px 0 70px;
  }

  .ml-category-drawer-tabs,
  .gentlestyle-category-filter {
    margin: 0 -14px 44px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ml-category-drawer-tabs::-webkit-scrollbar,
  .gentlestyle-category-filter::-webkit-scrollbar {
    display: none;
  }

  .ml-category-drawer-tabs a,
  .gentlestyle-category-filter a {
    min-width: max-content;
    min-height: 50px;
    padding: 0 16px;
  }

  .ml-category-featured {
    margin-bottom: 54px;
    padding-bottom: 46px;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .ml-category-featured__visual > a {
    width: min(64vw, 250px);
  }

  .ml-category-featured__copy h2 {
    font-size: 27px;
  }

  .ml-category-featured__excerpt {
    font-size: 14px;
  }

  .gentlestyle-category-page__layout,
  .gentlestyle-subpage-section > .flex,
  .gentlestyle-subpage-section > div.flex,
  .ml-reader-layout {
    display: block;
  }

  .gentlestyle-arrivals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 18px;
  }

  .ml-catalog-volume__object {
    width: min(100%, 180px);
  }

  .ml-catalog-volume__record {
    padding-top: 14px;
  }

  .ml-catalog-volume__folio {
    font-size: 11px;
  }

  .ml-catalog-volume__meta {
    display: block;
    font-size: 11px;
  }

  .ml-catalog-volume__meta span:last-child {
    display: none;
  }

  .ml-catalog-volume__title {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.65;
    -webkit-line-clamp: 4;
  }

  .ml-catalog-volume__footer {
    display: block;
    font-size: 11px;
  }

  .ml-catalog-volume__footer span {
    margin-top: 5px;
    display: block;
  }

  .gentlestyle-sidebar,
  .ml-category-sidebar {
    margin-top: 60px;
    padding: 44px 0 0;
    border-top: 1px solid var(--ml-line);
    border-left: 0;
  }

  .ml-mobile-archive-portal {
    position: relative;
    min-height: 300px;
    display: block;
    overflow: hidden;
    color: #fff8e8;
    background: var(--ml-green-deep);
  }

  .ml-mobile-archive-portal__scene,
  .ml-mobile-archive-portal__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .ml-mobile-archive-portal__scene {
    object-fit: cover;
  }

  .ml-mobile-archive-portal__veil {
    background: rgba(3, 15, 11, 0.68);
  }

  .ml-mobile-archive-portal__copy {
    position: relative;
    z-index: 2;
    padding: 62px 20px;
  }

  .ml-mobile-archive-portal__copy p {
    color: #dfbf70;
    font-family: var(--ml-sans);
    font-size: 11px;
    font-weight: 800;
  }

  .ml-mobile-archive-portal__copy h1 {
    margin: 10px 0;
    font-size: 32px;
  }

  .ml-mobile-archive-portal__copy span {
    font-size: 13px;
    line-height: 1.8;
  }

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

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

  .ml-article-masthead__veil {
    background: linear-gradient(180deg, rgba(3, 13, 9, 0.42) 0%, rgba(3, 13, 9, 0.18) 36%, rgba(3, 13, 9, 0.86) 100%);
  }

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

  .ml-article-opening {
    min-height: 550px;
    padding: 28px 0 38px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .ml-article-volume {
    width: 122px;
    margin-left: 0;
  }

  .ml-article-volume figcaption {
    font-size: 11px;
  }

  .ml-article-opening .gentlestyle-single-header {
    max-width: none;
    padding: 18px 0;
    background: transparent;
    backdrop-filter: none;
  }

  .gentlestyle-single-kicker {
    font-size: 11px;
  }

  .ml-article-opening .gentlestyle-single-header h1 {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.5;
  }

  .ml-article-opening__dek {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.8;
    -webkit-line-clamp: 2;
  }

  .gentlestyle-single-dates {
    margin-top: 14px;
    font-size: 11px;
  }

  .ml-reader-layout {
    width: calc(100% - 24px);
    padding: 42px 0 76px;
  }

  .ml-reader-paper {
    padding: 32px 20px;
    box-shadow: none;
  }

  .ml-story-shelf__copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ml-story-shelf__copy h2 {
    font-size: 28px;
  }

  .ml-story-shelf__visual > img {
    aspect-ratio: 4 / 3;
  }

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

  .ml-story-shelf__index li {
    grid-template-columns: 28px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid rgba(232, 211, 165, 0.2);
  }

  .ml-story-shelf__index strong,
  .ml-story-shelf__index small {
    grid-column: 2;
  }

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

  .gentlestyle-content h2 {
    font-size: 26px;
  }

  .gentlestyle-content h3 {
    font-size: 21px;
  }

  .gentlestyle-affiliate-cta,
  .gentlestyle-conversion-panel,
  .gentlestyle-money-route {
    margin-right: -8px;
    margin-left: -8px;
    padding: 24px 18px;
  }

  .gentlestyle-conversion-links {
    display: grid;
  }

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

  .gentlestyle-shell footer.bg-\[\#1A1A18\] nav {
    display: grid;
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .ml-open-book {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
  }

  .ml-open-book__page--visual,
  .ml-open-book__page--copy {
    min-height: 205px;
  }

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

  .ml-open-book__page--copy > p {
    display: none;
  }

  .gentlestyle-arrivals-grid {
    column-gap: 14px;
  }

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

  .ml-category-room__copy h1 {
    font-size: 34px;
  }

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

  .ml-article-volume {
    width: 112px;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
