/* A focused comparison tool within the existing planning hub. */
.compare-toggle,.compare-inline-open{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid #CDD8CB;border-radius:8px;color:#1F3A33;background:#F7F9F2;font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap}
.compare-toggle svg{width:15px;height:15px;opacity:1!important}
.compare-toggle:hover,.compare-inline-open:hover{background:#EBF1DF;border-color:#91AA7C}
.compare-toggle[data-compare-selected=true]{background:#E7EECF;border-color:#A6BB82}
.compare-inline-open{background:#1F3A33;color:white;border-color:#1F3A33}
.compare-inline-open:hover{background:#2C4C44;color:white}
.detail-compare-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.detail-compare-actions:empty{display:none}
.unit-lesson-choice{display:flex;min-width:0;flex-direction:column;gap:8px}
.unit-card-body .unit-lesson-choice>.unit-lesson{height:auto;flex:1}
.unit-lesson-choice>.compare-toggle{align-self:flex-start;margin-left:1px}
.objective-copy>.compare-toggle{margin-top:10px}
body.compare-has-selection{padding-bottom:115px}
body:has(#planning-detail[open])>.compare-dock,body:has(.compare-dialog[open])>.compare-dock{visibility:hidden;pointer-events:none}
.lesson-comparison{font-family:Inter,Arial,sans-serif;color:#1F3A33;box-sizing:border-box}
.lesson-comparison *, .lesson-comparison *:before,.lesson-comparison *:after{box-sizing:border-box}
.lesson-comparison [hidden]{display:none!important}
.lesson-comparison button{font:inherit;cursor:pointer}
.lesson-comparison button:disabled{cursor:default;opacity:.45}
.lesson-comparison svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.lesson-comparison :is(button,a,summary,input,select,[tabindex]):focus-visible{outline:2px solid #457358;outline-offset:3px}
.compare-dock{position:fixed;z-index:30;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:20px;width:min(1270px,calc(100% - 40px));padding:14px 18px;background:#FFFFFD;border:1px solid #CCD9C5;border-radius:18px;box-shadow:0 8px 35px #1F3A3324}
.compare-dock-title{flex:none;display:grid;gap:5px;font-size:13px;line-height:1.3}
.compare-dock-title>span{color:#647369;font-size:11px}
.compare-dock-lessons{display:flex;gap:12px;flex:1;min-width:0}
.compare-dock-lesson{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.compare-dock-image{display:block;width:62px;aspect-ratio:4/3;object-fit:contain;border-radius:5px;background:#EFF2E7;border:1px solid #DDE4D7;flex:none}
.compare-dock-lesson>span{min-width:0;display:grid;gap:4px}
.compare-dock-lesson strong{font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compare-dock-lesson small{font-size:10px;color:#65716A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compare-dock-actions{display:flex;align-items:center;gap:13px;flex:none}
.compare-icon-button{display:grid;place-items:center;flex:none;width:34px;height:34px;border:0;border-radius:50%;color:#365949;background:transparent;padding:7px}
.compare-icon-button:hover{background:#EBF0E3}
.compare-dock-lesson>.compare-icon-button{margin-left:auto;width:30px;height:30px;padding:6px}
.compare-primary,.compare-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #1F3A33;border-radius:8px;padding:10px 15px;min-height:41px;font-size:13px!important;font-weight:600!important;background:#1F3A33;color:white;white-space:nowrap}
.compare-primary:hover{background:#2C4C44}
.compare-secondary{border-color:#CAD8BC;background:#F6F9EF;color:#1F3A33}
.compare-secondary:hover{background:#EAF1DD;border-color:#8DA875}
.compare-text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 3px;border:0;background:none;font-size:12px!important;font-weight:600!important;color:#385F4D}
.compare-text-button:hover{text-decoration:underline;text-underline-offset:4px}
.compare-dialog{padding:0;border:1px solid #D2DDCD;border-radius:20px;width:min(1500px,calc(100vw - 40px));max-width:none;height:min(880px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);margin:auto;overflow:hidden;background:#FAFBF7;box-shadow:0 24px 100px #0B281D38}
.compare-dialog[open]{display:flex;flex-direction:column;animation:compare-arrive .2s ease-out}
.compare-dialog::backdrop{background:#18342985;backdrop-filter:blur(4px)}
.compare-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 25px 16px;background:#FFF;flex:none}
.compare-eyebrow{display:block;color:#66816E;font-size:10px;font-weight:650;letter-spacing:.09em;text-transform:uppercase;margin-bottom:5px}
.compare-dialog-header h2{display:flex;align-items:center;flex-wrap:wrap;gap:13px;font-size:28px;line-height:1.2;letter-spacing:-.035em;font-weight:650;color:#1F3A33}
.compare-dialog-header h2>small{font-size:11px;letter-spacing:0;font-weight:550;white-space:nowrap;background:#EDF2E5;color:#5F7454;border-radius:20px;padding:6px 9px}
.compare-header-actions{display:flex;align-items:center;gap:19px}
.compare-close{background:#F2F5EC;width:38px;height:38px}
.compare-tabs{display:flex;gap:28px;padding:0 25px;background:#FFF;border-bottom:1px solid #DDE4D7;flex:none}
.compare-tabs>button{position:relative;min-height:46px;padding:12px 1px;border:0;background:transparent;color:#68766C;font-size:13px;font-weight:550;white-space:nowrap}
.compare-tabs>button[aria-selected=true]{color:#1F3A33;font-weight:650}
.compare-tabs>button[aria-selected=true]:after{position:absolute;content:'';bottom:-1px;left:0;right:0;height:3px;border-radius:2px;background:#739747}
.compare-tabs>button:hover{color:#1F3A33}
.compare-scroll{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;flex:1;background:#FFF;scrollbar-gutter:stable}
.compare-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#354D3E;--compare-label-width:166px}
.compare-table .compare-label-col{width:var(--compare-label-width)}
.compare-table th,.compare-table td{text-align:left;vertical-align:top;font-weight:400;overflow-wrap:anywhere}
.compare-table thead{position:sticky;top:0;z-index:4;background:#F8FAF3;box-shadow:0 2px 0 #D9E2CD}
.compare-table thead th{background:#F8FAF3;border-right:1px solid #E0E7D6;border-bottom:1px solid #D8E2CD}
.compare-table thead th:last-child{border-right:0}
.compare-attribute-heading{padding:22px 19px;vertical-align:bottom!important;font-size:12px;color:#5F7459}
.compare-attribute-heading>span{display:block;font-size:11px;font-weight:600;line-height:1.5}
.compare-attribute-heading>small{display:block;margin-top:7px;font-size:10px;line-height:1.4;color:#75856B}
.compare-lesson-head{padding:20px 20px 10px}
.compare-header-summary{display:grid;grid-template-columns:clamp(110px,10vw,150px) minmax(0,1fr);gap:16px;align-items:start}
.compare-slide{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#EDF1E5;border:1px solid #DCE4D3;border-radius:7px}
.compare-no-image{display:grid;place-items:center;background:#EAF0E0;color:#8EA57B}
.compare-no-image>svg{width:27px;height:27px}
.compare-identity{min-width:0}
.compare-collection{display:block;color:#6C7D64;font-size:9px;font-weight:600;letter-spacing:.035em;line-height:1.5;text-transform:uppercase;margin-bottom:6px}
.compare-identity h3{color:#1F3A33;font-size:21px;line-height:1.2;letter-spacing:-.025em;font-weight:650;margin-bottom:6px}
.compare-identity h3:focus-visible{outline:2px solid #739747;outline-offset:4px;border-radius:3px}
.compare-lesson-meta{font-size:11px!important;line-height:1.5!important;color:#68785E}
.compare-level{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;margin-top:10px;line-height:1.4;font-size:10px}
.compare-level>strong{font-weight:600;padding:4px 6px;border-radius:4px;background:#E5ECCE;color:#36523E}
.compare-level>small{font-size:10px;color:#66745F;font-weight:400}
.compare-level>strong:empty{display:none}
.compare-lesson-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:10px}
.compare-lesson-actions>.compare-text-button{font-size:11px!important;min-height:32px}
.compare-lesson-actions>.compare-icon-button{width:29px;height:29px;padding:6px;color:#788574}
.compare-lesson-actions>.compare-icon-button svg{width:16px;height:16px}
.compare-lesson-link{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:550;line-height:1.4;min-height:32px;color:#39644B;text-decoration:none;margin-left:auto}
.compare-lesson-link:hover{text-decoration:underline;text-underline-offset:3px}
.compare-lesson-link svg{width:13px;height:13px}
.compare-table tbody td{padding:18px 20px;border-bottom:1px solid #E2E7DB;border-right:1px solid #E8ECE2;font-size:14px;line-height:1.65;background:#FFF}
.compare-table tbody td:last-child{border-right:0}
.compare-table .compare-row-key{padding:20px 19px;border-bottom:1px solid #DDE5D3;border-right:1px solid #E0E7D7;background:#F5F8EE;font-size:12px;font-weight:600;line-height:1.6;vertical-align:top}
.compare-row-key>strong{font-weight:600}
.compare-list{margin:0;padding:0 0 0 17px;font-size:14px;line-height:1.7;color:#3D4E42}
.compare-list>li{padding-left:2px;margin-bottom:11px}
.compare-list>li:last-child{margin-bottom:0}
.compare-list>li::marker{color:#98AD82}
.compare-not-listed{color:#84907D;font-size:12px;font-style:normal;line-height:1.5}
.compare-table tbody .compare-empty{padding:28px;color:#6D7D61;font-size:13px;text-align:center}
.compare-vocab-tools{display:flex;align-items:center;gap:24px;padding:12px 25px;border-bottom:1px solid #DDE4D7;background:#F1F5E7;flex:none}
.compare-vocab-tools>label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;min-height:28px}
.compare-vocab-tools input{appearance:auto;width:16px;height:16px;accent-color:#37694F;margin:0;cursor:pointer}
.compare-vocab-tools>.compare-vocab-search{display:flex;align-items:center;gap:7px;min-height:35px;padding:6px 10px;border:1px solid #C8D7B9;border-radius:7px;background:white;flex:none;width:180px}
.compare-vocab-search>svg{width:15px;height:15px;color:#879A75}
.compare-vocab-tools .compare-vocab-search>input{width:100%;min-width:0;border:0;appearance:none;cursor:text;font:inherit;font-weight:400;font-size:12px;height:22px;outline:0;background:transparent;color:#41613F}
.compare-vocab-search:focus-within{outline:2px solid #779961;outline-offset:1px}
.lesson-comparison .compare-vocab-search>input:focus-visible{outline:0}
.compare-vocab-tools>p{font-size:11px;line-height:1.5;color:#6B7D5E;max-width:700px}
.compare-table:has(.compare-definition) tbody td,.compare-table:has(.compare-definition) .compare-row-key{padding-block:11px}
.compare-table .compare-shared-row td{background:#FAFCF7}
.compare-listed{display:inline-flex;align-items:center;gap:7px;color:#3A694D;font-size:12px;line-height:1.4;font-weight:550;flex-wrap:wrap}
.compare-listed>svg{width:15px;height:15px;color:#7A9E5F}
.compare-listed>small{font-size:10px;font-weight:400;color:#7D8C70}
.compare-definition>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;list-style:none;cursor:pointer}
.compare-definition>summary::-webkit-details-marker,.compare-standard-description>summary::-webkit-details-marker{display:none}
.compare-definition>summary>svg,.compare-standard-description>summary>svg{width:13px;height:13px;color:#7A8E69;transition:transform .15s}
.compare-definition[open]>summary>svg,.compare-standard-description[open]>summary>svg{transform:rotate(180deg)}
.compare-definition-entry{padding-top:11px;font-size:12px;line-height:1.65;color:#4D6245}
.compare-definition-entry+.compare-definition-entry{margin-top:12px;border-top:1px solid #DDE5D4}
.compare-definition-entry>strong{display:block;font-size:10px;line-height:1.5;color:#7C8A6D;font-weight:500;margin-bottom:5px}
.compare-definition-entry>p{font-size:12px;line-height:1.65;margin:0 0 5px}
.compare-definition-entry>.compare-note{color:#7A866C;font-size:11px}
.compare-definition-entry>small{font-size:10px;color:#809073}
.compare-standard-description>summary{display:flex;align-items:center;justify-content:space-between;gap:7px;list-style:none;cursor:pointer}
.compare-standard-description>summary strong{font-size:11px;font-weight:600;line-height:1.5}
.compare-standard-description>p{font-size:12px;line-height:1.65;font-weight:400;margin-top:10px}
.compare-standard-description>small{display:block;font-size:10px;font-weight:400;line-height:1.5;margin-top:10px;color:#788767}
.compare-resource-list{display:grid;gap:9px}
.compare-resource{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;padding:10px 12px;border:1px solid #D7E3CB;border-radius:7px;background:#FAFCF6;color:#2E5B40;font-size:12px;font-weight:550;line-height:1.5;text-decoration:none}
.compare-resource:hover{background:#EEF5E4;border-color:#A5BF8C}
.compare-resource>svg{width:15px;height:15px;transition:transform .15s}
.compare-resource:hover>svg{transform:translateX(3px)}
.compare-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 25px;border-top:1px solid #DDE4D7;background:white;flex:none}
.compare-footer-hint{font-size:10px!important;color:#7C8874;line-height:1.5!important}
.compare-dialog-footer>.compare-text-button{white-space:nowrap;font-size:11px!important}
.compare-column-nav{display:flex;align-items:center;justify-content:space-between;padding:3px 13px;background:#F6F9EE;border-bottom:1px solid #DCE4D1;flex:none}
.compare-column-nav>span{font-size:10px;font-weight:550;color:#68815C}
.compare-column-nav .compare-icon-button{width:28px;height:28px;padding:6px}
.compare-column-nav svg{width:16px;height:16px}
.compare-empty-state{display:flex;min-height:100%;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;padding:40px 28px}
.compare-empty-state h3{font-size:27px;font-weight:650;line-height:1.2;color:#254E36}
.compare-empty-state p{font-size:14px;color:#6A7E5F;line-height:1.65;max-width:420px}
.compare-empty-symbol{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#ECF3DC;color:#7B995A;margin-bottom:4px}
.compare-picker{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;padding:21px 25px 30px;background:#FAFCF5}
.compare-picker-top{margin-bottom:21px}
.compare-picker-top>.compare-text-button{min-height:32px;font-size:11px!important;margin-bottom:10px;color:#648057}
.compare-picker-top h3{font-size:27px;line-height:1.25;font-weight:650;letter-spacing:-.03em;color:#234E35;margin-bottom:8px}
.compare-picker-top p{font-size:13px;line-height:1.6;color:#708362;max-width:820px}
.compare-picker-top p>strong{font-weight:550;color:#3D6046}
.compare-picker-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);align-items:center;gap:24px}
.compare-picker-selected{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
.compare-picker-anchor{display:flex;align-items:center;gap:12px;flex:1 1 270px;min-width:0;padding:12px;background:#EFF4E5;border:1px solid #D5E0C6;border-radius:11px}
.compare-anchor-image{width:88px;aspect-ratio:4/3;object-fit:contain;flex:none;border-radius:5px;background:white}
.compare-picker-anchor>div{display:grid;gap:4px;min-width:0;flex:1}
.compare-picker-anchor span{font-size:10px;line-height:1.45;color:#5F7456}
.compare-picker-anchor strong{font-size:17px;line-height:1.3;font-weight:650;color:#244A36}
.compare-picker-anchor small{font-size:11px;line-height:1.5;color:#60745A}
.compare-picker-anchor>svg{width:17px;height:17px;color:#557944}
.compare-picker-count:has(+.compare-suggestion-note){margin-bottom:5px}
.compare-suggestion-note{margin:0 0 16px;font-size:12px;line-height:1.6;color:#66785F}
.compare-picker-reason.is-suggestion{background:#EFF4E4;color:#516D40!important;padding:3px 7px;border-radius:4px;font-size:10px!important}
@media(max-width:900px){.compare-picker-intro{grid-template-columns:1fr;gap:14px}.compare-picker-anchor{padding:10px}.compare-anchor-image{width:76px}}
@media(max-width:500px){.compare-picker-selected{display:grid;grid-template-columns:1fr}.compare-picker-anchor>svg{display:none}.compare-picker-anchor strong{font-size:16px}.compare-picker-anchor small{font-size:10px}.compare-suggestion-note{font-size:11px}}
.compare-picker-form{margin:0 0 21px;background:white;border:1px solid #D7E1CD;border-radius:13px;padding:15px}
.compare-picker-query{display:flex;align-items:center;gap:12px;border:1px solid #BECBBA;border-radius:8px;background:#FFF;min-height:48px;padding:4px 4px 4px 14px}
.compare-picker-query>svg{width:18px;height:18px;color:#749063}
.compare-picker-query>input{flex:1;min-width:0;width:100%;border:0;background:none;padding:6px 0;height:36px;font:inherit;font-size:14px;color:#35543D}
.compare-picker-query>input::placeholder{color:#87937E;opacity:1}
.compare-picker-query:focus-within{outline:2px solid #779961;outline-offset:1px}
.lesson-comparison .compare-picker-query>input:focus-visible{outline:0}
.compare-picker-query>.compare-primary{min-height:38px;padding:8px 18px;font-size:12px!important}
.compare-picker-filters{display:flex;align-items:end;gap:13px;margin-top:13px}
.compare-picker-filters>label{display:grid;gap:6px;flex:1;font-size:10px;font-weight:600;color:#708366;line-height:1.4;min-width:0}
.compare-picker-filters select{width:100%;min-width:0;min-height:40px;padding:8px 34px 8px 11px;border:1px solid #D5E0CA;border-radius:7px;background:#F7FAF1;color:#3E6246;font-size:12px;line-height:1.5;font-family:inherit}
.compare-picker-filters>.compare-text-button{min-height:40px;padding-inline:8px;font-size:11px!important}
.compare-picker-count{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:0 0 13px}
.compare-picker-count>h4{font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.02em;color:#35583C}
.compare-picker-count>span{font-size:11px;color:#7E8F6F}
.compare-picker-grid,.compare-replace-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.compare-picker-card{display:flex;align-items:start;gap:14px;min-width:0;padding:17px;text-align:left;background:white;border:1px solid #DAE4CF;border-radius:12px;color:#30583B;transition:background-color .15s,border-color .15s}
.compare-picker-card:hover{background:#F2F7E7;border-color:#95B278}
.compare-picker-image{display:block;width:110px;height:auto;aspect-ratio:4/3;object-fit:contain;background:#EDF2E4;border:1px solid #DFE7D6;border-radius:6px;flex:none}
.compare-picker-copy{display:flex;flex-direction:column;min-width:0;align-items:start;flex:1}
.compare-picker-copy>strong{display:block;font-size:17px;line-height:1.25;font-weight:650;letter-spacing:-.015em;color:#31563B;margin:4px 0 6px}
.compare-picker-copy>small{font-size:10px;line-height:1.5;color:#7D8D70}
.compare-picker-copy .compare-picker-collection{font-size:8px;text-transform:uppercase;font-weight:550;line-height:1.5;letter-spacing:.025em}
.compare-picker-copy .compare-level{font-size:9px;margin-top:9px}
.compare-picker-copy .compare-level>small{font-size:9px}
.compare-picker-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#718764;line-height:1.55;margin-top:11px}
.compare-picker-reason{margin-top:8px;font-size:9px!important;color:#71855D!important}
.compare-picker-action{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:550;color:#486F3D;margin-top:13px;line-height:1.4}
.compare-picker-action>svg{width:13px;height:13px;transition:transform .15s}
.compare-picker-card:hover .compare-picker-action>svg{transform:translateX(3px)}
.compare-picker-more{display:flex;margin:22px auto 0}
.compare-picker-limit{font-size:12px;color:#7B8B6C;text-align:center;margin-top:22px}
.compare-picker-empty{text-align:center;padding:35px 20px 28px;border:1px solid #DCE5D1;border-radius:13px;background:white}
.compare-picker-empty>h4{font-size:22px;color:#416244;line-height:1.3;margin-bottom:10px}
.compare-picker-empty>p{font-size:13px;color:#7A8C6B;line-height:1.5;margin-bottom:20px}
.compare-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}
@keyframes compare-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1200px){.compare-header-summary{grid-template-columns:110px minmax(0,1fr);gap:12px}.compare-lesson-head{padding:17px 16px 9px}.compare-identity h3{font-size:19px}.compare-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-picker-card{padding:16px}.compare-dock-title{display:none}.compare-dock-lesson>span{max-width:125px}}
@media(max-width:1000px){.compare-header-summary{display:flex;flex-direction:column;gap:0}.compare-slide{width:116px;float:none;margin:0 0 10px}.compare-identity:after{content:'';display:block;clear:both}.compare-lesson-actions{clear:both}.compare-collection{font-size:8px}.compare-identity h3{font-size:18px}.compare-identity .compare-level{clear:both;padding-top:2px;margin-top:6px}.compare-dock{padding:11px 13px;gap:10px}.compare-dock-image{width:44px}.compare-dock-lesson>span{max-width:95px}.compare-dock-lesson small{display:none}.compare-dock-actions{gap:8px}.compare-primary{font-size:12px!important;padding-inline:12px}.compare-lesson-link{margin-left:0}.compare-replace-options{grid-template-columns:1fr}.compare-replace-options .compare-picker-image{width:100px}.compare-replace-options .compare-picker-copy{display:grid;grid-template-columns:1fr auto;column-gap:15px}.compare-replace-options .compare-level{grid-row:1/3;grid-column:2;margin:0}.compare-vocab-tools{gap:14px}.compare-vocab-tools>p{font-size:10px}.compare-table tbody td{padding:15px 16px}}
@media(max-width:700px){
 body.compare-has-selection{padding-bottom:145px}
 .detail-context-row:has(.detail-compare-actions){flex-wrap:wrap}
 .detail-compare-actions{flex-basis:100%;gap:7px}
 .detail-compare-actions .compare-toggle,.compare-inline-open{min-height:34px;padding:7px 10px;font-size:11px}
 .compare-dock{width:calc(100% - 20px);bottom:10px;padding:10px 12px;gap:9px;flex-wrap:wrap;border-radius:14px}
 .compare-dock-lessons{flex-basis:100%;gap:8px}
 .compare-dock-lesson{gap:6px;position:relative;padding-right:0;align-items:flex-start}
 .compare-dock-image{width:46px;margin-top:2px}
 .compare-dock-lesson>span{max-width:none;padding-right:13px}
 .compare-dock-lesson strong{font-size:10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .compare-dock-lesson>.compare-icon-button{position:absolute;top:-4px;right:-4px;width:22px;height:22px;padding:4px;background:#FFFFFDee}
 .compare-dock-lesson>.compare-icon-button svg{width:13px;height:13px}
 .compare-dock-actions{width:100%;justify-content:space-between;border-top:1px solid #E4E9DC;padding-top:7px}
 .compare-primary{min-height:36px;padding-block:8px}
 .compare-dialog{width:calc(100vw - 12px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 .compare-dialog-header{padding:13px 14px 11px;gap:7px}
 .compare-eyebrow{font-size:8px;margin-bottom:5px}
 .compare-dialog-header h2{font-size:21px;gap:7px}
 .compare-dialog-header h2>small{font-size:9px;padding:4px 6px}
 .compare-header-actions{gap:5px}
 .compare-header-actions .compare-text-button{min-height:32px;width:31px;padding:6px}
 .compare-header-actions .compare-text-button>span{display:none}
 .compare-header-actions>.compare-secondary{font-size:10px!important;min-height:32px;padding:7px 9px;gap:4px}
 .compare-header-actions>.compare-secondary>svg{width:14px;height:14px}
 .compare-close{width:32px;height:32px}
 .compare-tabs{gap:24px;padding-inline:15px;overflow-x:auto;scrollbar-width:none}
 .compare-tabs>button{font-size:12px;min-height:43px}
 .compare-scroll{scrollbar-gutter:auto}
 .compare-table{width:calc(var(--compare-label-width) + var(--compare-count) * var(--compare-mobile-column));min-width:100%;--compare-label-width:88px}
 .compare-table .compare-lesson-col{width:var(--compare-mobile-column)}
 .compare-attribute-heading{padding:14px 10px}
 .compare-table thead .compare-attribute-heading{position:sticky;left:0;z-index:5}
 .compare-attribute-heading>span{font-size:9px;line-height:1.5}
 .compare-attribute-heading>small{font-size:8px;line-height:1.5}
 .compare-lesson-head{padding:12px 10px 7px}
 .compare-header-summary{display:flex;flex-direction:column;gap:0}
 .compare-slide{float:none;width:min(110px,100%);margin:0 0 9px}
 .compare-identity{width:100%}
 .compare-collection{display:none}
 .compare-identity h3{font-size:16px;line-height:1.2;margin-bottom:5px}
 .compare-lesson-meta{font-size:9px!important;line-height:1.4!important}
 .compare-identity .compare-level{display:flex;align-items:start;flex-direction:column;gap:3px;padding:0;margin-top:8px;line-height:1.4}
 .compare-level>strong{font-size:9px;padding:3px 4px}
 .compare-level>small{font-size:9px}
 .compare-lesson-actions{gap:1px 4px;margin-top:8px}
 .compare-lesson-actions>.compare-text-button{font-size:10px!important;min-height:30px;padding:5px 0}
 .compare-lesson-actions>.compare-icon-button{width:23px;height:25px;padding:4px;margin-left:auto}
 .compare-lesson-actions>.compare-icon-button>svg{width:14px;height:14px}
 .compare-lesson-link{font-size:10px;min-height:27px;gap:4px;margin:0;width:100%}
 .compare-lesson-link>svg{width:11px;height:11px}
 .compare-table tbody td{padding:13px 10px;font-size:12px;line-height:1.65}
 .compare-table .compare-row-key{position:sticky;left:0;z-index:2;padding:14px 10px;font-size:11px;line-height:1.5}
 .compare-list{padding-left:13px;font-size:12px;line-height:1.65}
 .compare-list>li{margin-bottom:10px;padding-left:0}
 .compare-not-listed,.compare-listed{font-size:10px}
 .compare-listed{gap:4px}.compare-listed>svg{width:12px;height:12px}.compare-listed>small{font-size:8px}
 .compare-definition-entry>p{font-size:11px;line-height:1.6}
 .compare-definition-entry>strong{font-size:9px}
 .compare-definition-entry>small{font-size:9px}
 .compare-standard-description>summary strong{font-size:10px}
 .compare-standard-description>summary>svg{width:11px;height:11px}
 .compare-standard-description>p{font-size:11px}
 .compare-resource{padding:8px;font-size:10px;gap:5px;min-height:42px}
 .compare-resource>svg{width:12px;height:12px}
 .compare-vocab-tools{align-items:center;gap:6px 13px;flex-direction:row;flex-wrap:wrap;padding:9px 15px}
 .compare-vocab-tools>.compare-vocab-search{width:145px;min-height:32px;padding:4px 8px}
 .compare-vocab-tools>.compare-vocab-search>input{font-size:11px}
 .compare-vocab-tools>label{font-size:11px;min-height:25px}
 .compare-vocab-tools>p{font-size:9px;line-height:1.45;flex-basis:100%}
 .compare-dialog-footer{padding:7px 15px;gap:15px}
 .compare-footer-hint{font-size:9px!important;max-width:260px}
 .compare-dialog-footer>.compare-text-button{font-size:10px!important;min-height:34px}
 .compare-picker{padding:15px 15px 23px}
 .compare-picker-top{margin-bottom:17px}
 .compare-picker-top h3{font-size:24px}
 .compare-picker-top p{font-size:12px;line-height:1.55}
 .compare-picker-form{padding:10px;border-radius:10px;margin-bottom:18px}
 .compare-picker-query{gap:8px;padding-left:10px;min-height:44px}
 .compare-picker-query>svg{width:15px;height:15px}
 .compare-picker-query>input{font-size:13px;height:31px;padding-block:4px}
 .compare-picker-query>.compare-primary{font-size:11px!important;min-height:34px;padding:7px 10px}
 .compare-picker-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:10px}
 .compare-picker-filters select{font-size:11px;padding:8px;min-height:38px}
 .compare-picker-filters>.compare-text-button{grid-column:1/-1;justify-self:start;min-height:25px;padding:0;font-size:10px!important}
 .compare-picker-grid{grid-template-columns:1fr;gap:11px}
 .compare-picker-card{padding:13px;gap:13px}
 .compare-picker-image{width:108px}
 .compare-picker-copy>strong{font-size:17px}
 .compare-picker-summary{font-size:11px;line-height:1.6}
 .compare-picker-copy .compare-level{margin-top:8px}
 .compare-picker-count>h4{font-size:15px}
 .compare-picker-count>span{font-size:10px}
 .compare-replace-options .compare-picker-copy{display:flex}
 .compare-replace-options .compare-level{margin-top:7px}
}
@media(max-width:390px){.compare-dialog-header h2{font-size:19px;gap:5px}.compare-header-actions>.compare-secondary>span{display:none}.compare-header-actions>.compare-secondary{width:30px;padding:6px}.compare-dialog-header{padding-inline:12px}.compare-picker-image{width:92px}.compare-picker-card{gap:11px}.compare-tabs{gap:23px}}
/* A fixed header must not occupy the whole reading area in landscape. */
@media(max-height:560px){
 .compare-dialog-header{padding-block:10px}
 .compare-eyebrow{display:none}
 .compare-dialog-header h2{font-size:22px}
 .compare-tabs>button{min-height:38px;padding-block:8px}
 .compare-table thead{position:static}
 .compare-dialog-footer{padding-block:5px}
 .compare-lesson-head{padding:12px}
 .compare-slide{width:84px}
 .compare-collection{display:none}
 .compare-vocab-tools>p{display:none}
}
@media(prefers-reduced-motion:reduce){.compare-dialog[open]{animation:none}.lesson-comparison *, .lesson-comparison *:before,.lesson-comparison *:after{transition:none!important;scroll-behavior:auto!important}}
@media print{.compare-dock,.compare-toggle,.compare-inline-open,.detail-compare-actions{display:none!important}body.compare-has-selection{padding-bottom:0}}

.compare-standard-description>summary>span{min-width:0;flex:1}
.compare-standard-description>summary small{display:block;margin-top:6px;font-size:11px;line-height:1.45;font-weight:400;color:#66765E}
@media(max-width:700px){.compare-standard-description>summary small{font-size:9px}}

/* The single-screen home reserves the dock's actual height in normal flow.
   Search and browse views keep their fixed comparison dock. */
body.compare-has-selection[data-planning-view="home"]{padding-bottom:0}
body.compare-has-selection[data-planning-view="home"]>.compare-dock{position:static;transform:none;flex:none;margin:12px auto 18px}
body.compare-has-selection[data-planning-view="home"] main{container:compare-home-space / size}
body.compare-has-selection[data-planning-view="home"] :is(.site-header,.site-footer){flex-shrink:0}
body.compare-has-selection[data-planning-view="home"] .pathways{grid-template-rows:minmax(0,1fr)}
body.compare-has-selection[data-planning-view="home"] :is(.search-path,.browse-path){min-height:0}

/* Respond to the space above the footer, including a selected comparison. */
@container compare-home-space (max-height:760px){
 .home-wrap .hero{padding-block:22px}
 .home-wrap :is(.search-path,.browse-path){padding:24px 28px}
 .home-wrap .category-row{min-height:60px;padding-block:9px}
 .home-wrap .path-heading{margin-bottom:12px}
 .home-wrap :is(.search-path,.browse-path)>p{margin:10px 0 18px}
 .home-wrap .search-spacer{min-height:12px}
 .home-wrap .search-foot{padding-top:12px}
 .home-wrap .try{margin-top:14px}
}
@container compare-home-space (max-height:620px){
 .home-wrap .hero{padding:14px 0 18px}
 .home-wrap .hero h1{font-size:34px}
 .home-wrap .path-heading{display:none}
 .home-wrap .browse-path>p{display:none}
 .home-wrap .browse-path h2{margin-bottom:16px}
 .home-wrap .category-row{min-height:50px;padding-block:6px}
 .home-wrap :is(.search-path,.browse-path){padding:20px 24px}
 .home-wrap .search-form{gap:12px}
 .home-wrap .try{margin-top:12px}
}
@media(max-width:900px){
 @container compare-home-space (max-height:760px){
  .home-wrap .hero{padding:18px 0}
  .home-wrap .hero h1{font-size:29px}
  .home-wrap .hero>p{font-size:13px;line-height:1.5}
  .home-wrap :is(.search-path,.browse-path){padding:20px 22px}
  .home-wrap .path-heading{display:none}
  .home-wrap :is(.search-path,.browse-path) h2{font-size:25px}
  .home-wrap :is(.search-path,.browse-path)>p{font-size:13px;margin:9px 0 16px}
  .home-wrap .browse-path>p{display:none}
  .home-wrap .browse-path h2{margin-bottom:16px}
  .home-wrap .category-row{min-height:51px;padding-block:7px}
  .home-wrap .search-form{gap:12px}
  .home-wrap .search-foot{font-size:11px}
 }
}
/* Reuse the existing entry cards when the full controls cannot fit comfortably. */
@container compare-home-space (max-height:500px) or ((max-width:640px) and (max-height:550px)) or ((max-width:370px) and (max-height:650px)){
 .home-wrap .pathways,.home-path-tabs{display:none}
 .home-wrap .hero{padding:14px 0 18px}
 .home-wrap .hero .eyebrow,.home-wrap .hero>p{display:none}
 .home-wrap .hero h1{font-size:28px;margin:0;max-width:none;line-height:1.15}
 .compact-pathways{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:min(900px,100%);margin-inline:auto;min-height:0;max-height:210px;flex:1}
 .compact-pathways button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;text-align:left;border:1px solid var(--line);background:white;color:var(--green);padding:20px 24px;border-radius:16px}
 .compact-pathways button:first-child{background:var(--green);color:white;border-color:var(--green)}
 .compact-pathways strong{font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.025em}
 .compact-pathways span{font-size:13px;line-height:1.5;opacity:.8}
 .compact-pathways button>svg:first-child{display:none}
 .compact-pathways button>svg:last-child{width:18px;height:18px}
 .compact-pathways button:hover{border-color:#9EB592;background:#F2F6E9}
 .compact-pathways button:first-child:hover{background:var(--green-hover)}
}
@media(max-width:640px){
 body.compare-has-selection[data-planning-view="home"]>.compare-dock{margin-block:8px 12px}
 @container compare-home-space (max-height:650px){
  .home-wrap .hero h1{font-size:26px}
  .compact-pathways{gap:12px}
  .compact-pathways button{padding:16px}
  .compact-pathways strong{font-size:20px}
  .compact-pathways span{font-size:12px}
 }
}
@media(max-width:640px){
 @container compare-home-space (min-height:551px) and (max-height:620px){
  .home-wrap .hero>p{display:none}
  .home-wrap .hero{padding-block:14px}
 }
}
