/* Shared layout for the news archive and article details. */
/* Avoid browser scroll anchoring compensating for the animated article height. */
html.is-news-navigating { overflow-anchor: none; }
#wrap #zahlavi-stranky.news-headline { background: var(--skola); }
#wrap #zahlavi-stranky.news-headline h2 { color: #fff; }
.news-archive.is-news-resizing { overflow-y: clip; }
.news-archive:has(> .section-intro) { padding-top: 28px; }
.news-archive .section-intro { position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 6px 22px rgb(35 52 65 / 4%); }
.news-archive .section-intro::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--archive-accent); }
.news-archive .news-overview-detail { border-top:5px solid var(--archive-accent); }
.news-overview-card .news-breadcrumbs { flex: 1; min-width: 0; }
.news-breadcrumbs { margin: 0; }
.news-detail, .news-feed-column { position: relative; }
#wrap .news-archive .news-detail { min-width: 0; max-width: none; margin: 0; padding: 32px; background: #fff; border: 1px solid #e5e9ed; border-radius: 18px; box-shadow: 0 12px 32px rgb(35 52 65 / 8%), 0 2px 6px rgb(35 52 65 / 4%); }
#wrap .news-archive .news-detail h1 { color: #34444f; overflow-wrap: anywhere; }
.news-archive .news-detail time { font-size: 13px; }
#wrap .news-detail-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; color: #74828c; font: 300 14px/1.6 'Hind', sans-serif; }
#wrap .news-detail-meta time { margin: 0; color: inherit; font: inherit; }
.news-detail-author span { color: #485b68; }
#wrap .news-detail-divider { box-sizing: border-box; height: 1px; margin: 26px -32px; padding: 0; border: 0; background: #edf0f3; }
.news-detail-media { padding: 4px 0; }
.news-detail-media .news-information-cover, .news-detail-media .news-cover { margin: 0 auto; }
.news-detail-media > .school-gallery-image-link { display: block; }
.news-detail-media .news-cover { border-radius: 10px; }
#wrap .news-archive .news-detail .news-body { margin-top: 0; }
.news-detail .news-body > :first-child { margin-top: 0; }
.news-detail .news-body > :last-child { margin-bottom: 0; }
#wrap .news-detail-footer { font: 300 14px/1.5 'Hind', sans-serif; }
#wrap .news-detail-footer a { color: #74828c; text-decoration: none; }
#wrap .news-detail-footer a:hover { color: #c53b4b; text-decoration: underline; }
.news-article-navigation { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; }
.news-article-navigation > div { min-width: 0; }
#wrap .news-article-navigation a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; transition: color .2s ease; }
.news-article-navigation-older a { justify-content: flex-end; text-align: right; }
#wrap .news-article-navigation-all { position: relative; justify-content: center; margin: 0 12px; border-radius: 5px; }
.news-article-navigation-all::before, .news-article-navigation-all::after { content: ''; position: absolute; top: 50%; width: 1px; height: 26px; background: #e5e9ed; transform: translateY(-50%); }
.news-article-navigation-all::before { left: 0; }
.news-article-navigation-all::after { right: 0; }
.news-article-navigation-all svg { flex-shrink: 0; overflow: visible; }
.news-article-navigation-all rect { transition: transform .28s ease, fill .28s ease; }
#wrap .news-navigation-arrow { width: 12px; height: 20px; flex-shrink: 0; margin: 0; transition: transform .28s ease; }
.news-navigation-arrow-left { transform: rotate(180deg); }
.news-article-navigation-newer a:is(:hover, :focus-visible) .news-navigation-arrow { transform: translateX(-4px) rotate(180deg); }
.news-article-navigation-older a:is(:hover, :focus-visible) .news-navigation-arrow { transform: translateX(4px); }
.news-article-navigation-all:is(:hover, :focus-visible) rect { fill: rgb(237 85 100 / 8%); }
.news-article-navigation-all:is(:hover, :focus-visible) rect:nth-child(1) { transform: translate(-1.2px, -1.2px); }
.news-article-navigation-all:is(:hover, :focus-visible) rect:nth-child(2) { transform: translate(1.2px, -1.2px); }
.news-article-navigation-all:is(:hover, :focus-visible) rect:nth-child(3) { transform: translate(-1.2px, 1.2px); }
.news-article-navigation-all:is(:hover, :focus-visible) rect:nth-child(4) { transform: translate(1.2px, 1.2px); }
#wrap .news-article-navigation a:focus-visible { outline: 2px solid var(--school-red); outline-offset: 3px; border-radius: 5px; }
.news-swipe-indicator {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: rgb(35 52 65 / 46%);
  color: #fff;
  font: 700 18px/1.35 var(--f-head);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.news-swipe-indicator[data-direction] { visibility: visible; opacity: .8; }
.news-swipe-indicator[data-ready] { opacity: 1; }
.news-swipe-symbol {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--news-accent, var(--school-red));
  border-radius: 50%;
  background: #fff;
  color: #34444f;
  box-shadow: 0 8px 24px rgb(35 52 65 / 20%);
}
.news-swipe-symbol svg { width: 52px; height: 52px; }
.news-swipe-indicator > span { padding: 5px 12px; border-radius: 18px; background: #34444f; }
.news-swipe-indicator[data-direction="left"] svg { transform: rotate(180deg); }
.news-swipe-indicator:not([data-direction="left"]) .news-swipe-older,
.news-swipe-indicator:not([data-direction="right"]) .news-swipe-newer { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .news-swipe-indicator { transition: opacity .12s ease-out, visibility .12s; }
}
.news-filter-body:has(.news-sort-field) { display: block; }
.news-filter-body :is(.news-search, .news-sort-field) { margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid #edf0f3; }
.news-sidebar .news-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 400; color: #485b68; }
#wrap .news-search-submit { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; height: 42px; margin: 10px 0 0; padding: 0 14px; border: 0; border-radius: 9px; background: #d94758; color: #fff; font: 400 14px/1 'Hind', sans-serif; cursor: pointer; transition: background .2s ease; }
#wrap .news-search-submit:hover { background: #c93e50; }
#wrap .news-search-submit { letter-spacing: 0; }
#wrap .news-categories h3 { margin: 0 0 10px; font:700 14px/1.5 var(--f-head); color: #485b68; }
.news-category-color-1 { --category-color: var(--school-red); }
.news-category-color-2 { --category-color: var(--school-orange); }
.news-category-color-3 { --category-color: var(--school-yellow); }
.news-category-color-4 { --category-color: var(--school-green); }
.news-category-color-5 { --category-color: var(--school-turquoise); }
.news-category-color-6 { --category-color: var(--school-blue); }
.news-category-count { margin-left: auto; flex-shrink: 0; min-width: 25px; padding: 3px 6px 1px; border-radius: 6px; background: #f1f4f6; text-align: center; font-size: 12px; color: #71818d; }
.news-month-field { margin-top: 20px; padding-top: 20px; border-top: 1px solid #edf0f3; }
.news-types { margin-top: 20px; padding-top: 20px; border-top: 1px solid #edf0f3; }
#wrap .news-types h3 { margin: 0 0 10px; color: #485b68; font:700 14px/1.5 var(--f-head); }
.news-type-options { display: flex; flex-direction: column; gap: 6px; }
#wrap .news-type-filter { display: flex; align-items: center; gap: 10px; min-height: 38px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #e5e9ed; border-radius: 12px; color: #485b68; background: #fff; font: 300 14px/1.4 'Hind', sans-serif; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
#wrap .news-type-filter:is(:hover, .is-active) { background: #fff2f3; border-color: #f4c5cb; color: #b83d4b; }
#wrap .news-type-filter.is-active { font-weight: 400; }
#wrap :is(.news-month-field, .news-sort-field) label { display: block; margin: 0 0 8px; color: #485b68; font: 400 14px/1.5 'Hind', sans-serif; }
#wrap :is(.news-month-field, .news-sort-field) select { box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #e0e6eb; border-radius: 9px; background: #fafbfc; color: #34444f; font: 300 14px/1.5 'Hind', sans-serif; box-shadow: none; }
#wrap :is(.news-month-field, .news-sort-field) select:focus { border-color: var(--school-red); outline: 2px solid rgb(237 85 100 / 15%); outline-offset: 2px; }
#wrap .news-reset { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #edf0f3; color: #74828c; font: 300 13px/1.5 'Hind', sans-serif; }
.news-reset span { font-size: 21px; }
.news-feed-column, .news-feed { min-width: 0; }
.news-feed { position: relative; scroll-margin-top: 24px; }
.news-feed[aria-busy="true"] { cursor: progress; }
.news-motion-exits { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.news-motion-exits > .news-card { position: absolute; margin: 0; pointer-events: none; }
.news-feed.is-filter-animating .news-card { transition: none; }
.news-feedback[hidden], .news-feedback button[hidden] { display: none; }
.news-feedback:not(.is-error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news-feedback.is-error { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid #f1c2c8; border-radius: 12px; background: #fff5f6; color: #9f3442; font-size: 14px; }
#wrap .news-feedback button { margin: 0; padding: 8px 12px; border: 1px solid #d94758; border-radius: 7px; background: #fff; color: #9f3442; font: 400 14px/1.4 'Hind', sans-serif; letter-spacing: 0; }
.news-archive .news-results { grid-template-columns: minmax(0, 1fr); max-width: none; margin: 0; gap: 20px; }
.news-archive .news-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); box-sizing: border-box; height: 224px; border-color: #e5e9ed; box-shadow: 0 5px 18px rgb(35 52 65 / 4%); }
.news-archive .news-card::before { right: auto; bottom: 0; width: 5px; height: auto; }
.news-archive .news-card-image { height: 100%; min-height: 0; }
.news-archive .news-article-icon { width: 84px; }
#wrap .news-archive .news-card h3 a { color: #34444f; }
#wrap .news-archive .news-card-text > p { font-size: 14px; color: #70808b; }
#wrap .news-archive .news-card-text { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-items: stretch; min-width: 0; min-height: 0; padding: 0; }
.news-archive .news-card-header { padding: 18px 22px 8px; }
#wrap .news-archive .news-card-header .news-category-list { flex-wrap: nowrap; overflow: hidden; margin: 0 0 8px -9px; }
#wrap .news-archive .news-card-header .news-category { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0; }
#wrap .news-archive .news-card h3 { min-height: 0; margin: 0 0 8px; color: #34444f; font:700 22px/1.35 var(--f-head); letter-spacing: 0; overflow-wrap: anywhere; }
#wrap .news-archive .news-card h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font: inherit; text-decoration: none; }
#wrap .news-archive .news-card h3 a:hover { color: #c53b4b; }
.news-card-meta { display: flex; align-items: baseline; gap: 4px 18px; }
#wrap .news-archive .news-card-meta time, #wrap .news-archive .news-card-author { margin: 0; color: #74828c; font: 300 13px/1.5 'Hind', sans-serif; }
.news-archive .news-card-meta time { flex-shrink: 0; }
.news-archive .news-card-author { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#wrap .news-card-divider { flex: none; box-sizing: border-box; width: 100%; height: 1px; margin: 0; padding: 0; border: 0; background: #edf0f3; }
.news-archive .news-card-divider { display: none; }
.news-card-summary { min-height: 0; overflow: hidden; padding: 4px 22px 10px; }
#wrap .news-card-summary > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: #70808b; font: 300 14px/1.7 'Hind', sans-serif; }
.news-card-footer { padding: 0 22px 12px; }
#wrap .news-archive .news-card-footer .news-read-more, #wrap .news-archive .news-card-footer .news-read-more:visited { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 32px; margin: 0; color: color-mix(in srgb, var(--news-accent, var(--school-red)) 60%, #253443); font: 400 14px/1.5 'Hind', sans-serif; text-decoration: none; }
#wrap .news-archive .news-card-footer .news-read-more:hover { color: #34444f; }
.news-card-read-arrow { flex: 0 0 10px; width: 10px; height: 14px; background: var(--news-accent, var(--school-red)); -webkit-mask: url("../img/icons/chevron.00cd29a0e93a.svg") center / contain no-repeat; mask: url("../img/icons/chevron.00cd29a0e93a.svg") center / contain no-repeat; transition: transform .28s ease; }
.news-card-footer .news-read-more:is(:hover, :focus-visible) .news-card-read-arrow { transform: translateX(4px); }
.news-empty { grid-column: 1 / -1; padding: 40px; background: #fff; border: 1px solid #e5e9ed; border-radius: 18px; }
#wrap .news-empty h3 { color: #34444f; font:700 24px/1.4 var(--f-head); }
.news-empty p { color: #74828c; }
#wrap .news-archive .news-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 32px 0 0; color: #74828c; font-size: 14px; }
#wrap .news-archive .news-pagination a { padding: 10px 16px; border: 1px solid #dfe5ea; border-radius: 9px; background: #fff; color: #435765; }
@media (max-width: 960px) {
  .news-sidebar .news-search { margin: 0; padding: 0; border: 0; }
  #wrap .news-reset { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 767px) {
  #wrap .news-archive .news-detail { padding: 24px 20px; }
  #wrap .news-detail-divider { margin: 22px -20px; }
  .news-article-navigation { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); }
  #wrap .news-article-navigation a { gap: 8px; font-size: 13px; }
  #wrap .news-article-navigation-all { margin-inline: 8px; }
  .news-archive:has(> .section-intro) { padding-top: 20px; }
  .news-overview-card .news-breadcrumbs { flex-basis: 100%; }
  .news-sidebar .news-search { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #edf0f3; }
  #wrap .news-reset { margin-top: 20px; }
  .news-archive .news-results { grid-template-columns: minmax(0, 1fr); }
  .news-archive .news-card { grid-template-columns: 88px minmax(0, 1fr); height: 280px; }
  .news-archive .news-card-image { min-height: 0; }
  .news-archive .news-article-icon { width: 52px; }
  .news-archive .news-card-placeholder { padding: 10px; font-size: 18px; }
  .news-archive .news-card-header { padding: 16px 16px 8px; }
  #wrap .news-archive .news-card h3 { font-size: 20px; }
  #wrap .news-archive .news-card h3 a { -webkit-line-clamp: 2; }
  #wrap .news-archive .news-card-summary > p { -webkit-line-clamp: 3; }
  .news-card-summary { padding: 4px 16px 10px; }
  .news-card-footer { padding: 0 16px 12px; }
  #wrap .news-archive .news-pagination { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card-read-arrow { transition: none; }
  .news-card-footer .news-read-more:is(:hover, :focus-visible) .news-card-read-arrow { transform: none; }
  #wrap .news-article-navigation a, #wrap .news-navigation-arrow, .news-article-navigation-all rect { transition: none; }
  .news-article-navigation-newer a:is(:hover, :focus-visible) .news-navigation-arrow { transform: rotate(180deg); }
  .news-article-navigation-older a:is(:hover, :focus-visible) .news-navigation-arrow, .news-article-navigation-all:is(:hover, :focus-visible) rect { transform: none; }
  .news-feed, #wrap .news-categories .news-category, #wrap .news-type-filter, #wrap .news-search-submit { transition: none; }
}
