/* Scoped to the Deep Dive; no changes to other games or teaching cards. */
#deep-dive .dd-intro{max-width:850px;line-height:1.65}
#deep-dive .dd-intro li{margin:12px 0}
#deep-dive .dd-intro li span{display:block}
#dd-progress{font-weight:700;padding:12px 0}
.dd-path{font-weight:700}
#dd-quizzes,.dd-quiz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

#deep-dive .dd-card{min-width:0;border:2px solid #222;border-radius:10px;background:#fff;color:#111;padding:0;overflow:hidden;align-self:start;scroll-margin-top:90px}
#deep-dive summary{cursor:pointer;min-height:48px;padding:14px;font-weight:800;line-height:1.5}
#deep-dive summary:focus-visible,#deep-dive button:focus-visible{outline:3px solid #1659a0;outline-offset:3px}
#deep-dive .dd-body{padding:0 16px 18px;overflow-wrap:anywhere}
#deep-dive .dd-question{border:0;padding:0;margin:0;min-width:0}/* superseded visually by .dd-qbox */
#deep-dive legend{font-size:1.12rem;font-weight:750;line-height:1.6;margin-bottom:16px;padding:0;width:100%}
#deep-dive button{font:inherit;white-space:normal;line-height:1.6;cursor:pointer;min-height:48px}
#deep-dive .dd-choice{display:block;text-align:left;width:100%;margin:9px 0;padding:12px;border:2px solid #777;border-radius:8px;background:#fff;color:#111}
#deep-dive .dd-choice:disabled{opacity:1;cursor:default}
#deep-dive .dd-right{border-color:#176033;background:#ecf9ee}
#deep-dive .dd-selected{box-shadow:inset 0 0 0 2px #111}
#deep-dive .dd-feedback{padding:12px;border-left:4px solid #176033;background:#f1f5f1;margin:14px 0;line-height:1.65}
#deep-dive .dd-feedback p{margin:6px 0}
#deep-dive .dd-btn{border:2px solid #111;border-radius:8px;background:#111;color:white;padding:10px 16px;margin:8px 8px 0 0}
#deep-dive .dd-step{font-size:.9rem;color:#555}/* legacy */
@media(max-width:700px){#dd-quizzes,.dd-quiz-grid{grid-template-columns:1fr}}
/* Supporting reading: exact BSB verses, shown after an answer and in answer review. */
#deep-dive .dd-passage{font-size:.95rem;line-height:1.65;overflow-wrap:anywhere;margin:12px 0 18px}
#deep-dive .dd-passage a{color:#124b82;text-decoration:underline;text-underline-offset:3px}
#deep-dive .dd-scripture{background:#fffdf1;color:#171717;border:2px solid #b59838;border-radius:8px;padding:14px;margin-top:18px}
#deep-dive .dd-scripture h5{font:inherit;font-weight:800;margin:0 0 8px}
#deep-dive .dd-scripture blockquote{border:0;margin:0;padding:0;color:inherit;font:inherit;text-transform:none;letter-spacing:normal}
#deep-dive .dd-scripture .dd-verse{margin:12px 0;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
#deep-dive .dd-verse-ref{font-weight:800;font-size:.86em}
#deep-dive .dd-translation{font-size:.88rem;font-weight:650}
#deep-dive .dd-scripture mark{color:#171717;background:#ffe68a;border-radius:2px;padding:0 .08em;box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* Question prominence: bordered stem box; surrounding copy is secondary */
#deep-dive .dd-intro,#deep-dive .dd-path,#deep-dive .dd-passage,#deep-dive .dd-meta,#dd-progress{color:#555;font-weight:500}
#deep-dive .dd-meta{font-size:.88rem;margin:0 0 10px;letter-spacing:.01em}
#deep-dive .dd-qbox{background:#eef5ff;border:0;border-radius:4px;padding:14px 16px 16px;margin:0 0 14px;box-shadow:none}
#deep-dive .dd-qnum{margin:0 0 8px;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#1f5fa8}
#deep-dive .dd-qtext{margin:0;font-size:1.22rem;font-weight:800;line-height:1.55;color:#111;overflow-wrap:anywhere}
#deep-dive .dd-question{border:0;padding:0;margin:0;min-width:0}
#deep-dive .dd-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#deep-dive .dd-choice{margin-top:0}
#deep-dive .dd-question .dd-choice:first-of-type{margin-top:0}
@media(max-width:420px){#deep-dive .dd-qtext{font-size:1.12rem}#deep-dive .dd-qbox{padding:12px}}

/* Story topics collapsed like Teachings cards; open to reveal level quizzes */
#deep-dive .dd-story{margin:14px 0;background:#fff;border:1px solid #cfcac0;border-radius:6px;overflow:hidden}
#deep-dive .dd-story-sum{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-height:56px;padding:14px 16px;cursor:pointer;list-style:none}
#deep-dive .dd-story-sum::-webkit-details-marker{display:none}
#deep-dive .dd-story-title{font-family:var(--body);font-weight:800;font-size:1.15rem;color:#111;flex:1 1 180px}
#deep-dive .dd-story-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:.88rem;color:#555}
#deep-dive .dd-story-ref{font-weight:650}
#deep-dive .dd-story-prog{font-weight:800;color:#1f5fa8}
#deep-dive .dd-story-chev{width:10px;height:10px;border-right:3px solid #b3121f;border-bottom:3px solid #b3121f;transform:rotate(45deg);margin-left:auto;flex:0 0 auto}
#deep-dive .dd-story[open] .dd-story-chev{transform:rotate(-135deg);margin-top:4px}
#deep-dive .dd-story-sum:focus-visible{outline:3px solid #b3121f;outline-offset:2px}
#deep-dive .dd-story-panel{padding:0 16px 18px;border-top:1px solid #e6e1d6}
#deep-dive .dd-story-panel .dd-passage{margin-top:14px}

#deep-dive .dd-check{display:inline-flex;align-items:center;justify-content:center;min-width:1.35em;height:1.35em;margin-right:8px;border-radius:999px;background:#176033;color:#fff;font-weight:900;font-size:1rem;line-height:1;flex:0 0 auto}
#deep-dive .dd-check[hidden]{display:none!important}
#deep-dive .dd-story-sum .dd-check{margin-right:10px}
#deep-dive summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 0}

/* Subtle secondary action (Reset quiz) — not alarming */
#deep-dive .dd-btn-secondary{background:#fff;color:#111;border-color:#777;font-weight:650}
#deep-dive .dd-btn-secondary:hover{border-color:#111;background:#f7f7f7}
#deep-dive .dd-reset-row{margin:4px 0 10px}
