/* Memory previews: keep the existing PE navy, cream and gold. */
.memory-game{min-width:0}.memory-game *, .memory-hub *{box-sizing:border-box}
.memory-game button,.memory-game input,.memory-game select{min-height:44px}
.memory-game button:focus-visible,.memory-game input:focus-visible,.memory-game textarea:focus-visible,.memory-game select:focus-visible,.memory-game summary:focus-visible{outline:3px solid #ad7d31;outline-offset:3px}
.memory-game button{touch-action:manipulation}.memory-game button:disabled{cursor:default;opacity:.62}
.memory-player{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px;padding:16px 20px;background:#eee6d7;border:1px solid #d6ccb8;border-radius:10px}
.memory-player>label{font-size:13px;font-weight:700}.memory-player>select{width:auto;max-width:240px}.memory-player details{position:relative}.memory-player summary{cursor:pointer;font-size:13px;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:flex;align-items:center}
.memory-player details form{position:absolute;z-index:5;top:48px;left:0;width:270px;max-width:calc(100vw - 70px);padding:18px;background:#fffdf7;border:1px solid #c5b99f;box-shadow:0 12px 30px #0b23451a;border-radius:8px}
.memory-player .micro{margin:0}.memory-review{border-top:1px solid #dfd6c6;margin-top:26px;padding-top:20px}.memory-review h2{font-size:22px;margin:0 0 10px}.memory-review details{margin-top:16px}.memory-review summary,.round-review summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:700}.memory-review ul{padding-left:18px;max-height:260px;overflow:auto}.memory-review li{padding:8px 0;font-size:14px}.memory-review li small{display:block;color:#5d6873;margin-top:4px}
.memory-stage{padding:clamp(22px,4vw,44px);margin:18px 0;min-width:0}.memory-stage h2{font-family:Georgia,serif;font-size:clamp(24px,3.5vw,35px);line-height:1.25;max-width:900px;margin:12px 0 20px}.memory-stage>p{line-height:1.65}.memory-verse{font-family:Georgia,serif;font-size:clamp(23px,3vw,34px);line-height:1.65;margin:24px 0 34px;max-width:900px;padding:0;border:0}.memory-stage input,.memory-stage textarea{font:inherit;width:100%;padding:13px;border:1px solid #b6b8b4;border-radius:7px;background:#fff;max-width:100%;color:#0b2345}.memory-stage .field{max-width:680px}.memory-stage textarea{line-height:1.7}
.memory-stage .actions{flex-wrap:wrap;margin-top:24px;gap:10px}.memory-stage .notice{margin-top:24px;line-height:1.65}.memory-stage .notice:focus{outline:2px solid #d6b272;outline-offset:4px}
.memory-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px;max-width:850px}.memory-choices .choice{display:flex;align-items:center;gap:15px;text-align:left;min-height:70px;padding:15px 18px;font-size:17px;white-space:normal}.memory-choices .choice small{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;border:1px solid #bcc1c4;font-size:11px}.memory-choices .selected{background:#0b2345;color:#fffdf7;border-color:#0b2345}
.book-hint{border-left:3px solid #ad7d31;padding:10px 16px;background:#f5ecd9}.answer-reveal{margin:15px 0 0}.answer-reveal>strong{font-size:24px;font-family:Georgia,serif}.answer-reveal p{margin:8px 0 12px}.passage-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.passage-meta .eyebrow{margin:0}
.verse-blanks{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-family:Georgia,serif;font-size:clamp(21px,3vw,29px);line-height:1.8;margin:28px 0}.word-slot{min-width:86px;padding:4px 11px;border:1px dashed #8390a0;border-bottom:3px solid #8793a2;border-radius:6px;background:#f0eadf;font:inherit;color:#0b2345}.word-slot.active{background:#e9d2a5;border-color:#a47428}.word-tray{display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid #ddd4c2;padding-top:22px;margin:20px 0}.word-tray button{font-size:16px;padding:9px 15px;background:#fffdf7}
.verse-input{width:126px}.verse-input input{font-size:20px;font-family:Georgia,serif;padding:8px;min-width:0}.memory-game .correct{background:#e8f1e9;border-color:#3f735b}.memory-game .incorrect{border-color:#a94337;background:#fff1e9}.memory-game .correct::after,.memory-game .incorrect::after{display:none}.typed-check{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.typed-check>span{display:flex;gap:8px;align-items:center;border:1px solid;padding:6px 9px;border-radius:4px}.typed-check small{color:#54616d}.covered-passage{min-height:185px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:repeating-linear-gradient(135deg,#f0eadf,#f0eadf 10px,#f5f0e7 10px,#f5f0e7 20px);border-radius:10px;border:1px solid #d4c7ad}.covered-passage>span{font-size:50px;letter-spacing:20px;color:#a68146}.covered-passage p{font-size:15px}
.passage-cards,.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0}.passage-card{background:#f5f0e6;border:1px solid #cfc4ae;border-top:4px solid #d6b272;border-radius:8px;color:#0b2345;text-align:left;padding:20px;min-width:0;transition:background .12s}.passage-card blockquote{font:20px/1.55 Georgia,serif;margin:17px 0}.passage-card.selected{background:#0b2345;color:#fffdf7;border-color:#d6b272;box-shadow:0 0 0 2px #d6b272}.passage-card.selected .eyebrow,.passage-card.selected .micro{color:#e5d9c2}.passage-card.placed:not(.selected){border-top-color:#3f735b}.connection-slot{border:1px solid #d3c9b7;border-radius:8px;background:#fbf7ee;padding:20px;min-width:0}.connection-slot h3{font:22px/1.3 Georgia,serif;margin:10px 0 18px}.connection-slot blockquote{margin:15px 0;font:20px/1.5 Georgia,serif}.slot-target{border:1px dashed #a7977c;background:#fffdf7;border-radius:6px;color:#566274;padding:14px;font:15px/1.55 inherit;width:100%;text-align:left;min-height:116px;margin:0 0 20px;white-space:normal}.slot-target.filled{color:#0b2345;border-style:solid;font-family:Georgia,serif;font-size:18px}.connection-slot .field{margin:15px 0 0}.connection-slot input,.connection-slot select{width:100%;min-width:0}.connection-explanation{font-size:14px;line-height:1.7}.component-result{font-size:13px;font-weight:700;margin:4px 0}
.fact-study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0}.fact-study{background:#f5efe3;border:1px solid #ded1b9;border-top:4px solid #d6b272;border-radius:8px;padding:22px;min-width:0}.fact-study h3{font:25px/1.25 Georgia,serif;margin:10px 0}.fact-study p:not(.eyebrow){font-size:15px;line-height:1.65}.fact-study .ref{font-size:13px}
.memory-pairs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.pair-card{border:1px solid #273f60;border-radius:9px;min-height:190px;padding:20px;background:#0b2345;color:#fffdf7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;white-space:normal;overflow-wrap:anywhere}.pair-mark{font:34px/1 Georgia,serif;color:#d6b272;letter-spacing:4px}.pair-mark>span{display:block;font:16px/2 Georgia,serif;letter-spacing:0}.pair-card .micro{color:#bbbdb8}.pair-card.face-up{background:#fffdf7;color:#0b2345;border-color:#b8a482}.pair-card.face-up>span:last-child{font:17px/1.45 Georgia,serif}.pair-card.matched{background:#e8f1e9;color:#214f39;border-color:#4a795d;opacity:1}.pair-card .eyebrow{font-size:9px;letter-spacing:1px;margin:0}.pair-card.matched .eyebrow{color:#214f39}
.memory-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px;margin:25px 0}.memory-stats>div{padding:22px 14px;background:#eee6d6;border-radius:8px;text-align:center}.memory-stats strong{display:block;font:36px Georgia,serif}.memory-stats span{display:block;font-size:13px;margin-top:9px}.round-review{text-align:left;border-top:1px solid #d6ccb9;margin:25px 0}.round-review ol{padding-left:24px}.round-review li{padding:16px 4px;border-bottom:1px solid #e4dbca}.round-review li>span{display:block;margin:6px 0;color:#596772;font-size:13px}.round-review li p{font-size:16px;line-height:1.6}
.memory-hub{margin-bottom:28px}.memory-hub-note{background:#0b2345;color:#fffdf7;padding:24px 28px;border-left:4px solid #d6b272;border-radius:6px;margin:24px 0 36px;line-height:1.7}.memory-hub-note p{margin:5px 0}.memory-hub-note strong{color:#e8c991}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.memory-game .pair-card:hover:not(:disabled){background:#19365b;border-color:#d6b272;color:#fffdf7}
.memory-game .pair-card.face-up:hover:not(:disabled){background:#f4eddd;color:#0b2345}
.memory-game .choice.selected:hover:not(:disabled),.memory-game .passage-card.selected:hover:not(:disabled){background:#19365b;color:#fffdf7}
.memory-stage .micro{font-size:13px;line-height:1.6}
.pair-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:8px;z-index:3;padding:12px 14px;background:#fffdf7;border:1px solid #d6c8ae;border-radius:8px;box-shadow:0 4px 15px #0b234512;margin:20px 0}
.pair-toolbar .notice{padding:0;margin:0;background:transparent;border:0;flex:1;font-size:14px}.pair-toolbar .actions{margin:0;flex-shrink:0}.pair-toolbar .actions:empty{display:none}
.memory-stage .connection-slot .field{font-size:13px}
.memory-hub .review-grid[aria-label="Memory game previews"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.memory-game .pair-card{height:240px;min-height:240px;padding:14px}
@media(max-width:1100px){.memory-hub .review-grid[aria-label="Memory game previews"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.memory-hub .review-grid[aria-label="Memory game previews"]{grid-template-columns:1fr}.memory-player>details{width:100%}.memory-player details form{position:static;width:100%;max-width:none;margin-top:8px}.memory-game .pair-card{height:220px;min-height:220px;padding:12px}.pair-toolbar{flex-wrap:wrap;padding:10px}.pair-toolbar .notice{min-width:160px}.pair-toolbar .actions{flex:1}.pair-toolbar .actions>*{flex:1;min-width:0}}
@media(max-width:950px){.fact-study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-pairs{grid-template-columns:repeat(4,minmax(0,1fr))}.passage-card,.connection-slot{padding:16px}.passage-card blockquote{font-size:19px}}
@media(max-width:760px){.passage-cards,.connection-grid{grid-template-columns:1fr}.passage-card blockquote{font-size:21px}.slot-target{min-height:80px}.memory-pairs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.memory-player{padding:12px;gap:8px}.memory-player>select{flex:1;min-width:100px;max-width:190px}.memory-player>.micro{width:100%}.memory-choices{grid-template-columns:1fr}.memory-choices .choice{min-height:60px;font-size:16px}.fact-study-grid{grid-template-columns:1fr}.memory-pairs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pair-card{min-height:180px;padding:12px}.pair-card.face-up>span:last-child{font-size:16px}.memory-stage{padding:21px 17px}.memory-stage .actions>*{flex:1 1 145px;white-space:normal}.verse-blanks{gap:7px;font-size:22px}.verse-input{width:101px}.word-slot{min-width:74px;font-size:21px}.word-tray button{font-size:16px;min-width:52px}.memory-player details form{left:auto;right:0}.memory-stage .playbar{flex-wrap:wrap}.memory-game .playbar{gap:12px;flex-wrap:wrap}.memory-game .playbar>div{margin-left:auto}.memory-game .playbar>span{font-size:13px}.memory-hub-note{padding:18px}}
@media(prefers-reduced-motion:reduce){.memory-game *{transition:none!important;animation:none!important}}
.memory-game .pair-card{height:200px;min-height:200px}
.memory-game .passage-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.memory-game .passage-card blockquote{flex:1}.memory-game .passage-card>.micro{margin-top:auto}
@media(max-width:600px){.memory-stage .actions .primary{font-size:15px;padding:11px 14px}.memory-stage .actions .secondary{font-size:13px}}

/* Align connection targets beneath two-line headings on wider screens. */
.memory-game .slot-target{font:400 15px/1.55 Arial,sans-serif}
@media(min-width:761px){.memory-game .connection-slot h3{min-height:2.6em}}

.memory-game #fact-form>.field+.field{margin-top:18px}
.memory-game .field .micro{font-weight:400;color:#596772}
