/* Activity hubs reuse the scientific cards, catalogue images and native type system. */
/* Keep the shared final views component compact on every activity route. */
html body.ym-native-site .ym-native-content:has(.ym-activity-news)>.ym-page-views-footer{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:5px;width:min(1180px,calc(100% - 40px));margin:28px auto 0;padding:0 0 24px;border:0;font-size:12.5px;line-height:16px;color:#858e9a;white-space:nowrap;direction:ltr}
html body.ym-native-site .ym-native-content:has(.ym-activity-news)>.ym-page-views-footer strong{font-size:inherit;font-weight:600;color:#737c88}
html body.ym-native-site .ym-native-content:has(.ym-activity-news)>.ym-page-views-footer>svg{display:block;width:16px;height:16px;flex:0 0 16px;opacity:.8}

html body.ym-native-site .ym-activity-page .ym-activity-menu{width:min(1180px,calc(100% - 40px));margin:0 auto 36px}
html body.ym-native-site .ym-activity-menu .ym-science-menu-link{border-top:3px solid var(--ym-activity-color);transition:transform .45s ease,box-shadow .45s ease}
html body.ym-native-site .ym-activity-menu .ym-science-menu-link>a{color:#2663a6!important;text-decoration:none!important}
html body.ym-native-site .ym-activity-menu .ym-science-card-title{color:#2663a6!important;text-decoration:none!important;border-left:1px solid #d4dce3;padding-left:14px;min-height:36px;display:flex;align-items:center}
html body.ym-native-site .ym-activity-menu .ym-science-card-heading{align-items:center;gap:14px}
.ym-activity-card-icon{display:block;flex:0 0 36px;width:36px;height:36px}
.ym-activity-card-icon>svg{display:block;width:36px;height:36px}
html body.ym-native-site .ym-activity-news{padding-bottom:20px!important}
html body.ym-native-site .ym-activity-news .ym-activity-section-title{display:flex;align-items:center;gap:16px;width:100%;margin:0 0 26px;padding:16px 20px;background:rgba(245,246,247,.95);border:1px solid #d9dfe6;border-radius:10px;color:#800000;font-size:26px;line-height:1.25}
.ym-activity-section-icon{display:flex;align-items:center;justify-content:center;flex:0 0 52px;min-height:38px;border-right:1px solid #d4dce3;padding-right:16px}
.ym-activity-section-icon>svg{width:36px;height:36px;display:block}
html body.ym-native-site .ym-activity-page .ym-activity-news{border-top:1px solid #d9dfe6;padding-top:32px!important;margin-top:8px!important}
html body.ym-native-site #ymnews-demo.ym-activity-news .ymnews-stat:first-child strong{color:#395b73!important}
html body.ym-native-site #ymnews-demo.ym-activity-news .ymnews-stats{display:grid;grid-template-columns:repeat(var(--ym-stat-columns,3),minmax(0,1fr));gap:12px;margin:0 0 24px}
html body.ym-native-site #ymnews-demo.ym-activity-news .ymnews-stat{min-width:0}
html body.ym-native-site #ymnews-demo.ym-activity-news .ymnews-filter[data-news-filter="all"][aria-pressed="true"]{--ym-news-category:#395b73}
html body.ym-native-site #ymnews-demo.ym-activity-news .ymnews-tools{scroll-margin-top:150px}
.ym-activity-projects-wrap{width:min(1180px,calc(100% - 40px));margin:0 auto 36px}
.ym-activity-original{margin:0 0 24px}.ym-activity-original>a,.ym-activity-project-link{display:inline-block;padding:7px 13px;background:#fff;border:1px solid #ccd8df;border-radius:7px;font-size:15px}
.ym-activity-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ym-activity-project{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-items:start;padding:22px;background:rgba(255,255,255,.94);border:1px solid #d9dfe6;border-radius:10px;min-width:0}
.ym-activity-project-icon{border-right:1px solid #d4dce3;padding-right:12px}.ym-activity-project-icon>svg{width:32px;height:32px}
html body.ym-native-site .ym-activity-project h2{font-size:21px;line-height:1.35;margin:0 0 12px;color:#395b73;overflow-wrap:anywhere}
.ym-activity-project p{font-size:17px;line-height:1.55;margin:0 0 14px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){html body.ym-native-site .ym-activity-menu .ym-science-menu-link:hover{transform:scale(1.018);box-shadow:0 9px 24px rgba(40,60,80,.11)}}
.ym-activity-menu .ym-science-menu-link:focus-within{box-shadow:0 0 0 2px #9bb6c7}
@media(max-width:1024px){html body.ym-native-site #ymnews-demo.ym-activity-news .ymnews-stats{grid-template-columns:repeat(var(--ym-stat-columns-compact,2),minmax(0,1fr))}}
@media(max-width:767px){html body.ym-native-site .ym-activity-page .ym-activity-menu,.ym-activity-projects-wrap{width:calc(100% - 30px);margin-bottom:26px}html body.ym-native-site .ym-activity-news .ym-activity-section-title{padding:14px;font-size:22px;gap:12px}.ym-activity-section-icon{flex-basis:44px;padding-right:12px}.ym-activity-section-icon>svg{width:32px;height:32px}html body.ym-native-site .ym-activity-menu .ym-science-card-heading{gap:10px}html body.ym-native-site .ym-activity-menu .ym-science-card-title{padding-left:10px;min-height:32px}.ym-activity-card-icon,.ym-activity-card-icon>svg{width:32px;height:32px}.ym-activity-card-icon{flex-basis:32px}.ym-activity-projects{grid-template-columns:1fr}.ym-activity-project{padding:18px;gap:12px;grid-template-columns:40px minmax(0,1fr)}html body.ym-native-site .ym-activity-project h2{font-size:19px}.ym-activity-project p{font-size:16px}}
@media(prefers-reduced-motion:reduce){html body.ym-native-site .ym-activity-menu .ym-science-menu-link{transition:none;transform:none!important}}

/* Two activity choices share the row; the existing small-screen stack remains. */
@media(min-width:541px){html body.ym-native-site .ym-activity-menu>.ym-science-menu-links:has(>li:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* Educational books reuse the conference-aligned adult-training catalogue CSS. */
html body.ym-native-site #content .ymeb-catalogue>.ym-aux-section-title{color:#7b1f24;}
.ymeb-catalogue .ymtr-stats>div:nth-child(2) strong{color:#7b1f24;}
.ymeb-catalogue .ymtr-stats>div:nth-child(3) strong{color:#487f8b;}
.ymeb-catalogue .ymeb-filters button:not([data-book-kind=""]){border-left:3px solid #ad8748;}
.ymeb-catalogue .ymeb-filters button[aria-pressed="true"]{background:#505860;border-color:#505860;color:#fff;}
.ymeb-catalogue .ymeb-pdf-icon{display:block;object-fit:contain;width:17px!important;height:17px!important;flex:0 0 17px;margin:0;}
.ymeb-catalogue .ymeb-license{display:block;max-width:100%;padding:2px;box-shadow:none!important;text-decoration:none!important;}
.ymeb-catalogue .ymeb-license img{display:block;width:88px;max-width:100%;height:auto;margin:0;}
html body.ym-native-site #content .ymeb-catalogue .ymeb-authors{line-height:1.58;}
.ymeb-catalogue .ymeb-attribution{font-size:14px;line-height:1.5;margin:12px 0 0!important;color:#697386;}
@media(max-width:540px){.ymeb-catalogue .ymeb-pdf-icon{width:14px!important;height:14px!important;flex-basis:14px;}.ymeb-catalogue .ymeb-license{width:68px;}}


/* Match the slow outward enlargement of the conference posters. */
.ymeb-catalogue .ymtr-visual{position:relative;overflow:visible;transform:scale(1);transform-origin:center center;transition:none;z-index:1;}
.ymeb-catalogue .ymtr-visual a:hover img{scale:1;}
.ymeb-catalogue .ymeb-repository-icon{display:block;object-fit:contain;width:18px!important;height:19px!important;flex:0 0 18px;margin:0;}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .ymeb-catalogue .ymtr-visual{transition:transform 1.2s cubic-bezier(.22,.61,.36,1);}
 .ymeb-catalogue .ymtr-visual:is(:hover,:focus-within){transform:scale(1.12);z-index:20;}
}
@media(max-width:540px){
 .ymeb-catalogue .ymeb-repository-icon{width:14px!important;height:15px!important;flex-basis:15px;}
 .ymeb-catalogue .ymtr-button:has(.ymeb-repository-icon){flex-direction:column;gap:3px;text-align:center;}
 .ymeb-catalogue .ymtr-button:has(.ymeb-repository-icon) span{overflow-wrap:normal;word-break:normal;}
}

/* Optional book interiors: natural colours and the same quiet panels as abstracts. */
.ymeb-preview{margin-block:1.3rem}.ymeb-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;max-width:750px}.ymeb-preview-grid a{display:flex;align-items:center;justify-content:center;max-width:230px;padding:8px;border:1px solid var(--ym-border,#d6dee7);border-radius:8px;background:#fff;overflow:hidden}.ymeb-preview-grid img{max-height:260px;width:100%;height:auto;object-fit:contain;filter:none;transition:transform 1.2s ease}.ymeb-preview-grid a:hover img{transform:scale(1.035)}.ymeb-preview-grid a:focus-visible{outline:3px solid #316caf;outline-offset:3px}.ymm-book-edition{margin-block:0 1.5rem}.ymm-book-edition .ymeb-preview-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}@media(prefers-reduced-motion:reduce){.ymeb-preview-grid img{transition:none}.ymeb-preview-grid a:hover img{transform:none}}

/* Book category headers and filters share the conference category palette. */
.ymeb-catalogue :is([data-book-group="school"],[data-book-kind="school"],[data-book-group="student"],[data-book-kind="student"],[data-book-group="score"],[data-book-kind="score"],[data-book-group="literature"],[data-book-kind="literature"]){--ymeb-category:#7b1f24;}
.ymeb-catalogue :is([data-book-group="other"],[data-book-kind="other"],[data-book-group="workbook"],[data-book-kind="workbook"],[data-book-group="music-book"],[data-book-kind="music-book"],[data-book-group="theatre"],[data-book-kind="theatre"]){--ymeb-category:#89651e;}
.ymeb-catalogue :is([data-book-group="instrument-method"],[data-book-kind="instrument-method"],[data-book-group="teacher-guide"],[data-book-kind="teacher-guide"]){--ymeb-category:#69558f;}
html body.ym-native-site #content .ymeb-catalogue .ymtr-grouphead h3{color:var(--ymeb-category,#7b1f24);}
.ymeb-catalogue .ymeb-filters button:not([data-book-kind=""]){border-left-color:var(--ymeb-category,#7b1f24);}
.ymeb-catalogue .ymeb-filters button:not([data-book-kind=""])[aria-pressed="true"]{background:var(--ymeb-category,#7b1f24);border-color:var(--ymeb-category,#7b1f24);color:#fff;}
