/*
Theme Name: Slavičínsko
Author: Slavičínsko.cz
Description: Originální responzivní redakční šablona regionálního portálu.
Version: 1.0.42
Requires at least: 6.6
Requires PHP: 8.3
License: GPL-2.0-or-later
Text Domain: slavicinsko
*/
:root {
  --paper: #faf9f6;
  --ink: #20263a;
  --muted: #697080;
  --line: #dedfe5;
  --accent: #273476;
  --soft: #dfebdd;
  --gold: #8ba184;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    15px/1.6 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #273476;
  outline-offset: 4px;
}
.wrap {
  width: min(1260px, calc(100% - 80px));
  margin: auto;
}
.utility {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.utility .wrap {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.daily {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.weather {
  color: var(--ink);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 0 25px;
}
.brand {
  color: var(--accent);
  display: inline-flex;
  align-items: baseline;
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -2.3px;
  line-height: 1.15;
}
.brand .dot {
  color: var(--accent);
  font-size: 30px;
  letter-spacing: -1px;
}
.slogan {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--muted);
}
.mast-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
}
.outline,
.solid {
  padding: 10px 19px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 3px;
}
.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.icon-button {
  background: transparent;
  border: 0;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.nav-shell {
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
}
.main-nav {
  display: flex;
  gap: 29px;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  min-height: 51px;
}
.main-nav a {
  position: relative;
  padding: 15px 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}
.main-nav a.active:after {
  position: absolute;
  content: "";
  height: 3px;
  background: var(--accent);
  bottom: -2px;
  left: 0;
  right: 0;
}
.menu-toggle {
  display: none;
}
.local-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
  overflow: auto;
  white-space: nowrap;
}
.local-strip strong {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.local-strip a:hover {
  text-decoration: underline;
}
.demo-notice {
  font-size: 11px;
  color: #35412f;
  background: #eff4ed;
  padding: 7px 12px;
  border-left: 2px solid var(--gold);
  margin: 5px 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding: 17px 0 21px;
  gap: 15px;
}
.section-heading h1,
.section-heading h2 {
  font:
    700 28px/1.2 Georgia,
    serif;
  margin: 0;
  letter-spacing: -0.6px;
}
.section-heading small {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 30px;
}
.hero-main {
  position: relative;
  min-height: 445px;
  overflow: hidden;
  border-radius: 3px;
  color: white;
  display: flex;
  align-items: end;
  background: var(--accent);
}
.hero-main > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  filter: brightness(0.8);
  transition: transform 0.5s;
}
.hero-main:hover > img {
  transform: scale(1.025);
}
.hero-main:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(18, 24, 53, 0.88));
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 30px 32px;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}
.hero-copy .tag {
  color: #fff;
  background: #273476;
  padding: 4px 8px;
  border-radius: 2px;
}
.hero-copy h2 {
  font:
    700 37px/1.12 Georgia,
    serif;
  letter-spacing: -0.8px;
  margin: 1px 0 14px;
  max-width: 590px;
}
.hero-copy p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.86;
  max-width: 550px;
  margin: 0 0 17px;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-copy .meta {
  color: #e0e3ef;
}
.hero-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}
.side-story {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 19px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.side-story:first-child {
  padding-top: 0;
}
.side-story:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.side-story img {
  width: 120px;
  height: 105px;
  border-radius: 2px;
}
.side-story h3 {
  font:
    700 20px/1.25 Georgia,
    serif;
  margin: 0 0 11px;
}
.side-story .tag {
  margin-bottom: 6px;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  margin-top: 42px;
}
.news-list {
  display: grid;
  gap: 0;
}
.news-row {
  padding: 23px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.news-row:first-child {
  padding-top: 0;
  border-top: 0;
}
.news-row img {
  width: 220px;
  height: 155px;
  border-radius: 2px;
}
.news-row h3 {
  font:
    700 24px/1.2 Georgia,
    serif;
  margin: 0 0 9px;
  letter-spacing: -0.3px;
}
.news-row p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.news-row:hover h3,
.side-story:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 11px;
  color: var(--muted);
}
.chip.selected,
.chip:hover {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
.event-box {
  background: var(--soft);
  padding: 22px 23px;
  border-radius: 3px;
}
.event-box h2 {
  font:
    700 25px/1.1 Georgia,
    serif;
  margin: 0 0 7px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: bold;
  color: var(--accent);
  text-transform: uppercase;
}
.event {
  display: flex;
  gap: 17px;
  padding: 19px 0;
  border-bottom: 1px solid #c5d6c2;
}
.event:last-of-type {
  border-bottom: 0;
}
.date-tile {
  min-width: 41px;
  text-align: center;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.3;
}
.date-tile b {
  font:
    700 29px/1 Georgia,
    serif;
  display: block;
}
.event h3 {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.event p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.event-box > a {
  display: block;
  border-top: 1px solid #bacfb7;
  margin-top: 10px;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 600;
}
.redaction {
  border: 1px solid var(--line);
  padding: 23px;
  margin-top: 25px;
}
.redaction h3 {
  font:
    700 22px/1.2 Georgia,
    serif;
  margin: 10px 0;
}
.redaction p {
  font-size: 13px;
  color: var(--muted);
}
.redaction a {
  font-size: 12px;
  color: var(--accent);
  font-weight: bold;
}
.region-banner {
  margin: 35px 0 45px;
  padding: 25px 30px;
  background: #dfebdd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.region-banner h2 {
  font:
    700 28px/1.15 Georgia,
    serif;
  margin: 0 0 6px;
}
.region-banner p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 45px;
}
.category-card img {
  width: 100%;
  height: 190px;
  border-radius: 2px;
}
.category-card h3 {
  font:
    700 23px/1.2 Georgia,
    serif;
  margin: 12px 0;
}
.category-card .tag {
  margin: 15px 0 0;
}
.footer {
  background: #273476;
  color: #e6e8f3;
  margin-top: 45px;
  padding: 40px 0 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 35px;
}
.footer .brand {
  font-size: 33px;
  color: white;
}
.footer .dot {
  color: #dfebdd;
  font-size: 24px;
}
.footer .slogan {
  color: #d2dfd0;
  font-size: 10px;
}
.footer-links {
  display: flex;
  gap: 25px;
  font-size: 12px;
  align-items: center;
}
.footer-bottom {
  font-size: 10px;
  color: #d2d7e9;
  border-top: 1px solid #596399;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.hidden,
[hidden] {
  display: none !important;
}
.empty {
  padding: 32px 20px;
  background: var(--soft);
  color: var(--muted);
}
.search-panel {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.search-panel form {
  display: flex;
  gap: 10px;
}
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}
.search-form input,
.filter-select {
  border: 1px solid var(--line);
  padding: 8px;
  background: white;
  max-width: 100%;
}
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.article {
  max-width: 790px;
  margin: 45px auto;
}
.article h1 {
  font:
    700 46px/1.12 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 10px 0 22px;
}
.article .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}
.article .article-body {
  font:
    18px/1.8 Georgia,
    serif;
}
.article figure {
  margin: 28px 0;
}
.article figure img {
  width: 100%;
  max-height: 480px;
}
.article figcaption {
  font: 11px Arial;
  color: var(--muted);
  margin-top: 7px;
}
.article-body a {
  text-decoration: underline;
  color: var(--accent);
}
.article-body img {
  height: auto;
}
.article-body h2 {
  line-height: 1.3;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
.current {
  font-weight: bold;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: white;
  z-index: 10;
  padding: 12px;
}
.illustration {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0;
}
.full-width {
  grid-column: 1/-1;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
dialog {
  border: 1px solid var(--line);
  padding: 32px;
  width: min(740px, calc(100% - 30px));
  max-height: 90vh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #1b224dcc;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font:
    700 35px/1.2 Georgia,
    serif;
}
dialog img {
  width: 100%;
  max-height: 300px;
}
.close-dialog {
  float: right;
  border: 0;
  background: transparent;
  font-size: 24px;
}
.load-more {
  display: block;
  margin: 18px auto;
  padding: 10px 25px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}
@media (min-width: 1600px) {
  .wrap {
    width: min(1320px, calc(100% - 100px));
  }
  .hero-main {
    min-height: 470px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .main-nav {
    gap: 18px;
    font-size: 12px;
  }
  .hero-copy h2 {
    font-size: 30px;
  }
  .side-story {
    grid-template-columns: 1fr 90px;
    gap: 12px;
  }
  .side-story img {
    width: 90px;
    height: 90px;
  }
  .side-story h3 {
    font-size: 18px;
  }
  .news-layout {
    grid-template-columns: 1fr 265px;
    gap: 25px;
  }
  .news-row {
    grid-template-columns: 170px 1fr;
    gap: 18px;
  }
  .news-row img {
    width: 170px;
    height: 145px;
  }
  .news-row h3 {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .utility .wrap {
    min-height: 40px;
    font-size: 10px;
    gap: 8px;
  }
  .daily {
    gap: 4px 12px;
  }
  .utility-right {
    display: none;
  }
  .masthead {
    padding: 22px 0 19px;
  }
  .brand {
    font-size: 35px;
    letter-spacing: -1.7px;
  }
  .brand .dot {
    font-size: 25px;
  }
  .slogan {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .mast-actions {
    gap: 5px;
  }
  .mast-actions .outline {
    display: none;
  }
  .icon-button {
    font-size: 0;
  }
  .icon-button svg {
    width: 22px;
  }
  .menu-toggle {
    display: block;
    background: transparent;
    border: 0;
    font-size: 22px;
    color: var(--ink);
  }
  .main-nav {
    display: none;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 0;
  }
  .nav-shell {
    min-height: 2px;
  }
  .local-strip {
    gap: 16px;
    padding: 13px 0;
  }
  .demo-notice {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .demo-notice span:last-child {
    display: none;
  }
  .section-heading {
    padding: 15px 0;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading small {
    font-size: 9px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .hero-main {
    min-height: 400px;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-copy h2 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 13px;
  }
  .side-story {
    grid-template-columns: 1fr 100px;
    padding: 17px 0;
  }
  .side-story h3 {
    font-size: 21px;
  }
  .side-story img {
    width: 100px;
    height: 85px;
  }
  .hero-side {
    display: block;
  }
  .news-layout {
    grid-template-columns: 1fr;
    margin-top: 29px;
    gap: 30px;
  }
  .news-row {
    grid-template-columns: 110px 1fr;
    gap: 15px;
    padding: 20px 0;
  }
  .news-row img {
    width: 110px;
    height: 110px;
  }
  .news-row h3 {
    font-size: 20px;
  }
  .news-row p {
    display: none;
  }
  .news-row .meta {
    font-size: 10px;
    gap: 5px;
  }
  .news-row .tag {
    font-size: 9px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .category-card img {
    height: 220px;
  }
  .region-banner {
    padding: 24px;
    align-items: start;
    flex-direction: column;
  }
  .region-banner h2 {
    font-size: 26px;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .article {
    margin: 28px auto;
  }
  .article h1 {
    font-size: 35px;
  }
  .article .lead {
    font-size: 18px;
  }
  .search-panel form {
    flex-wrap: wrap;
  }
  .event-box {
    padding: 23px;
  }
  .hero-main .meta {
    font-size: 10px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.custom-logo {
  max-width: 300px;
  max-height: 90px;
  width: auto;
  height: auto;
}
.custom-logo-link {
  display: block;
}
@media (max-width: 380px) {
  .brand {
    font-size: 29px;
  }
  .brand .dot {
    font-size: 22px;
  }
  .mast-actions {
    gap: 0;
  }
  .icon-button {
    padding: 7px;
  }
  .section-heading small {
    max-width: 90px;
  }
}
.utility {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

a.tag:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.archive-breadcrumb {
  margin-top: 28px;
  margin-bottom: 20px;
}
.archive-breadcrumb a {
  text-decoration: underline;
}
.archive-description {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 17px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  margin: 32px 0 48px;
}
.article-detail {
  max-width: none;
  margin: 0;
}
.article-detail h1 {
  font-size: 44px;
}
.article-layout aside {
  padding-top: 8px;
}
.reading-sidebar {
  border-top: 2px solid var(--accent);
  padding: 22px 0;
  margin-bottom: 30px;
}
.reading-sidebar h2 {
  font:
    700 25px Georgia,
    serif;
  margin: 7px 0 18px;
}
.sidebar-link {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.sidebar-link h3 {
  font:
    700 19px/1.3 Georgia,
    serif;
  margin: 0 0 7px;
}
.sidebar-link a:hover {
  text-decoration: underline;
}
.article-return {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.text-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}
.rubric-links {
  border-top: 2px solid var(--ink);
  padding: 28px 0;
  margin: 40px 0;
}
.rubric-links h2 {
  font:
    700 26px Georgia,
    serif;
  margin: 0 0 20px;
}
.related {
  margin-top: 36px;
}
.article-detail .demo-notice {
  font:
    12px/1.5 Arial,
    Helvetica,
    sans-serif;
}
.article-body h2 {
  font-size: 28px;
}
.breadcrumb span[aria-current] {
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }
  .article-detail h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .article-layout {
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 35px;
  }
  .article-detail h1 {
    font-size: 33px;
  }
  .article-return {
    align-items: flex-start;
    flex-direction: column;
  }
  .article-layout aside {
    display: block;
  }
  .rubric-links h2 {
    font-size: 24px;
  }
  .article-body h2 {
    font-size: 24px;
  }
}

.auto-feed > .pagination {
  display: none;
}
.feed-progress {
  min-height: 28px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.sidebar-rubrics > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sidebar-rubrics > a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.related .section-heading h2 {
  font-size: 25px;
}

[data-manual-pagination] .pagination {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
[data-manual-pagination] .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
[data-manual-pagination] a.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-manual-pagination] .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Rubric labels echo the outlined badges used on social posts. */
.tag,
.chip {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  padding: 6px 13px;
  font:
    700 10px/1.35 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  vertical-align: middle;
  overflow-wrap: anywhere;
  text-align: center;
}
.tag {
  margin-bottom: 10px;
}
.hero-copy .tag {
  padding: 6px 13px;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
}
a.tag:hover,
.tag a:hover {
  text-decoration: none;
}
a.tag:hover,
.chip:hover,
.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.tag a {
  color: inherit;
}
.filters .chip {
  padding: 8px 14px;
}
@media (max-width: 760px) {
  .tag,
  .news-row .tag {
    font-size: 9px;
    letter-spacing: 0.45px;
    padding: 5px 10px;
  }
  .filters .chip {
    font-size: 10px;
    padding: 8px 12px;
  }
}

/* Distinguish the wider region while retaining horizontal mobile scrolling. */
.local-strip-wider {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.local-strip > a,
.local-strip > strong {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .local-strip-wider {
    padding-left: 16px;
  }
}

/* Social links and a readable editorial contact in the header/footer. */
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.social-link svg {
  display: block;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.redaction-email {
  display: block;
  color: var(--accent);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.redaction-email:hover {
  text-decoration: underline;
}
.footer-top {
  gap: 28px;
}
@media (max-width: 760px) {
  .masthead {
    flex-wrap: wrap;
    gap: 12px;
  }
  .mast-actions {
    margin-left: auto;
  }
  .mast-actions .social-links {
    gap: 6px;
  }
  .mast-actions .social-link {
    width: 30px;
    height: 30px;
  }
  .mast-actions .social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* Brand punctuation and footer social heading. */
.brand .brand-period {
  color: #e5321b;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer colors must contrast with its dark blue surface. */
.footer .footer-contact strong {
  color: #d2d7e9;
}
.footer .redaction-email {
  color: #fff;
}
.footer .redaction-email:hover {
  color: #fff;
  text-decoration: underline;
}
.footer .social-link {
  color: #fff;
  border-color: #aab3d8;
}
.footer .social-link:hover,
.footer .social-link:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #273476;
}

/* Cards without a featured image use the full row width. */
.news-row.card-without-image,
.side-story.card-without-image {
  grid-template-columns: minmax(0, 1fr);
}

/* Calendar has its own editorial rows, independent of article thumbnail grids. */
.news-layout.calendar-archive {
  margin-top: 22px;
}
.calendar-archive > section {
  min-width: 0;
}
.calendar-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.calendar-row:first-child {
  padding-top: 8px;
}
.calendar-row-with-image {
  grid-template-columns: 90px minmax(0, 1fr) 160px;
}
.calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--accent);
  padding: 3px 0 5px;
  border-top: 2px solid var(--accent);
}
.calendar-day {
  font:
    700 42px/1.15 Georgia,
    serif;
  margin: 6px 0;
}
.calendar-month {
  font:
    11px/1.5 Arial,
    sans-serif;
}
.calendar-copy {
  min-width: 0;
}
.calendar-copy h3 {
  font:
    700 26px/1.2 Georgia,
    serif;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.calendar-copy h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.calendar-copy p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 78ch;
  margin: 0 0 15px;
}
.calendar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.calendar-hour {
  font-weight: 700;
  color: var(--accent);
}
.calendar-image img {
  display: block;
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 760px) {
  .calendar-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
  }
  .calendar-row-with-image {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .calendar-day {
    font-size: 34px;
  }
  .calendar-copy h3 {
    font-size: 22px;
  }
  .calendar-copy p {
    font-size: 13px;
  }
  .calendar-image {
    grid-column: 2;
  }
  .calendar-image img {
    width: min(100%, 240px);
    height: auto;
  }
  .calendar-meta {
    gap: 4px 12px;
  }
}

/* Fixed photo directory: six portrait cards on a wide desktop. */
.directory {
  margin: 45px 0;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.directory-card {
  display: block;
  position: relative;
  min-width: 0;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
}
.directory-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.directory-card:after {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.24) 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}
.directory-card h3 {
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 12px;
  bottom: 18px;
  font:
    700 20px/1.2 Georgia,
    serif;
  margin: 0;
  color: #fff;
}
.directory-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.directory-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1279px) {
  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
  .directory-card {
    aspect-ratio: 4/5;
  }
  .directory-card h3 {
    font-size: 23px;
    left: 20px;
    right: 20px;
    bottom: 22px;
  }
}
@media (max-width: 1000px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .directory {
    margin: 35px 0;
  }
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Subtle image hover, only for precise pointers and permitted motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .directory-card img {
    transition: transform 0.45s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .directory-card:hover img {
    transform: scale(1.04);
  }
}

/* Editorial micro-interactions. Only animate deliberate user interaction. */
.sc-image-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  align-self: start;
}
.news-row h3 a:hover,
.side-story h3 a:hover,
.category-card h3 a:hover,
.calendar-copy h3 a:hover {
  color: var(--accent);
}
.solid:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.outline:hover,
.icon-button:hover {
  background: var(--soft);
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .main-nav a,
  .local-strip a,
  .text-link,
  .article-body a,
  .sidebar-rubrics a,
  .news-row h3 a,
  .side-story h3 a,
  .category-card h3 a,
  .calendar-copy h3 a,
  .icon-button,
  .solid,
  .outline,
  .chip,
  .tag,
  .social-link,
  .pagination a,
  .redaction a {
    transition:
      color 0.18s ease,
      background-color 0.18s ease,
      border-color 0.18s ease;
  }
  .search-panel:not([hidden]) > .wrap {
    animation: sc-panel-enter 0.18s ease-out both;
  }
  @keyframes sc-panel-enter {
    from {
      opacity: 0.65;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sc-image-link img {
    transition: transform 0.3s ease-out;
  }
  .news-row:hover .sc-image-link img,
  .side-story:hover .sc-image-link img,
  .category-card:hover .sc-image-link img {
    transform: scale(1.025);
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .main-nav.open {
    animation: sc-panel-enter 0.18s ease-out both;
  }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .hero-main:hover > img {
    transform: none;
  }
}

/* Footer: brand, editorial contact and social links in separate columns. */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 48px;
  align-items: start;
}
.footer-contact {
  gap: 3px;
}
.footer-social {
  align-items: flex-end;
  justify-self: end;
  grid-column: -2/-1;
  gap: 8px;
}
.footer .footer-social > strong {
  font-size: 12px;
  color: #d2d7e9;
}
.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }
  .footer-top > a:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-social {
    align-items: flex-start;
    justify-self: start;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

/* Keep the keyboard focus visible on the dark footer. */
.footer a:focus-visible {
  outline-color: #fff;
}

/* Small text on pale green needs the full editorial ink contrast. */
.event-box .event p,
.region-banner p,
.empty {
  color: var(--ink);
}

/* Advertising page shortcut in the masthead. */
.sc-header-inzerce{display:inline-flex;align-items:center;min-height:36px;color:var(--accent);font-size:13px;white-space:nowrap;text-decoration:none}
.sc-header-inzerce:hover{text-decoration:underline;text-underline-offset:4px}
.sc-header-inzerce:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px}
@media(max-width:760px){.mast-actions{gap:14px;flex-wrap:wrap;max-width:100%}}
