/* Public membership page (/membership). Mobile first: phone styles are the base; wider screens only add. */
.ml {
    --ml-green: #004a35; --ml-green-mid: #006b4d; --ml-sage: #eaf3ec; --ml-cream: #faf8f2; --ml-gold: #d5a028; --ml-gold-soft: #fbf3df;
    --ml-ink: #12352b; --ml-muted: #5b6b63; --ml-line: #dfe7e1;
    background: var(--ml-cream); color: var(--ml-ink); padding-bottom: 32px;
}
.ml *, .ml *::before, .ml *::after { box-sizing: border-box; }
.ml .fhf-icon { flex: none; }
.ml a { color: var(--ml-green-mid); }
.ml-shell { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.ml-hero { padding: 18px 0 20px; background: var(--ml-green); color: #fff; }
.ml-hero h1 { margin: 0; color: #fff; font: 700 1.7rem/1.15 var(--fhf-font-display, Georgia, serif); }
.ml-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, .9); font-size: 1rem; }

.ml-body { padding-top: 16px; }
.ml-flash, .ml-resume, .ml-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--ml-sage); font-weight: 600; }
.ml-h2 { margin: 0; color: var(--ml-green); font: 700 1.35rem/1.2 var(--fhf-font-display, Georgia, serif); }
.ml-lead { margin: 4px 0 12px; color: var(--ml-muted); font-size: .95rem; }

.ml-types { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ml-type { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--ml-line); border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(1, 59, 46, .05); }
.ml-type.is-picked { border-color: var(--ml-green); box-shadow: 0 0 0 2px var(--ml-green) inset; }
.ml-type-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ml-type-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ml-sage); color: var(--ml-green); }
.ml-type h3 { flex: 1; margin: 0; color: var(--ml-green); font: 700 1.15rem/1.2 var(--fhf-font-display, Georgia, serif); }
.ml-pill { padding: 3px 10px; border-radius: 999px; background: #dff5ea; color: #0a6b47; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.ml-pill.is-closed { background: #eef1ef; color: #6b7a72; }
.ml-price { margin: 0; }
.ml-price strong { color: var(--ml-ink); font-size: 1.6rem; font-weight: 800; }
.ml-price span { color: var(--ml-muted); font-weight: 600; }
.ml-price .ml-price-none { color: var(--ml-muted); font-size: .95rem; }
.ml-type-text { margin: 0; color: var(--ml-muted); font-size: .92rem; line-height: 1.45; }
.ml-more summary, .ml-fold > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ml-green); font-weight: 750; cursor: pointer; list-style: none; }
.ml-more summary::-webkit-details-marker, .ml-fold > summary::-webkit-details-marker { display: none; }
.ml-more summary::after, .ml-fold > summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; line-height: 1; }
.ml-more[open] summary::after, .ml-fold[open] > summary::after { content: "–"; }
.ml-more ul { display: grid; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; font-size: .92rem; }
.ml-more li { display: flex; gap: 6px; align-items: flex-start; }
.ml-more li .fhf-icon { margin-top: 3px; color: var(--ml-green-mid); }
.ml-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; text-align: center; }
.ml .ml-btn-primary { margin-top: auto; background: var(--ml-green); color: #fff; }
.ml .ml-btn-primary:hover { background: var(--ml-green-mid); }
.ml .ml-btn-outline { border-color: var(--ml-green); background: #fff; color: var(--ml-green); }
.ml-closed { margin: auto 0 0; padding: 10px 12px; border-radius: 12px; background: #f3f5f3; color: var(--ml-muted); font-size: .9rem; }

.ml-account { display: grid; gap: 8px; margin-top: 14px; }
.ml-account p { margin: 0; text-align: center; font-weight: 600; }

.ml-info { display: grid; gap: 8px; margin-top: 20px; }
.ml-fold { padding: 0 14px; border: 1px solid var(--ml-line); border-radius: 14px; background: #fff; }
.ml-fold[open] { padding-bottom: 12px; }
.ml-fold > summary .fhf-icon { color: var(--ml-green-mid); }
.ml-reasons, .ml-steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: .95rem; line-height: 1.45; }
.ml-reasons { list-style: disc; }
.ml-faq { display: grid; gap: 6px; }
.ml-faq details { border-top: 1px solid var(--ml-line); }
.ml-faq summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
.ml-faq p { margin: 0 0 10px; color: var(--ml-muted); font-size: .92rem; line-height: 1.5; }

.ml-links { display: grid; gap: 6px; margin-top: 16px; }
.ml-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--ml-line); border-radius: 12px; background: #fff; font-weight: 700; text-decoration: none; }
.ml-share { margin-top: 14px; }
.ml a:focus-visible, .ml summary:focus-visible { outline: 3px solid var(--ml-gold); outline-offset: 2px; }

@media (min-width: 640px) {
    .ml-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ml-account { display: flex; flex-wrap: wrap; justify-content: center; }
    .ml-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .ml-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ml-type .ml-pill { order: 3; }
    .ml-type h3 { flex-basis: calc(100% - 50px); }
}
@media (min-width: 1024px) {
    .ml-hero { padding: 26px 0 28px; }
    .ml-hero h1 { font-size: 2.3rem; }
    .ml-h2 { font-size: 1.6rem; }
    .ml-info { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* Policy pages (/policies). Mobile first. */
.pl-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pl-list a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--ml-line); border-radius: 14px; background: #fff; color: var(--ml-ink); text-decoration: none; }
.pl-list a > .fhf-icon:first-child { color: var(--ml-green-mid); }
.pl-list a > .fhf-icon:last-child { margin-left: auto; color: var(--ml-muted); }
.pl-list strong { display: block; color: var(--ml-green); font-size: 1.02rem; }
.pl-list small { display: block; margin-top: 2px; color: var(--ml-muted); font-size: .88rem; line-height: 1.4; }
.pl-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--ml-gold-soft); font-size: .92rem; }
.pl-types { display: grid; gap: 10px; margin-top: 10px; }
.pl-type { padding: 14px; border: 1px solid var(--ml-line); border-radius: 14px; background: #fff; }
.pl-type h3 { margin: 0; color: var(--ml-green); font: 700 1.1rem/1.2 var(--fhf-font-display, Georgia, serif); }
.pl-type > p { margin: 4px 0 0; color: var(--ml-muted); font-size: .92rem; }
.pl-type dl { display: grid; gap: 8px; margin: 10px 0 0; }
.pl-type dt { color: var(--ml-muted); font-size: .78rem; font-weight: 800; }
.pl-type dd { margin: 1px 0 0; font-size: .95rem; font-weight: 600; }
.pl-section { margin-top: 20px; }
.pl-faq { margin-top: 8px; padding: 0 14px; border: 1px solid var(--ml-line); border-radius: 14px; background: #fff; }
.pl-faq details:first-child { border-top: 0; }
@media (min-width: 640px) {
    .pl-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .pl-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .ml-type .ml-btn { padding: 10px 12px; font-size: .95rem; } }
