/* Общие пропорции внутренних страниц и адаптивная навигация по материалам. */
.inside { padding-top:20px; }
.inside .crumbs { margin-bottom:20px; min-height:26px; }
.interior-hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:clamp(225px,22vw,325px); border:1px solid #314657; border-radius:16px; background:#0b1d29; margin-bottom:clamp(28px,3vw,44px); }
.interior-hero::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#0d2030 3%,#0d2030 33%,#0d2030ef 43%,#0d203055 64%,transparent 84%); }
.interior-hero-art { position:absolute; z-index:-2; width:65%; height:100%; right:0; object-fit:cover; object-position:60% 54%; }
.interior-hero-copy { padding:clamp(25px,3.6vw,60px); width:min(65%,860px); }
.inside .interior-hero h1,.inside .profile-panel h1 { font:790 clamp(2.65rem,5.2vw,5.15rem)/.98 var(--display); letter-spacing:-.045em; }
.intro-lead { font-size:clamp(1rem,1.25vw,1.14rem); line-height:1.6; color:#d1d9db; max-width:54ch; margin-top:14px; }
.intro-lead p { margin:0; }
.interior-hero .hero-actions { margin-top:20px; }
.inside .guide-links { margin:26px 0; }
.inside .guide-links > div { gap:9px; }
.inside .guide-links a { border-color:#334757; padding:.58rem .9rem; border-radius:7px; }
.learning-path > h2,.list-heading { font:750 clamp(1.8rem,2.9vw,2.8rem)/1.15 var(--display); letter-spacing:-.035em; margin:0 0 17px; }
.path-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.path-card { display:grid; grid-template-rows:clamp(100px,9vw,150px) 1fr; border:1px solid #344653; border-radius:13px; overflow:hidden; background:linear-gradient(130deg,#132637,#10202f); }
.path-visual img { width:100%; height:100%; object-fit:cover; object-position:50% 52%; }
.path-content { padding:clamp(17px,1.7vw,27px); }
.path-content h3 { font:730 clamp(1.4rem,2.2vw,2rem)/1.15 var(--display); margin:0 0 10px; }
.path-content ul { list-style:none; padding:0; margin:0; }
.path-content a { display:block; padding:8px 0; border-top:1px solid #2e4251; font-size:.93rem; color:#cbd8df; }
.path-content a:hover { color:var(--accent); }
.learning-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,29%); gap:clamp(30px,5vw,84px); align-items:start; margin-top:24px; }
.lesson-main { min-width:0; }
.lesson-head { max-width:850px; margin:0 0 22px; }
.inside .lesson-head h1,.inside .article-main h1 { font:770 clamp(2.65rem,4.65vw,4.65rem)/1.04 var(--display); letter-spacing:-.044em; }
.lesson-head .intro-lead { max-width:68ch; font-size:clamp(1.03rem,1.35vw,1.22rem); }
.lesson-rail { background:linear-gradient(120deg,#152838,#102131); border:1px solid #304551; border-radius:13px; overflow:hidden; }
.rail-art { width:100%; height:auto; aspect-ratio:1.85; object-fit:cover; }
.inside .lesson-rail .guide-links { margin:0; padding:20px 22px; }
.lesson-rail .guide-links h2 { font-size:1.5rem; color:#f1d098; }
.lesson-rail .guide-links > div { display:grid; gap:0; }
.inside .lesson-rail .guide-links a { border:0; background:none; padding:11px 0; border-radius:0; border-top:1px solid #304553; font-size:.95rem; }
.lesson-rail .guide-links a:hover { color:var(--accent); }
.lesson-main .prose,.inside .page-copy { color:#d3dbe1; line-height:1.72; }
.prose ol,.guide-faq ol { padding-left:1.5rem; }
.prose li,.guide-faq li { margin:.55rem 0; padding-left:.3rem; }
.prose li::marker,.guide-faq li::marker { color:var(--accent); font-weight:700; }
.prose dt { font:700 1.4rem var(--display); color:#f5e3c3; margin-top:1rem; }
.prose dd { margin:.25rem 0 .8rem; }
.lesson-main .hand-chart,.lesson-main .matrix-wrap { border:1px solid #334958; border-radius:12px; padding:12px; background:#0f2130; }
.hand-chart th,.hand-chart td { border:0; border-top:1px solid #334453; }
.hand-chart th { font-weight:600; }
.hand-chart thead { color:#c5cfd7; font-size:.9rem; }
.card-example { display:inline-flex; flex-wrap:nowrap; gap:4px; }
.mini-card { display:inline-flex; align-items:center; justify-content:center; min-width:2.15em; height:2.15em; padding-inline:.18em; border-radius:4px; background:#f6eddc; color:#192a36; font:700 1rem var(--display); box-shadow:0 2px 0 #ad9f86; }
.mini-card.red { color:#9c3028; }
.inside .guide-faq details { border:1px solid var(--stroke); border-radius:9px; margin-bottom:8px; background:#112230; padding:14px 18px; }
.inside .guide-faq details[open] { border-color:#796846; }
.agenda-filter,.compare-options { padding:clamp(14px,2vw,24px); border:1px solid #324959; background:#102333; border-radius:12px; max-width:100%; }
.compare-options fieldset { border:0; padding:0; margin:0 0 16px; }
.compare-options legend { font-weight:650; padding:0; margin-bottom:11px; }
.compare-options label { padding:6px 11px; border:1px solid #405768; border-radius:6px; cursor:pointer; background:#0d1e2a; }
.compare-options label:has(:checked) { color:#f7cf91; border-color:#c29454; }
.guide-results { max-width:none; border:1px solid #2d4454; border-radius:12px; overflow:hidden; }
.guide-result { background:#102130; border-color:#2e4352; }
.guide-result:first-child { border-top:0; }
.guide-result .room-tile { background:none; border:0; padding:5px; min-height:52px; }
.agenda-filter { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.agenda-filter label { display:grid; gap:5px; font-size:.91rem; color:#d4dce2; font-weight:600; }
.agenda-filter select { min-width:190px; }
.inside .empty-state { background:linear-gradient(110deg,#182d3b,#10212e); padding:clamp(20px,2.4vw,38px); border-left:3px solid #d2a35f; }
.catalog-grid.directory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.directory-grid .catalog-card { display:grid; align-content:start; gap:12px; min-height:170px; padding:22px; position:relative; background:linear-gradient(128deg,#1a3040,#102131); }
.catalog-name { display:flex; gap:14px; align-items:center; }
.directory-grid .room-image { width:49px; border-radius:11px; }
.directory-grid .catalog-name h2 { font-size:clamp(1.55rem,2.1vw,2.1rem); }
.catalog-card .feature-line { display:block; color:#c9d7dc; font-size:.93rem; }
.catalog-card .tile-action { border-top:1px solid #334854; padding-top:10px; margin-top:2px; }
.profile-panel { position:relative; overflow:hidden; grid-template-columns:minmax(0,1.6fr) minmax(180px,.8fr); background:#112738; gap:20px; }
.profile-art { align-self:stretch; min-height:200px; border-radius:12px; background:radial-gradient(ellipse at center,#44616b70,#0b1c2a40 70%),repeating-radial-gradient(ellipse,#21424d00 0px 28px,#789b9e29 29px,#16313b00 30px 42px); }
.profile-art .room-image { border-radius:23%; box-shadow:0 14px 25px #0007; }
.profile-text .app-sources { margin-top:20px; }
.inside .article-layout { border:1px solid #334754; background:linear-gradient(125deg,#152b3a,#0c1b29); border-radius:17px; overflow:hidden; padding:clamp(17px,3vw,45px); }
.inside .article-art { border-radius:11px; }
.inside .article-main .guide-links { padding-top:18px; border-top:1px solid var(--stroke); }
.inside .story-card { background:#102230; border:1px solid #2c424f; border-radius:12px; overflow:hidden; }
.inside .story-card .cover-box { border:none; border-radius:0; }
.inside .story-copy { padding:16px 18px 18px; }
.inside .topics a[aria-current] { background:var(--accent); color:var(--ink); }
/* Классы выдачи отделены от класса search-results, который WordPress ставит на body. */
.finder-head { isolation:isolate; position:relative; overflow:hidden; padding:clamp(22px,3.8vw,54px); border:1px solid #355160; border-radius:16px; background:radial-gradient(ellipse at 86% 32%,#1e404e,transparent 58%),#0f2231; }
.finder-head::after { content:""; position:absolute; z-index:-1; inset:0 3% 0 auto; width:28%; opacity:.23; background:url('symbol.svg') right center / contain no-repeat; }
.finder-head > div { width:min(73%,840px); }
.inside .finder-head h1 { font-size:clamp(2.5rem,4.6vw,4.6rem); }
.finder-head p { margin:10px 0 18px; color:#cfdae2; }
.finder-head .search-form { max-width:750px; }
.finder-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.finder-list a { position:relative; display:block; height:100%; padding:clamp(16px,1.8vw,24px) clamp(38px,3.3vw,54px) clamp(16px,1.8vw,24px) clamp(16px,1.8vw,24px); border:1px solid var(--stroke); border-radius:10px; background:#112332; overflow-wrap:anywhere; }
.finder-list a::after { content:"→"; position:absolute; right:18px; top:19px; color:var(--accent); }
.finder-list a:hover,.finder-list a:focus-visible { border-color:#a48b60; }
.finder-list h3 { margin:4px 0; font:720 clamp(1.45rem,2vw,1.95rem)/1.17 var(--display); }
.finder-list p { color:var(--muted); line-height:1.55; font-size:.94rem; }
@media (max-width:700px) {
	.finder-list { grid-template-columns:1fr; }
	.finder-head > div { width:100%; }
	.finder-head::after { inset:8px 8px auto auto; width:70px; height:70px; opacity:.11; }
}
@media (max-width:940px){
 .catalog-grid.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .learning-layout{grid-template-columns:minmax(0,1fr) minmax(215px,28%);gap:22px}
 .path-grid{gap:10px}.path-content{padding:13px}
}
@media (max-width:700px){
 .interior-hero{min-height:200px;margin-bottom:24px}.interior-hero-copy{width:85%;padding:24px}
 .interior-hero-art{width:70%;opacity:.7}.interior-hero::after{background:linear-gradient(90deg,#102333 10%,#102333f2 43%,#10233399 70%,#1023333b)}
 .learning-layout,.profile-panel{grid-template-columns:1fr}.lesson-rail{display:grid;grid-template-columns:minmax(85px,30%) 1fr}
 .rail-art{height:100%;aspect-ratio:auto;max-height:420px}.inside .lesson-rail .guide-links{padding:13px 15px}
 .path-grid{grid-template-columns:1fr}.path-card{grid-template-columns:minmax(75px,26%) 1fr;grid-template-rows:auto}.path-visual{overflow:hidden}.path-content a{padding:7px 0}
 .profile-panel{display:flex;flex-direction:column-reverse;align-items:stretch}.profile-art{min-height:120px}.profile-art .room-image{width:90px}
 .inside .article-layout{gap:20px}.mini-card{font-size:.85rem}.inside .crumbs{margin-bottom:13px}
}
@media (max-width:480px){
 .interior-hero{display:block}.interior-hero-art{position:static;display:block;width:100%;opacity:1;height:126px;object-position:50% 48%}
 .interior-hero::after{display:none}.interior-hero-copy{width:100%;padding:19px}
 .inside .interior-hero h1,.inside .lesson-head h1{font-size:clamp(2.35rem,10vw,3.1rem)}
 .catalog-grid.directory-grid{grid-template-columns:1fr}.directory-grid .catalog-card{min-height:0;padding:15px}
 .card-example{gap:2px}.mini-card{font-size:.76rem;min-width:1.85em}.lesson-main .hand-chart{padding:6px}
 .agenda-filter{align-items:stretch}.agenda-filter label{width:100%}.inside .guide-result{padding-inline:12px}
}

.format-tags { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:17px 0; padding:0; }
.format-tags li { padding:4px 10px; background:#1a3543; border:1px solid #39515b; border-radius:5px; color:#e1d8c1; font-size:.88rem; }
.inside .variant-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr)); gap:14px; margin-top:16px; }
.variant-grid a { display:block; padding:20px 21px; border:1px solid var(--stroke); border-radius:10px; background:#132736; }
.variant-grid a:hover { border-color:var(--accent); }
.variant-grid h3 { color:#f3dfb8; font:720 1.55rem var(--display); margin-bottom:8px; }
.variant-grid p { font-size:.95rem; line-height:1.5; color:#cad5db; margin:0; }

/* Обложка выпуска и две короткие карточки образуют единую газетную полосу. */
.journal-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px clamp(22px,4vw,70px); padding:clamp(16px,2.4vw,38px) 0; border-top:1px solid #92754e; border-bottom:1px solid var(--stroke); }
.inside .journal-heading h1 { font-size:clamp(2.9rem,6.1vw,6rem); }
.journal-heading .intro-lead { margin:0; max-width:42ch; }
.journal-heading + .topics { margin:18px 0 22px; }
.journal-grid,.companion-grid { gap:clamp(12px,1.35vw,22px); }
.journal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.journal-grid .story-card,.companion-grid .story-card,.school-stories .story-card:only-child { display:grid; grid-template-columns:minmax(105px,34%) minmax(0,1fr); }
.journal-grid .cover-box,.companion-grid .cover-box { height:100%; min-height:135px; aspect-ratio:auto; }
.journal-grid .story-title { font-size:clamp(1.45rem,2.1vw,2.15rem); }
.journal-grid .story-copy,.companion-grid .story-copy { justify-content:center; padding:clamp(14px,1.5vw,25px); }
.journal-grid .story-facts,.companion-grid .story-facts { margin-top:0; padding-top:12px; }
.journal-grid:has(> :nth-child(3)) > .story-card:first-child { grid-row:span 2; display:grid; grid-template:1fr / 1fr; min-height:330px; isolation:isolate; background:#0b1521; }
.journal-grid:has(> :nth-child(3)) > .story-card:first-child .cover-box { grid-area:1/1; position:absolute; inset:0; width:100%; }
.journal-grid:has(> :nth-child(3)) > .story-card:first-child .story-copy { grid-area:1/1; align-self:end; padding:70px clamp(18px,2.2vw,34px) clamp(18px,2.2vw,32px); background:linear-gradient(transparent,#071320ed 44%,#071320); z-index:0; }
.journal-grid:has(> :nth-child(3)) > .story-card:first-child .story-title { font-size:clamp(2rem,3.8vw,3.7rem); line-height:1; }
.journal-grid .story-card:only-child { grid-column:1/-1; grid-template-columns:minmax(130px,35%) 1fr; }
.journal-grid .story-card:only-child .cover-box { max-height:240px; }
.journal-grid .story-card:only-child .story-title { font-size:clamp(1.8rem,3vw,2.8rem); }
.school-stories .story-grid { grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr)); }
.school-stories .cover-box { max-height:235px; }
.school-stories .story-card:only-child .cover-box { height:100%; aspect-ratio:auto; }

/* Карты и матрица служат превью реальных учебных инструментов. */
.tools-section,.more-stories,.club-directory { margin-top:clamp(32px,3.5vw,54px); }
.tool-shelf,.companion-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,1.3vw,20px); }
.tool-card { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:clamp(18px,2.3vw,34px); border:1px solid #3b5452; border-radius:12px; background:radial-gradient(ellipse at 86% 85%,#285353,transparent 58%),#102b30; }
.tool-starting { border-color:#384b61; background:radial-gradient(ellipse at 86% 85%,#2c415f,transparent 58%),#152636; }
.tool-card:hover { border-color:#c59960; }
.tool-copy { min-width:0; }
.tool-copy h3 { font:740 clamp(1.45rem,2vw,2rem)/1.12 var(--display); }
.tool-copy p { margin:6px 0 12px; color:#cfdbdc; font-size:.92rem; }
.tool-copy .tile-action { display:inline-block; }
.tool-copy .tile-action span { margin-left:.22em; }
.tool-hand { display:flex; flex:none; padding:10px 0; transform:rotate(-7deg); }
.paper-card { display:inline-grid; place-items:center; background:#f6eddc; border:1px solid #c7b89e; border-radius:5px; box-shadow:0 3px 4px #04101955; color:#152b37; font:760 1.2rem/1 var(--display); }
.paper-card.red { color:#a53837; }
.tool-hand .paper-card { width:clamp(26px,2.6vw,43px); height:clamp(46px,4.1vw,67px); margin-left:-6px; transform:rotate(-9deg); }
.tool-hand .paper-card:nth-child(2) { transform:rotate(-4deg) translateY(-4px); }
.tool-hand .paper-card:nth-child(3) { transform:translateY(-5px); }
.tool-hand .paper-card:nth-child(4) { transform:rotate(5deg) translateY(-3px); }
.tool-hand .paper-card:nth-child(5) { transform:rotate(11deg); }
.tool-matrix { display:grid; flex:none; grid-template-columns:repeat(3,1fr); gap:3px; transform:rotate(-6deg); }
.tool-matrix span { display:grid; place-items:center; width:clamp(25px,2.5vw,38px); aspect-ratio:1.15; background:#284754; color:#e4eded; font:650 .83rem/1 var(--display); border-radius:3px; }
.tool-matrix span:nth-child(4n+1) { background:#795c33; color:#fff1d5; }
.tool-matrix span:nth-child(2),.tool-matrix span:nth-child(3),.tool-matrix span:nth-child(6) { background:#28606b; }
.street-board { margin:0; padding:clamp(16px,1.65vw,25px); background:radial-gradient(ellipse at 85% 0%,#285453,transparent 80%),#123035; border-bottom:1px solid #31504d; }
.street-board figcaption { margin-bottom:16px; color:#e5e9dd; font:700 clamp(1.15rem,1.65vw,1.5rem) var(--display); }
.board-streets,.street-cards { display:flex; }
.board-streets { gap:clamp(5px,.8vw,14px); }
.street-cards { gap:3px; }
.street-cards .paper-card { padding:0 .2em; min-width:1.55em; height:2.35em; font-size:clamp(.97rem,1.25vw,1.25rem); }
.street-name { display:block; font-size:.78rem; color:#c7d7d4; margin-top:7px; }

/* Текст публикации и соседние материалы имеют собственный читаемый ритм. */
.inside .article-layout { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:stretch; padding:0; gap:0; }
.article-layout .article-main { align-self:center; padding:clamp(20px,3.2vw,50px); }
.article-layout .article-facts { margin-bottom:0; }
.inside .article-art { position:relative; border:none; border-radius:0; aspect-ratio:auto; min-height:240px; }
.inside .article-art img { position:absolute; inset:0; }
.article-reading { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,30%); align-items:start; gap:clamp(20px,4vw,65px); padding:clamp(18px,2.8vw,40px) 0; border-bottom:1px solid var(--stroke); }
.article-reading .prose { font-size:1.07rem; line-height:1.8; max-width:70ch; }
.article-reading .prose > :first-child { margin-top:0; }
.inside .article-reading .guide-links { margin:0; padding-left:20px; border-left:2px solid #8a704c; }
.article-reading .guide-links h2 { font-size:1.4rem; }
.article-reading .guide-links > div { display:grid; gap:0; }
.inside .article-reading .guide-links a { background:transparent; border:0; border-radius:0; padding:5px 0; }
.inside .lesson-rail .guide-links a,.inside .article-reading .guide-links a { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.lesson-rail .guide-links a::after,.article-reading .guide-links a::after { content:'→'; color:var(--accent); }
.lesson-main .prose ol { list-style-position:outside; padding:5px 16px 5px 2.5rem; border:1px solid #304754; border-radius:10px; background:#102431; }
.lesson-main .prose ol > li { padding:.38em 0 .38em .35em; margin:0; }
.lesson-main .prose ol > li + li { border-top:1px solid #293d49; }

/* Карточка рума показывает различия приложений ещё до перехода в профиль. */
.catalog-grid.directory-grid { display:flex; flex-wrap:wrap; gap:16px; }
.directory-grid .catalog-card { flex:1 1 28%; min-width:0; display:flex; align-items:stretch; padding:clamp(17px,1.65vw,26px); gap:12px; }
.catalog-summary { font-size:.96rem; line-height:1.55; color:#cfdae0; }
.catalog-card .format-tags { margin:auto 0 0; gap:5px; }
.catalog-card .format-tags li { font-size:.78rem; }
.catalog-card .tile-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; }
.catalog-card .tile-action span { font-size:1.1rem; }
.profile-panel.room-profile { padding:0; grid-template-columns:minmax(0,1.55fr) minmax(230px,.8fr); gap:0; align-items:stretch; }
.room-profile .profile-text { padding:clamp(20px,3vw,44px); align-self:center; }
.profile-name { display:flex; align-items:center; gap:clamp(14px,1.7vw,25px); }
.profile-name .room-image { width:clamp(64px,6.5vw,94px); border-radius:20%; }
.profile-name .eyebrow { margin-bottom:4px; }
.room-facts { background:#10212f; border-left:1px solid var(--stroke); min-width:0; }
.room-still { width:100%; height:clamp(82px,8.5vw,135px); object-fit:cover; object-position:55% 52%; }
.room-facts-copy { padding:clamp(16px,1.7vw,26px); }
.room-facts h2 { color:#eee0c8; font:700 1.28rem var(--display); margin-bottom:9px; }
.room-facts .format-tags { margin:0 0 18px; }
.room-facts .app-sources a { font-size:.88rem; }
.inside .agenda-empty { background:linear-gradient(90deg,#122633 35%,#10232fda 60%,#0b192c44),url('chips.webp') right 55% / cover; }
.agenda-empty .page-actions { margin:12px 0 0; }
.agenda-empty .section-link { display:inline-block; margin-top:12px; }

@media (max-width:980px) {
	.journal-grid { grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); }
	.journal-grid .story-card { grid-template-columns:minmax(84px,29%) minmax(0,1fr); }
	.companion-grid { grid-template-columns:1fr; }
	.companion-grid .cover-box { max-height:165px; }
	.directory-grid .catalog-card { flex-basis:40%; }
}
@media (max-width:760px) {
	.journal-grid,.tool-shelf,.article-reading { grid-template-columns:1fr; }
	.journal-grid:has(> :nth-child(3)) > .story-card:first-child { grid-row:auto; min-height:275px; }
	.journal-grid:has(> :nth-child(3)) > .story-card:first-child .story-copy { padding-top:90px; }
	.journal-grid .story-card:not(:first-child),.companion-grid .story-card { grid-template-columns:minmax(85px,30%) minmax(0,1fr); }
	.inside .article-layout { grid-template-columns:1fr; }
	.inside .article-art { grid-row:1; min-height:0; aspect-ratio:2.65; }
	.article-reading { gap:16px; }
	.inside .article-reading .guide-links { border-left:0; padding:12px 0 0; border-top:1px solid var(--stroke); }
	.profile-panel.room-profile { display:grid; grid-template-columns:1fr; }
	.room-facts { display:grid; grid-template-columns:minmax(75px,26%) 1fr; border:0; border-top:1px solid var(--stroke); }
	.room-still { height:100%; max-height:260px; }
	.lesson-rail:has(.street-board) { display:block; }
	.tool-hand .paper-card { width:32px; height:50px; }
	.tool-matrix span { width:28px; }
}
@media (max-width:520px) {
	.directory-grid .catalog-card { flex-basis:100%; }
	.journal-heading { display:block; }.journal-heading .intro-lead { margin-top:8px; }
	.journal-grid .story-card:only-child { grid-template-columns:1fr; }
	.journal-grid .story-card:only-child .cover-box { height:auto; aspect-ratio:2.4; }
	.journal-grid .story-excerpt,.companion-grid .story-excerpt { font-size:.88rem; }
	.journal-grid .story-facts,.companion-grid .story-facts { font-size:.76rem; }
	.tool-card { gap:10px; }
	.tool-hand .paper-card { width:25px; height:43px; font-size:.95rem; }
	.tool-matrix span { width:24px; }
	.inside .agenda-empty { background:linear-gradient(90deg,#122633 20%,#122633ed 75%,#122633b8),url('chips.webp') right center / cover; }
}

.lesson-sheet .interior-hero { min-height:clamp(195px,16vw,255px); margin-bottom:22px; }
.lesson-sheet .interior-hero-copy { padding:clamp(20px,2.4vw,36px); }
.inside .lesson-sheet .interior-hero h1 { font-size:clamp(2.4rem,4.4vw,4.15rem); }
.lesson-main > :first-child,.lesson-main > .prose > :first-child { margin-top:0; }
.lesson-sheet #lesson-tool { scroll-margin-block-start:18px; }
@media (min-width:761px) {
	.journal-grid > .story-card:nth-child(even):last-child:nth-child(n+4) { grid-column:1/-1; }
	.journal-grid > .story-card:nth-child(even):last-child:nth-child(n+4) .cover-box { max-height:190px; }
}
@media (min-width:761px) and (min-height:650px) {
	.lesson-rail { position:sticky; top:20px; }
}
@media (max-width:700px) {
	.lesson-rail { display:block; }
	.lesson-sheet .learning-layout { gap:16px; }
}
@media (max-width:480px) {
	.lesson-sheet .interior-hero-art { height:96px; }
}

/* Три сцены используют собственный цвет фона. Текст всегда остаётся на тёмной части обложки. */
.mascot-school { --scene-base:12 37 39; border-color:#35534f; }
.mascot-events { --scene-base:37 28 34; border-color:#655044; }
.mascot-rooms { --scene-base:19 28 50; border-color:#414965; }
.mascot-hero { background:rgb(var(--scene-base)); }
.mascot-hero::after { background:linear-gradient(90deg,rgb(var(--scene-base)) 0% 36%,rgb(var(--scene-base)/.97) 42%,rgb(var(--scene-base)/.68) 51%,rgb(var(--scene-base)/.08) 68%,transparent 80%); }
.mascot-hero .interior-hero-copy { width:min(60%,815px); }
.mascot-hero .interior-hero-art { object-position:60% 48%; }
.room-facts .room-still { height:auto; aspect-ratio:2.4; max-height:none; object-fit:cover; }
@media (max-width:760px) {
	.mascot-hero { display:flex; flex-direction:column; align-items:stretch; }
	.mascot-hero::after { display:none; }
	.mascot-hero .interior-hero-art,.lesson-sheet .mascot-hero .interior-hero-art { position:static; z-index:auto; width:100%; height:auto; aspect-ratio:2.65; opacity:1; object-position:60% 44%; }
	.mascot-hero .interior-hero-copy { width:100%; padding:clamp(19px,4vw,27px); }
	.room-facts { grid-template-columns:1fr; }
	.room-facts .room-still { max-height:220px; }
}
