/* Phone layout: keep the task readable without nested, narrow cards. */
.mobile-quick-actions,.mobile-college-label{display:none}
@media screen and (max-width:700px){
  html{scroll-padding-top:18px;scroll-padding-bottom:86px}
  body{font-size:16px;line-height:1.65;padding-bottom:78px}
  main{padding:0 16px}
  .masthead{min-height:68px;padding:14px 16px;gap:16px;align-items:center}
  .masthead>a:first-child{font-size:19px;flex:1}
  .masthead span{font-size:8px;letter-spacing:.1em;margin-top:5px}
  .masthead>a:last-child{font-size:12px;line-height:1.5;max-width:125px;text-align:right}
  .page-help{padding:0 16px;margin:12px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .help-button{font-size:13px;min-height:44px;padding:8px 10px;line-height:1.5}
  .breadcrumb{margin:18px 0 12px;font-size:11px;line-height:1.6}
  .hero{padding:10px 0 28px;gap:20px}
  .hero .eyebrow{font-size:10px;letter-spacing:.09em;margin-bottom:0}
  .hero h1{font-size:clamp(30px,8.5vw,38px);line-height:1.13;letter-spacing:-.035em;margin:14px 0 18px;text-wrap:balance}
  .hero .lede{font-size:16px;line-height:1.65;margin-bottom:20px}
  .hero .actions{display:grid;grid-template-columns:1fr;gap:8px}
  .hero .actions>*{width:100%;min-height:48px;font-size:14px}
  .hero .byline{font-size:11px;line-height:1.6;margin:12px 0 0;max-width:none}
  .hero figure img{aspect-ratio:16/10;object-fit:cover;object-position:center 40%;border-radius:8px}
  .hero figcaption{font-size:11px;line-height:1.5;margin-top:8px}
  .checklist-tool{padding:18px 14px;margin-bottom:28px;border-radius:10px;min-width:0}
  .tool-heading .eyebrow{font-size:10px;letter-spacing:.07em}
  .tool-heading h2{font-size:28px;line-height:1.2;margin:10px 0 14px;text-wrap:balance}
  .tool-heading p{font-size:14px;line-height:1.65;margin-bottom:14px}
  .college-toolbar{display:flex;align-items:flex-start;gap:8px;margin:20px 0 18px}
  #college-switcher{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:6px}
  #college-switcher button{flex:0 0 auto;max-width:180px;padding:10px 12px;font-size:14px;min-height:48px}
  #add-college{margin:0;font-size:12px;line-height:1.4;min-height:48px;padding:8px 10px;max-width:130px}
  .college-details{gap:14px}
  .checklist-tool label{font-size:15px;line-height:1.6}
  .checklist-tool input:not([type=radio]),.checklist-tool textarea{font-size:16px;min-height:48px;padding:11px 12px;margin-top:6px;min-width:0;max-width:100%}
  .device-note{font-size:12px;line-height:1.6;margin:12px 0 18px}
  .tool-progress{display:block;margin:20px 0 12px;font-size:13px;line-height:1.6}
  .tool-progress progress{display:block;width:100%;height:8px;margin-top:8px}
  #question-steps{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 2px 10px;scroll-snap-type:x proximity}
  #question-steps button{flex:0 0 112px;min-height:66px;padding:10px 8px;font-size:14px;line-height:1.35;scroll-snap-align:start}
  #question-steps small{font-size:11px;line-height:1.5;margin-top:6px}
  #question-panel{display:flex;flex-direction:column;gap:0;background:transparent;border:0;padding:0;margin:16px 0 24px}
  .question-context{order:0;width:100%}
  .question-context h3{font-size:25px;line-height:1.25;margin:10px 0 14px}
  .question-context>p{font-size:15px;line-height:1.65}
  #step-count{font-size:11px}
  .question-prompts{padding:12px;background:#fff;border-radius:6px;margin-bottom:20px;font-size:14px}
  .question-prompts summary{min-height:44px;display:list-item;align-content:center;line-height:1.6}
  .question-prompts ul{padding-left:20px;font-size:14px;line-height:1.6}
  .question-inputs{display:contents}
  .answer-status{order:1;width:100%;gap:8px;margin-bottom:20px}
  .answer-status legend{font-size:15px;line-height:1.6;margin-bottom:10px}
  .answer-status label{width:100%;min-height:48px;padding:11px 12px;background:#fff;font-size:15px}
  .answer-status input{flex:0 0 20px;width:20px;height:20px;margin:0}
  .answer-status label:has(input:checked){border-color:var(--ink);background:#e0ebf2;box-shadow:inset 3px 0 var(--ink)}
  .long-label{order:2;width:100%;margin-bottom:18px}
  .long-label textarea{min-height:110px}
  #school-evidence{order:3;padding:16px;margin:4px 0 20px;background:#fff;border-radius:8px;font-size:14px;line-height:1.7}
  #school-evidence>.eyebrow{font-size:10px}
  #school-evidence>h3{font-size:22px;line-height:1.3;margin:10px 0 18px}
  .proof-result{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:12px;background:#f4f7f9}
  .proof-result>img{width:68px;height:112px;object-fit:contain;object-position:center bottom}
  .proof-result .proof-metric{font-size:22px;line-height:1.25}
  .proof-result .proof-name{font-size:14px}
  .proof-result .proof-source{font-size:12px;min-height:44px;line-height:1.5;align-content:center}
  #school-evidence .proof-context,#school-evidence .proof-separation{font-size:12px;line-height:1.7}
  .proof-poster img{max-height:260px}
  .proof-photo img{max-height:240px}
  .proof-progress>img{height:190px}
  .step-actions{order:4;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin:0}
  .step-actions button{min-height:48px;padding:10px 12px;font-size:14px;line-height:1.5;white-space:normal}
  .comparison-summary{padding-top:24px}
  .comparison-summary h3,.download-panel h3{font-size:24px;line-height:1.3}
  .comparison-summary>p,.download-panel p{font-size:14px;line-height:1.65}
  .table-scroll{overflow:visible;background:transparent;border:0;border-radius:0}
  .table-scroll table{display:block;min-width:0;width:100%;font-size:14px}
  .table-scroll thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .table-scroll tbody{display:grid;gap:12px}
  .table-scroll tr{display:block;border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden}
  .table-scroll tbody th{display:block;padding:12px 14px;border-bottom:1px solid var(--line);background:#e3edf3;font-size:15px}
  .table-scroll td{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 14px;align-items:center}
  .mobile-college-label{display:block;font-size:13px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
  .table-scroll td button{max-width:145px;font-size:13px;line-height:1.5}
  .table-scroll td p{grid-column:1/-1;margin:4px 0 6px;font-size:13px;line-height:1.6}
  .download-panel{padding-top:22px;margin-top:24px}
  .download-panel button{min-height:52px;font-size:15px;margin-top:16px}
  .manage-notes{font-size:13px;margin-top:18px}
  .manage-notes button{width:100%;margin:4px 0;min-height:48px}
  .reading-layout{gap:10px}
  .reading-layout>.tools{gap:8px}
  article section.summary{padding:20px}
  article h2{font-size:27px;line-height:1.3}
  article section{padding:24px 0}
  footer{margin-top:32px;padding:28px 16px;font-size:12px}
  dialog:not(.guided-tour){padding:30px 20px;border-radius:12px;max-height:calc(100dvh - 32px);max-width:calc(100% - 24px)}
  .language-dialog{width:calc(100vw - 24px);padding:24px 18px!important}
  .language-mark{margin:8px 0 14px}
  .language-intro h2{font-size:24px;margin:12px 0}
  .language-intro h2 [lang=kn]{font-size:20px;line-height:1.7}
  .language-intro p{font-size:13px;line-height:1.7}
  .language-options{gap:10px;margin:20px 0}
  .language-options button{min-height:140px;padding:16px 12px;gap:6px}
  .language-options .language-letter{display:none}
  .language-options strong{font-size:23px;padding-top:24px}
  .language-arrow{font-size:23px;right:12px;top:10px}
  .language-footnote{font-size:11px}
  #language-title:focus,#tool-title:focus,#question-title:focus,#comparison-title:focus{outline:none}
  .tour-card{padding:18px;max-height:calc(100dvh - 24px)}
  .tour-card h2{font-size:22px}
  .tour-card>p{font-size:14px;line-height:1.6}
  .tour-actions button{min-height:48px;font-size:14px;padding:10px}
  .mobile-quick-actions{position:fixed;z-index:8;bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgb(255 255 255 / .98);box-shadow:0 -3px 15px rgb(19 42 67 / .06)}
  .mobile-quick-actions a{min-height:46px;font-size:14px;padding:9px 12px;text-decoration:none}
  body[data-onboarding-active=true] .mobile-quick-actions,body:has(input:not([type=radio]):focus,textarea:focus) .mobile-quick-actions{display:none}
  html[lang^=kn] body{font-size:15px;line-height:1.85}
  html[lang^=kn] .hero h1{font-size:clamp(27px,7.5vw,32px);line-height:1.6;letter-spacing:0}
  html[lang^=kn] .hero .lede{font-size:15px;line-height:1.9}
  html[lang^=kn] .hero .actions>*{font-size:14px;line-height:1.8}
  html[lang^=kn] .checklist-tool{padding:18px 14px}
  html[lang^=kn] #question-panel{padding:0}
  html[lang^=kn] #question-steps{display:flex}
  html[lang^=kn] #question-steps button{flex-basis:140px;font-size:13px;line-height:1.7}
  html[lang^=kn] .tool-heading h2{font-size:26px;line-height:1.6}
  html[lang^=kn] .question-context h3{font-size:23px;line-height:1.65}
  html[lang^=kn] .tool-heading p,html[lang^=kn] .question-context>p{font-size:14px;line-height:1.9}
  html[lang^=kn] #school-evidence h3{font-size:20px;line-height:1.65}
  html[lang^=kn] .proof-result .proof-metric{font-size:19px;line-height:1.7}
  html[lang^=kn] .step-actions button{font-size:13px;line-height:1.8}
  html[lang^=kn] .mobile-quick-actions a{font-size:13px;line-height:1.8}
}
@media screen and (max-width:350px){
  main{padding:0 12px}
  .checklist-tool,html[lang^=kn] .checklist-tool{padding:16px 12px}
  .masthead{padding:12px}.masthead>a:first-child{font-size:17px}
  .masthead>a:last-child{font-size:11px;max-width:105px}
  .proof-result{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:10px}
  .proof-result>img{width:58px;height:105px}
  .proof-result .proof-metric{font-size:20px}
  .step-actions button{font-size:13px;padding:10px 8px}
}
@media screen and (max-height:600px) and (max-width:700px){
  .language-dialog{padding:18px!important}.language-mark{display:none}
  .language-options{margin:12px 0}.language-options button{min-height:105px}
}
@media print{.mobile-quick-actions,.mobile-college-label{display:none!important}}

/* A single white reading surface, rather than cards nested inside cards. */
@media screen and (max-width:900px){
  .checklist-tool,html[lang^=kn] .checklist-tool{background:transparent;border:0;border-radius:0;padding:18px 0;margin-top:8px}
  #question-panel,html[lang^=kn] #question-panel{background:transparent;border:0;border-radius:0;padding:0}
  #school-evidence{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:30px 0 0;margin:12px 0 28px}
  #school-evidence>.eyebrow{color:var(--muted);letter-spacing:.07em;font-size:11px}
  #school-evidence>h3{margin:12px 0 26px;max-width:26ch}
  .proof-result-grid{grid-template-columns:1fr;gap:0}
  .proof-result{background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:24px 0;grid-template-columns:82px minmax(0,1fr);gap:20px;align-items:start}
  .proof-result:first-child{padding-top:0}
  .proof-result>img{width:82px;height:132px;background:transparent;border-radius:0;object-fit:contain;object-position:center top}
  .proof-result .proof-metric,.proof-metric,.proof-scores strong{color:var(--ink)}
  .proof-result .proof-exam{margin-bottom:8px}
  .proof-result .proof-name{margin-bottom:8px}
  .proof-result .proof-source{font-size:13px;line-height:1.6;min-height:44px;padding:10px 0 0}
  .proof-cohort{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;margin-top:8px}
  .proof-cohort summary{font-size:14px;line-height:1.7}
  .proof-poster,.proof-sheet{background:transparent;border:0;border-radius:0;padding:0}
  .proof-resource{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0}
  .proof-scores{background:transparent;border:0;border-radius:0;padding:0;margin:24px 0}
  .proof-progress>img{background:transparent;border-radius:0}
  .question-prompts{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;margin-bottom:26px}
  .answer-status label{background:transparent;border:0;border-bottom:1px solid #e1e6eb;border-radius:0;padding:13px 0}
  .answer-status label:has(input:checked){background:transparent;border-color:#e1e6eb;box-shadow:none;font-weight:700}
  #question-steps button{background:transparent;border:0;border-bottom:2px solid var(--line);border-radius:0}
  #question-steps button[aria-current=step]{background:transparent;border:0;border-bottom:3px solid var(--ink)}
  .table-scroll tr{background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:12px 0}
  .table-scroll tbody th{background:transparent;border:0;padding:0 0 10px}
  .table-scroll td{padding:8px 0;border:0}
  .table-scroll tbody{gap:12px}
  article section.summary,.red-flags{background:transparent;border-radius:0;padding:24px 0!important}
  .help-button{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}
  .mobile-quick-actions{box-shadow:none}
  .mobile-quick-actions .secondary{background:transparent;border:0}
}
@media screen and (max-width:350px){
  .proof-result{grid-template-columns:68px minmax(0,1fr);gap:16px}
  .proof-result>img{width:68px;height:116px}
}
