/* Ekklevia Alpha80 — optional reading challenges, richer personal milestones.
   Scoped under the existing MDJ plan; no changes to other portal areas. */
.fcp-mdj-plan-layout .fcp-mdj-plan-badges {background:var(--mdj-surface);border-color:var(--mdj-line)}
.fcp-mdj-badges-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.fcp-mdj-badges-heading h3 {margin:4px 0 0}
.fcp-mdj-badges-total {font-size:.82rem;border:1px solid var(--mdj-line);border-radius:999px;padding:7px 10px;color:var(--mdj-muted)}
.fcp-mdj-milestone-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 16px}
.fcp-mdj-milestone {display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;justify-content:flex-start;padding:17px 12px;border-radius:16px;border:1px solid var(--mdj-line);background:var(--mdj-tint);color:var(--mdj-copy);min-width:0}
.fcp-mdj-milestone-symbol {display:grid;place-items:center;width:58px;height:58px;border-radius:50%;font-size:1.55rem;font-weight:800;line-height:1;background:var(--mdj-surface);border:1px solid var(--mdj-line);margin-bottom:4px}
.fcp-mdj-milestone.is-earned {border-color:rgba(224,166,54,.54);background:linear-gradient(145deg,rgba(223,168,65,.18),var(--mdj-tint))}
.fcp-mdj-milestone.is-earned .fcp-mdj-milestone-symbol {border-color:rgba(224,166,54,.65);background:rgba(242,182,54,.17);color:#bc8018}
html[data-fcp-theme="dark"] .fcp-mdj-milestone.is-earned .fcp-mdj-milestone-symbol {color:#f7cf79}
.fcp-mdj-milestone.is-locked {opacity:.77}
.fcp-mdj-milestone.is-locked .fcp-mdj-milestone-symbol {opacity:.66}
.fcp-mdj-milestone strong {font-size:.95rem;line-height:1.4}
.fcp-mdj-milestone span {font-size:.8rem;color:var(--mdj-muted);line-height:1.4}
.fcp-mdj-milestone small {margin-top:auto;padding-top:5px;color:var(--mdj-muted)}
.fcp-mdj-milestone-current {margin:0 0 12px;padding:12px 14px;background:rgba(41,161,144,.09);border:1px solid rgba(41,161,144,.29);border-radius:12px;color:var(--mdj-copy)}
.fcp-mdj-weekly-challenge {margin-top:16px;display:grid;gap:14px;background:var(--mdj-surface);color:var(--mdj-copy);border:1px solid var(--mdj-line);border-radius:18px;padding:clamp(18px,3vw,27px)}
.fcp-mdj-challenge-title {display:flex;align-items:center;gap:14px}
.fcp-mdj-challenge-icon {display:grid;place-items:center;border-radius:14px;width:48px;height:48px;background:var(--mdj-tint);color:var(--mdj-accent);font-size:1.7rem}
.fcp-mdj-challenge-title h3 {font-size:1.2rem;line-height:1.4;margin:4px 0 0;color:var(--mdj-copy)}
.fcp-mdj-weekly-challenge p {margin:0;color:var(--mdj-muted);line-height:1.6}
.fcp-mdj-weekly-challenge p strong {font-size:1.22rem;color:var(--mdj-copy)}
.fcp-mdj-weekly-challenge .fcp-mdj-challenge-success {border:1px solid rgba(41,161,144,.3);border-radius:10px;padding:10px 12px;background:rgba(41,161,144,.09);color:var(--mdj-copy)}
.fcp-mdj-challenge-form {display:grid;gap:10px;padding-top:7px;border-top:1px solid var(--mdj-line)}
.fcp-mdj-challenge-form>label:first-of-type {font-weight:750}
.fcp-mdj-challenge-form select {max-width:380px;width:100%;min-height:44px;border-radius:12px;border:1px solid var(--mdj-line);background:var(--mdj-surface);color:var(--mdj-copy);font:inherit;padding:8px 12px}
.fcp-mdj-challenge-optin {display:flex;align-items:flex-start;gap:10px;max-width:72ch;font-size:.9rem;color:var(--mdj-copy);line-height:1.55;cursor:pointer}
.fcp-mdj-challenge-optin input {margin-top:4px;flex:0 0 auto;accent-color:var(--mdj-accent);width:17px;height:17px}
.fcp-mdj-challenge-form button {justify-self:start;max-width:100%}
.fcp-mdj-weekly-challenge>small {color:var(--mdj-muted);line-height:1.55}
.fcp-mdj-challenge-form select:focus-visible,.fcp-mdj-challenge-form button:focus-visible,.fcp-mdj-challenge-optin input:focus-visible {outline:2px solid var(--mdj-accent);outline-offset:3px}
@media(max-width:710px) {.fcp-mdj-milestone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px) {.fcp-mdj-milestone-grid{gap:9px}.fcp-mdj-milestone{padding:12px 8px}.fcp-mdj-milestone-symbol{width:48px;height:48px}.fcp-mdj-weekly-challenge{padding:16px}}
@media(prefers-reduced-motion:reduce) {.fcp-mdj-milestone *{transition:none}}
