/* Level 4 — material screen (js/material-page.js): viewer, format chip, title, description, one meta line, contents.
 * Palette from the owner's brief: #000 · #7A1E1E · #FF6A00 · #D8C6B2 · #EFEAE3 · #FAFAF6. Header buttons reuse .sub-top from css/subsection.css,
 * --paper-noise comes from css/section.css. Accent per format: video — orange, live — burgundy, PDF — sand, protocol — red burgundy. */

/* Bottom navigation can be on every screen (switch in css/nav.css): --nav-space in the bottom padding keeps the contents clear of it */
.stc-shell[data-screen="material"] .stc-screen{padding:calc(12px + var(--stc-safe-top)) var(--home-x,18px) calc(26px + var(--nav-space,86px) + var(--stc-safe-bottom))}

.mp{--mp-accent:#FF6A00;--mp-on:#000;--mp-ink:#FF8A3D;--mp-tint:rgba(255,106,0,.14);--mp-line:rgba(255,106,0,.55);
  position:relative;container-type:inline-size;min-width:0;color:#EFEAE3}
.mp--live_recording{--mp-accent:#7A1E1E;--mp-on:#FAFAF6;--mp-ink:#CFA294;--mp-tint:rgba(122,30,30,.42);--mp-line:rgba(170,70,62,.75)}
.mp--pdf{--mp-accent:#D8C6B2;--mp-on:#000;--mp-ink:#D8C6B2;--mp-tint:rgba(216,198,178,.14);--mp-line:rgba(216,198,178,.55)}
.mp--protocol{--mp-accent:#9A2222;--mp-on:#FAFAF6;--mp-ink:#EC9A84;--mp-tint:rgba(154,34,34,.4);--mp-line:rgba(214,84,70,.7)}
.mp--file{--mp-accent:#EFEAE3;--mp-on:#000;--mp-ink:#EFEAE3;--mp-tint:rgba(239,234,227,.1);--mp-line:rgba(239,234,227,.4)}
/* Protocol: the whole top of the screen sinks into dark red */
.mp--protocol::before{content:"";position:absolute;z-index:-1;left:calc(-1 * var(--home-x,18px));right:calc(-1 * var(--home-x,18px));top:calc(-12px - var(--stc-safe-top));height:min(760px,120cqi);pointer-events:none;
  background:radial-gradient(90% 60% at 50% 18%,rgba(154,34,34,.55),rgba(122,30,30,.22) 55%,transparent 80%)}
.mp button{-webkit-tap-highlight-color:transparent;font:inherit}
.mp :is(button,[tabindex]):focus-visible{outline:2px solid var(--stc-focus);outline-offset:2px}

/* ---------- MaterialHeader / MaterialBookmark ---------- */
.mp-mark .mp-ribbon{fill:none;transition:fill .2s var(--stc-ease),transform .2s var(--stc-ease)}
.mp-mark.is-saved{background:var(--mp-accent);border-color:var(--mp-accent);color:var(--mp-on)}
.mp-mark.is-saved .mp-ribbon{fill:currentColor}
.mp-mark:active .mp-ribbon{transform:translateY(1px)}

/* ---------- MaterialViewer: shared frame ---------- */
.mp-viewer{position:relative;margin-top:clamp(14px,4.4cqi,18px);border-radius:clamp(12px,4cqi,16px);overflow:hidden;isolation:isolate;
  box-shadow:0 20px 36px -18px rgba(0,0,0,.95)}
.mp-test{position:absolute;z-index:4;top:10px;left:10px;padding:4px 8px;border-radius:6px;background:rgba(0,0,0,.62);color:#EFEAE3;
  font-size:9.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;pointer-events:none}
.mp-viewer__note{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:12px;max-width:230px;margin:0;text-align:center;
  font-size:12.5px;line-height:1.45;color:rgba(239,234,227,.82)}
.mp-viewer__ring{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px dashed rgba(239,234,227,.45);color:rgba(239,234,227,.6)}
.mp-viewer__ring .icon-svg{width:18px;height:18px}
.mp-viewer__error{position:absolute;z-index:3;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;
  background:rgba(8,3,4,.86);text-align:center}
.mp-viewer__error p{margin:0;font-size:13px;line-height:1.45;color:#EFEAE3}
.mp-viewer__retry{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 15px;border-radius:18px;border:1px solid var(--mp-line);background:none;color:#EFEAE3;font-size:13px;cursor:pointer}
.mp-viewer__retry .icon-svg{width:14px;height:14px}
.mp-viewer[data-state="error"] .mp-viewer__error{display:flex}

/* ---------- VideoMaterialViewer: 16:9, cover with the play button until the first start ---------- */
.mp-video{aspect-ratio:16/9;border:1px solid rgba(255,130,80,.26);background:#070304}
/* The video's own shape (videoW/videoH); tall videos capped by the screen height, same cap as the plain video frame */
.mp-video--shaped{aspect-ratio:var(--vw)/var(--vh);width:min(100%,calc(70svh * var(--vw) / var(--vh)));margin-inline:auto}
.mp--live_recording .mp-video{border-color:rgba(170,70,62,.45)}
.mp-video__el{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain}
.mp-video__cover{position:absolute;z-index:1;inset:0;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(70% 90% at 72% 50%,rgba(255,106,0,.28),transparent 70%),linear-gradient(135deg,#4a1414,#1a0708 62%,#0b0405)}
.mp--live_recording .mp-video__cover{background:radial-gradient(70% 90% at 72% 50%,rgba(122,30,30,.6),transparent 70%),linear-gradient(135deg,#2a0b0b,#0d0505 62%,#050203)}
.mp-video__cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.42));pointer-events:none}
.mp-video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mp-video[data-state="empty"] .mp-video__poster{opacity:.32;filter:grayscale(.4)}
.mp-video__play{position:relative;z-index:2;display:grid;place-items:center;width:clamp(54px,17cqi,64px);height:clamp(54px,17cqi,64px);padding:0;border-radius:50%;cursor:pointer;
  border:1px solid transparent;background:var(--mp-accent);color:var(--mp-on);box-shadow:0 10px 26px -8px rgba(0,0,0,.8),0 0 0 6px rgba(255,255,255,.08);
  transition:transform .18s var(--stc-ease)}
.mp--live_recording .mp-video__play{border-color:rgba(239,234,227,.35)}
.mp-video__play:active{transform:scale(.94)}
.mp-video__play .icon-svg{width:42%;height:42%;margin-left:7%}
.mp-video[data-state="playing"] .mp-video__cover,.mp-video[data-state="error"] .mp-video__play{display:none}
/* "You stopped at 37:12" + restart, over the bottom of the cover (js/watch-progress.js) */
.mp-video__resume{position:absolute;z-index:2;left:10px;right:10px;bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:6px 6px 6px 12px;border-radius:999px;background:rgba(0,0,0,.55);color:rgba(239,234,227,.9);font-size:12.5px;line-height:1.3}
.mp-video__resume[hidden]{display:none}
.mp-video__resume b{font-weight:600;font-variant-numeric:tabular-nums;color:#EFEAE3}
.mp-video__restart{flex:none;padding:6px 12px;border-radius:999px;border:1px solid rgba(239,234,227,.35);background:none;color:#EFEAE3;font:inherit;cursor:pointer}
.mp-video__restart:active{transform:scale(.96)}
.mp-video[data-state="error"] .mp-video__resume{display:none}

/* ---------- DocumentMaterialViewer: light paper for guides, dark red for protocols ---------- */
.mp-doc{--mp-ratio:1.414;border:1px solid rgba(216,198,178,.45);color:#000;
  background:var(--paper-noise),radial-gradient(80% 50% at 20% 0,rgba(255,255,255,.6),transparent 70%),linear-gradient(180deg,#EFEAE3,#E2D3C1)}
.mp--protocol .mp-doc{border-color:rgba(214,84,70,.45);color:#FAFAF6;
  background:var(--paper-noise),radial-gradient(80% 60% at 50% 0,rgba(255,106,0,.14),transparent 70%),linear-gradient(180deg,#5c1616,#3a0c0c 55%,#240707)}
.mp-doc__stage{position:relative;display:grid;width:100%;aspect-ratio:1/var(--mp-ratio);max-height:min(62svh,560px);min-height:220px}
.mp-doc__track{display:flex;height:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;outline:0}
.mp-doc__track::-webkit-scrollbar{display:none}
.mp-doc__slide{display:flex;align-items:center;justify-content:center;flex:0 0 100%;height:100%;min-width:0;min-height:0;padding:14px 14px 4px;box-sizing:border-box;scroll-snap-align:center;scroll-snap-stop:always}
.mp-doc__stage>.mp-doc__slide{grid-area:1/1}
/* min-width:0 — otherwise the width transferred from height via aspect-ratio beats max-width and a landscape page widens its slide past the track */
.mp-doc__sheet{display:block;height:100%;min-width:0;max-width:100%;aspect-ratio:var(--pw,1)/var(--ph,1.414);border-radius:3px;background:#FAFAF6;
  box-shadow:0 1px 2px rgba(60,30,20,.18),0 10px 24px -12px rgba(60,30,20,.55)}
.mp--protocol .mp-doc__sheet{box-shadow:0 1px 2px rgba(0,0,0,.4),0 14px 28px -12px rgba(0,0,0,.85)}
.mp-doc__sheet canvas{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
/* Page that is not drawn yet, and the empty-state sheet: faint lines instead of text */
.mp-doc__slide:not(.is-drawn) .mp-doc__sheet,.mp-doc__sheet--blank{
  background:linear-gradient(90deg,#FAFAF6 12%,transparent 12% 88%,#FAFAF6 88%) 0 0/100% 100%,
    repeating-linear-gradient(180deg,transparent 0 14px,rgba(120,90,70,.12) 14px 18px) 0 18%/100% 66% no-repeat,#FAFAF6}
.mp-doc__slide:not(.is-drawn) canvas{opacity:0}
.mp-doc__sheet--ghost{opacity:.5}
.mp--protocol .mp-doc__slide .mp-doc__sheet--ghost{opacity:1;border:1px dashed rgba(250,250,246,.22);box-shadow:none;
  background:repeating-linear-gradient(180deg,transparent 0 14px,rgba(250,250,246,.07) 14px 18px) center 18%/76% 66% no-repeat,rgba(0,0,0,.18)}
.mp-doc__msg{position:absolute;z-index:2;left:50%;bottom:16px;transform:translateX(-50%);margin:0;padding:6px 12px;border-radius:14px;background:rgba(0,0,0,.66);color:#EFEAE3;font-size:12px;white-space:nowrap}
.mp-doc:not([data-state="loading"]) .mp-doc__msg--loading{display:none}
.mp-doc .mp-viewer__note{grid-area:1/1;align-self:center;justify-self:center;color:rgba(0,0,0,.7)}
.mp-doc .mp-viewer__note .mp-viewer__ring{border-color:rgba(0,0,0,.35);color:rgba(0,0,0,.55);background:rgba(250,250,246,.7)}
.mp--protocol .mp-doc .mp-viewer__note{color:rgba(250,250,246,.85)}
.mp--protocol .mp-doc .mp-viewer__note .mp-viewer__ring{border-color:rgba(250,250,246,.45);color:rgba(250,250,246,.7);background:none}

/* Page navigation: ‹ 1 / 24 › and the fullscreen reader */
.mp-doc__bar{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;height:48px;border-top:1px solid rgba(0,0,0,.1)}
.mp--protocol .mp-doc__bar{border-top-color:rgba(250,250,246,.12)}
.mp-doc__btn{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid rgba(0,0,0,.2);background:none;color:inherit;cursor:pointer;transition:opacity .2s,transform .15s}
.mp--protocol .mp-doc__btn{border-color:rgba(250,250,246,.28)}
.mp-doc__btn:active{transform:scale(.92)}
.mp-doc__btn:disabled{opacity:.3;cursor:default;transform:none}
.mp-doc__btn .icon-svg{width:15px;height:15px;stroke-width:1.6}
.mp-doc__expand{position:absolute;right:8px;top:6px;border-color:transparent}
.mp--protocol .mp-doc__expand{border-color:transparent}
.mp-doc__count{min-width:70px;text-align:center;font-size:12px;letter-spacing:.1em;font-variant-numeric:tabular-nums;color:inherit;opacity:.72}

/* Protocol stored as structured text: its own scroll inside the frame */
.mp-doc--text{border-color:rgba(214,84,70,.45)}
.mp-text{position:relative;height:min(52svh,420px);overflow-y:auto;overscroll-behavior:contain;padding:12px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(250,250,246,.3) transparent}
.mp-text__part{margin:0 0 10px;padding:16px 16px 6px;border-radius:6px;background:#FAFAF6;color:#000;box-shadow:0 10px 22px -14px rgba(0,0,0,.8)}
.mp-text__part h3{margin:0 0 10px;font-size:15px;font-weight:500;letter-spacing:-.01em}
.mp-text__part p{margin:0 0 10px;font-size:13.5px;line-height:1.55;color:rgba(0,0,0,.75)}


/* ---------- GalleryViewer: slides of a Telegram post on a dark stage ---------- */
.mp-gallery{border-color:rgba(239,234,227,.16);color:#EFEAE3;background:rgba(16,6,8,.55)}
.mp-gallery .mp-doc__sheet{width:100%;aspect-ratio:auto;background:none;box-shadow:none} /* the frame fills the slide, the image fits inside (object-fit:contain) — portrait and landscape slides in one post */
.mp-doc__sheet img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.mp-reader__sheet--img{background:none}
.mp-reader__sheet img{display:block;width:100%;height:100%;object-fit:contain;-webkit-touch-callout:none}

/* ---------- MaterialInfo + MaterialMeta ---------- */
.mp-info{margin-top:clamp(18px,5.6cqi,24px)}
.mp-kind{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:7px;border:1px solid var(--mp-line);background:var(--mp-tint);
  color:var(--mp-ink);font-size:10.5px;font-weight:500;line-height:1;letter-spacing:.16em;text-transform:uppercase}
.mp-title{margin:clamp(12px,3.6cqi,14px) 0 0;font-size:clamp(22px,6.8cqi,26px);font-weight:400;line-height:1.15;letter-spacing:-.025em;color:#FAFAF6;overflow-wrap:break-word}
.mp-desc{margin:10px 0 0;font-size:clamp(13px,3.8cqi,14.5px);line-height:1.5;color:rgba(239,234,227,.7);overflow-wrap:break-word}
.mp-meta{display:flex;align-items:center;gap:11px;min-height:52px;margin:clamp(16px,5cqi,20px) 0 0;padding:0 16px;border-radius:12px;
  border:1px solid rgba(239,234,227,.14);background:rgba(16,6,8,.46);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:14.5px;color:#EFEAE3}
.mp-meta[hidden]{display:none}
.mp-meta .icon-svg{flex:none;width:18px;height:18px;stroke-width:1.5;color:var(--mp-ink)}

/* ---------- MaterialBody: the post text; MaterialFigures: pictures of a video post ---------- */
.mp-body{margin-top:clamp(20px,6cqi,26px);font-size:clamp(14px,4cqi,15px);line-height:1.58;color:rgba(239,234,227,.86);overflow-wrap:break-word}
.mp-body p{margin:0 0 14px;white-space:pre-line}
.mp-body p:last-child{margin-bottom:0}
/* Edited texts (textFormat 'md'): step headings with a number badge, lists with orange dashes, key-idea note, tags */
.mp-body--rich p{white-space:normal}
.mp-body--rich>p:first-child{margin-bottom:22px;font-size:clamp(11px,3.1cqi,12px);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--stc-orange-light,#FFAA70)}
.mp-h{display:flex;align-items:center;gap:12px;margin:28px 0 12px;font-size:clamp(16px,4.6cqi,18px);font-weight:600;line-height:1.3;letter-spacing:-.005em;color:var(--stc-text,#FFF4EB)}
.mp-body--rich>.mp-h:first-child,.mp-body--rich>p:first-child+.mp-h{margin-top:0}
.mp-h__n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:13px;font-weight:600;
  color:#1c090d;background:linear-gradient(180deg,var(--stc-orange-light,#FFAA70),var(--stc-orange,#FF7947));box-shadow:0 0 14px -2px rgba(255,121,71,.55)}
.mp-h+p{margin:-4px 0 12px 40px;font-size:.93em;color:var(--stc-muted,#967D83)}
.mp-list{list-style:none;margin:0 0 12px;padding:0}
.mp-list li{position:relative;padding:4px 0 4px 22px}
.mp-list li::before{content:"";position:absolute;left:2px;top:calc(4px + .78em);width:10px;height:2px;border-radius:1px;background:var(--stc-orange,#FF7947)}
.mp-body--rich strong{font-weight:600;color:var(--stc-text,#FFF4EB)}
.mp-h3{margin:24px 0 10px;font-size:clamp(11px,3.1cqi,12px);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--stc-secondary,#CEADB0)}
.mp-body--rich>.mp-h3:first-child,.mp-body--rich>p:first-child+.mp-h3{margin-top:0}
.mp-h3+p{margin-bottom:12px}
.mp-list--num{counter-reset:mp-n}
.mp-list--num>li{padding-left:34px;counter-increment:mp-n}
.mp-list--num>li::before{content:counter(mp-n);left:0;top:calc(4px + .78em - 11px);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:600;line-height:22px;text-align:center;color:var(--stc-orange-light,#FFAA70);background:rgba(255,121,71,.12);border:1px solid rgba(255,121,71,.35)}
.mp-list--sub{margin:2px 0 0}
.mp-list--sub>li{padding:2px 0 2px 18px;color:rgba(239,234,227,.78)}
.mp-list--sub>li::before{left:2px;top:calc(2px + .78em);width:6px;height:6px;border-radius:50%;background:rgba(255,121,71,.6)}
.mp-note{margin:26px 0 18px;padding:14px 16px 14px 18px;border-left:2px solid var(--stc-orange,#FF7947);border-radius:4px 12px 12px 4px;
  background:linear-gradient(90deg,rgba(255,121,71,.12),rgba(255,121,71,.04));color:rgba(255,244,235,.92)}
.mp-note>p{margin:0 0 10px}
.mp-note>:last-child{margin-bottom:0}
.mp-note .mp-list{margin:4px 0 10px}
.mp-note .mp-list>li{padding:3px 0 3px 20px}
.mp-note .mp-list>li::before{top:calc(3px + .78em)}
.mp-body--rich>.mp-note:first-child{margin-top:0}
.mp-figs{display:grid;gap:10px;margin-top:clamp(12px,3.5cqi,16px)}
.mp-figs img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid rgba(239,234,227,.12);-webkit-touch-callout:none}

/* ---------- MaterialContents: compact rows with thin rules ---------- */
.mp-contents{margin-top:clamp(26px,7.6cqi,32px)}
.mp-contents__title{margin:0 0 8px;font-size:18px;font-weight:400;letter-spacing:-.015em;color:#FAFAF6}
.mp-ch-list{margin:0;padding:0;list-style:none;border-top:1px solid rgba(239,234,227,.13)}
.mp-ch{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:clamp(44px,13cqi,50px);padding:9px 2px;
  border:0;border-bottom:1px solid rgba(239,234,227,.13);background:none;color:#EFEAE3;text-align:left;box-sizing:border-box}
.mp-ch--link{cursor:pointer;transition:background .16s}
.mp-ch--link:active{background:rgba(239,234,227,.05)}
.mp-ch__n{font-size:12px;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:var(--mp-ink)}
.mp-ch__t{min-width:0;font-size:clamp(13.5px,3.9cqi,14.5px);line-height:1.3;overflow-wrap:break-word}
.mp-ch__r{display:flex;align-items:center;gap:9px;font-size:12.5px;font-variant-numeric:tabular-nums;color:rgba(239,234,227,.58);white-space:nowrap}
.mp-ch__go{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid rgba(239,234,227,.24);color:#EFEAE3;transition:background .2s,border-color .2s,color .2s}
.mp-ch__go .icon-svg{width:10px;height:10px;stroke-width:1.8}
.mp-ch__go .mp-fill{fill:currentColor;stroke:none;margin-left:1px}
/* The chapter that is playing now */
.mp-ch.is-current .mp-ch__t{color:#FAFAF6}
.mp-ch.is-current .mp-ch__go{background:var(--mp-accent);border-color:var(--mp-accent);color:var(--mp-on)}
.mp-contents__empty{margin:0;padding:18px 16px;border:1px dashed rgba(239,234,227,.2);border-radius:12px;font-size:13px;line-height:1.45;color:rgba(239,234,227,.6);text-align:center}

.mp-missing{margin-top:40px;padding:26px 20px;border:1px dashed rgba(239,234,227,.24);border-radius:12px;text-align:center;font-size:13px;color:rgba(239,234,227,.66)}
.mp-missing p{margin:6px 0 0}
.mp-missing .mp-missing__title{margin:0;font-size:15px;font-weight:500;color:#FAFAF6}

/* ---------- Fullscreen PDF reader (appended to body) ---------- */
html.mp-reader-open,html.mp-reader-open body{overflow:hidden}
.mp-reader{position:fixed;z-index:2147482000;inset:0;display:flex;flex-direction:column;background:#120a0a;color:#EFEAE3;animation:mp-in .22s var(--stc-ease)}
.mp-reader__bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(8px + var(--stc-safe-top)) 12px 8px;border-bottom:1px solid rgba(239,234,227,.1)}
.mp-reader__btn{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid rgba(239,234,227,.26);background:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mp-reader__btn:disabled{opacity:.3;cursor:default}
.mp-reader__btn .icon-svg{width:17px;height:17px}
.mp-reader__btn:focus-visible{outline:2px solid var(--stc-focus);outline-offset:2px}
.mp-reader__zoom{display:flex;gap:6px}
.mp-reader__count{font-size:13px;letter-spacing:.1em;font-variant-numeric:tabular-nums;opacity:.8}
.mp-reader__scroll{flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;outline:0}
.mp-reader__pages{display:flex;flex-direction:column;align-items:center;gap:10px;width:max-content;min-width:100%;padding:10px 10px calc(18px + var(--stc-safe-bottom));box-sizing:border-box}
.mp-reader__sheet{width:var(--rw,300px);background:#FAFAF6;border-radius:2px}
.mp-reader__sheet canvas{display:block;width:100%;height:100%}
@keyframes mp-in{from{opacity:0}to{opacity:1}}

/* Desktop preview frame (≥700px): the screen scrolls inside the frame */
@media(min-width:700px){.mp--protocol::before{top:-12px}}
@media (prefers-reduced-motion:reduce){.mp-reader{animation:none}.mp-doc__track{scroll-behavior:auto}}

/* End-of-text sentinel for «studied» (js/material-page.js setupTextEnd) */
.mp-end{display:block;height:1px;margin:0;pointer-events:none}
