.questionDetective{--qd-ink:#554a65;color:var(--qd-ink);min-width:0}.questionDetective *{box-sizing:border-box}.qdHeader,.qdLessonBar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:22px 0}.qdHeader h2{font-size:34px;letter-spacing:-1px;margin:10px 0;overflow-wrap:anywhere}.qdEyebrow{font-size:10px;font-weight:900;letter-spacing:1.7px}.qdWelcome{background:linear-gradient(125deg,#f3ecd9,#e9e8df 50%,#e1e9e8);border:1px solid #d9d9c9;border-radius:30px;padding:36px;display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;overflow:hidden}.qdWelcome h3{font-size:clamp(32px,3.6vw,46px);line-height:1.15;letter-spacing:-1.2px;margin:20px 0}.qdWelcome p{font-size:17px;line-height:1.8}.qdWelcome a{display:inline-flex;align-items:center;min-height:48px;padding:14px 20px;text-decoration:none;margin-top:6px}.qdHeroArt{position:relative;min-height:300px;transform:rotate(-4deg)}.qdHeroBoard{position:absolute;left:4%;right:0;top:23px;height:225px;background:#819f95;border:12px solid #c9ac8a;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;box-shadow:0 12px 0 #babfa755;color:#fff9e8}.qdHeroBoard>span{font-size:8px;letter-spacing:1px;font-weight:900}.qdHeroBoard b{font-size:clamp(33px,3.2vw,49px);font-weight:650;letter-spacing:2px}.qdHeroBoard i{font-size:20px;letter-spacing:3px;font-style:normal;border-top:2px dashed #f6efd077;padding-top:15px}.qdHeroBoard small{font-size:7px;letter-spacing:1px}.qdLens{position:absolute;right:-9px;bottom:13px;color:#9b83b7;font-size:130px;line-height:1;font-weight:900;transform:rotate(-10deg)}.qdBook{position:absolute;bottom:20px;left:0;border:1px solid #d7c5df;background:#f1dca2;border-radius:14px;font-size:48px;padding:9px 20px;color:#9471a2;transform:rotate(13deg);box-shadow:0 6px 0 #c1baa444}.qdHeroArt>em{position:absolute;bottom:-9px;left:0;right:0;text-align:center;font-size:8px;font-style:normal;font-weight:900;letter-spacing:1px}.qdRecipe{display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;background:#e7e9de;border-radius:16px;padding:18px;margin:23px 0;font-size:12px}.questionDetective .sectionHeading{display:flex;justify-content:space-between;align-items:center;gap:15px}.questionDetective .sectionHeading>span{font-size:12px}.qdNotebooks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;margin:22px 0}.qdNotebooks>button{display:grid;gap:13px;background:#fffaf2;border:1px solid #d9cfdb;border-radius:22px;padding:23px;text-align:left;color:var(--qd-ink);box-shadow:0 5px 0 #e1d8e8;align-content:start}.qdNotebooks>button>span{font-size:33px;display:grid;place-items:center;width:65px;height:65px;border-radius:17px;background:#e7deef;color:#9074a6}.qdNotebooks strong{font-size:19px;line-height:1.45;overflow-wrap:anywhere}.qdNotebooks small,.qdNotebooks>button>b{font-size:11px;line-height:1.7}.qdEmpty{grid-column:1/-1;background:#fffaf2;border:1px dashed #d7cbd9;border-radius:22px;padding:28px;line-height:1.9}.qdStart{background:linear-gradient(120deg,#eee5f2,#edeae3);border:1px solid #d8c8df;border-radius:25px;padding:29px;margin:32px 0;scroll-margin-top:25px}.qdStart h3{font-size:29px;margin:15px 0}.qdStart p{font-size:14px;line-height:1.8}.qdSetup{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.questionDetective label{display:grid;gap:9px;min-width:0;font-size:13px;font-weight:750}.questionDetective input:not([type=checkbox]),.questionDetective select,.questionDetective textarea{min-width:0;min-height:48px;width:100%;padding:12px;font:inherit;color:var(--qd-ink);background:#fffdf9;border:1px solid #cbbcd5;border-radius:12px}.questionDetective textarea{resize:vertical;line-height:1.7}.qdOtherStarts{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin:25px 0}.qdOtherStarts>button{display:grid;gap:14px;align-content:start;text-align:left;border:1px solid #d8d4c6;border-radius:24px;padding:27px;background:#f5ecd9;color:var(--qd-ink)}.qdOtherStarts>button:last-child{background:#e7ece3}.qdOtherStarts span{font-size:35px}.qdOtherStarts strong{font-size:25px;line-height:1.3}.qdOtherStarts small{font-size:13px;line-height:1.9}.qdOtherStarts b{font-size:12px}.qdLessonBar>label{flex:1;min-width:190px;max-width:560px}.qdLessonBar>button{font-size:12px}.qdQuestionRail{display:flex;gap:10px;overflow-x:auto;padding:4px 3px 13px;margin:18px 0}.qdQuestionRail button{flex:0 0 48px;min-width:48px;font-size:17px}.qdQuestionRail [aria-pressed=true]{background:#e0d2eb;border-color:#a98abb;box-shadow:inset 0 0 0 1px #a98abb}.qdQuestionCard{background:#fff5df;border:1px solid #e6d4b2;border-radius:25px;padding:29px;margin:20px 0}.qdQuestionCard h3{font-size:28px;line-height:1.65;letter-spacing:-.3px;margin:20px 0 25px;font-weight:750;overflow-wrap:anywhere}.qdQuestionCard>button{font-size:12px}.qdQuestionCard>label{margin:20px 0}.questionDetective button{touch-action:manipulation;min-height:44px}.questionDetective :is(button,a,input,textarea,select,canvas):focus-visible{outline:3px solid #9e81b6;outline-offset:3px}.questionDetective .qdWord{display:inline;min-height:0;padding:1px 5px;font:inherit;border:0;border-bottom:2px dotted #ae8ab9;border-radius:5px;background:#eee0ee;color:#705579;line-height:inherit;vertical-align:baseline}.qdHelpButtons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:23px 0}.qdHelpButtons>button{display:grid;gap:11px;align-content:start;text-align:left;padding:22px;background:#eee5f2;border:1px solid #d9c5e2;border-radius:22px;color:var(--qd-ink);box-shadow:0 4px 0 #e1d3e8}.qdHelpButtons>button:nth-child(2){background:#e5ece3;border-color:#cfd9c6;box-shadow:0 4px 0 #d7e1d0}.qdHelpButtons>button:nth-child(3){background:#f5e9d9;border-color:#dfceb7;box-shadow:0 4px 0 #e8dac8}.qdHelpButtons span{font-size:31px}.qdHelpButtons strong{font-size:18px;line-height:1.5}.qdHelpButtons small{font-size:11px;line-height:1.8}.qdHelpButtons [aria-pressed=true]{box-shadow:inset 0 0 0 2px #a58cb8}.qdMeaning,.qdVisual{border:1px solid #d6d8c9;border-radius:25px;padding:27px;background:#eff0e5;margin:25px 0;min-width:0}.qdMeaning h3{font-size:25px;line-height:1.65;margin:17px 0;overflow-wrap:anywhere}.qdFind{padding:18px;background:#fffaf0;border-radius:16px;line-height:1.7;margin:20px 0}.qdFind b{font-size:12px;text-transform:uppercase;letter-spacing:1px}.qdFind p{font-size:17px;margin:10px 0 0}.qdKnown{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:20px 0}.qdKnown>div{padding:17px;background:#e0e6d5;border-radius:15px;display:grid;gap:12px;line-height:1.6}.qdKnown small{font-size:8px;letter-spacing:1px;font-weight:900}.qdKnown b{font-size:18px;overflow-wrap:anywhere}.qdMeaning button{font-size:12px}.qdVisual{background:#fffaf2;border-color:#dbd0dd}.qdVisual h3{font-size:30px;line-height:1.5;margin:16px 0}.qdVisualBody{min-width:0}.qdGroups{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:12px;margin:22px 0}.qdGroups>div{padding:17px 10px;border:1px solid #d8c9df;background:#ede5f1;border-radius:17px;text-align:center;display:grid;gap:10px;align-content:start}.qdGroups b{font-size:24px}.qdGroups small{font-size:11px;line-height:1.6}.qdDots{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;max-width:80px;margin:auto}.qdDots i{width:10px;height:10px;border-radius:50%;background:#9c81af}.qdVisualBody>p{font-size:13px;line-height:1.9}.qdAreaTable,.qdPlaceTable{display:grid;grid-template-columns:repeat(var(--qd-columns),minmax(80px,1fr));max-width:100%;overflow-x:auto;border:1px solid #d9d2c2;border-radius:15px;margin:22px 0;background:#f7efdd}.qdAreaTable>*{padding:16px 10px;text-align:center;border:1px solid #e2d7c3;line-height:1.5;font-size:13px;white-space:nowrap}.qdAreaTable>b{background:#e9dec5}.qdPlaceTable{grid-template-columns:repeat(var(--qd-columns),minmax(0,1fr));background:#eee6f3}.qdPlaceTable>*{border:1px solid #dbcce2;padding:14px 5px;text-align:center}.qdPlaceTable b{font-size:10px;overflow-wrap:anywhere;background:#e3d8eb}.qdPlaceTable span{font-size:28px;font-weight:800}.qdSigns{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;font-size:13px;background:#f1e9da;padding:17px;border-radius:13px}.qdBarModel{max-width:650px;margin:25px auto}.qdWhole{border:2px solid #ab95bc;border-radius:15px;padding:22px;text-align:center;font-size:23px;font-weight:800;background:#e3d6ec}.qdBarParts{display:flex;margin-top:8px;gap:6px}.qdBarParts span{min-width:65px;padding:24px 12px;border:2px solid #a3b7a2;border-radius:15px;background:#dce8d7;text-align:center;font-size:22px;font-weight:800;overflow-wrap:anywhere}.qdBarParts span:last-child{background:#f0dfb8;border-color:#c9b483}.qdBarParts .qdTaken{background:repeating-linear-gradient(135deg,#f0dfb8,#f0dfb8 10px,#ead7b3 10px,#ead7b3 20px)}.qdTotal,.qdEquation{text-align:center;padding:18px;border-radius:15px;background:#e5eade;font-size:27px;font-weight:800}.qdEquation{background:#eee4f2;font-size:24px}.qdEstimate{text-align:center;line-height:2;font-size:23px;background:#f3e5ce;border-radius:15px;padding:20px}.qdNumberLine{max-width:680px;margin:55px auto 20px;padding:20px 18px}.qdLineTrack{position:relative;height:5px;background:#a28bb7;margin-bottom:20px}.qdLineTrack:before,.qdLineTrack:after,.qdLineMiddle{content:'';position:absolute;left:0;height:22px;width:3px;top:-9px;background:#a28bb7}.qdLineTrack:after{left:auto;right:0}.qdLineMiddle{left:50%;height:15px;top:-5px}.qdLineMarker{position:absolute;bottom:4px;transform:translateX(-50%);font-size:20px;color:#bd8d5c;text-align:center}.qdLineMarker b{display:block;font-size:18px;white-space:nowrap;background:#fff4da;padding:6px 10px;border-radius:8px}.qdLineLabels{display:flex;justify-content:space-between;gap:8px;line-height:1.8;font-size:16px;font-weight:800}.qdLineLabels span{display:grid;text-align:center;min-width:0}.qdLineLabels small{font-size:10px;font-weight:500}.qdSets{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.qdSets>div{display:grid;gap:15px;text-align:center;padding:22px;border-radius:17px;background:#eee4f2}.qdSets>div:last-child{background:#e8ecdf}.qdSets span{font-size:27px;overflow-wrap:anywhere;line-height:1.9}.qdSets b{font-size:22px}.qdSets small{font-size:12px}.qdRectangle{width:100%;max-height:380px;display:block}.qdRectangle text{font:23px system-ui;fill:#695674}.qdWorkGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px;align-items:start;margin:27px 0}.qdAnswer,.qdHints,.qdWordGuide,.qdPaper{background:#fffaf2;border:1px solid #ddd0e2;border-radius:23px;padding:25px;display:grid;gap:18px;min-width:0}.qdAnswer{scroll-margin-top:25px}.qdAnswer h3,.qdPaper h3,.qdWordGuide h3{font-size:23px;line-height:1.5;margin:0}.qdAnswer>button{justify-self:start}.qdFeedback{font-size:15px;line-height:1.9;margin:0;color:#716183}.qdHints{background:#eee6f2;margin:22px 0}.qdHints>div{padding:17px;background:#fff9ef;border-radius:15px}.qdHints>div>b{font-size:12px}.qdHints p{font-size:14px;line-height:1.9;margin:10px 0 0;overflow-wrap:anywhere}.qdHints button{font-size:12px}.qdHints .textButton{background:transparent;border:0;color:#80618f;text-decoration:underline;line-height:1.8}.qdHints>.qdWorked{background:#f9eacb;border:1px solid #e1cda6}.qdWorked h3{font-size:21px;line-height:1.5;margin:0}.qdWorked small{display:block;line-height:1.8;margin-top:15px}.qdPaper{padding:20px;background:#f0e9f1}.qdPaperHeading{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.qdPaperHeading h3{font-size:20px;margin-top:10px}.qdPaperHeading button{font-size:11px}.qdCanvasWrap{position:relative;min-width:0;width:100%;aspect-ratio:1.6;overflow:hidden;background-color:#fffdf9;background-image:linear-gradient(#b4a0be22 1px,transparent 1px),linear-gradient(90deg,#b4a0be22 1px,transparent 1px);background-size:24px 24px;border-radius:15px;border:1px solid #d4c6dc}.qdCanvasWrap canvas{width:100%;height:100%;display:block;touch-action:none}.qdPens{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.qdPens button{font-size:11px}.qdPens [aria-pressed=true]{box-shadow:inset 0 0 0 2px #aa8fbe;background:#e4d6ed}.qdWidth{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:1px solid #cbb7d5;border-radius:12px;background:#fffaf3}.qdWidth i{display:block;border-radius:50%;background:#695075}.qdColours{display:flex;gap:9px;flex-wrap:wrap;width:100%;margin-top:5px}.qdColours>button{background:var(--qd-colour)!important;width:44px;height:44px;border:3px solid #fff9ec;border-radius:50%;box-shadow:0 0 0 1px #cbb9d6}.qdColours [aria-pressed=true]{outline:3px solid #a78ab9;outline-offset:2px}.qdSmall{font-size:12px;line-height:1.9;margin:0;overflow-wrap:anywhere}.qdWordGuide{margin-top:22px}.qdWordGuide>p{font-size:13px;line-height:1.9;margin:0}.qdWordChoices{display:flex;gap:8px;flex-wrap:wrap}.qdWordChoices button{font-size:11px}.qdWordChoices [aria-pressed=true]{background:#e4d9ec;box-shadow:inset 0 0 0 1px #b598c6}.qdDefinition{background:#f2e6cf;padding:20px;border-radius:17px}.qdDefinition>b{font-size:22px}.qdDefinition p{font-size:15px;line-height:1.9}.qdDefinition button{font-size:11px}.qdResponseChecks{display:grid;gap:14px;padding:20px;border-radius:17px;background:#e7ecdf}.qdResponseChecks>b{font-size:15px}.questionDetective label.qdCheckRow{display:flex;align-items:flex-start;gap:12px;line-height:1.8;font-size:13px;font-weight:600}.qdCheckRow input{width:24px;height:24px;flex:0 0 24px;accent-color:#9b80b1;margin-top:2px}.qdComparison{font-size:33px;text-align:center;line-height:1.7}.qdComparison strong{padding:5px 15px;border-radius:10px;background:#e6dbee}.qdAnswerSigns{display:flex;gap:12px;justify-content:center}.qdAnswerSigns button{display:grid;gap:6px;font-size:32px;flex:1;min-width:0;padding:15px 8px}.qdAnswerSigns small{font-size:10px}.qdAnswerSigns [aria-pressed=true]{background:#e4d7ed;box-shadow:inset 0 0 0 2px #ad90c0}.qdNext{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:23px;background:#e6ebdf;border:1px solid #d1d9c7;border-radius:23px;margin:26px 0}.qdNext span{font-size:12px}.qdKeep{display:flex;flex-wrap:wrap;gap:12px;padding:22px;border:1px solid #d8c7df;background:#eae1ef;border-radius:20px;margin:25px 0}#detectiveStatus{font-size:12px;line-height:1.8}.qdWide{position:fixed;inset:0;z-index:90;overflow:auto;border:0;border-radius:0;padding:18px;background:#f9f4ed;display:flex;flex-direction:column;gap:12px}.qdWide .qdPaperHeading{flex:0 0 auto}.qdWide .qdPaperHeading h3{font-size:21px}.qdWide .qdCanvasWrap{min-height:180px;flex:1;width:min(100%,calc((100dvh - 220px)*1.6));aspect-ratio:1.6;margin:auto}.qdWide .qdPens{flex:0 0 auto}.qdWide .qdColours{width:auto;margin:0 0 0 auto}.qdWide .qdSmall{display:none}
@media(max-width:1100px){.qdWorkGrid{grid-template-columns:1fr}.qdWelcome{padding:28px;gap:20px}.qdWelcome h3{font-size:36px}.qdHeroArt{min-height:280px}.qdHeroBoard{height:210px}.qdCanvasWrap{max-height:450px}.qdWide .qdCanvasWrap{max-height:none}.qdHelpButtons>button{padding:18px}.qdHelpButtons strong{font-size:16px}.qdWorkGrid>.qdThinking{min-width:0}}
@media(max-width:800px){.qdWelcome{grid-template-columns:1fr}.qdHeroArt{width:min(350px,100%);justify-self:center;min-height:290px;margin-top:5px}.qdSetup{grid-template-columns:1fr}.qdOtherStarts{grid-template-columns:1fr}.qdOtherStarts>button{grid-template-columns:45px 1fr;gap:9px 15px}.qdOtherStarts>button>span{grid-row:span 3}.qdHelpButtons{gap:10px}.qdHelpButtons>button{padding:16px 13px}.qdHelpButtons strong{font-size:15px}.qdHelpButtons small{font-size:10px}.qdKnown b{font-size:17px}.qdNumberLine{padding-left:8px;padding-right:8px}.qdLineLabels{font-size:14px}.qdWide .qdCanvasWrap{width:100%}.qdWide .qdColours{width:100%;margin:0}.qdQuestionCard h3{font-size:26px}}
@media(max-width:600px){.qdHeader h2{font-size:28px}.qdWelcome{padding:25px}.qdWelcome h3{font-size:36px}.qdWelcome p{font-size:15px}.qdRecipe{gap:9px;padding:16px 10px;font-size:10px}.qdRecipe>span{display:none}.qdNotebooks{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qdNotebooks>button{padding:17px;gap:10px}.qdNotebooks strong{font-size:16px}.qdNotebooks small,.qdNotebooks>button>b{font-size:10px}.qdStart{padding:23px}.qdStart h3{font-size:25px}.qdOtherStarts>button{padding:23px}.qdOtherStarts strong{font-size:22px}.qdQuestionCard{padding:23px}.qdQuestionCard h3{font-size:23px;line-height:1.7}.qdLessonBar>label{flex-basis:100%;max-width:100%}.qdHelpButtons{grid-template-columns:1fr}.qdHelpButtons>button{grid-template-columns:37px 1fr;gap:5px 12px;align-items:center;padding:17px}.qdHelpButtons span{grid-row:span 2;font-size:28px}.qdHelpButtons strong{font-size:17px}.qdHelpButtons small{font-size:11px}.qdMeaning,.qdVisual{padding:22px}.qdMeaning h3{font-size:22px}.qdKnown{grid-template-columns:1fr}.qdFind{padding:16px}.qdFind p{font-size:16px}.qdAreaTable>*{font-size:12px;padding:14px 8px}.qdVisual h3{font-size:27px}.qdSets{gap:12px}.qdSets>div{padding:17px 12px}.qdSets span{font-size:22px}.qdBarParts span{font-size:17px;padding:20px 8px}.qdPlaceTable b{font-size:8px}.qdPlaceTable span{font-size:24px}.qdLineLabels{font-size:11px}.qdLineMarker b{font-size:14px}.qdAnswer,.qdHints,.qdWordGuide{padding:22px}.qdPaper{padding:16px}.qdPens{gap:7px}.qdPens button{padding:10px}.qdColours>button{width:40px;height:40px;min-height:40px}.qdNext{padding:20px}.qdNext>button{width:100%;font-size:13px}.qdNext>span{width:100%;text-align:center}.qdKeep>button{width:100%}.qdWide{padding:14px 12px}.qdWide .qdPaperHeading h3{font-size:17px}.qdWide .qdCanvasWrap{max-height:none;aspect-ratio:auto;flex:1}.qdWide .qdPens{gap:6px}.qdWide .qdColours{gap:8px}.qdWide .qdColours>button{width:36px;height:36px;min-height:36px}.qdWide .qdPens button{font-size:10px}.qdWide .qdWidth{width:40px;min-width:40px}.qdWide .qdPaperHeading{gap:8px}.qdWide .qdPaperHeading button{font-size:10px}}

.qdLineMarker{width:0;transform:none}.qdLineMarker>b{position:absolute;bottom:25px;left:0;width:max-content}.qdLineMarker>i{position:absolute;left:-8px;bottom:0;font-style:normal}

.qdWide .qdCanvasWrap{flex:0 0 auto;min-height:0;height:auto;aspect-ratio:1.6;width:min(100%,calc((100dvh - 250px)*1.6));max-height:none}
@media(max-width:800px){.qdWide .qdCanvasWrap{width:min(100%,calc((100dvh - 290px)*1.6))}}
