@import url('./metabolic-map.css');
@import url('./memorize-cast.css');
@font-face{font-family:MemoryLiterata;src:url(room/assets/literata.woff2) format('woff2');font-display:swap;font-weight:400 700}
.memory-surface{--mp:light-dark(#fbf7ed,#202c3b);--mi:light-dark(#25384c,#ecdfc2);--mm:light-dark(#655e52,#c4baaa);--ml:light-dark(#d6c7af,#536170);--ma:light-dark(#86622f,#d6b87e);--mg:light-dark(#216747,#9cddb4);--mr:light-dark(#9d2b35,#ffb3b8);--ms:light-dark(#f0e8d8,#29394a);color:var(--mi);background:var(--mp);padding:32px;border-radius:8px;font-family:Inter,'Noto Sans Arabic',system-ui,sans-serif;min-width:0;line-height:1.55}
.memory-surface *{box-sizing:border-box}
.memory-surface button,.memory-surface select{font:inherit;color:inherit;touch-action:manipulation}
.memory-surface button{cursor:pointer}
.memory-surface button:disabled{cursor:default}
.memory-surface button:focus-visible,.memory-surface select:focus-visible,.memory-surface a:focus-visible,.memory-surface summary:focus-visible{outline:3px solid var(--ma);outline-offset:4px}
.memory-surface ::selection{background:var(--mi);color:var(--mp)}
.memory-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}
.memory-heading h1{font-family:MemoryLiterata,Literata,Georgia,serif;font-size:clamp(29px,3.5vw,42px);font-weight:500;letter-spacing:-.035em;line-height:1.2;margin:0 0 10px;text-wrap:balance;color:var(--mi)}
.memory-heading p{font-size:14px;color:var(--mm);max-width:55ch;margin:0;line-height:1.65}
.memory-action{border:0;border-radius:6px;background:var(--mi);color:var(--mp)!important;min-height:44px;padding:10px 17px;font-size:13px;white-space:nowrap;font-weight:500}
.memory-action:hover{filter:brightness(1.15)}
.memory-inspector{border-left:1px solid var(--ml);padding:24px 0 0 25px;min-width:0}
.memory-surface .memory-molecular-layout{grid-template-columns:1fr}
.memory-section-head{display:flex;justify-content:space-between;gap:12px;color:var(--mm);font-size:11px;align-items:center;margin:0 0 20px}
.memory-section-head h2{font-size:16px;font-weight:500;color:var(--mi);margin:0}
.memory-select{display:block;color:var(--mm);font-size:11px;margin-bottom:25px}
.memory-select select{display:block;width:100%;border:1px solid var(--ml);background:var(--mp);border-radius:5px;margin-top:7px;min-height:43px;font-size:13px;padding:9px 30px 9px 10px;text-overflow:ellipsis}
.memory-reading>h2{font-family:MemoryLiterata,Literata,Georgia,serif;font-weight:500;font-size:25px;line-height:1.28;letter-spacing:-.025em;margin:0 0 23px;text-wrap:balance}
.memory-fact{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--ml)}
.memory-fact h3{font-size:12px;font-weight:600;color:var(--mi);margin:0 0 7px;letter-spacing:0}
.memory-fact p{font-size:13px;line-height:1.75;margin:0;overflow-wrap:anywhere}
.memory-fact:last-of-type{margin-bottom:22px}
.memory-sources{display:flex;flex-wrap:wrap;gap:5px 11px;margin-top:9px}
.memory-source{padding:2px 0;min-height:24px;border:0;background:transparent;color:var(--mm)!important;font-size:11px!important;text-decoration:underline;text-underline-offset:3px;text-align:start;line-height:1.6}
.memory-source:hover{color:var(--mi)!important}
.memory-unfold{border-top:1px solid var(--ml);margin-top:24px;padding:18px 0 0}
.memory-unfold summary{font-size:13px;cursor:pointer;color:var(--mi);font-weight:500;min-height:28px}
.memory-unfold>p{font-size:14px;margin-top:16px;line-height:1.75}
.memory-sequence{margin-top:22px}
.memory-step-list{list-style:none;padding:0;margin:0}
.memory-step-list li{display:grid;grid-template-columns:25px 1fr;gap:12px;position:relative;min-height:65px;font-size:13px;padding-bottom:20px}
.memory-step-list li>span{font-variant-numeric:tabular-nums;width:25px;height:25px;border:1px solid var(--ml);border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--mp);z-index:1}
.memory-step-list li:not(:last-child):before{content:'';position:absolute;left:12px;top:25px;bottom:0;border-left:1px solid var(--ml)}
.memory-step-list li>div{padding-top:1px;line-height:1.7}
.memory-prompt{font-size:14px;margin:12px 0 16px}
.memory-prior-step{font-size:12px;line-height:1.7;padding-bottom:15px;border-bottom:1px solid var(--ml);margin:0 0 15px;color:var(--mm)}
.memory-choices{display:grid;gap:8px}
.memory-choice{padding:12px;text-align:left;border:1px solid var(--ml);border-radius:6px;background:var(--mp);font-size:13px;line-height:1.5;min-height:44px}
.memory-choice:not(:disabled):hover{background:var(--ms)}
.memory-choice.correct{border-color:var(--mg);color:var(--mg)}
.memory-choice.incorrect{border-color:var(--mr);color:var(--mr)}
.memory-choice span{display:block;font-size:11px;margin-top:6px;font-weight:600}
.memory-feedback{font-size:13px;margin:15px 0;line-height:1.65;color:var(--mi);min-height:21px}
.memory-note{font-size:12px!important;line-height:1.7;color:var(--mm);margin:20px 0 0}
.memory-pharma-stages{display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--ml);padding-bottom:21px;margin-bottom:28px}
.memory-pharma-stages button{border:1px solid var(--ml);border-radius:5px;background:transparent;padding:9px 13px;font-size:12px;min-height:42px}
.memory-pharma-stages button[aria-pressed=true]{color:var(--mp);background:var(--mi);border-color:var(--mi)}
.memory-pharma-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:35px}
.memory-drug-journey{padding:16px 0;min-width:0}
.memory-drug-journey h2{font-family:MemoryLiterata,Literata,Georgia,serif;font-size:24px;font-weight:500;margin:0 0 20px}
.memory-drug-hub{width:108px;height:108px;border:1px solid var(--ma);border-radius:50%;margin:30px auto;display:grid;place-items:center;font-family:MemoryLiterata,Georgia,serif;font-size:28px}
.memory-drug-processes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.memory-drug-processes button{border:0;border-bottom:1px solid var(--ml);padding:13px 3px;background:transparent;text-align:left;min-height:62px}
.memory-drug-processes span{display:block;font-size:14px;font-weight:500}
.memory-drug-processes small{display:block;color:var(--mm);font-size:11px;margin-top:5px}
.memory-drug-processes button[aria-pressed=true] span{color:var(--ma);text-decoration:underline;text-underline-offset:5px}
.memory-comparison-head{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.memory-compare>section{padding:22px 0;border-top:1px solid var(--ml)}
.memory-compare>section>h2{font-family:MemoryLiterata,Georgia,serif;font-size:23px;font-weight:500;margin:0 0 17px}
.memory-compare-pair{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.memory-compare-pair>div{min-width:0}
.memory-compare-pair>div>h3{font-size:16px;margin:0 0 12px;font-weight:500}
.memory-compare-pair .memory-fact{border:0;padding:0;margin:0 0 20px}
.memory-compare>section .memory-fact h3{display:none}
.memory-molecular-layout{display:grid;grid-template-columns:120px minmax(0,1fr);gap:42px;max-width:800px;margin:auto}
.memory-molecular-work{min-width:0}
.memory-molecular-work>h2{font-family:MemoryLiterata,Georgia,serif;font-size:23px;font-weight:500;line-height:1.45;margin:0 0 26px}
@media(max-width:900px){.memory-surface{padding:25px}.memory-inspector{padding-left:20px}.memory-heading h1{font-size:33px}}
@media(max-width:730px){.memory-inspector{border-left:0;border-top:1px solid var(--ml);padding:25px 0 0;margin-top:22px}.memory-heading{align-items:flex-start;flex-direction:column;gap:17px}.memory-heading h1{font-size:34px}.memory-pharma-layout{grid-template-columns:1fr;gap:22px}.memory-pharma-layout .memory-inspector{margin:0}.memory-comparison-head{gap:14px}.memory-compare-pair{gap:18px}.memory-molecular-layout{grid-template-columns:65px minmax(0,1fr);gap:20px}.memory-strand{width:52px}}
@media(max-width:420px){.memory-surface{padding:19px 15px}.memory-reading>h2{font-size:25px}.memory-comparison-head{grid-template-columns:1fr;gap:0}.memory-compare-pair{gap:16px}.memory-compare-pair .memory-fact p{font-size:12px}.memory-molecular-layout{grid-template-columns:1fr}.memory-molecule-art{display:none}.memory-pharma-stages{gap:6px}.memory-pharma-stages button{font-size:12px;padding:8px 10px}.memory-heading h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){.memory-surface *{transition:none!important;scroll-behavior:auto!important}}

/* R1 (projects/app/memorize-redesign/REVIEW.md, 2026-12-03): the 14 px text floor and the 44 px touch rule that the Pathology and Metabolic tools meet.
   Text under 14 px is raised to 14 px; the process buttons, the select and the fold lines are at least 44 px tall; on a touch screen the source
   links are 44 px tall too, and the select's text is 16 px so an iPhone does not zoom in when it is tapped. Permanent. */
.memory-surface .memory-source{font-size:14px!important;min-height:32px}
.memory-surface .memory-select{font-size:14px}
.memory-surface .memory-select select{min-height:44px;font-size:14px}
.memory-surface .memory-note{font-size:14px!important}
.memory-surface .memory-feedback,.memory-surface .memory-prior-step{font-size:14px}
.memory-surface .memory-pharma-stages button{font-size:14px;min-height:44px}
details.memory-unfold>summary{font-size:14px;min-height:44px;display:flex;align-items:center} /* also Microbiology's summary fold, outside the tools' box */
.memory-surface .memory-fact h3,.memory-surface .memory-fact p,.memory-surface .memory-compare-pair .memory-fact p{font-size:14px}
.memory-surface .memory-section-head span,.memory-surface .memory-choice span,.memory-surface button small{font-size:14px}
@media(pointer:coarse){.memory-surface .memory-source{min-height:44px;display:inline-flex;align-items:center}.memory-surface .memory-select select{font-size:16px}}
.memory-surface .memory-step-list li{font-size:14px;grid-template-columns:28px 1fr}.memory-surface .memory-step-list li>span{font-size:14px;width:28px;height:28px} /* Molecular Biology's numbered steps */
