/* WordPress-specific additions on top of main.css */

.nav-list { display: flex; gap: 24px; }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--ink); border-bottom-color: var(--gold); }
.mobile-list { display: flex; flex-direction: column; }
.mobile-list a { display: block; }
.mobile-nav .current-menu-item > a { color: var(--gold) !important; }

.flag { display: block; flex-shrink: 0; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(1, 0, 32, 0.15); }
.lang-menu li[aria-selected="true"]::before { content: none; }
.lang-menu li { padding: 0; }
.lang-menu li a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 4px;
  outline: none;
}
.lang-menu li a:hover,
.lang-menu li a:focus-visible { background: var(--soft); }
.lang-menu li[aria-selected="true"] { padding-left: 12px; }
.lang-menu li[aria-selected="true"] a { padding-left: 14px; }

.footer-lang a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text);
}
.footer-lang a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.footer-list { display: flex; flex-direction: column; gap: 8px; }

.page-hero-emblem {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(246, 229, 177, 0.12), 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) {
  .page-hero-grid:has(.page-hero-emblem) { grid-template-columns: 1fr; }
  .page-hero-emblem { width: 120px; height: 120px; order: -1; }
}

.custom-logo-link img { width: auto; max-height: 40px; }

a.tag-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.news-tabs a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.news-tabs a:hover { color: var(--ink); }
.news-tabs a.is-active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.news-lead > img { aspect-ratio: auto; }
.article-cover-spacer { height: 56px; margin-top: -88px; }
.program[hidden], .catalog-group[hidden] { display: none; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--gold); }

/* Content from the block editor */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(24px, 2.4vw, 32px); }
.entry-content h3 { margin-top: 1.4em; font-family: var(--sans); font-size: 19px; font-weight: 700; }
.entry-content p, .entry-content li { font-size: 16px; line-height: 1.75; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content a:not(.btn):not(.share-btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 10px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 20px; color: var(--ink); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-button__link { background: var(--gold-grad); border-radius: 4px; color: var(--navy); text-decoration: none; }
.entry-content .wp-block-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.article-body.entry-content > p { font-size: 17px; line-height: 30px; }
.alignwide { max-width: 1060px; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .nav-list { display: none; }
}
