/* Compatibility for the existing WordPress news templates. Legacy portal CSS loads first. */
:root {
  --op-green: #00746a;
  --op-green-dark: #00665f;
  --op-green-soft: #65b8b0;
  --op-text: #8d8d8d;
  --op-text-dark: #666;
  --op-border: #d7d7d7;
  --op-bg-soft: #f4f4f4;
  --op-container: 1170px;
}

.op-container {
  width: min(var(--op-container), calc(100% - 42px));
  margin-inline: auto;
}
.breadcrumbs {
  color: #9a9a9a;
  font-size: 13px;
  padding: 23px 0 18px;
  border-bottom: 1px solid var(--op-border);
}

.breadcrumbs a { color: var(--op-green); }
.breadcrumbs .sep { color: #bdbdbd; padding: 0 8px; }
.news-archive { padding-bottom: 52px; }

.archive-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--op-border);
  padding: 43px 0 32px;
  margin-bottom: 48px;
}

.archive-heading h1 {
  margin: 0;
  color: var(--op-green);
  font-size: 31px;
  line-height: 1.15;
  font-weight: 700;
}

.category-filter { margin: 0; }
.category-filter__select {
  min-width: 260px;
  height: 41px;
  padding: 0 48px 0 15px;
  border: 1px solid var(--op-border);
  background: #fff;
  color: var(--op-green);
  font-size: 13px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--op-green) 50%), linear-gradient(135deg, var(--op-green) 50%, transparent 50%);
  background-position: calc(100% - 22px) 17px, calc(100% - 15px) 17px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.news-list {
  display: grid;
  gap: 58px;
}

.news-item {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.news-item__image {
  display: block;
  width: 270px;
  height: 150px;
  overflow: hidden;
  background: #eaf5f4;
}

.news-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__content { padding-top: 0; }
.news-item__title {
  margin: -4px 0 12px;
  color: var(--op-green);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
}
.news-item__title a { color: inherit; }
.news-item__title a:hover { text-decoration: none; color: var(--op-green-dark); }

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  color: var(--op-green);
  font-size: 16px;
}
.news-meta time,
.news-meta a { color: var(--op-green); }
.news-meta span { font-size: 14px; }

.news-item__excerpt {
  color: #999;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 16px;
  max-width: 780px;
}
.news-item__excerpt p { margin: 0; }

.read-more,
.op-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 26px;
  border: 2px solid var(--op-green);
  color: var(--op-green);
  background: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}
.read-more:hover,
.read-more:focus,
.op-button:hover,
.op-button:focus {
  background: var(--op-green);
  color: #fff;
  text-decoration: none;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 54px;
}
.pagination .page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--op-border);
  padding: 0 12px;
  color: var(--op-green);
}
.pagination .current {
  background: var(--op-green);
  color: #fff;
  border-color: var(--op-green);
}

.empty-state {
  border: 1px solid var(--op-border);
  padding: 34px;
  color: #888;
}
.empty-state h1,
.empty-state h2 { color: var(--op-green); margin-top: 0; }
.single-news { padding-bottom: 40px; }
.single-news__article {
  max-width: 1060px;
  padding-top: 43px;
}
.single-news__header h1 {
  margin: 0 0 12px;
  color: var(--op-green);
  font-size: 28px;
  line-height: 1.22;
  font-weight: 700;
}
.news-meta--single { margin-bottom: 20px; }
.single-news__image { margin: 28px 0; }
.single-news__image img { display: block; width: 100%; max-height: 480px; object-fit: cover; }

.entry-content {
  color: #999;
  font-size: 18px;
  line-height: 1.45;
}
.entry-content p,
.entry-content ul,
.entry-content ol { margin: 0 0 18px; }
.entry-content > p:first-of-type {
  margin: 14px 0 55px;
  color: var(--op-green);
  font-size: 25px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: .01em;
}
.entry-content h2,
.entry-content h3 {
  margin: 29px 0 22px;
  color: var(--op-green);
  font-weight: 400;
  line-height: 1.2;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 24px; }
.entry-content em { color: #929292; }
.entry-content ul { padding-left: 22px; }
.op-button--right { margin-top: 30px; background: var(--op-green); color: #fff; padding-inline: 16px; min-height: 32px; }
.op-button--right:hover { background: var(--op-green-dark); }

@media (max-width: 880px) {
  .archive-heading { align-items: flex-start; flex-direction: column; padding-top: 32px; margin-bottom: 35px; }
  .category-filter__select { width: min(100%, 320px); }
  .news-item { grid-template-columns: 220px 1fr; gap: 22px; }
  .news-item__image { width: 220px; height: 128px; }
}

@media (max-width: 620px) {
  .op-container { width: min(100% - 28px, var(--op-container)); }
  .breadcrumbs { font-size: 12px; }
  .archive-heading h1 { font-size: 28px; }
  .news-list { gap: 42px; }
  .news-item { grid-template-columns: 1fr; gap: 16px; }
  .news-item__image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-item__title { font-size: 22px; }
  .news-meta { gap: 12px 20px; font-size: 15px; }
  .entry-content > p:first-of-type { font-size: 22px; margin-bottom: 32px; }
  .entry-content h2 { font-size: 25px; }
}

/* Legacy shell: only integration and progressive-enhancement differences. */
.operon-legacy .site-container, .operon-legacy .mp-pusher { height: auto; min-height: 100vh; }
[hidden] { display: none !important; }
.operon-legacy :focus-visible { outline: 3px solid #00534e; outline-offset: 4px; }
#operon_green_menu a:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
.op-skip-link { position: fixed; top: 10px; left: 10px; z-index: 100000; padding: 12px 20px; background: #fff; color: #00746a; transform: translateY(-200%); }
.op-skip-link:focus { transform: none; }
#operon_green_menu section .op-home-topbar-inner { width: 61.5% !important; }
#operon_green_menu section .op-home-topbar-inner a { font-size: 13px !important; }
.operon-legacy .site-header { padding-top: 0; }
.operon-legacy .site-menu .site-menu-item:focus-within > .submenu,
.operon-legacy .site-menu .site-menu-item:hover > .submenu,
.operon-legacy .site-menu .submenu-item:focus-within > .submenu,
.operon-legacy .site-menu .submenu-item:hover > .submenu { display: block; }
.operon-legacy .site-menu .submenu-item { position: relative; }
.operon-legacy .site-menu .submenu-lvl-2 { top: 0; left: 100%; }
.operon-legacy .site-menu .submenu-item[data-op-submenu-closed] > .submenu,
.operon-legacy .site-menu .site-menu-item[data-op-submenu-closed] > .submenu { display: none; }
/* Mostek nad szczeliną margin-top (1–1,5rem z CSS legacy) między pozycją a podmenu — bez niego :hover gaśnie po drodze. */
.operon-legacy .site-menu .site-menu-item.menu-item-has-children { position: relative; }
.operon-legacy .site-menu .site-menu-item.menu-item-has-children:hover::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 24px; z-index: 1000; }
.operon-legacy .quick-menu .btn-menu { border: 0; }
.op-mobile-menu { display: none; }
.op-home-fund-featured { width: 240px; height: auto; max-width: 100%; }
.op-home-fund-partner { margin-bottom: 20px; }
.op-home-fund-description { font-size: .7em; padding-top: 2em; }
.operon-logos .row > div[class*="col"] > a { display: flex; }
.operon-logos .row > div[class*="col"] > a > img { max-height: 42px; width: auto; }
.operon-logos .row > div[class*="col"]:first-of-type > a > img { max-height: 55px; }
.operon-sections .site-sections-header { cursor: default; }
.operon-sections .collapsed-group { display: block; }
.operon-sections .site-sections-header::after { display: none; }
.operon-sections .op-footer-group > .site-sections-subheader { margin-top: 0; }
.operon-sections [data-op-more-close] { border: 0; }
.operon-sections .more-links:not([hidden]) { display: block; }
.operon-sections .more-links .visible-xsm { display: list-item !important; }
.op-home-contact-link { pointer-events: none; }
.op-home-contact-link .contact-trigger { pointer-events: auto; text-decoration: none; }
/* The original banner uses backgrounds centered in a 450px frame. Picture keeps meaningful alt and responsive sources. */
.site-banner-slides { position: relative; }
.site-banner-slides .banner-slide { position: relative; }
.site-banner-slides .op-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-banner-slides .op-banner-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-banner-slides .banner-slide > .container { position: relative; }
.site-banner-slides .op-slider-controls { display: contents; }
.site-banner-slides .owl-controls { margin-top: 10px; text-align: center; bottom: 15px; line-height: 0; pointer-events: none; }
.site-banner-slides .owl-pagination { position: relative; vertical-align: middle; pointer-events: auto; }
.site-banner-slides button.owl-page { padding: 0; border: 0; }
.site-banner-slides .dummy-dot { pointer-events: none; }
.site-banner-slides button.prev-slide, .site-banner-slides button.next-slide { padding: 0; border: 0; background-color: transparent; z-index: 2; }
.op-slider-pause { position: absolute; right: 16px; bottom: 7px; z-index: 3; width: 32px; height: 32px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font: 16px/1 Arial,sans-serif; }
.op-slider-pause::before { content: 'Ⅱ'; }
.op-slider-pause[aria-pressed="true"]::before { content: '▶'; font-size: 12px; }
/* Same local consent banner as the mirror, without tracking scripts. */
#operon-cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: #00746a; color: #fff; padding: 14px 18px; font: 14px/1.5 Arial,Helvetica,sans-serif; box-shadow: 0 -2px 8px rgba(0,0,0,.25); }
#operon-cookie-consent a { color: #fff; text-decoration: underline; }
#operon-cookie-consent .occ-wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
#operon-cookie-consent .occ-actions { display: flex; gap: 8px; flex-shrink: 0; }
#operon-cookie-consent button { cursor: pointer; border: 0; border-radius: 4px; padding: 8px 16px; font-weight: bold; }
#operon-cookie-consent .occ-accept { background: #fff; color: #00746a; }
#operon-cookie-consent .occ-reject { background: transparent; color: #fff; border: 1px solid #fff; }
#operon-cookie-consent :focus-visible { outline-color: #fff; }
@media (max-width: 767px) {
    #operon_green_menu section .op-home-topbar-inner { width: 90% !important; }
    .op-mobile-menu:not([hidden]) { display: block; padding: 16px; border-top: 1px solid #d7d7d7; }
    .op-mobile-menu .site-menu > li { float: none; display: block; margin: 0; }
    .op-mobile-menu .site-menu-link { display: block; }
    .op-mobile-menu .submenu { position: static; float: none; display: block; margin: 0; padding-left: 16px; width: auto; box-shadow: none; border: 0; }
    .operon-logos .row > div[class*="col"] > a > img { max-height: 35px; }
    .operon-logos .row > div[class*="col"]:first-of-type > a > img { max-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .operon-legacy *, .operon-legacy *::before, .operon-legacy *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
