.szb-feed-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 44px;
  padding: 8px 20px 8px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.szb-feed-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--feed-button-fill, #c70021);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.szb-feed-button:hover::before { background: #a00021 }
.szb-feed-button:focus-visible,
.szb-feed-strip:focus-visible { outline: 2px solid #0751ad; outline-offset: 3px }

#headnews, #footnews, .article-news-button {
  font-size: clamp(.73rem, .95vw, 1rem);
  white-space: nowrap;
}

#footnews { display: inline-flex; max-width: 100%; margin-top: 8px; font-size: .85rem; white-space: normal }
.article-news-footer { width: min(100% - 36px, 930px); margin: 28px auto 45px; display: flex; justify-content: flex-end }
#home-news-feed { margin: clamp(25px, 5vw, 64px) 0 }
#szb-feed-archive { margin: clamp(15px, 3vw, 40px) 0 clamp(40px, 6vw, 85px) }

.szb-feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: clamp(20px, 3.2vw, 45px);
  background: linear-gradient(110deg, #061c43 0 65%, #ad001d 65% 67%, #c70021 67%);
  color: #fff;
}

.szb-feed-heading :is(h1, h2) {
  margin: 0;
  font-size: clamp(1.84rem, 4.45vw, 4.15rem);
  line-height: 1;
  letter-spacing: -.047em;
}

.szb-feed-heading em {
  display: block;
  margin-top: .18em;
  font-size: .68em;
  letter-spacing: -.018em;
}

.szb-feed-heading time, .szb-feed-heading p {
  margin: 0;
  max-width: 29ch;
  font-size: .88rem;
  font-weight: 650;
}

.szb-feed-heading-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex-shrink: 0;
}

.szb-feed-calendar {
  display: grid;
  gap: 3px;
  justify-items: end;
  max-width: 29ch;
  text-align: right;
  font-size: .83rem;
  line-height: 1.3;
}

.szb-feed-nameday, .szb-feed-heading .szb-feed-observance { color: #fff }
.szb-feed-heading .szb-feed-observance { text-decoration: underline; text-underline-offset: .2em }

.szb-feed-heading .szb-feed-all {
  --feed-button-fill: #fff;
  color: #061c43;
  white-space: nowrap;
}

.szb-feed-heading .szb-feed-all:hover::before { background: #e9eef6 }
.szb-feed-heading .szb-feed-all:focus-visible { outline-color: #fff }

#szb-feed-archive .szb-feed-heading {
  background: linear-gradient(110deg, #061c43 0 68%, #810021 68% 70%, #c70021 70%);
  min-height: clamp(160px, 18vw, 260px);
}

#szb-feed-archive .szb-feed-heading p { max-width: 22ch; font-size: 1rem }

.szb-feed-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.szb-feed-strip {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: 0;
}

.szb-feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 17px clamp(12px, 1.8vw, 24px) 14px;
  background: #f5f7fa;
  border: 3px solid var(--feed-category, var(--feed-topic));
  color: #061c43;
}

.szb-feed-strip .szb-feed-card { scroll-snap-align: start }
.szb-feed-strip::-webkit-scrollbar { display: none }

.szb-feed-carousel {
  position: relative;
  margin-top: 15px;
  padding-inline: 54px;
}

.szb-feed-carousel .szb-feed-pager {
  position: absolute;
  z-index: 2;
  inset: 0;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.szb-feed-carousel .szb-feed-pager button { pointer-events: auto }

.szb-feed-card::before {
  content: "";
  position: absolute;
  inset: 0 16% auto 0;
  height: 7px;
  background: var(--feed-topic);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.szb-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  justify-content: space-between;
  margin-top: 4px;
  color: #4e6077;
  font-size: .74rem;
}

.szb-feed-meta strong {
  color: color-mix(in srgb, var(--feed-topic) 57%, #061c43);
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.szb-feed-card :is(h2, h3) {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.66rem);
  line-height: 1.12;
  letter-spacing: -.026em;
}

.szb-feed-card p { margin: 0 0 4px; color: #203953; font-size: .92rem }
.szb-feed-card a { align-self: flex-start; margin-top: auto; padding-block: 5px; font-size: .83rem; font-weight: 700; text-decoration: underline; text-underline-offset: .18em }
.szb-feed-actions, .szb-feed-pager { display: flex; flex-wrap: wrap; gap: 8px }
.szb-feed-actions { justify-content: space-between; margin-top: 12px }
.szb-feed-pager .szb-feed-button { --feed-button-fill: #061c43; min-width: 44px; padding-inline: 11px }
.szb-feed-pager button:disabled { --feed-button-fill: #e1e8f1; color: #061c43; cursor: default }
.szb-feed-pager button:disabled::before { background: var(--feed-button-fill) }
.szb-feed-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 20px 0 }
.szb-feed-filters label { display: grid; gap: 3px; font-size: .83rem; font-weight: 700 }
.szb-feed-filters :is(select, input) {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #becbda;
  background: #fff;
  color: #061c43;
  font: inherit;
  font-size: 1rem;
}
.szb-feed-reset { align-self: center; font-size: .86rem; text-decoration: underline }

@media (max-width: 1020px) {
  .tools:has(#headnews) { flex-wrap: wrap }
  #headnews { font-size: .75rem }
  #szb-feed-archive .szb-feed-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

@media (max-width: 640px) {
  .szb-feed-heading,
  #szb-feed-archive .szb-feed-heading {
    display: grid;
    gap: 10px;
    align-content: end;
    background: linear-gradient(110deg, #061c43 0 83%, #ad001d 83% 86%, #c70021 86%);
  }
  .szb-feed-heading-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .szb-feed-calendar { justify-items: start; text-align: left }
  #szb-feed-archive .szb-feed-heading-meta { flex-direction: column; align-items: flex-start }
  #home-news-feed .szb-feed-heading-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto }
  #home-news-feed .szb-feed-all { align-self: end }
  .szb-feed-carousel { padding-inline: 35px }
  .szb-feed-strip { grid-auto-columns: 92%; gap: 10px }
  .szb-feed-carousel .szb-feed-pager button { min-width: 38px; padding-inline: 8px }
  #szb-feed-archive .szb-feed-cards { grid-template-columns: 1fr; gap: 10px }
  #szb-feed-archive .szb-feed-heading p { font-size: .9rem }
  .article-news-button { white-space: normal }
  .article-news-header .mast { flex-wrap: wrap; column-gap: 10px; row-gap: 8px }
}

.szb-feed-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 3px 0 7px;
  padding: 0;
  list-style: none;
  font-size: .75rem;
}

.szb-feed-facets li { min-width: 0; max-width: 100% }

.szb-feed-card .szb-feed-facets a {
  display: inline-block;
  margin: 0;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--feed-topic);
  border-radius: 4px;
  background: transparent;
  color: #061c43;
  font-size: inherit;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.szb-feed-card .szb-feed-facets a:hover { background: color-mix(in srgb, var(--feed-topic) 12%, transparent); text-decoration: underline }

.szb-feed-filters label { max-width: 100%; min-width: 0 }
.szb-feed-filters :is(select, input) { max-width: 100%; min-width: 0 }
.szb-feed-filters select { text-overflow: ellipsis }

body header .tools > .szb-feed-button {
  --feed-button-fill: #061c43;
  padding-inline: clamp(9px, 1vw, 14px) clamp(13px, 1.2vw, 18px);
  font-size: clamp(.74rem, .98vw, .92rem);
  line-height: 1.2;
  color: #fff;
}

body header .tools > #headnews,
body header .tools > #headheti { --feed-button-fill: #c70021 }
body header .tools > #headheti { border-bottom: 0 }
body header .tools > .szb-feed-button:hover { text-decoration: none }
body header .tools > .szb-feed-button[aria-current="page"]::before { background: #0751ad }
body header .tools > #headnews[aria-current="page"]::before { background: #a00021 }
body header .tools { gap: clamp(5px, .85vw, 12px) }

body header #langs a {
  padding: 6px 8px;
  background: #e8eff8;
  color: #061c43;
  border: 0;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
body header #langs a[aria-current] { background: #c70021; color: #fff }
body header #langs a:focus-visible { box-shadow: inset 0 0 0 2px #0751ad, inset 0 0 0 4px #fff }

@media (max-width: 700px) {
  body header .tools > .radar-nav { display: none }
  body header .tools > .szb-feed-button { padding-inline: 8px 11px }
  body header #langs a { min-width: 31px; padding-inline: 5px }
  #szb-feed-archive .szb-feed-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) }
  #szb-feed-archive .szb-feed-filters label { width: 100% }
}
