/*
Theme Name: UKSW Msze za Ojczyznę
Theme URI: https://mszezaojczyzne.uksw.edu.pl/
Author: Krzysztof Dudek
Author URI: mailto:k.dudek@uksw.edu.pl
Description: Produkcyjny motyw WordPress dla projektu UKSW Msze za Ojczyznę. Zawiera stronę główną, aktualności, zagadnienia, wykonawców, współpracowników, partnerów, edytowalne sekcje stopki oraz gotowe układy wpisów i stron.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mszezaojczyzne
Domain Path: /languages
*/

:root {
  --max-width: 1320px;
  --primary: #0c315f;
  --header-bg: #ffffff;
  --header-height: 86px;
  --header-font-size: 16px;
  --header-font-weight: 600;
  --header-bg-glass: rgba(255, 255, 255, .92);
  --header-blur: 10px;
  --header-brightness: 108%;
  --hero-min-height: 520px;
  --hero-heading-size: 58px;
  --hero-text-size: 20px;
  --hero-content-width: 760px;
  --hero-bg-image: none;
  --hero-bg-size: cover;
  --hero-bg-position: 50% 58%;
  --hero-overlay: linear-gradient(120deg, rgba(12, 49, 95, .58) 0%, rgba(12, 49, 95, .38) 100%);
  --hero-overlay-blur: 0px;
  --hero-overlay-brightness: 100%;
  --hero-button-radius: 999px;
  --hero-button-width: fit-content;
  --hero-title-color: #ffffff;
  --hero-description-color: #f5f7fb;
  --primary-soft: #2f5f95;
  --accent: #9a6b2f;
  --text: #1f2731;
  --muted: #5f6977;
  --line: #d5dde9;
  --surface: #f4f7fb;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #f7f8fb;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--primary);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: .7rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: #0c315f;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0 0 4px #f6c343;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(12, 49, 95, .28);
}

:where(a, button):focus-visible {
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}

.container {
  width: min(100% - var(--layout-page-gutter, 32px), var(--layout-container-max, 1320px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(31, 39, 49, .03);
}

.admin-bar .site-header {
  top: 32px;
}

.home .site-header,
.front-page .site-header,
.msz-header-global-style .site-header {
  background: var(--header-bg-glass);
  backdrop-filter: blur(var(--header-blur)) brightness(var(--header-brightness));
  -webkit-backdrop-filter: blur(var(--header-blur)) brightness(var(--header-brightness));
}

.header-inner {
  min-height: var(--header-height);
  padding-block: .25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.logo-placeholder,
.custom-logo {
  width: 112px;
  height: 50px;
  border: 1px solid #c2ccda;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  letter-spacing: .08em;
  font-size: .75rem;
}

.custom-logo {
  object-fit: contain;
  height: auto;
  border: 0 !important;
  box-shadow: none !important;
}

.brand-text {
  display: grid;
  font-size: calc(var(--header-font-size) - 1px);
  text-transform: uppercase;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  color: var(--muted);
  font-size: .82em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}

.main-nav li { position: relative; }
.submenu-toggle { display: none; }

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(16, 30, 55, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  padding: .45rem;
  z-index: 30;
  display: block;
}

.main-nav .sub-menu li {
  display: block;
}

.main-nav .sub-menu a {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: .62rem .82rem;
  font-size: .92rem;
  font-weight: 600;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav a {
  text-decoration: none;
  color: #1e2a39;
  font-weight: var(--header-font-weight);
  font-size: var(--header-font-size);
  border-bottom: 3px solid transparent;
  padding: calc((var(--header-height) - var(--header-font-size)) / 2.8) 0;
  display: inline-block;
}

.main-nav .current-menu-item a,
.main-nav a:hover {
  color: var(--primary);
  border-color: var(--primary-soft);
}

.main-nav .sub-menu .current-menu-item > a,
.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible {
  background: #f1f6ff;
  border-color: transparent;
}

.hero-section {
  position: relative;
  min-height: var(--hero-min-height);
  background: #1f2f47;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: var(--hero-bg-size);
  background-position: var(--hero-bg-position);
  background-repeat: no-repeat;
  filter: blur(var(--hero-overlay-blur)) brightness(var(--hero-overlay-brightness));
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: var(--hero-min-height);
  padding: clamp(3rem, 7vw, 6rem) 0;
  max-width: var(--hero-content-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner h1,
.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, var(--hero-heading-size));
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--hero-title-color);
}

.hero-title {
  font-weight: 800;
}

.hero-divider {
  width: var(--hero-divider-width);
  height: var(--hero-divider-height);
  background: var(--hero-divider-color);
  border-radius: 999px;
  margin: .1rem 0 .9rem;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--hero-title-color);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--hero-button-radius);
  padding: .85rem 1.2rem;
  display: inline-block;
  width: var(--hero-button-width);
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #174779;
  transform: translateY(-1px);
}

.hero-inner p {
  font-size: clamp(1rem, 2vw, var(--hero-text-size));
  color: var(--hero-description-color);
}

.funding-section {
  margin-bottom: 1.35rem;
}

.funding-heading {
  margin-bottom: .9rem;
}

.grant-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.grant-media {
  margin: 0 0 .9rem;
}

.grant-image {
  display: block;
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.topic-tags-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.tag-pill.small {
  font-size: .78rem;
  padding: .15rem .45rem;
}

.news-tag-pill {
  display: inline-flex;
  align-items: center;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--layout-content-pct, 70%)) minmax(260px, var(--layout-sidebar-pct, 30%));
  gap: 1.5rem;
  margin-block: 2.2rem;
  align-items: start;
}

.news-column,
.topics-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(13, 42, 79, .05);
}

.topics-panel {
  margin-bottom: 1.35rem;
}

.topics-panel:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .8rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
}

.section-heading h2 {
  margin: 0;
}

.msz-content-card {
  display: grid;
  grid-template-columns: minmax(110px, var(--cards-image-width, 200px)) minmax(0, 1fr);
  gap: var(--cards-gap, 16px);
  border: 1px solid #d6e1f0;
  border-radius: 16px;
  overflow: clip;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 49, 95, .08);
  min-height: var(--cards-min-height, 236px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.msz-content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(12, 49, 95, .12);
}

.msz-content-card:focus-within {
  border-color: #0c315f;
  box-shadow: 0 0 0 3px #f6c343, 0 12px 26px rgba(12, 49, 95, .12);
}

.msz-content-card__thumb img,
.thumb-placeholder {
  width: 100%;
  height: var(--cards-image-height, 150px);
  min-height: var(--cards-image-height, 150px);
  object-fit: cover;
  display: block;
  border-radius: var(--cards-image-radius, 14px);
  margin: var(--cards-padding, 18px) 0 var(--cards-padding, 18px) var(--cards-padding, 18px);
}

.thumb-placeholder {
  background: #eef2f7;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
}

.msz-content-card__body {
  padding: var(--cards-padding, 18px) var(--cards-padding, 18px) var(--cards-padding, 18px) 0;
  display: grid;
  align-content: start;
  gap: .55rem;
}

.msz-content-card__title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
  text-align: var(--cards-title-align, left);
  color: #1d2b3d;
}

.msz-content-card__title a {
  text-decoration: none;
  color: #1d2b3d;
}

.msz-content-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .85rem;
  flex-wrap: wrap;
}
.msz-content-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.news-date {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: var(--cards-button-padding, .48rem .78rem);
  border: 1px solid #1e4b81;
  color: #1e4b81;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--cards-button-font-size, .86rem);
  width: var(--cards-button-width, fit-content);
  justify-content: center;
}
.read-more:hover {
  background: #eef4fd;
}

.read-more:focus-visible,
.btn-primary:focus-visible,
.tag-pill:focus-visible,
.tag-cloud-link:focus-visible,
.search-submit:focus-visible,
.nav-toggle:focus-visible,
.submenu-toggle:focus-visible {
  outline-color: #f6c343;
}

.search-form {
  display: flex;
  margin-bottom: .9rem;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #b9c6d9;
  border-right: 0;
}

.search-submit {
  border: 0;
  background: var(--primary);
  color: #fff;
  width: 44px;
  border-radius: 0 8px 8px 0;
  font-weight: 800;
  cursor: pointer;
}
.search-submit:hover { filter: brightness(1.08); }

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}

.tag-cloud-section {
  margin-bottom: 1.25rem;
}

.tag-cloud-heading {
  margin-bottom: .75rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .55rem;
}

.tag-cloud-link {
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: .08rem .12rem;
  color: #123f77;
  font-family: inherit;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.tag-cloud-link:hover,
.tag-cloud-link:focus {
  text-decoration: underline;
}

.tag-cloud-reset {
  font-weight: 800;
}

.tag-pill {
  border: 1px solid #b9d1ef;
  border-radius: 999px;
  padding: .26rem .68rem;
  text-decoration: none;
  color: #123f77;
  font-size: .85rem;
  background: #eaf3ff;
  font-weight: 600;
}

.tag-filter {
  font-family: inherit;
  cursor: pointer;
}

.tag-filter.is-active {
  background: #123f77;
  color: #fff;
  border-color: #123f77;
  box-shadow: inset 0 0 0 2px #f6c343;
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}

.tag-cloud-link.is-active {
  background: transparent;
  color: #123f77;
  text-decoration: underline;
  box-shadow: none;
}

.topics-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topics-list.is-loading {
  opacity: .72;
}

.topics-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem;
  border-bottom: 1px solid #e0e6f0;
  padding: .65rem 0;
}
.topics-list-head {
  margin-top: .7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.topics-list a {
  text-decoration: none;
  color: #1f2735;
  font-weight: 600;
}

.btn-news-archive,
.btn-topics-archive {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  padding: .9rem 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  background: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 2.1rem 0 1.4rem;
  align-items: start;
  justify-items: stretch;
}

.footer-top-widgets {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-top h2,
.footer-top h3 {
  margin-top: 0;
}

.footer-top > section {
  width: 100%;
  max-width: 100%;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list-icon {
  display: inline-flex;
  width: 1.2rem;
  justify-content: center;
  margin-right: .35rem;
  color: var(--primary);
}

.global-topics-section {
  margin-block: 1.2rem;
}

.search-results-grid {
  display: grid;
  gap: .9rem;
}

.search-results-page {
  margin-top: 2rem;
}

.search-results-page .section-heading {
  grid-template-columns: 1fr;
}

.footer-widget > *:first-child {
  margin-top: 0;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partners {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.35rem;
}

.partners h2,
.partners h3 {
  text-align: center;
  margin: 0 0 .9rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.partners-grid span,
.partners-grid a {
  border: 1px solid #b8c2d2;
  border-radius: 8px;
  padding: .9rem .7rem;
  text-align: center;
  color: #394759;
  font-weight: 700;
  min-width: 160px;
  background: #fff;
  text-decoration: none;
}

.partners-grid a:hover,
.partners-grid a:focus {
  border-color: var(--primary);
  color: var(--primary);
}

.empty-state {
  color: var(--muted);
  margin: .25rem 0;
}

.partners-grid .empty-state {
  flex-basis: 100%;
  text-align: center;
}

.partner-logo {
  max-width: 160px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  background: #0d2e57;
  color: #fff;
}

.footer-bottom-inner {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-bottom ul,
.footer-bottom .menu ul,
.footer-bottom ul.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.footer-bottom .menu {
  margin: 0;
}

.footer-bottom a {
  color: #dce8fb;
  text-decoration: none;
}

.home-editor-content {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--layout-content-pct, 70%)) minmax(260px, var(--layout-sidebar-pct, 30%));
  gap: 1.2rem;
  margin-top: 2rem;
  align-items: start;
}

.content-layout-full {
  grid-template-columns: 1fr;
}

.entry-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1.2rem;
}

.entry-hero-media {
  margin: 0;
  background: #eef2f7;
}

.entry-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.entry-content {
  max-width: 72ch;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-meta {
  color: var(--muted);
  margin-top: -.35rem;
}

.content-type-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #c8d7eb;
  border-radius: 999px;
  background: #eef4fd;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  padding: .28rem .55rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.4rem;
  font-weight: 700;
}

.page-links a,
.page-links .post-page-numbers {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .25rem .55rem;
  text-decoration: none;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.post-navigation-link:empty {
  display: none;
}

.post-navigation-link a {
  display: grid;
  gap: .25rem;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: .8rem;
  text-decoration: none;
  color: var(--text);
}

.post-navigation-link span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-navigation-next {
  text-align: right;
}

.post-navigation-next:only-child {
  grid-column: 2;
}

.archive-header {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #d4deec;
}

.archive-header h1 {
  margin: 0;
}

.archive-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.navigation {
  margin: 1.5rem auto;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: .65rem .9rem;
  text-decoration: none;
  font-weight: 700;
}

.entry-title {
  margin-top: 0;
}

.page-sidebar {
  width: 100%;
}

.sidebar-widget {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem;
  background: #fff;
  margin-bottom: .9rem;
}

.sidebar-title {
  margin: 0 0 .6rem;
}

.block-sidebar-content {
  padding: 0;
  border: 0;
  background: transparent;
}

.msz-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem;
  background: #fff;
  margin-bottom: .9rem;
}

.msz-block-title {
  margin: 0 0 .7rem;
  font-size: 1.05rem;
}

.msz-topic-block-main {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
}

.msz-topic-block-main.is-no-thumbnail {
  grid-template-columns: 1fr;
}

.msz-topic-block-thumb img,
.msz-topic-block-thumb .thumb-placeholder {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.msz-topic-block-body h4 {
  margin: 0 0 .3rem;
  line-height: 1.25;
  color: #1f2d40;
}

.msz-topics-list-block .topics-list {
  margin-top: .35rem;
}

.msz-topics-list-block .topics-list li {
  align-items: flex-start;
  grid-template-columns: 1fr auto;
}

.msz-topics-list-block .topic-tags-inline {
  justify-content: flex-end;
  max-width: 100%;
}

.msz-topics-layout-compact .msz-topic-block-thumb img,
.msz-topics-layout-compact .msz-topic-block-thumb .thumb-placeholder {
  width: 64px;
  height: 64px;
}

.msz-topics-layout-grid .topics-list {
  display: grid;
  grid-template-columns: repeat(var(--msz-topic-columns, 2), minmax(0, 1fr));
  gap: .85rem;
}

.msz-topics-layout-grid .topics-list li {
  border: 1px solid #e2e9f3;
  border-radius: 10px;
  padding: .65rem;
  grid-template-columns: 1fr;
}

.msz-topics-layout-grid .topic-tags-inline {
  margin-top: .35rem;
}

.msz-cloud-style-horizontal {
  writing-mode: horizontal-tb !important;
}

.msz-cloud-style-vertical {
  writing-mode: vertical-rl !important;
}

.msz-cloud-style-pills {
  border: 1px solid #d6e5f8;
  border-radius: 999px;
  padding: .32rem .62rem;
  background: #edf4ff;
}

.msz-tag-color-mode-monochrome .msz-cloud-tag {
  color: #111 !important;
}

.msz-tag-color-mode-monochrome .msz-cloud-style-pills {
  background: #f1f1f1;
  border-color: #222;
}

.msz-tag-color-mode-colorful .msz-cloud-tag.is-light {
  color: #1f6f2d !important;
}

.msz-tag-color-mode-colorful .msz-cloud-tag.is-medium {
  color: #2e59b5 !important;
}

.msz-tag-color-mode-colorful .msz-cloud-tag.is-heavy {
  color: #9d2f2f !important;
}

.msz-tag-color-mode-colorful .msz-cloud-style-pills.is-light {
  background: #e8f7ed;
  border-color: #7cc68e;
}

.msz-tag-color-mode-colorful .msz-cloud-style-pills.is-medium {
  background: #e9f0ff;
  border-color: #87a7e8;
}

.msz-tag-color-mode-colorful .msz-cloud-style-pills.is-heavy {
  background: #fdecec;
  border-color: #e6a8a8;
}

.msz-tag-color-mode-custom .msz-cloud-tag {
  color: var(--msz-custom-tag-text) !important;
  background: var(--msz-custom-tag-bg);
  border-color: var(--msz-custom-tag-border);
}

.msz-tag-color-mode-custom .msz-cloud-style-pills {
  background: var(--msz-custom-tag-bg);
  border-color: var(--msz-custom-tag-border);
}

.msz-cloud-tag-count {
  margin-left: .2rem;
  font-size: .85em;
  opacity: .82;
}

.msz-topic-block-body p {
  margin: 0 0 .5rem;
}

.topics-list-cards li:not(.msz-topic-block-row) {
  grid-template-columns: 1fr;
  gap: .45rem;
}

.topics-list-cards li:not(.msz-topic-block-row) .topic-tags-inline {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .home-grid,
  .content-layout,
  .footer-top,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation-next {
    text-align: left;
  }

  .post-navigation-next:only-child {
    grid-column: 1;
  }

  .header-inner {
    min-height: 72px;
    gap: 1rem;
  }

  .brand-text span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% - .35rem);
    display: none;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(16, 30, 55, .15);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
  }

  .main-nav a {
    display: block;
    padding: .65rem .75rem;
    border-bottom: 0;
    border-radius: 6px;
  }

  .main-nav .menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .25rem;
  }

  .main-nav .menu-item-has-children > a {
    min-width: 0;
  }

  .submenu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
  }

  .main-nav a:hover,
  .main-nav .current-menu-item a {
    background: #eef4fd;
  }

  .main-nav .sub-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border-radius: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-left: .75rem;
    display: none;
  }

  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu,
  .main-nav li.is-open > .sub-menu {
    display: block;
    grid-column: 1 / -1;
  }

  .msz-content-card {
    grid-template-columns: 1fr;
  }
  .msz-content-card__body {
    padding: .95rem;
  }

  .btn-news-archive,
  .btn-topics-archive {
    width: 100%;
  }

  .grant-image {
    max-width: 100%;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .custom-logo,
  .logo-placeholder {
    width: 88px;
    height: 42px;
  }

  .brand-text strong {
    font-size: .95rem;
  }

  .section-heading,
  .topics-list,
  .topics-list li {
    grid-template-columns: 1fr;
  }

  .topic-tags-inline {
    justify-content: flex-start;
  }

  .msz-topic-block-main {
    grid-template-columns: 1fr;
  }

  .msz-topic-block-thumb img,
  .msz-topic-block-thumb .thumb-placeholder {
    width: 100%;
    height: 160px;
  }

  .msz-topics-list-block .topics-list li {
    grid-template-columns: 1fr;
  }

  .msz-topics-list-block .topic-tags-inline {
    justify-content: flex-start;
    max-width: 100%;
  }
}

.msz-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.msz-cloud-tag {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 2px;
  border-radius: 0;
  text-decoration: none;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-weight: 600;
  line-height: 1;
  transform: rotate(var(--msz-jitter, 0deg));
  transition: transform .24s ease, letter-spacing .2s ease, text-shadow .2s ease;
}

.msz-cloud-tag:hover,
.msz-cloud-tag:focus-visible {
  transform: translateY(calc(var(--tag-cloud-hover-lift, 4px) * -1)) rotate(calc(var(--msz-jitter, 0deg) + 1deg)) scale(1.03);
  letter-spacing: .2px;
  text-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.msz-cloud-tag.is-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.msz-cloud-tag.is-heavy {
  font-weight: 800;
}

.msz-cloud-tag.is-medium {
  font-weight: 700;
}

.msz-cloud-tag.is-light {
  font-weight: 600;
}

.msz-cloud-tag.is-c1 {
  color: #9d2f2f;
}

.msz-cloud-tag.is-c2 {
  color: #1f6f2d;
}

.msz-cloud-tag.is-c3 {
  color: #2e59b5;
}

.msz-cloud-tag.is-c4 {
  color: #1f2731;
}

.msz-tag-cloud-wrap {
  border: 0;
  border-radius: var(--msz-tag-radius, 18px);
  background: var(--msz-tag-section-bg, #f8fbff);
  padding: 12px;
}

.entry-reading-layout {
  padding: 24px 0 10px;
}

.entry-reading-card {
  max-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  overflow: hidden;
}

.entry-hero-header {
  display: grid;
  grid-template-columns: minmax(0, var(--single-media-column-width, 50%)) minmax(0, 1fr);
  gap: 0;
  background: #f6f9ff;
}

.entry-hero-media {
  min-height: var(--single-image-height, 260px);
}

.entry-hero-image,
.entry-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: var(--single-image-height, 260px);
  object-fit: cover;
}

.entry-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #567;
  background: linear-gradient(130deg, #e7eef8, #f9fbff);
}

.entry-hero-meta {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.entry-meta-line {
  margin: 0;
  color: #4f5f74;
}

.entry-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reading-prose {
  max-width: 76ch;
  margin: 0 auto;
  padding: 28px 24px 34px;
  line-height: 1.72;
  font-size: 1.06rem;
}

.news-archive-page {
  padding: 24px 0 8px;
}

.topic-archive-search {
  max-width: 520px;
  margin-bottom: 1.2rem;
}

.archive-pagination {
  margin-top: 1.2rem;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  margin-right: .4rem;
  margin-bottom: .35rem;
  border: 1px solid #c7d7ea;
  border-radius: 999px;
  padding: .4rem .75rem;
  text-decoration: none;
  font-weight: 600;
}

.archive-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.content-layout-reading {
  align-items: start;
}

.archive-with-sidebar .news-archive-grid {
  grid-template-columns: 1fr;
}

.topic-editorial-list {
  display: grid;
  gap: 1rem;
}

.archive-heading p {
  margin-top: 8px;
  color: #526377;
}

.news-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.msz-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  font-size: .92rem;
  color: #4f5f74;
}

.msz-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 900px) {
  .entry-hero-header {
    grid-template-columns: 1fr;
  }

  .news-archive-grid {
    grid-template-columns: 1fr;
  }
}

.container { max-width: none; }
.content-layout { gap: var(--layout-column-gap, 28px); }
.content-layout > .topics-column,
.content-layout > .topics-column-subpage,
.page-sidebar,
aside.topics-column { max-width: 100%; width: 100%; }
.sidebar-widget,
.msz-block { padding: var(--sidebar-card-padding, 20px); border-radius: 16px; }

.msz-sidebar-search-wrap { display:block; margin: 0 0 12px; }
.msz-sidebar-search-input { width:100%; border:1px solid #d7e1ee; border-radius: 10px; padding:10px 12px; }
.is-hidden { display:none !important; }

.msz-tag-cloud { justify-content: flex-start; }
.msz-tag-align-center .msz-tag-cloud { justify-content: center; }
.msz-tag-align-right .msz-tag-cloud { justify-content: flex-end; }
.msz-tag-border-off .msz-cloud-tag { border-width: 0; }
.msz-cloud-tag { border-width: var(--msz-tag-border-width, 1px); border-radius: var(--msz-tag-radius, 18px); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; word-break: break-word; }
.msz-cloud-tag { border-style: solid; }
.msz-cloud-tag:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12,49,95,.12); }
.msz-tag-size-small .msz-cloud-tag { font-size: .78rem !important; }
.msz-tag-size-large .msz-cloud-tag { font-size: 1rem !important; }
.msz-tag-density-compact .msz-cloud-tag { margin: 2px; padding: 4px 9px; }
.msz-tag-density-loose .msz-cloud-tag { margin: 6px; padding: 8px 14px; }

.msz-topic-title-small .msz-topic-block-body h4 { font-size: 1rem; }
.msz-topic-title-large .msz-topic-block-body h4 { font-size: 1.2rem; }
.msz-topic-density-compact .msz-topic-block-row { padding: 8px 0; }
.msz-topic-density-loose .msz-topic-block-row { padding: 18px 0; }
.msz-topic-separator-none .msz-topic-block-row { border-bottom: 0; }
.msz-topic-separator-zebra .msz-topic-block-row:nth-child(odd) { background: #f8fbff; border-radius: 12px; }
.msz-topic-tags-below .msz-topic-block-row { display: block; }
.msz-topic-tags-below .topic-tags-inline { margin-top: 10px; }
.msz-topic-tags-hidden .topic-tags-inline { display:none; }

.btn-topics-archive-standard { width: auto; display: inline-flex; }
.btn-topics-archive-text { background: transparent; color: var(--primary); border: 0; padding: 0; box-shadow: none; }
.btn-topics-archive-text:hover { text-decoration: underline; transform:none; }

.msz-topic-block-row:hover { background: #f7faff; }
.msz-topic-block-body h4, .sidebar-widget a { overflow-wrap: anywhere; }
.sidebar-widget.block-sidebar-content,
.msz-tag-cloud-block,
.msz-topics-list-block {
  border: 0;
  box-shadow: none;
}

.sidebar-title,
.section-heading h2,
.section-heading h1 {
  position: relative;
  padding-bottom: .42rem;
}

.sidebar-title::after,
.section-heading h2::after,
.section-heading h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--heading-underline-width, 72px);
  height: var(--heading-underline-height, 2px);
  border-radius: 999px;
  background: var(--heading-underline-color, #b7cce9);
}

.msz-card-image-square .msz-content-card__thumb img,
.msz-card-image-square .thumb-placeholder {
  height: var(--cards-image-width, 200px);
  min-height: var(--cards-image-width, 200px);
}

.msz-card-image-circle .msz-content-card__thumb img,
.msz-card-image-circle .thumb-placeholder {
  border-radius: 999px;
  width: min(var(--cards-image-width, 200px), var(--cards-image-height, 150px));
  height: min(var(--cards-image-width, 200px), var(--cards-image-height, 150px));
  min-height: min(var(--cards-image-width, 200px), var(--cards-image-height, 150px));
  margin-right: auto;
}

.msz-tag-section-bg-off .msz-tag-cloud-wrap {
  background: transparent;
}

@media (max-width: 900px) {
  .content-layout > .topics-column,
  .content-layout > .topics-column-subpage,
  .page-sidebar,
  aside.topics-column { max-width: 100%; }
}

.site-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.footer-top {
  gap: 1rem;
  padding-block: 2rem 1.6rem;
}

.footer-top > section,
.footer-column {
  border: 1px solid #dfe8f4;
  border-radius: 16px;
  background: #fff;
  padding: 1.15rem;
  box-shadow: 0 10px 24px rgba(12, 49, 95, .06);
}

.footer-top h2,
.footer-top h3 {
  margin: 0 0 .8rem;
  color: #17365d;
  font-size: 1.05rem;
}

.footer-top p {
  margin: 0 0 .9rem;
  color: #536376;
}

.footer-top a {
  font-weight: 700;
  text-decoration: none;
}

.footer-top a:hover,
.footer-top a:focus-visible {
  text-decoration: underline;
}

.footer-top li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .3rem 0;
  color: #344255;
}

.footer-list-icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin-right: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef5ff;
  color: #174f89;
}

.content-layout-reading {
  margin-top: 2.4rem;
}

.entry-reading-layout {
  padding-top: 0;
}

.entry-reading-card {
  border-color: #dfe8f4;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(12, 49, 95, .07);
}

.entry-hero-header {
  background: linear-gradient(135deg, #f7faff 0%, #edf4fc 100%);
}

.entry-hero-meta {
  padding: clamp(1.6rem, 3vw, 3rem);
  gap: .8rem;
}

.entry-hero-meta .entry-title {
  margin: .15rem 0 .35rem;
  font-size: clamp(2rem, 3.3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: #16283d;
}

.entry-meta-line {
  font-size: .96rem;
}

.reading-prose {
  max-width: min(88ch, 100%);
  padding: clamp(2rem, 4vw, 3.7rem) clamp(1.35rem, 5vw, 4.5rem) clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.78;
}

.reading-prose > * + * {
  margin-top: 1.1em;
}

.reading-prose h2,
.reading-prose h3,
.reading-prose h4 {
  margin-top: 1.7em;
  line-height: 1.2;
  color: #1a3558;
}

.reading-prose p {
  margin-bottom: 0;
}

.reading-prose img,
.reading-prose figure {
  border-radius: 14px;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) {
  border-color: #d6e1f0;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(12, 49, 95, .08);
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-header {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  min-height: 230px;
  align-items: stretch;
  background: #fff;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-header:not(:has(.entry-hero-media)) {
  grid-template-columns: 1fr;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 26px;
  border-right: 1px solid #dce7f5;
  background: #fff;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-image,
:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-placeholder {
  width: 100%;
  height: 170px;
  max-width: 170px;
  max-height: 170px;
  min-height: 0;
  margin: auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: center;
  justify-content: flex-start;
  gap: 8px 12px;
  padding: 26px 30px;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-meta .entry-title {
  flex: 0 0 100%;
  max-width: 760px;
  margin: 0 0 4px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
  text-align: left;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-meta-line {
  display: inline-flex;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.35;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-tag-list {
  flex: 0 0 100%;
  margin-top: 2px;
  gap: 6px;
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .reading-prose {
  padding-top: clamp(2.1rem, 4vw, 3.2rem);
}

.tag-archive-page .archive-heading {
  margin-bottom: 1.15rem;
  padding: 24px 30px;
  border: 1px solid #d6e1f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(12, 49, 95, .08);
  text-align: left;
}

.tag-archive-page .archive-heading h1 {
  margin: 0;
  color: #16283d;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
  text-align: left;
}

.tag-archive-page .archive-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.5;
}

.page-sidebar {
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(12, 49, 95, .06);
}

.page-sidebar .tag-cloud-section,
.page-sidebar .topics-panel,
.page-sidebar .sidebar-widget {
  margin-bottom: 1rem;
}

.page-sidebar .tag-cloud-section:last-child,
.page-sidebar .topics-panel:last-child,
.page-sidebar .sidebar-widget:last-child {
  margin-bottom: 0;
}

.page-sidebar .sidebar-widget,
.page-sidebar .msz-tag-cloud-block,
.page-sidebar .msz-topics-list-block {
  background: #fff;
}

.tag-pill,
.tag-pill.small {
  text-decoration: none;
}

.topics-list a.tag-pill,
.topic-tags-inline a.tag-pill {
  color: var(--primary);
  font-weight: 700;
}

a.tag-pill:hover,
a.tag-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 49, 95, .12);
}

@media (max-width: 900px) {
  :is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-header {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  :is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-media {
    min-height: 210px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid #dce7f5;
  }

  :is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-image,
  :is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-placeholder {
    height: 140px;
    max-width: 160px;
    max-height: 140px;
  }

  :is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-meta {
    padding: 1.15rem;
  }

  .tag-archive-page .archive-heading {
    padding: 1.15rem;
  }

  .entry-hero-meta .entry-title {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .page-sidebar {
    padding: .85rem;
  }
}

.msz-topic-block-body .topic-editorial-meta {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: var(--muted);
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 230px;
  border: 1px solid #d6e1f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 49, 95, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(12, 49, 95, .12);
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 26px;
  border: 0;
  border-right: 1px solid #dce7f5;
  border-radius: 16px 0 0 16px;
  background: #fff;
  overflow: hidden;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb img,
:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 150px;
  min-height: 0;
  margin: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 30px;
  align-content: start;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__title {
  width: 100%;
  max-width: 720px;
  margin: 0;
  text-align: left;
  font-size: 1.28rem;
  line-height: 1.25;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__title a {
  color: #1d2b3d;
  text-decoration: none;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__meta-row,
:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__tags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .news-date,
:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .tag-pill,
:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .content-type-pill {
  margin: 0;
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__body > p {
  max-width: 720px;
  margin: 4px 0 6px;
  color: var(--text);
}

:is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .read-more {
  margin-top: 2px;
}

@media (max-width: 980px) {
  :is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  :is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb {
    height: 210px;
    min-height: 210px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid #dce7f5;
    border-radius: 16px 16px 0 0;
  }

  :is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb img,
  :is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb .thumb-placeholder {
    max-width: 150px;
    max-height: 120px;
  }

  :is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__body {
    padding: 1.05rem;
  }
}

@media (max-width: 560px) {
  :is(.news-column, .news-archive-grid, .archive-grid, .tag-editorial-list, .topic-editorial-list, .search-results-grid) .msz-content-card__thumb {
    height: 180px;
    min-height: 180px;
  }
}

body.single-msz_contributor .entry-reading-card .entry-hero-header {
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
  background: #fff;
}

body.single-msz_contributor .entry-reading-card .entry-hero-media {
  min-height: 260px;
  padding: 28px 24px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-right: 1px solid #dce7f5;
}

body.single-msz_contributor .entry-reading-card .entry-hero-image {
  width: 170px;
  height: 210px;
  max-width: 170px;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(12, 49, 95, .12);
}

body.single-msz_contributor .entry-reading-card .entry-hero-placeholder {
  width: 170px;
  height: 210px;
  max-width: 170px;
  max-height: 210px;
  border-radius: 10px;
  background: #f5f8fc;
}

body.single-msz_contributor .entry-reading-card .entry-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-content: initial;
  gap: 12px;
  padding: 30px 34px;
}

body.single-msz_contributor .entry-reading-card .entry-hero-meta .entry-title {
  flex: initial;
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 2.35vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

body.single-msz_contributor .entry-reading-card .reading-prose {
  max-width: min(78ch, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(1.45rem, 2.6vw, 2.25rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.single-msz_contributor .entry-reading-card .reading-prose > :first-child {
  margin-top: 0;
}

body.single-msz_contributor .msz-breadcrumbs {
  margin-bottom: 14px;
}

body.single-msz_contributor .post-navigation {
  margin-top: 1.15rem;
  gap: 18px;
}

body.single-msz_contributor .post-navigation-link a {
  border-color: #d6e1f0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(12, 49, 95, .05);
}

body.single-msz_contributor .post-navigation-link a:hover,
body.single-msz_contributor .post-navigation-link a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 49, 95, .09);
}

@media (max-width: 900px) {
  body.single-msz_contributor .entry-reading-card .entry-hero-header {
    grid-template-columns: 1fr;
  }

  body.single-msz_contributor .entry-reading-card .entry-hero-media {
    min-height: 240px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid #dce7f5;
  }

  body.single-msz_contributor .entry-reading-card .entry-hero-image,
  body.single-msz_contributor .entry-reading-card .entry-hero-placeholder {
    width: 160px;
    height: 200px;
    max-width: 160px;
    max-height: 200px;
  }

  body.single-msz_contributor .entry-reading-card .entry-hero-meta {
    padding: 1.25rem;
  }

  body.single-msz_contributor .entry-reading-card .entry-hero-meta .entry-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }
}

:is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-meta .entry-title {
  font-size: clamp(2rem, 2.35vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  :is(body.single-msz_news .entry-reading-card, body.single-msz_topic .entry-reading-card, body.single-msz_contributor .entry-reading-card, body.page .page-reading-card) .entry-hero-meta .entry-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }
}
