:root {
  --mpubs-emerald-950: #041f17;
  --mpubs-emerald-900: #0b3428;
  --mpubs-emerald-850: #124333;
  --mpubs-emerald-800: #174f3c;
  --mpubs-gold-500: #d6a653;
  --mpubs-gold-400: #e6be73;
  --mpubs-gold-200: #f5e5bd;
  --mpubs-ivory: #fbf7ee;
  --mpubs-sand: #f4ecdc;
  --mpubs-ink: #163029;
  --mpubs-copy: #476159;
  --mpubs-border: rgba(22, 48, 41, 0.12);
  --mpubs-shadow: 0 18px 40px rgba(7, 25, 19, 0.12);
  --mpubs-shadow-soft: 0 10px 24px rgba(7, 25, 19, 0.08);
  --mpubs-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Libre Baskerville", Georgia, serif;
  --mpubs-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mpubs-account-deletion-document {
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 2.4rem;
  border: 1px solid var(--mpubs-border);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--mpubs-shadow-soft);
}

.mpubs-account-deletion-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(22, 48, 41, 0.12);
}

.mpubs-account-deletion-document-head h2 {
  margin: 0.35rem 0 0;
  color: var(--mpubs-emerald-900);
  font-family: var(--mpubs-serif);
  font-size: 2rem;
}

.mpubs-account-deletion-document-head p {
  max-width: 440px;
  margin: 0;
  color: var(--mpubs-copy);
  line-height: 1.7;
}

.mpubs-account-deletion-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.mpubs-account-deletion-note {
  border: 1px solid rgba(214, 166, 83, 0.32);
  border-radius: 8px;
  background: #fbf7ee;
  padding: 1.35rem;
}

.mpubs-account-deletion-note h3 {
  margin: 0 0 0.85rem;
  color: var(--mpubs-emerald-900);
  font-family: var(--mpubs-serif);
  font-size: 1.3rem;
}

.mpubs-account-deletion-note ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--mpubs-copy);
  line-height: 1.75;
}

.mpubs-account-deletion-note li + li {
  margin-top: 0.5rem;
}

.mpubs-account-deletion-form {
  display: grid;
  gap: 1rem;
}

.mpubs-account-deletion-form .form-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
  margin: 0;
}

.mpubs-account-deletion-form .form-label {
  display: block;
  margin: 0;
  color: var(--mpubs-emerald-900);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
}

.mpubs-account-deletion-form .form-control,
.mpubs-account-deletion-form .form-select {
  width: 100%;
  margin: 0;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-color: rgba(22, 48, 41, 0.16);
  border-radius: 8px;
  color: var(--mpubs-ink);
  background: #fffdfa;
  box-shadow: none;
}

.mpubs-account-deletion-form textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.mpubs-account-deletion-confirm-form {
  max-width: 720px;
}

.mpubs-account-deletion-submit {
  width: min(100%, 320px);
  border: 0;
  cursor: pointer;
}

.mpubs-account-deletion-alert {
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 13px 15px;
}

.mpubs-account-deletion-alert.d-none,
.mpubs-account-deletion-form.d-none {
  display: none !important;
}

.mpubs-account-deletion-alert.is-error {
  background: #fff4f4;
  border: 1px solid #ffd4d4;
  color: #9d2424;
}

.mpubs-account-deletion-alert.is-success {
  background: #eefaf1;
  border: 1px solid #cdeed5;
  color: #23653a;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mpubs-account-deletion-document {
    width: min(880px, 100%);
    padding: 2rem;
  }

  .mpubs-account-deletion-document-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: start;
  }

  .mpubs-account-deletion-document-head p {
    max-width: 100%;
  }

  .mpubs-account-deletion-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mpubs-account-deletion-note {
    padding: 1.2rem 1.25rem;
  }

  .mpubs-account-deletion-form {
    gap: 1.1rem;
  }

  .mpubs-account-deletion-confirm-form {
    max-width: 100%;
  }

  .mpubs-account-deletion-submit {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 767.98px) {
  .mpubs-account-deletion-document {
    padding: 1.2rem;
  }

  .mpubs-account-deletion-document-head,
  .mpubs-account-deletion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mpubs-account-deletion-document-head h2 {
    font-size: 1.55rem;
  }

  .mpubs-account-deletion-submit {
    width: 100%;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mpubs-home-body {
  margin: 0;
  font-family: var(--mpubs-sans);
  color: var(--mpubs-ink);
  background: #fcf7ee;
}

.mpubs-policy-document {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 2.4rem;
  border: 1px solid var(--mpubs-border);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--mpubs-shadow-soft);
}

.mpubs-policy-document-head {
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--mpubs-border);
}

.mpubs-policy-document-head h2 {
  margin: 0.35rem 0 0;
  color: var(--mpubs-emerald-950);
  font-family: var(--mpubs-serif);
  font-size: 2.25rem;
  line-height: 1.1;
}

.mpubs-policy-document-head p {
  margin: 0.6rem 0 0;
  color: var(--mpubs-copy);
  font-size: 0.95rem;
}

.mpubs-policy-content {
  color: var(--mpubs-copy);
  font-size: 1rem;
  line-height: 1.9;
}

.mpubs-policy-content p {
  margin: 0 0 1.1rem;
}

.mpubs-policy-content p:last-child {
  margin-bottom: 0;
}

.mpubs-policy-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 166, 83, 0.35);
  border-radius: 8px;
  background: rgba(245, 229, 189, 0.42);
  color: var(--mpubs-emerald-900);
  font-size: 0.92rem;
  font-weight: 600;
}

.mpubs-policy-alert.is-hidden {
  display: none;
}

body.mpubs-home-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

.mpubs-home-page {
  min-height: 100vh;
}

.mpubs-home-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid rgba(214, 166, 83, 0.16);
  background:
    linear-gradient(180deg, rgba(4, 31, 23, 0.54), rgba(4, 31, 23, 0.32));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mpubs-home-container {
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
}

.mpubs-home-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.mpubs-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.mpubs-home-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.mpubs-home-brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: #fff;
  font-family: var(--mpubs-serif);
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  line-height: 1;
}

.mpubs-home-brand-text strong {
  color: var(--mpubs-gold-400);
  font-weight: 700;
}

.mpubs-home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.mpubs-home-nav a {
  position: relative;
  color: rgba(255, 249, 238, 0.88);
  font-size: 0.98rem;
  font-weight: 600;
}

.mpubs-home-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--mpubs-gold-400), transparent);
  transition: transform 0.2s ease;
}

.mpubs-home-nav a:hover::after,
.mpubs-home-nav a.is-active::after {
  transform: scaleX(1);
}

.mpubs-home-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mpubs-home-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214, 166, 83, 0.3);
  border-radius: 14px;
  background: transparent;
  color: #fff;
}

.mpubs-home-nav-toggle span,
.mpubs-home-nav-toggle::before,
.mpubs-home-nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.mpubs-home-nav-toggle span {
  margin: 4px auto;
}

.mpubs-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0 1.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mpubs-home-button:hover {
  transform: translateY(-1px);
}

.mpubs-home-button-primary {
  background: linear-gradient(180deg, var(--mpubs-gold-400), var(--mpubs-gold-500));
  color: #1f241e;
  box-shadow: 0 16px 28px rgba(214, 166, 83, 0.24);
}

.mpubs-home-button-dark {
  background: linear-gradient(180deg, var(--mpubs-emerald-850), var(--mpubs-emerald-900));
  color: #fff;
  border-color: rgba(214, 166, 83, 0.35);
}

.mpubs-home-button-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff7ea;
  border-color: rgba(214, 166, 83, 0.45);
}

.mpubs-home-button-secondary {
  background: #edf7f0;
  color: #1f5e3e;
  border-color: rgba(31, 94, 62, 0.12);
}

.mpubs-home-button svg,
.mpubs-home-inline-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.mpubs-home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 31, 23, 0.94) 0%, rgba(4, 31, 23, 0.86) 34%, rgba(4, 31, 23, 0.42) 58%, rgba(4, 31, 23, 0.18) 100%),
    url("/images/home/hero-background.png") center center / cover no-repeat;
}

.mpubs-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(214, 166, 83, 0.06), rgba(214, 166, 83, 0.01) 1px, transparent 1px),
    linear-gradient(rgba(214, 166, 83, 0.04), rgba(214, 166, 83, 0.01) 1px, transparent 1px);
  background-size: 200px 200px;
  opacity: 0.2;
  pointer-events: none;
}

.mpubs-home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 670px;
  padding: 8.5rem 0 3rem;
}

.mpubs-home-hero-copy {
  color: #fff8ee;
  width: min(100%, 610px);
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.mpubs-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--mpubs-gold-400);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mpubs-home-hero-title {
  margin: 1rem 0 1.2rem;
  max-width: 560px;
  font-family: var(--mpubs-serif);
  font-size: clamp(3rem, 2rem + 3vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.mpubs-home-hero-title strong {
  color: var(--mpubs-gold-400);
  font-weight: 700;
}

.mpubs-home-divider {
  width: 320px;
  max-width: 100%;
  height: 24px;
  margin: 1.25rem 0 1.5rem;
  background: url("/images/home/section-divider.png") center center / contain no-repeat;
}

.mpubs-home-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 249, 238, 0.84);
  font-size: 1.05rem;
  line-height: 1.85;
}

.mpubs-home-hero-compact {
  min-height: 0;
}

.mpubs-home-hero-compact .mpubs-home-hero-grid {
  min-height: 360px;
  padding: 9rem 0 2.75rem;
}

.mpubs-home-hero-copy-wide {
  width: min(100%, 860px);
}

.mpubs-home-hero-copy-wide .mpubs-home-hero-title,
.mpubs-home-hero-copy-wide p {
  max-width: 760px;
}

.mpubs-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.mpubs-home-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.9rem;
  max-width: 760px;
}

.mpubs-home-trust-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.mpubs-home-trust-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(214, 166, 83, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mpubs-gold-400);
}

.mpubs-home-trust-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.mpubs-home-trust-copy {
  color: rgba(255, 249, 238, 0.72);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mpubs-home-book-card-cover,
.mpubs-home-preview-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpubs-home-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, #0f3a2e, #0a241c);
  color: var(--mpubs-gold-400);
  font-family: var(--mpubs-serif);
  font-size: 2rem;
  letter-spacing: 0;
}

.mpubs-home-section {
  padding: 4rem 0;
}

.mpubs-home-section-light {
  background: #fcf7ee;
}

.mpubs-home-section-cream {
  background:
    linear-gradient(180deg, #fcf7ee 0%, #f8efe0 100%);
}

#categories.mpubs-home-section-light {
  background: transparent;
  margin-top: -1.5rem;
  padding-top: 1.5rem;
}

.mpubs-home-section-dark {
  background:
    linear-gradient(180deg, #0b3428 0%, #041f17 100%);
  color: #fff8ee;
}

.mpubs-home-section-cta {
	background-color: #0b3428;
	background-image: linear-gradient(180deg, rgba(4, 31, 23, 0.1), rgba(4, 31, 23, 0.1)), url("/images/home/cta-panel-bg.png");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 655px;
}

.mpubs-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.mpubs-home-section-head.is-centered {
  justify-content: center;
  text-align: center;
}

.mpubs-home-section-head h2,
.mpubs-home-story-card h2,
.mpubs-home-reasons-card h2,
.mpubs-home-cta-panel h2 {
  margin: 0.45rem 0 0;
  font-family: var(--mpubs-serif);
  font-size: clamp(2rem, 1.4rem + 1.2vw, 3rem);
  line-height: 1;
  color: inherit;
}

.mpubs-home-section-link {
  color: var(--mpubs-ink);
  font-weight: 700;
}

.mpubs-home-featured-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.mpubs-home-featured-titlewrap {
  text-align: center;
}

.mpubs-home-featured-titlewrap h2 {
  margin: 0;
  font-family: var(--mpubs-serif);
  font-size: clamp(2.25rem, 1.75rem + 1.2vw, 3.3rem);
  line-height: 1;
  color: #143126;
}

.mpubs-home-featured-divider {
  width: 320px;
  max-width: 100%;
  height: 24px;
  margin: 0.7rem auto 0;
  background: url("/images/home/section-divider.png") center center / contain no-repeat;
}

.mpubs-home-featured-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #143126;
  font-size: 1rem;
  font-weight: 700;
}

.mpubs-home-featured-link svg {
  width: 18px;
  height: 18px;
}

.mpubs-home-books-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.mpubs-home-books-grid-archive {
  justify-content: flex-start;
  align-items: stretch;
}

.mpubs-home-book-card {
  display: grid;
  align-content: start;
  width: min(100%, 288px);
  flex: 0 1 288px;
  position: relative;
  border: 1px solid rgba(191, 166, 117, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 240, 0.94));
  box-shadow: 0 18px 34px rgba(20, 49, 38, 0.08);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

.mpubs-home-book-card::after {
  content: "";
  position: absolute;
  inset: -12% auto -12% -40%;
  width: 44%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 244, 205, 0.08) 18%,
    rgba(255, 247, 224, 0.34) 50%,
    rgba(255, 240, 190, 0.14) 78%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
  pointer-events: none;
}

.mpubs-home-book-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(214, 166, 83, 0.42);
  box-shadow:
    0 26px 44px rgba(20, 49, 38, 0.14),
    0 0 24px rgba(214, 166, 83, 0.18);
}

.mpubs-home-book-card:hover::after {
  opacity: 1;
  animation: mpubsBookSweep 1.15s ease forwards;
}

.mpubs-home-book-card-coverwrap {
  aspect-ratio: 3 / 4.2;
  padding: 1rem 1rem 0.45rem;
  background:
    radial-gradient(circle at bottom, rgba(14, 29, 23, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(11, 52, 40, 0.015), transparent 74%);
  transition: background 0.24s ease;
}

.mpubs-home-book-card:hover .mpubs-home-book-card-coverwrap {
  background:
    radial-gradient(circle at bottom, rgba(214, 166, 83, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(11, 52, 40, 0.045), transparent 74%);
}

.mpubs-books-archive {
  padding-top: 4.6rem;
  padding-bottom: 5rem;
}

.mpubs-books-archive .mpubs-home-container {
  width: min(1440px, calc(100vw - 3rem));
}

.mpubs-books-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.mpubs-books-archive-head h2 {
  margin: 0;
  color: #143126;
  font-family: var(--mpubs-serif);
  font-size: clamp(2.2rem, 1.8rem + 1vw, 3.2rem);
  line-height: 1;
}

.mpubs-books-archive-head p {
  margin: 0.7rem 0 0;
  color: #5b6e68;
  font-size: 1rem;
  line-height: 1.7;
}

.mpubs-books-archive-meta {
  white-space: nowrap;
  color: #143126;
  font-size: 0.95rem;
  font-weight: 700;
}

.mpubs-books-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 1.6rem;
}

.mpubs-books-search {
  position: relative;
}

.mpubs-books-search svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #758983;
  transform: translateY(-50%);
  pointer-events: none;
}

.mpubs-books-search input {
  width: 100%;
  height: 58px;
  padding: 0 1rem 0 2.95rem;
  border: 1px solid rgba(191, 166, 117, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #143126;
  font-size: 0.98rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(20, 49, 38, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mpubs-books-search input:focus {
  border-color: rgba(191, 166, 117, 0.55);
  box-shadow: 0 0 0 4px rgba(214, 166, 83, 0.1);
}

.mpubs-books-filterchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.mpubs-books-filterchip {
  min-height: 46px;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(191, 166, 117, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #264237;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.mpubs-books-filterchip:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 166, 117, 0.44);
  background: rgba(255, 255, 255, 0.98);
}

.mpubs-books-filterchip.is-active {
  border-color: rgba(191, 166, 117, 0.56);
  background: #143126;
  color: #fff8ee;
  box-shadow: 0 10px 20px rgba(20, 49, 38, 0.12);
}

.mpubs-home-book-card-cover {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 16px 22px rgba(7, 25, 19, 0.16);
  transform: scale(1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.mpubs-home-book-card:hover .mpubs-home-book-card-cover {
  transform: scale(1.035);
  box-shadow:
    0 18px 26px rgba(7, 25, 19, 0.22),
    0 0 20px rgba(214, 166, 83, 0.16);
}

@keyframes mpubsBookSweep {
  0% {
    transform: skewX(-18deg) translateX(0);
  }
  100% {
    transform: skewX(-18deg) translateX(340%);
  }
}

.mpubs-home-book-card-body {
  padding: 0 1rem 0.95rem;
}

.mpubs-home-book-card-title {
  color: #1a281f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  min-height: 2.5em;
}

.mpubs-home-book-card-author {
  margin-top: 0.25rem;
  color: #55695f;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 1.5em;
}

.mpubs-home-book-card-copy {
  min-height: 108px;
  margin: 0.8rem 0 0.95rem;
  color: #5d6f67;
  font-size: 0.88rem;
  line-height: 1.55;
}

.mpubs-home-book-card-tags {
  margin-bottom: 0.7rem;
}

.mpubs-home-book-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 30px;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 179, 138, 0.58);
  background: linear-gradient(180deg, #eff9ef, #dff0dd);
  color: #365847;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.mpubs-home-book-pill.is-preview {
  background: linear-gradient(180deg, #eff9ef, #ddefd8);
  color: #355847;
}

.mpubs-home-book-pill svg {
  width: 15px;
  height: 15px;
}

.mpubs-home-book-card-actions {
  display: block;
}

.mpubs-home-book-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(196, 175, 134, 0.9);
  border-radius: 14px;
  background: #fffefb;
  color: #152a20;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 230, 0.7);
}

.mpubs-home-book-register svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #13281e;
}

.mpubs-home-categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.mpubs-home-category-card {
  width: min(100%, 290px);
  flex: 0 1 290px;
  padding: 1.25rem 1rem 1.4rem;
  border: 1px solid rgba(210, 189, 151, 0.35);
  border-radius: 18px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transform: translateY(0) scale(1);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.mpubs-home-category-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(214, 166, 83, 0.5);
  box-shadow:
    0 18px 28px rgba(20, 49, 38, 0.08),
    0 0 18px rgba(214, 166, 83, 0.12);
}

.mpubs-home-category-card:visited {
  color: inherit;
}

.mpubs-home-category-glyph {
  width: 126px;
  height: 126px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/images/home/category-badge-bg.png") center center / contain no-repeat;
  transform: scale(1);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.mpubs-home-category-card:hover .mpubs-home-category-glyph {
  transform: scale(1.04);
  filter: drop-shadow(0 10px 16px rgba(214, 166, 83, 0.16));
}

.mpubs-home-category-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mpubs-gold-400);
  transition: transform 0.22s ease;
}

.mpubs-home-category-card:hover .mpubs-home-category-icon {
  transform: scale(1.05);
}

.mpubs-home-category-icon svg {
  width: 100%;
  height: 100%;
}

.mpubs-home-category-name {
  color: #1b2a20;
  font-family: var(--mpubs-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.mpubs-home-story-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.9rem;
	width: min(calc(100vw));
	margin-left: 50%;
	transform: translateX(-50%);
}

.mpubs-home-story-card,
.mpubs-home-reasons-card {
  position: relative;
  padding: 1.85rem 2rem 2rem;
  border: 1px solid rgba(223, 208, 176, 0.42);
  border-radius: 18px;
  background: rgb(250, 244, 236);
  box-shadow: 0 14px 24px rgba(20, 49, 38, 0.04);
}

.mpubs-home-story-card {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.mpubs-home-reasons-card {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 1.5rem 2.4rem 2rem 7.15rem;
  background:
    url("/images/home/reasons-panel-bg.png") center center / cover no-repeat;
}

.mpubs-home-story-heading {
  text-align: center;
}

.mpubs-home-reasons-heading {
  text-align: left;
}

.mpubs-home-story-heading h2,
.mpubs-home-reasons-heading h2 {
  margin: 0;
  font-family: var(--mpubs-serif);
  font-size: clamp(2rem, 1.65rem + 0.9vw, 2.75rem);
  line-height: 1.05;
  color: #163126;
}

.mpubs-home-story-divider {
  width: 290px;
  max-width: 100%;
  height: 22px;
  margin: 0.6rem auto 0;
  background: url("/images/home/section-divider.png") center center / contain no-repeat;
}

.mpubs-home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.55rem;
}

.mpubs-home-step {
  position: relative;
  text-align: center;
  padding-top: 0.35rem;
}

.mpubs-home-step-badge {
  width: 168px;
  height: 200px;
  margin: 0 auto 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: url("/images/home/story-step-bg.png") center center / contain no-repeat;
  color: var(--mpubs-gold-400);
  box-shadow: none;
}

.mpubs-home-step-badge svg {
  width: 54px;
  height: 54px;
  margin-top: 2.15rem;
}

.mpubs-home-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 66px;
  left: calc(50% + 72px);
  width: calc(100% - 32px);
  height: 10px;
  background:
    radial-gradient(circle, rgba(214, 166, 83, 0.72) 0 2px, transparent 3px) left center / 18px 10px repeat-x;
  opacity: 0.9;
}

.mpubs-home-step-index {
	display: block;
	width: 42px;
	height: 42px;
	margin: 0;
	position: absolute;
	top: 2.4rem;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	border-radius: 999px;
	background: transparent;
	border: 0;
	color: #fff8ee;
	font-size: 1rem;
	font-weight: 800;
	line-height: 42px;
	text-align: center;
	padding-top: 0.08rem;
	text-shadow: 0 1px 2px rgba(6, 22, 17, 0.32);
}

.mpubs-home-step h3,
.mpubs-home-reason-title {
  margin: 0 0 0.35rem;
  font-family: var(--mpubs-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1c2b21;
}

.mpubs-home-step p,
.mpubs-home-reason-copy,
.mpubs-home-footer-copy,
.mpubs-home-footer-links a,
.mpubs-home-footer-contact-item {
  margin: 0;
  color: #546760;
  font-size: 0.92rem;
  line-height: 1.6;
}

.mpubs-home-reasons-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.15rem;
}

.mpubs-home-reason {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 1.15rem;
  align-items: center;
}

.mpubs-home-reason-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: url("/images/home/reasons-icon-bg.png") center center / cover no-repeat;
  color: var(--mpubs-gold-400);
  box-shadow: 0 8px 18px rgba(9, 40, 31, 0.12);
}

.mpubs-home-reason-icon svg {
  width: 34px;
  height: 34px;
}

.mpubs-home-reason > div:last-child {
  padding-top: 0.12rem;
}

.mpubs-home-stats-band {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(214, 166, 83, 0.22);
  border-bottom: 1px solid rgba(214, 166, 83, 0.22);
  background: url("/images/home/stats-band-bg.png") center center / cover no-repeat;
}

.mpubs-home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.mpubs-home-stat {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0;
}

.mpubs-home-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: -0.5rem;
  width: 1px;
  height: calc(100% - 0.4rem);
  background: rgba(214, 166, 83, 0.42);
}

.mpubs-home-stat-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mpubs-gold-400);
}

.mpubs-home-stat-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.35;
}

.mpubs-home-stat-value {
  color: #fffdf8;
  font-family: var(--mpubs-serif);
  font-size: 2rem;
  line-height: 1;
}

.mpubs-home-stat-label {
  color: rgba(255, 249, 238, 0.78);
  font-size: 0.86rem;
  line-height: 1.4;
}

.mpubs-home-cta-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-height: 320px;
  padding: 3rem 2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.mpubs-home-cta-copy {
  width: min(720px, 100%);
  margin: 0 auto;
}

.mpubs-home-cta-copy .mpubs-home-eyebrow {
  color: rgba(231, 191, 102, 0.96);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  font-weight: 800;
}

.mpubs-home-cta-panel h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(3rem, 2.25rem + 1.3vw, 4.4rem);
  line-height: 0.98;
  color: #fffaf0;
  text-shadow: 0 3px 12px rgba(4, 18, 13, 0.42);
}

.mpubs-home-cta-visual,
.mpubs-home-cta-ornament {
  display: none;
}

.mpubs-home-cta-panel p {
  width: min(760px, 100%);
  margin: 1rem auto 1.35rem;
  color: rgba(255, 249, 238, 0.9);
  font-size: 1.08rem;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(4, 18, 13, 0.28);
}

.mpubs-home-cta-copy .mpubs-home-button-primary {
  min-width: 240px;
  padding: 1rem 1.8rem;
  border-color: rgba(196, 146, 49, 0.5);
  box-shadow: 0 16px 30px rgba(10, 28, 21, 0.24);
}

.mpubs-home-cta-copy .mpubs-home-button-primary span {
  font-size: 1rem;
  font-weight: 800;
}

.mpubs-home-cta-note {
  margin-top: 0.95rem;
  color: rgba(255, 249, 238, 0.94);
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(4, 18, 13, 0.28);
}

.mpubs-home-footer {
  padding: 3rem 0 1.4rem;
  background: #071711;
}

.mpubs-home-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 2rem;
  color: rgba(255, 249, 238, 0.86);
}

.mpubs-home-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mpubs-serif);
  font-size: 1.75rem;
}

.mpubs-home-footer-brand strong {
  color: var(--mpubs-gold-400);
}

.mpubs-home-footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mpubs-home-footer-copy {
  margin-top: 1rem;
  max-width: 340px;
  color: rgba(255, 249, 238, 0.72);
}

.mpubs-home-footer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mpubs-home-footer-social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(214, 166, 83, 0.22);
  color: var(--mpubs-gold-400);
}

.mpubs-home-footer-title {
  color: #fffdf8;
  font-size: 1rem;
  font-weight: 800;
}

.mpubs-home-footer-links {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.mpubs-home-footer-contact {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mpubs-home-footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(214, 166, 83, 0.16);
  color: rgba(255, 249, 238, 0.66);
  font-size: 0.84rem;
  text-align: center;
}

.mpubs-home-empty-state {
  padding: 2rem 1rem;
  border: 1px dashed rgba(22, 48, 41, 0.18);
  border-radius: 18px;
  color: var(--mpubs-copy);
  text-align: center;
}

.mpubs-home-alert {
  display: block;
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(143, 40, 24, 0.18);
  border-radius: 14px;
  background: rgba(143, 40, 24, 0.08);
  color: #7a2414;
  font-size: 0.92rem;
}

.mpubs-home-alert.is-hidden {
  display: none;
}

.mpubs-home-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 16, 12, 0.68);
  backdrop-filter: blur(8px);
}

.mpubs-home-preview-modal.is-open {
  display: flex;
}

.mpubs-home-preview-dialog {
  width: min(920px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid rgba(214, 166, 83, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8 0%, #f6efe0 100%);
  box-shadow: 0 30px 54px rgba(4, 18, 13, 0.24);
}

.mpubs-home-preview-dialoghead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mpubs-home-preview-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(22, 48, 41, 0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.mpubs-home-preview-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.4rem;
}

.mpubs-home-preview-cover {
  aspect-ratio: 3 / 4.1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--mpubs-shadow);
  background: linear-gradient(160deg, #0f3a2e, #0a241c);
}

.mpubs-home-preview-copy h3 {
  margin: 0.35rem 0 0;
  font-family: var(--mpubs-serif);
  font-size: 2rem;
  line-height: 1;
}

.mpubs-home-preview-subtitle {
  margin: 0.7rem 0 0;
  color: #587469;
  font-size: 1rem;
  font-weight: 700;
}

.mpubs-home-preview-meta {
  margin-top: 0.7rem;
  color: #789287;
  font-size: 0.9rem;
}

.mpubs-home-preview-description {
  margin-top: 1rem;
  color: var(--mpubs-copy);
  font-size: 0.95rem;
  line-height: 1.8;
}

.mpubs-home-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 1199.98px) {
  .mpubs-home-hero-grid,
  .mpubs-home-story-grid,
  .mpubs-home-cta-panel,
  .mpubs-home-footer-grid {
    grid-template-columns: 1fr;
  }

  .mpubs-home-story-grid {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .mpubs-books-archive .mpubs-home-container {
    width: min(100vw - 2rem, 100%);
  }

  .mpubs-books-toolbar {
    grid-template-columns: 1fr;
  }

  .mpubs-home-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mpubs-home-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mpubs-home-step:not(:last-child)::after {
    width: calc(100% - 54px);
  }
}

@media (max-width: 991.98px) {
  .mpubs-home-topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .mpubs-home-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mpubs-home-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.9rem;
    border: 1px solid rgba(214, 166, 83, 0.18);
    border-radius: 18px;
    background: rgba(7, 23, 17, 0.98);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
  }

  .mpubs-home-nav.is-open {
    display: flex;
  }

  .mpubs-home-nav a {
    padding: 0.85rem 0.25rem;
  }

  .mpubs-home-nav a::after {
    bottom: 0.25rem;
  }

  .mpubs-home-actions {
    display: none;
  }

  .mpubs-home-hero-grid {
    min-height: 560px;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .mpubs-home-hero-compact .mpubs-home-hero-grid {
    min-height: 320px;
    padding-top: 7.7rem;
    padding-bottom: 2.3rem;
  }

  .mpubs-home-books-grid {
    justify-content: center;
  }

  .mpubs-books-archive-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mpubs-home-featured-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mpubs-home-featured-head-spacer {
    display: none;
  }

  .mpubs-home-featured-link {
    justify-self: center;
  }

  .mpubs-home-categories-grid,
  .mpubs-home-stats-grid,
  .mpubs-home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpubs-home-stat:not(:last-child)::after {
    display: none;
  }

  .mpubs-home-step:not(:last-child)::after {
    display: none;
  }

  .mpubs-home-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .mpubs-home-container {
    width: min(100vw - 1.2rem, 100%);
  }

  .mpubs-home-brand-logo {
    width: 40px;
    height: 40px;
  }

  .mpubs-home-brand-text {
    font-size: 1.35rem;
  }

  .mpubs-home-hero-grid {
    gap: 1rem;
    min-height: 0;
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  .mpubs-home-hero-title {
    font-size: 2.9rem;
  }

  .mpubs-home-hero-compact .mpubs-home-hero-grid {
    min-height: 0;
    padding-top: 6.9rem;
    padding-bottom: 2rem;
  }

  .mpubs-books-archive .mpubs-home-container {
    width: min(100vw - 1.2rem, 100%);
  }

  .mpubs-home-trust-row,
  .mpubs-home-categories-grid,
  .mpubs-home-steps,
  .mpubs-home-stats-grid {
    grid-template-columns: 1fr;
  }

  .mpubs-home-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .mpubs-home-category-card {
    width: 100%;
    flex-basis: auto;
  }

  .mpubs-home-books-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .mpubs-books-toolbar {
    gap: 0.85rem;
  }

  .mpubs-books-filterchips {
    gap: 0.6rem;
  }

  .mpubs-books-filterchip {
    width: 100%;
    justify-content: center;
  }

  .mpubs-home-book-card {
    width: 100%;
    flex-basis: auto;
  }

  .mpubs-home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mpubs-home-section {
    padding: 3rem 0;
  }

  .mpubs-home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mpubs-home-section-head.is-centered {
    align-items: center;
  }

  .mpubs-home-featured-divider {
    width: 240px;
  }

  .mpubs-home-story-card,
  .mpubs-home-reasons-card,
  .mpubs-home-cta-panel,
  .mpubs-home-preview-dialog,
  .mpubs-policy-document {
    padding: 1.2rem;
    border-radius: 8px;
  }

  .mpubs-home-step-badge {
    width: 146px;
    height: 176px;
  }

  .mpubs-home-step-badge svg {
    width: 46px;
    height: 46px;
    margin-top: 1.95rem;
  }

  .mpubs-home-step-index {
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
  }

  .mpubs-home-reason {
    grid-template-columns: 72px 1fr;
  }

  .mpubs-home-reason-icon {
    width: 62px;
    height: 62px;
  }

  .mpubs-home-reasons-card {
    padding-left: 2rem;
  }
}
