/* School5 0.1.51 — news ticker and editorial sidebar, existing palette preserved */
.s5-news-ticker{z-index:70;position:relative;color:#131a3a;background:linear-gradient(90deg,#eaf6be,#f8fbe9 58%,#eaf6be);border-bottom:1px solid #d7e89c}
.s5-news-ticker__inner{display:flex;align-items:center;gap:14px;min-height:38px;padding-top:5px;padding-bottom:5px}
.s5-news-ticker__label{flex:none;padding:4px 11px;border-radius:999px;background:#ccfa2b;font-size:.72rem;font-weight:800;letter-spacing:.02em;color:#172043}
.s5-news-ticker__slides{flex:1;min-width:0;text-align:center;font-size:.82rem;line-height:1.38;font-weight:650}
.s5-news-ticker__slide[hidden]{display:none}
.s5-news-ticker__slide>a{color:#131a3a;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s5-news-ticker__slide>a:hover,.s5-news-ticker__slide>a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.s5-news-ticker__controls{display:flex;align-items:center;gap:2px;flex:none}
.s5-news-ticker__controls button{cursor:pointer;width:28px;height:28px;border:0;border-radius:8px;color:#172043;background:transparent;font-size:1.4rem;line-height:1}
.s5-news-ticker__controls button:hover,.s5-news-ticker__controls button:focus-visible{background:rgba(32,53,17,.10)}
.s5-news-ticker__controls [data-news-pause]{font-size:.9rem}
.s5-news-sidebar{background:#f5fae7;border:1px solid #d6e5ab;border-radius:16px;padding:14px 15px;color:#172043}
.s5-news-sidebar h3{font-size:.98rem;line-height:1.3;margin:0 0 12px;color:#172043}
.s5-news-sidebar ul{list-style:none;padding:0;margin:0}
.s5-news-sidebar li{padding:9px 0;border-top:1px solid rgba(36,55,23,.10);font-size:.81rem;line-height:1.4}
.s5-news-sidebar li:first-child{padding-top:0;border-top:0}
.s5-news-sidebar a,.s5-news-sidebar li>span:not(.s5-news-sidebar__date){color:#15234e;font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.s5-news-sidebar a:hover{text-decoration:underline}
.s5-news-sidebar__date{display:block;font-size:.71rem;color:#5e6d80;margin-bottom:4px}
.s5-news-sidebar small{display:block;margin-top:4px;color:#677389;font-size:.74rem;line-height:1.36}
/* 0.1.57: footer links, visible YouTube symbol, standalone feedback action */
.s5-footer .s5-footer__info .s5-footer__merchant-name{font-weight:400;color:inherit}
.s5-footer .s5-footer__youtube-item{margin-top:3px}
.s5-footer a.s5-footer-youtube{display:inline-flex;align-items:center;gap:9px;min-height:33px;color:var(--s5-text-on-dark-muted);text-decoration:none}
.s5-footer a.s5-footer-youtube:hover,.s5-footer a.s5-footer-youtube:focus-visible{color:#fff}
.s5-footer-youtube__icon{display:block;width:28px;height:22px;flex:0 0 28px}
.s5-footer .s5-footer__report-item{margin-top:16px}
.s5-footer .s5-footer__report-link{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 11px;max-width:100%;padding:11px 13px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.045);color:var(--s5-text-on-dark-muted);font:inherit;font-weight:400;text-align:left;text-decoration:none;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.s5-footer .s5-footer__report-link:hover,.s5-footer .s5-footer__report-link:focus-visible{background:rgba(255,255,255,.09);border-color:rgba(198,244,50,.7);color:#fff;text-decoration:none}
.s5-footer .s5-footer__report-link:focus-visible,.s5-footer a.s5-footer-youtube:focus-visible{outline:2px solid var(--s5-lime);outline-offset:3px}
.s5-footer__report-action{color:var(--s5-lime);font-weight:700;white-space:nowrap}
@media(max-width:719px){.s5-footer .s5-footer__report-item{margin-top:10px}.s5-footer .s5-footer__report-link{min-height:42px}}

@media(max-width:640px){.s5-news-ticker__inner{gap:7px;min-height:42px}.s5-news-ticker__label{font-size:.65rem;padding:4px 7px}.s5-news-ticker__slides{font-size:.73rem;text-align:left}.s5-news-ticker__controls{gap:0}.s5-news-ticker__controls button{width:24px;height:28px}}
@media(prefers-reduced-motion:reduce){.s5-news-ticker__slide{transition:none!important}}

.s5-home-news-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);align-items:stretch;gap:16px}
.s5-home-news-partner{min-width:0}
.s5-home-news-partner>*{height:100%}
@media(max-width:850px){.s5-home-news-layout{grid-template-columns:1fr}}

/* School5 Theme 0.1.53 - closeable, warm-yellow notice; news stays on demand. */
.s5-site-notice--dismissible {
 background: linear-gradient(90deg, #fff4bf 0%, #fffbe0 55%, #fff3be 100%);
 border-bottom: 1px solid rgba(146,116,23,.24);
 color: #172043;
}
.s5-site-notice--dismissible .s5-site-notice__inner { min-height: 38px; padding-top: 5px; padding-bottom: 5px; }
.s5-site-notice--dismissible .s5-site-notice__mark { width:19px; height:19px; flex-basis:19px; font-size:12px; background:#d4ee55; }
.s5-site-notice--dismissible .s5-site-notice__text { font-size:12px; font-weight:650; }
.s5-site-notice--dismissible .s5-site-notice__close { flex:0 0 30px; width:30px; height:30px; color:#233256; }
.s5-site-notice--dismissible[hidden] { display:none !important; }
.s5-news-disclosure { position: relative; flex: none; color: #fff; }
.s5-news-disclosure__trigger { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 35px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1; cursor: pointer; list-style: none; user-select: none; color: #fff; background: rgba(255,255,255,.065); }
.s5-news-disclosure__trigger::-webkit-details-marker { display: none; }
.s5-news-disclosure__trigger::marker { content: ''; }
.s5-news-disclosure__trigger:hover, .s5-news-disclosure__trigger:focus-visible, .s5-news-disclosure[open] .s5-news-disclosure__trigger { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.s5-news-disclosure__trigger:focus-visible, .s5-news-disclosure__close:focus-visible { outline: 3px solid #cafa2b; outline-offset: 3px; }
.s5-news-disclosure__dot { width: 6px; height: 6px; border-radius: 50%; background: #b9dcf8; }
.s5-news-disclosure__panel { position: absolute; z-index: 120; top: calc(100% + 14px); right: 0; width: min(350px, calc(100vw - 22px)); max-height: min(490px, 72vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dde5f6; border-radius: 15px; background: #f8faff; box-shadow: 0 16px 48px rgba(5,12,45,.24); color: #131a3a; text-align: left; }
.s5-news-disclosure__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px 10px; border-bottom: 1px solid #e4eafa; background: #f8faff; }
.s5-news-disclosure__head strong { font-size: .97rem; font-weight: 700; }
.s5-news-disclosure__close { background: transparent; border: 0; border-radius: 7px; cursor: pointer; width: 29px; height: 29px; font: 24px/1 Arial,sans-serif; color: #526082; }
.s5-news-disclosure__close:hover { background: #eaeffe; }
.s5-news-disclosure__list { list-style: none; margin: 0; padding: 2px 15px 8px; }
.s5-news-disclosure__list li { padding: 11px 0; border-bottom: 1px solid #e8ecf7; line-height: 1.4; font-size: .83rem; }
.s5-news-disclosure__list li:last-child { border-bottom: 0; }
.s5-news-disclosure__list a, .s5-news-disclosure__title { font-size: .84rem; font-weight: 700; color: #172043; text-decoration: none; overflow-wrap: anywhere; }
.s5-news-disclosure__list a:hover { text-decoration: underline; }
.s5-news-disclosure__list p { margin: 6px 0 0; font-size: .77rem; color: #526381; }
.s5-news-disclosure__list small { display: block; margin-top: 5px; color: #6c7890; font-size: .72rem; font-weight: 500; }
.s5-news-disclosure__empty { padding: 12px 16px; font-size: .83rem; color: #5a6881; }
@media (max-width: 650px) {
 .s5-news-disclosure__trigger { min-height: 34px; padding: 7px 9px; font-size: .73rem; }
 .s5-news-disclosure__panel { right: -46px; }
 .s5-site-notice--dismissible .s5-site-notice__text { font-size: 11px; }
}
@media (max-width: 385px) {
 .s5-news-disclosure__trigger { font-size: 0; gap: 0; padding: 9px 11px; }
 .s5-news-disclosure__dot { width: 9px; height: 9px; }
}


/* 0.1.63: newest news teaser within unused header space; no ticker. */
.s5-news-disclosure--has-items .s5-news-disclosure__dot {
  background: #cafa2b;
  box-shadow: 0 0 0 3px rgba(202,250,43,.13);
}
.s5-news-disclosure--has-items .s5-news-disclosure__trigger {
  border-color: rgba(202,250,43,.42);
}
.s5-header-news-preview { display: none; }
@media (min-width: 1200px) {
  .s5-header-news-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 345px;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid rgba(202,250,43,.23);
    border-radius: 12px;
    background: rgba(202,250,43,.07);
    color: #f5f7ff;
  }
  .s5-header-news-preview__label {
    flex: 0 0 auto;
    color: #cafa2b;
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .035em;
  }
  .s5-header-news-preview__open {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #f5f7ff;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font: inherit;
    font-size: .79rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
  }
  .s5-header-news-preview__open:hover { text-decoration: underline; text-underline-offset: 3px; }
  .s5-header-news-preview__open:focus-visible { outline: 2px solid #cafa2b; outline-offset: 4px; border-radius: 2px; }
  .s5-header-news-preview + .s5-header__actions { margin-left: 0; flex: 0 0 auto; }
}

/* 0.1.64.1 - sticky compact header: news stays in the top bar, quick navigation always reachable. */
.s5-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
  transition: box-shadow .18s ease;
}
body.admin-bar .s5-header { top: 32px; }
.s5-header.s5-header--compact { box-shadow: 0 8px 24px rgba(5,12,36,.25); }
.s5-header .s5-header__bar,
.s5-header .s5-logo--header .s5-logo__image {
  transition: min-height .18s ease, width .18s ease, height .18s ease, flex-basis .18s ease;
}
@media (min-width: 1200px) {
  .s5-header .s5-header-news-preview {
    max-width: 355px;
    min-height: 35px;
    padding: 6px 10px;
  }
  .s5-header.s5-header--compact .s5-header__bar {
    min-height: 48px;
  }
  .s5-header.s5-header--compact .s5-logo--header .s5-logo__image {
    width: 32px; height: 32px; flex-basis: 32px;
  }
  .s5-header.s5-header--compact .s5-logo--header .s5-logo__text small { display: none; }
  .s5-header.s5-header--compact .s5-header-news-preview {
    min-height: 32px; padding: 4px 10px;
  }
  .s5-header.s5-header--compact .s5-header__teacher,
  .s5-header.s5-header--compact .s5-news-disclosure__trigger {
    min-height: 32px; padding-top: 6px; padding-bottom: 6px;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .s5-header.s5-header--compact .s5-header__bar { min-height: 52px; }
  .s5-header.s5-header--compact .s5-logo--header .s5-logo__image {
    width: 34px; height: 34px; flex-basis: 34px;
  }
}
@media (max-width: 899px) {
  .s5-header.s5-header--compact .s5-header__bar { min-height: 52px; }
}
@media (max-width: 782px) {
  body.admin-bar .s5-header { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .s5-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .s5-header,.s5-header .s5-header__bar,.s5-header .s5-logo--header .s5-logo__image {
    transition: none !important;
  }
}

/* 0.1.67: compact, periodically rotating read-only news in the sticky navigation. */
@media (min-width: 1200px) {
 .s5-header-news-preview__slides {flex:1 1 auto;min-width:0;overflow:hidden}
 .s5-header-news-preview .s5-header-news-preview__open[hidden] {display:none!important}
 .s5-header-news-preview .s5-header-news-preview__open:not([hidden]) {animation:s5-header-slide-in .28s ease-out both}
}
@keyframes s5-header-slide-in {from {opacity:.16;transform:translateY(5px)}to {opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce) {.s5-header-news-preview .s5-header-news-preview__open{animation:none!important}}
