/* Members area styles (login, library, product pages). Uses the shared tokens from mfp.css; nothing here is under 16px. */
.page-members { background: var(--cream, #faf7f0); }
.m-wrap { width: 100%; max-width: 1188px; margin: 0 auto; padding: 36px 24px 72px; }
.m-narrow { max-width: 620px; padding-top: 48px; }
.m-center { text-align: center; }

/* panels, forms, notes (login / forgot / reset) */
.m-panel { background: #fff; border: 1px solid var(--line, #e3e8dc); border-radius: 16px; box-shadow: var(--shadow, 0 10px 30px rgba(20, 51, 16, .08)); padding: 36px 36px 30px; margin-bottom: 24px; }
.m-panel h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.1; margin: 0 0 10px; color: var(--forest, #1f4a17); }
.m-panel h2 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; color: var(--forest, #1f4a17); }
.m-lead { font-size: 19px; color: var(--text, #333d30); margin: 0 0 22px; }
.m-form label { display: block; font-weight: 600; font-size: 17px; color: var(--ink, #1b2418); margin: 18px 0 6px; }
.m-form input[type=email], .m-form input[type=password], .m-form input[type=text] { width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 18px; color: var(--ink, #1b2418);
  background: #fff; border: 2px solid #cfd8c6; border-radius: 12px; }
.m-form input:focus { outline: 3px solid rgba(63, 154, 46, .35); border-color: var(--leaf, #3f9a2e); }
.m-form .btn { margin-top: 24px; }
.m-small-link { margin: 18px 0 0; font-size: 17px; text-align: center; }
.m-help { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line, #e3e8dc); font-size: 16px; color: var(--muted, #5f6b5a); text-align: center; }
.m-note { padding: 14px 18px; border-radius: 12px; font-size: 17px; margin: 0 0 18px; line-height: 1.5; }
.m-ok { background: var(--mint, #eef5e9); border: 1px solid #c9dcb9; color: var(--deep, #143310); }
.m-bad { background: #fdeee9; border: 1px solid #f3c4b7; color: #8a2f17; }
.m-preview { background: #fff8f4; border: 2px dashed var(--coral, #f07a5a); }
.m-preview h2 { font-size: 21px; }
.m-preview p { font-size: 17px; margin: 0 0 16px; }
.m-preview-btns { display: grid; gap: 12px; }
.m-preview-note { background: #fff8f4; border: 1px dashed var(--coral, #f07a5a); color: var(--ink, #1b2418); word-break: break-word; }

/* library */
.m-hero { margin: 0 0 12px; }
.m-eyebrow { margin: 0 0 6px; font-weight: 600; font-size: 17px; color: var(--leaf-h, #2f7f20); letter-spacing: .02em; }
.m-hero h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.05; margin: 0 0 12px; color: var(--forest, #1f4a17); }
.m-hero .m-lead { max-width: 640px; }
.m-h2 { font-size: clamp(26px, 3.4vw, 34px); color: var(--forest, #1f4a17); margin: 40px 0 20px; line-height: 1.15; }
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e3e8dc); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow, 0 10px 30px rgba(20, 51, 16, .08)); transition: transform .15s, box-shadow .15s; }
.m-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 24px 60px rgba(20, 51, 16, .16)); }
.m-card-img { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--mint, #eef5e9), #f6f1e4); height: 230px; padding: 18px; }
.m-card-img img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(20, 51, 16, .22)); }
.m-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.m-card-body h3 { font-size: 25px; line-height: 1.15; margin: 0 0 6px; }
.m-card-body h3 a { color: var(--forest, #1f4a17); text-decoration: none; }
.m-card-meta { font-size: 17px; color: var(--muted, #5f6b5a); margin: 0 0 18px; flex: 1; }
.m-helpline { margin-top: 48px; padding: 20px 26px; background: var(--mint, #eef5e9); border-radius: 16px; font-size: 18px; }
.m-helpline p { margin: 0; }

/* product page */
.m-crumb { font-size: 17px; margin: 0 0 18px; }
.m-prod-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin-bottom: 28px; }
.m-prod-cover { width: 100%; max-width: 220px; filter: drop-shadow(0 14px 18px rgba(20, 51, 16, .25)); }
.m-prod-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 10px; color: var(--forest, #1f4a17); }
.m-steps { background: #fff; border: 1px solid var(--line, #e3e8dc); border-left: 6px solid var(--coral, #f07a5a); border-radius: 12px; padding: 20px 26px; margin: 0 0 28px; }
.m-steps h2 { font-size: 24px; margin: 0 0 8px; color: var(--forest, #1f4a17); }
.m-steps ol { margin: 0; padding-left: 22px; }
.m-steps li { margin: 6px 0; }
.m-section { margin: 0 0 36px; scroll-margin-top: 96px; }
.m-section h2 { font-size: clamp(24px, 3vw, 30px); color: var(--forest, #1f4a17); margin: 0 0 14px; line-height: 1.2; }
.m-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.m-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 20px; align-items: center; background: #fff; border: 1px solid var(--line, #e3e8dc); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(20, 51, 16, .05); }
.m-item:not(:has(.m-thumb)) { grid-template-columns: 1fr auto; }
.m-thumb { width: 96px; height: auto; border-radius: 8px; }
.m-item-main { min-width: 0; }
.m-item h4 { font-size: 20px; line-height: 1.3; margin: 0; font-family: var(--sans, Inter, system-ui, sans-serif); font-weight: 600; color: var(--ink, #1b2418); }
.m-item-info { margin: 2px 0 0; font-size: 16px; color: var(--muted, #5f6b5a); }
.m-item audio, .m-item video { display: block; width: 100%; margin-top: 12px; border-radius: 12px; background: #000; }
.m-item audio { background: transparent; }
.m-item video { max-height: 420px; }
.m-item-video, .m-item-audio { grid-template-columns: auto 1fr; }
.m-item-video .m-item-act, .m-item-audio .m-item-act { grid-column: 1 / -1; }
.m-item-video:not(:has(.m-thumb)), .m-item-audio:not(:has(.m-thumb)) { grid-template-columns: 1fr; }
.m-item-act .btn { white-space: nowrap; }
.m-locked { background: #f3efe4; border: 1px dashed #cfc7ae; border-radius: 12px; padding: 14px 18px; margin: 0; color: var(--muted, #5f6b5a); font-size: 17px; }
.m-issue-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.m-issue-nav a, .m-locked-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: 17px; font-weight: 600; text-decoration: none; }
.m-issue-nav a { background: var(--leaf, #3f9a2e); color: #fff; }
.m-issue-nav a:hover { background: var(--leaf-h, #2f7f20); color: #fff; }
.m-locked-chip { background: #ece8dc; color: #7d8678; }

@media (max-width: 900px) {
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .m-wrap { padding: 24px 16px 56px; }
  .m-narrow { padding-top: 28px; }
  .m-panel { padding: 24px 20px 22px; }
  .m-grid { grid-template-columns: 1fr; gap: 18px; }
  .m-card-img { height: 200px; }
  .m-prod-head { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; }
  .m-prod-cover { max-width: 170px; }
  .m-item, .m-item:not(:has(.m-thumb)), .m-item-video, .m-item-audio { grid-template-columns: 1fr; padding: 16px; }
  .m-thumb { width: 100%; max-width: 220px; }
  .m-item-video .m-thumb { display: none; }   /* the video poster already shows the cover */
  .m-item-act .btn { width: 100%; white-space: normal; }
  .m-steps { padding: 18px 18px 18px 20px; }
}
