/* CLD-20261013-HP-TOEICM: mobile-only navigation, not a spacing reduction. */
@media(max-width:768px){
 #eight-week-study .t-study19-plan table[hidden]{display:none!important}
 .tm-week-picker{margin:26px 0 22px}
 .tm-week-tabs{display:flex;gap:8px;overflow:auto;padding:2px 0 12px;scrollbar-width:thin}
 .tm-week-tabs button{flex:0 0 auto;min-height:44px;padding:10px 17px;border:1px solid #cdd9e3;border-radius:24px;background:#fff;color:#173856;font-family:inherit;font-weight:700;font-size:14px;line-height:1.5;cursor:pointer}
 .tm-week-tabs button[aria-selected="true"]{background:#173b62;color:#fff;border-color:#173b62}
 .tm-week-caption{font-size:12px!important;margin:0 0 20px!important;line-height:1.8!important}
 .tm-week-panel[hidden]{display:none!important}
 .tm-week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
 .tm-week-cell{min-width:0;border:1px solid #dbe5ed;border-radius:8px;padding:18px 14px;background:#fff;box-sizing:border-box}
 .tm-week-cell.tm-week-lecture{background:#edf2f7}
 .tm-week-cell>strong{display:block;font-size:18px;line-height:1.6}
 .tm-week-cell .t-study19-lecture-label{display:block;margin:14px 0 5px;font-size:12px}
 .tm-week-cell .t-study19-lecture{font-size:15px;line-height:1.8}
 .tm-week-cell>small{display:block;font-size:12px;color:#526b81;line-height:1.7}
 .tm-week-cell .t-study19-assignment{gap:17px;margin-top:17px}
 .tm-week-cell .t-study19-assignment dt{font-size:12px}
 .tm-week-cell .t-study19-assignment dd{font-size:14px;line-height:1.85}
 .tm-week-final{grid-column:1/-1}
 .tm-week-final>span{display:block;font-size:13px;line-height:1.9;margin-top:10px;color:#526b81}
 .tm-week-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 0}
 .tm-week-nav button{min-height:44px;padding:10px 16px;border:1px solid #cdd9e3;background:#fff;color:#173856;border-radius:6px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
 .tm-week-nav button:disabled{opacity:.4;cursor:default}
 .tm-week-nav span{font-size:13px;color:#526b81}
 .tm-fold{min-width:0}
 .tm-fold:not(.tm-fold-open)>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .tm-fold-toggle{display:block;min-height:44px;padding:8px 0;background:none;border:0;color:#245b8d;font:inherit;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
 .tm-week-tabs button:focus-visible,.tm-week-nav button:focus-visible,.tm-fold-toggle:focus-visible{outline:2px solid #173b62;outline-offset:3px}
}

/* HP-TOEICM-2: source-size evidence and original spacing; reorganize, don't shrink. */
@media(max-width:768px){
 .tm2-summary{font-size:15px;line-height:1.9;color:var(--muted);margin:22px 0 0;display:block}
 .tm2-rail{min-width:0;max-width:100%;background:#fffefa;scroll-margin-top:110px}
 .tm2-rail-head{padding:60px 22px 0;scroll-margin-top:110px}
 .tm2-rail-heading{font-size:23px;line-height:1.5;color:#08254a;margin:0 0 20px;letter-spacing:-.04em}
 .tm2-rail-tabs{display:flex;gap:9px;overflow:auto;padding:2px 0 14px;scrollbar-width:thin}
 .tm2-rail-tabs button{flex:0 0 auto;min-height:44px;padding:10px 17px;background:#fff;border:1px solid #ccd9e4;border-radius:24px;color:#173b62;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
 .tm2-rail-tabs button[aria-pressed="true"]{background:#173b62;border-color:#173b62;color:#fff}
 .tm2-rail-track{display:flex;align-items:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;scroll-behavior:auto}
 .tm2-rail-track>.e-story{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
 .tm2-rail-track .e-panel{box-sizing:border-box}
 .tm2-rail-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 22px 60px}
 .tm2-rail-bottom button{font:inherit;font-size:13px;font-weight:700;min-height:44px;padding:10px 17px;border:1px solid #ccd9e4;border-radius:6px;background:#fff;color:#173b62;cursor:pointer}
 .tm2-rail-bottom button:disabled{opacity:.4;cursor:default}.tm2-rail-bottom span{font-size:13px;color:#526b81}
 .tm2-collection{display:block!important;min-width:0}
 .tm2-collection-pane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
 .tm2-collection-pane[hidden]{display:none!important}
 .tm2-collection-pane.tm2-single{grid-template-columns:minmax(0,1fr)}
 .t-phrases023 .tm2-single>span{min-width:0;overflow-wrap:anywhere;font:700 23px/1.6 Georgia,serif;padding:18px;background:#fff;border:1px solid #cbd9e7;border-top:3px solid #6387ae;border-radius:7px}
 .t-phrases023 .tm2-single>.t-v023{border-top-color:#bf6331}
 .t-phrases023 .tm2-single>.t-m023{border-top-color:#829573}
 .tm2-collection-pane>*{min-width:0}
 .tm2-collection-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}
 .tm2-collection-nav button{min-height:44px;padding:10px 14px;font:inherit;font-size:13px;color:#173b62;font-weight:700;border:1px solid #ccd9e4;border-radius:6px;background:#fff;cursor:pointer}
 .tm2-collection-nav button:disabled{opacity:.4}.tm2-collection-nav span{font-size:13px;color:#526b81}
 .tm2-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0}
 .tm2-grid>*{min-width:0;overflow-wrap:anywhere}
 .t-study19-facts.tm2-grid>div:last-child{grid-column:1/-1}
 .tm2-grid .t-study19-solution{grid-column:1/-1}
 .t-study19-paths .tm2-collection-pane>li{grid-template-columns:1fr}
 .t-study19-paths .tm2-collection-pane .t-study19-solution{grid-column:1}
 .t-study19-paths .tm2-collection-pane .t-study19-number{display:block}
}
@media(max-width:760px){.t-phrases023 .tm2-single>span{font-size:21px}}

@media(max-width:768px){.tm3-action{font-size:13px;line-height:1.9;color:var(--muted);margin:16px 0 0}.e-ending .tm2-summary,.e-ending .tm3-action{color:#b9c9da}.tm3-note{font-size:13px;line-height:1.95}.tm2-ui button:focus-visible{outline:2px solid #173b62;outline-offset:3px}}
