/* ------------------------------------------------------------------
   Modo CMS integration
   The markup below comes from the CMS template tags (menu(), lang_switch()),
   so it needs the same look as the static template it replaced.
   ------------------------------------------------------------------ */

/* Navigation menu: <nav class="nav__links"><ul class="nav__list">… */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { display: block; }
.nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.nav__list .current-menu-item > a { color: var(--accent); }

/* Language switcher: <div class="lang"><a>EN</a><a class="active">PL</a></div> */
.lang a {
  color: var(--muted-2);
  font-weight: 500;
  transition: color 0.2s;
}
.lang a:hover { color: var(--accent); }
.lang a.active { color: var(--text); }
.lang a + a::before {
  content: "/";
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.2);
}

/* Footer menu: <nav class="footer__nav"><ul class="footer__list">… */
.footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__list a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer__list a:hover { color: var(--accent); }

/* Static pages and posts rendered by TinyMCE content */
.page-entry { padding-block: calc(var(--nav-h) + 72px) 88px; }
.entry-content { max-width: 70ch; }
.entry-meta { font-size: var(--fs-xs, .8125rem); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9aa3a8); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2,
.entry-content h3 { margin-top: 1.6em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content ul,
.entry-content ol { padding-left: 1.2em; }
.page-entry__media { margin: 0 0 28px; }
.page-entry__media img { max-width: 100%; height: auto; border-radius: 16px; }

/* The CMS admin toolbar is fixed at the top; keep the fixed header below it. */
html.modo-has-admin-bar .nav { top: 32px; }

@media (max-width: 900px) {
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
  }
  .nav__list a {
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
  }
  .nav__list a::after { display: none; }
  .nav__list .current-menu-item > a { color: var(--accent); }
}
