/* Melidan Academy word explorer: additive styling, reuses existing palette and typography. */
.mw-conjugator{border:1px solid #cfe3d7;background:linear-gradient(130deg,#f3faf5,#faf8f5);border-radius:22px;padding:clamp(15px,3vw,24px);margin:0 0 18px;color:#0f2342}
.mw-conjugator h3{font-family:Fraunces,Georgia,serif;font-size:clamp(19px,2.5vw,26px);font-weight:850;color:#173f30;margin-bottom:6px}
.mw-searchrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.mw-input,.mw-select{background:#fff;border:1px solid #bdcfca;color:#0f2342;border-radius:12px;padding:10px 12px;min-height:44px;font-size:14px}
.mw-input{flex:1 1 190px;min-width:0}
.mw-btn,.mw-card-action{background:#185b45;color:#fff;border:1px solid #185b45;border-radius:11px;min-height:44px;padding:9px 15px;font-size:13px;font-weight:800;cursor:pointer;text-align:center}
.mw-random,.mw-card-action{background:#eff8f1;color:#185b45;border-color:#a6c9b2}
.mw-card-action{width:auto;align-self:flex-start;margin-top:5px;padding:7px 4px;background:transparent;color:#185b45;border:0;border-bottom:2px solid #b4d6bf;border-radius:0;position:relative;z-index:1;text-decoration:none;min-height:44px}
.mw-btn:hover,.mw-card-action:hover{filter:brightness(.94)}
.mw-btn:focus-visible,.mw-card-action:focus-visible,.mw-input:focus-visible,.mw-select:focus-visible,.mw-close:focus-visible{outline:3px solid #e5ae44;outline-offset:2px}
.mw-note{font-size:12px;color:#597367;line-height:1.6;margin:5px 0}
.mw-feedback{margin-top:8px}.mw-found,.mw-not-found{border:1px solid #cfe3d7;background:#fff;border-radius:12px;padding:12px;display:grid;gap:9px}
.mw-found{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.mw-overlay{position:fixed;inset:0;z-index:1000;background:#0f23429c;display:flex;align-items:center;justify-content:center;padding:14px}
.mw-overlay[hidden]{display:none!important}
.mw-dialog-open{overflow:hidden}
.mw-dialog{background:#faf8f5;color:#0f2342;border:1px solid #b9d5c6;border-radius:22px;max-width:680px;width:100%;max-height:min(90vh,800px);overflow:auto;box-shadow:0 24px 68px #071b2c33;overscroll-behavior:contain}
.mw-dialog-head{position:sticky;top:0;z-index:2;background:#faf8f5;border-bottom:1px solid #d7e6dd;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px}
.mw-dialog-head h2{font-family:Fraunces,Georgia,serif;font-size:19px;font-weight:850}
.mw-close{border:1px solid #cbdad3;border-radius:10px;padding:9px 12px;background:#fff;font-size:13px;min-height:44px;font-weight:700;cursor:pointer}
.mw-content{display:grid;gap:14px;padding:20px}
.mw-word-name{font-family:Fraunces,Georgia,serif;font-size:clamp(26px,5vw,36px);font-weight:850;color:#173f30}
.mw-meaning{font-size:16px;color:#466252;font-weight:700}
.mw-detail{border:1px solid #d9e9dd;border-radius:15px;padding:15px;background:#fff;display:grid;gap:8px}
.mw-detail h3{font-size:16px;font-weight:800;color:#1e6248}.mw-detail h4{font-size:13px;font-weight:750;color:#567164}
.mw-detail .mw-btn{justify-self:start}
.mw-ipa{font-size:20px;font-weight:700;letter-spacing:.02em}.mw-pronounce{font-size:14px;color:#195b43;font-weight:750}
.mw-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mw-field{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:750;color:#31594a}
.mw-select{width:100%;font-weight:650}
.mw-result{display:grid;gap:9px;background:#f3f9f4;border:1px solid #deeee1;border-radius:12px;padding:12px}
.mw-verb-form{font-weight:850;font-size:17px;color:#185b45}
.mw-sentence{line-height:1.7;font-size:17px;font-weight:600;color:#0f2342}
@media(max-width:560px){.mw-controls{grid-template-columns:1fr}.mw-content{padding:13px}.mw-dialog{max-height:calc(100dvh - 24px)}.mw-overlay{padding:8px}.mw-searchrow>.mw-btn{flex:1}}
@media(prefers-reduced-motion:reduce){.mw-overlay,.mw-dialog{scroll-behavior:auto}}

/* Optional quick overview: all pronouns for the selected tense. */
.mw-all-pronouns{border:1px solid #cfe3d7;border-radius:12px;padding:10px;background:#f6fbf7}
.mw-all-pronouns>summary{cursor:pointer;color:#185b45;font-size:13px;font-weight:800;padding:6px}
.mw-all-pronouns>summary:focus-visible{outline:3px solid #e5ae44;outline-offset:2px}
.mw-pronoun-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:10px}
.mw-pronoun-choice{min-height:44px;border:1px solid #c2ddcb;border-radius:9px;background:#fff;color:#184b37;padding:9px 10px;font-size:12px;font-weight:700;cursor:pointer;text-align:left}
.mw-pronoun-choice[aria-pressed="true"]{background:#185b45;color:#fff}
.mw-pronoun-choice:focus-visible{outline:3px solid #e5ae44;outline-offset:2px}
.mw-example-row{border-bottom:1px solid #e2ebe4;padding-bottom:10px;display:grid;gap:6px}
.mw-example-row:last-child{border-bottom:none;padding-bottom:0}
.mw-example-row .mw-btn{min-height:38px}
#mw-open-conjugator{white-space:normal}

@media(min-width:600px){.mw-controls{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Visual memory aid and progressive past-simple spelling workshop */
.mw-word-emoji{display:inline-flex;align-items:center;justify-content:center;font-size:clamp(42px,8vw,65px);line-height:1.2;margin:4px 0 12px;min-height:64px}
.mw-practice{margin:18px 0 22px;padding:clamp(16px,4vw,28px);border:1px solid #c9dfd3;border-radius:22px;background:#fff;box-shadow:0 4px 16px rgba(15,35,66,.05);display:grid;gap:14px;color:#0f2342}
.mw-practice-title{font-size:clamp(19px,3vw,25px);font-weight:850;color:#175a40}
.mw-practice-rules{border:1px solid #cfe3d7;background:#f5fbf7;border-radius:14px;padding:14px}
.mw-practice-rules>summary{cursor:pointer;font-weight:800;color:#175a40}
.mw-practice-rule{padding:12px 0;border-bottom:1px solid #d8e6dd;line-height:1.55}
.mw-practice-rule:last-child{border-bottom:0}
.mw-practice-rule strong{font-size:15px;color:#102c44}
.mw-practice-rule .mw-note{margin:5px 0 0}
.mw-practice-prompt{font-size:clamp(23px,4vw,32px);font-weight:850}
.mw-practice .mw-input{width:100%;max-width:420px;min-height:48px;padding:12px 15px;font-size:17px}
.mw-practice-actions{display:flex;flex-wrap:wrap;gap:10px}
.mw-practice-feedback{min-height:32px;display:grid;gap:8px}
.mw-correct{font-weight:800;color:#17633d}
.mw-incorrect{font-weight:800;color:#9a3c29}
.mw-practice .mw-btn:focus-visible,.mw-practice .mw-input:focus-visible{outline:3px solid #e5ae44;outline-offset:3px}
.mw-practice .mw-btn:disabled{opacity:.5;cursor:not-allowed}

.mw-card-visual{display:inline-block;font-size:26px;line-height:1.3;margin:5px 0;vertical-align:middle}

/* Lana’s visual vocabulary assets (ES / IT / PT / FR). */
.mw-lana-illustration{display:block;width:min(100%,160px);height:105px;margin:8px auto;object-fit:contain;pointer-events:none}

/* Lana illustrations inside the word explorer and conjugator dialogs. */
.mw-word-lana{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;margin:12px auto 20px;padding:14px 16px;background:linear-gradient(135deg,#f1faf4,#fffaf1);border:1px solid #d8e8d8;border-radius:18px;max-width:100%;width:min(100%,340px)}
.mw-word-lana-img{width:min(100%,230px);height:180px;object-fit:contain;object-position:center;display:block}
.mw-word-lana-caption{font-size:12px;font-weight:800;line-height:1.45;color:#315847;text-align:center;overflow-wrap:anywhere}
@media(max-width:550px){.mw-word-lana{padding:10px 12px;margin:10px auto 16px}.mw-word-lana-img{height:140px;width:min(100%,185px)}}
