/*
Theme Name: Nasza
Theme URI: https://www.genpol.us
Author: Genealogia Polska LLC
Author URI: https://www.genpol.us
Description: Reprezentacyjny, polski motyw WordPress dla Stowarzyszenia Absolwentów Technikum Gospodarki Wodnej w Dębem. Zawiera aktualności i kategorie, wydarzenia z kalendarzem, galerie oraz dokumenty do pobrania.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: nasza
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, education, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --nasza-blue: #0755a4;
  --nasza-blue-2: #0b6fc4;
  --nasza-blue-dark: #062e61;
  --nasza-navy: #031e46;
  --nasza-sky: #eaf6ff;
  --nasza-cyan: #3eb5e6;
  --nasza-red: #ca2c32;
  --nasza-ink: #172c43;
  --nasza-muted: #66798c;
  --nasza-border: #dce7f1;
  --nasza-bg: #f3f7fb;
  --nasza-white: #fff;
  --nasza-shadow: 0 14px 38px rgba(4, 48, 98, .10);
  --nasza-shadow-soft: 0 7px 22px rgba(4, 48, 98, .08);
  --nasza-radius: 18px;
  --nasza-radius-sm: 12px;
  --nasza-content: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nasza-ink);
  background: var(--nasza-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--nasza-blue); text-decoration-thickness: .08em; text-underline-offset: .17em; }
a:hover { color: var(--nasza-blue-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  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 {
  top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
  padding: 12px 16px; clip: auto; background: #fff; color: #000;
}

.site-shell { width: min(calc(100% - 32px), var(--nasza-content)); margin-inline: auto; }

/* Nagłówek */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(6,46,97,.11);
  box-shadow: 0 3px 16px rgba(5,45,91,.05);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-main {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(480px, 1.8fr) auto;
  align-items: center;
  gap: 22px;
}
.site-branding { min-width: 0; display: flex; align-items: center; gap: 12px; }
.custom-logo-link,
.default-logo-link { flex: 0 0 auto; }
.custom-logo-link img,
.default-logo-link img { width: 58px; height: 66px; object-fit: contain; }
.brand-copy { min-width: 0; }
.site-title { margin: 0; color: var(--nasza-blue-dark); font-size: clamp(1rem, 1.35vw, 1.35rem); line-height: 1.17; font-weight: 850; letter-spacing: -.025em; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 3px 0 0; color: var(--nasza-muted); font-size: .78rem; }

.primary-navigation { min-width: 0; }
.primary-navigation ul { list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; }
.primary-navigation li { position: relative; }
.primary-navigation a {
  display: block;
  padding: 13px 11px;
  border-radius: 8px;
  color: var(--nasza-navy);
  font-size: .89rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation .current-menu-ancestor > a { color: var(--nasza-blue); background: var(--nasza-sky); }
.primary-navigation .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 220px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--nasza-border);
  border-radius: 12px;
  box-shadow: var(--nasza-shadow);
  display: none;
  z-index: 10;
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { padding: 9px 11px; white-space: normal; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.join-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--nasza-blue), var(--nasza-blue-2));
  box-shadow: 0 8px 18px rgba(7,85,164,.20);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}
.join-button:hover { color: #fff; transform: translateY(-1px); }
.join-button .dashicons { width: 19px; height: 19px; font-size: 19px; }
.search-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--nasza-blue-dark);
  background: transparent;
}
.search-toggle:hover,
.menu-toggle:hover { background: var(--nasza-sky); }
.menu-toggle { display: none; width: auto; padding-inline: 11px; grid-auto-flow: column; gap: 5px; font-weight: 800; }
.header-search-panel { display: none; background: #fff; border-top: 1px solid var(--nasza-border); padding: 13px 0; }
.header-search-panel.is-open { display: block; }
.header-search-panel .search-form { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #cbd9e6;
  border-radius: 9px;
  background: #fff;
}
.search-submit {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--nasza-blue);
  font-weight: 800;
}

/* Przyciski */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 9px;
  color: #fff;
  background: var(--nasza-blue);
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { color: #fff; background: var(--nasza-blue-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(5,61,119,.18); }
.button--primary { background: linear-gradient(135deg, var(--nasza-blue), var(--nasza-blue-2)); }
.button--ghost { color: var(--nasza-blue-dark); background: rgba(255,255,255,.82); border-color: rgba(255,255,255,.88); }
.button--ghost:hover { color: #fff; background: var(--nasza-blue-dark); }
.button--light { color: var(--nasza-blue-dark); background: #fff; }
.button--light:hover { color: #fff; }
.button--outline-dark { color: var(--nasza-blue-dark); background: transparent; border-color: #a9c5de; }
.button--outline-dark:hover { color: #fff; }
.button--small { min-height: 39px; padding: 8px 14px; font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 850; text-decoration: none; }

/* Hero */
.home-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(235,247,255,.98) 0%, rgba(243,250,255,.94) 29%, rgba(245,251,255,.62) 48%, rgba(2,35,75,.10) 70%, rgba(2,29,60,.20) 100%),
    linear-gradient(0deg, rgba(1,36,77,.06), rgba(1,36,77,.06));
}
.home-hero-inner { padding: 68px 0 96px; }
.hero-panel {
  width: min(610px, 100%);
  padding: 38px 42px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 18px 50px rgba(5,48,96,.12);
  backdrop-filter: blur(8px);
}
.hero-kicker,
.eyebrow {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--nasza-blue);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.hero-panel h1 { margin: 0; max-width: 570px; color: var(--nasza-blue-dark); font-size: clamp(2.25rem, 4.5vw, 4.2rem); line-height: .98; letter-spacing: -.045em; }
.hero-description { margin: 20px 0 0; max-width: 580px; color: #27455f; font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.58; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -15px; height: 78px; overflow: hidden; pointer-events: none; }
.hero-waves span { position: absolute; left: -3%; width: 106%; height: 58px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-waves span:nth-child(1) { bottom: 0; background: #0755a4; opacity: .96; transform: rotate(-1.3deg); }
.hero-waves span:nth-child(2) { bottom: -16px; background: #0c78c9; opacity: .90; transform: rotate(1.4deg); }
.hero-waves span:nth-child(3) { bottom: -35px; background: #fff; opacity: 1; transform: rotate(-.7deg); }

/* Skróty */
.home-shortcuts { position: relative; z-index: 5; margin-top: -31px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shortcut-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 19px 18px;
  border: 1px solid #cbdceb;
  border-radius: var(--nasza-radius-sm);
  color: var(--nasza-ink);
  background: #fff;
  box-shadow: var(--nasza-shadow-soft);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shortcut-card:hover { color: var(--nasza-ink); border-color: #8cb9dd; transform: translateY(-3px); box-shadow: var(--nasza-shadow); }
.shortcut-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--nasza-blue-dark), var(--nasza-blue)); font-size: 26px; }
.shortcut-card strong { display: block; color: var(--nasza-blue-dark); font-size: 1.1rem; line-height: 1.2; }
.shortcut-card small { display: block; margin-top: 4px; color: var(--nasza-muted); font-size: .81rem; line-height: 1.45; }
.shortcut-arrow { color: var(--nasza-blue); font-size: 1.35rem; font-weight: 900; }

/* Sekcje strony głównej */
.home-section { padding: 54px 0; }
.home-showcase-section { padding-top: 34px; background: #fff; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(280px, .72fr); gap: 18px; align-items: stretch; }
.showcase-card,
.publication-card,
.dashboard-panel {
  border: 1px solid var(--nasza-border);
  border-radius: var(--nasza-radius);
  background: #fff;
  box-shadow: var(--nasza-shadow-soft);
  overflow: hidden;
}
.showcase-card { min-height: 330px; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(290px, 1.2fr); }
.showcase-copy { padding: 30px; align-self: center; }
.showcase-copy h2,
.publication-copy h2 { margin: 0; color: var(--nasza-blue-dark); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.18; }
.showcase-copy p:not(.eyebrow),
.publication-copy p:not(.eyebrow) { margin: 13px 0 18px; color: var(--nasza-muted); }
.showcase-card > img { width: 100%; height: 100%; object-fit: cover; }
.showcase-history { grid-template-columns: minmax(230px, .9fr) minmax(230px, 1.1fr); }
.showcase-history > img { filter: sepia(.18) saturate(.82); }
.publication-card { min-height: 330px; display: grid; grid-template-columns: 1fr 112px; gap: 8px; padding: 24px 20px 20px 24px; background: linear-gradient(145deg, #fff, #f3f8fd); }
.publication-card img { width: 100%; max-height: 245px; align-self: center; object-fit: cover; border-radius: 5px; box-shadow: 0 10px 24px rgba(1,31,68,.24); }
.publication-copy { align-self: center; }
.publication-copy h2 { font-size: 1.12rem; }
.publication-copy p:not(.eyebrow) { font-size: .9rem; }

.home-content-section { background: linear-gradient(180deg, #f3f7fb, #eef5fb); border-top: 1px solid #e4edf5; border-bottom: 1px solid #e0ebf4; }
.home-dashboard { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr) minmax(290px, .75fr); gap: 18px; align-items: start; }
.dashboard-panel { padding: 23px; }
.panel-header,
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-header h2,
.section-title-row h2 { margin: 0; color: var(--nasza-blue-dark); font-size: clamp(1.4rem, 2vw, 1.95rem); line-height: 1.15; }
.panel-header > a,
.section-title-row > a:not(.button) { font-size: .82rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.category-pills { display: flex; gap: 7px; flex-wrap: wrap; margin: -5px 0 18px; }
.category-pills a { padding: 5px 10px; border-radius: 999px; color: var(--nasza-blue-dark); background: var(--nasza-sky); font-size: .75rem; font-weight: 800; text-decoration: none; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.content-card { min-width: 0; border: 1px solid var(--nasza-border); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 5px 14px rgba(3,46,92,.06); }
.card-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dceaf5; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.content-card:hover .card-image img { transform: scale(1.035); }
.card-body { padding: 15px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--nasza-muted); font-size: .72rem; }
.card-meta a { color: inherit; text-decoration: none; }
.card-kicker { display: block; margin-bottom: 5px; color: var(--nasza-blue); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.card-body h3 { margin: 5px 0 7px; color: var(--nasza-blue-dark); font-size: 1rem; line-height: 1.28; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body p { margin: 0; color: var(--nasza-muted); font-size: .82rem; line-height: 1.5; }
.placeholder-card { opacity: .94; }

.event-list { display: grid; gap: 9px; }
.home-event { display: grid; grid-template-columns: 53px 1fr; gap: 12px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid #e6eef5; }
.home-event:last-child { border-bottom: 0; }
.event-date { width: 53px; min-height: 55px; display: grid; place-items: center; align-content: center; border: 2px solid #a9c9e5; border-radius: 9px; color: var(--nasza-blue-dark); background: #fff; }
.event-date strong { display: block; font-size: 1.3rem; line-height: 1; }
.event-date span { display: block; margin-top: 3px; font-size: .66rem; font-weight: 900; line-height: 1; }
.home-event h3 { margin: 0; color: var(--nasza-blue-dark); font-size: .92rem; line-height: 1.25; }
.home-event h3 a { color: inherit; text-decoration: none; }
.home-event p { margin: 3px 0 0; color: var(--nasza-muted); font-size: .76rem; }
.mini-calendar { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--nasza-border); }
.wp-calendar-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.wp-calendar-table caption { padding: 0 0 9px; color: var(--nasza-blue-dark); font-weight: 900; text-transform: capitalize; }
.wp-calendar-table th,
.wp-calendar-table td { padding: 5px 2px; text-align: center; border: 1px solid #e1eaf2; }
.wp-calendar-table th { color: var(--nasza-blue-dark); background: #f0f7fd; }
.wp-calendar-table a { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; border-radius: 50%; color: #fff; background: var(--nasza-blue); text-decoration: none; }
.wp-calendar-nav { display: flex; justify-content: space-between; margin-top: 7px; font-size: .75rem; }

.document-list { display: grid; gap: 2px; }
.home-document { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; min-height: 58px; padding: 8px 0; border-bottom: 1px solid #e5edf4; }
.home-document:last-child { border-bottom: 0; }
.file-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--nasza-red); font-size: .66rem; font-weight: 950; }
.home-document h3 { margin: 0; color: var(--nasza-blue-dark); font-size: .86rem; line-height: 1.25; }
.home-document h3 a { color: inherit; text-decoration: none; }
.home-document small { color: var(--nasza-muted); font-size: .7rem; }
.download-link { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--nasza-blue); text-decoration: none; }
.download-link:hover { color: #fff; background: var(--nasza-blue); }
.empty-state { padding: 20px; border: 1px dashed #afc7dc; border-radius: 12px; color: var(--nasza-muted); background: #f8fbfd; text-align: center; }
.empty-state .dashicons { width: 32px; height: 32px; font-size: 32px; color: var(--nasza-blue); }
.empty-state p { margin: 7px 0 0; }
.empty-state--compact { padding: 12px; font-size: .82rem; }

.home-gallery-section { background: #fff; }
.section-title-row { align-items: center; margin-bottom: 24px; }
.section-title-row p:not(.eyebrow) { margin: 7px 0 0; color: var(--nasza-muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-grid .content-card { box-shadow: var(--nasza-shadow-soft); }
.gallery-placeholder { position: relative; min-height: 280px; border-radius: 14px; overflow: hidden; background: var(--nasza-blue-dark); box-shadow: var(--nasza-shadow-soft); }
.gallery-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(1,28,61,.90)); }
.gallery-placeholder > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder > div { position: absolute; left: 19px; right: 19px; bottom: 17px; z-index: 2; color: #fff; }
.gallery-placeholder .dashicons { width: 27px; height: 27px; font-size: 27px; }
.gallery-placeholder h3 { margin: 5px 0 2px; font-size: 1.06rem; }
.gallery-placeholder p { margin: 0; color: #dcecff; font-size: .78rem; }

.home-cta { padding: 48px 0; color: #fff; background: linear-gradient(125deg, var(--nasza-blue-dark), var(--nasza-blue), #0878ba); }
.home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.home-cta .eyebrow { color: #a9e0ff; }
.home-cta h2 { margin: 0; max-width: 880px; font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.12; }
.home-cta p:not(.eyebrow) { margin: 10px 0 0; color: #e3f3ff; }

/* Strony wewnętrzne */
.site-main { padding: 48px 0 72px; }
.page-header { padding: 62px 0 38px; color: var(--nasza-blue-dark); background: linear-gradient(135deg, #e9f6ff, #fff); border-bottom: 1px solid var(--nasza-border); }
.page-header h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -.035em; }
.page-header p { max-width: 800px; margin: 12px 0 0; color: var(--nasza-muted); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.content-area { min-width: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sidebar { display: grid; gap: 20px; }
.sidebar-card,
.document-card,
.event-card,
.entry {
  border: 1px solid var(--nasza-border);
  border-radius: var(--nasza-radius);
  background: #fff;
  box-shadow: var(--nasza-shadow-soft);
}
.sidebar-card { padding: 22px; }
.sidebar-card h2,
.widget-title { margin-top: 0; color: var(--nasza-blue-dark); font-size: 1.15rem; }
.widget ul { padding-left: 20px; }
.event-card { padding: 22px; display: grid; grid-template-columns: 65px 1fr; gap: 17px; align-items: start; }
.event-card h3 { margin: 0 0 6px; color: var(--nasza-blue-dark); font-size: 1.1rem; }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-details { margin: 0; color: var(--nasza-muted); font-size: .88rem; }
.document-card { padding: 21px; }
.document-card h3 { margin: 10px 0 8px; color: var(--nasza-blue-dark); font-size: 1.05rem; }
.document-card h3 a { color: inherit; text-decoration: none; }
.document-type { display: inline-block; padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--nasza-red); font-size: .72rem; font-weight: 900; }
.entry { padding: clamp(24px, 4vw, 48px); }
.entry-header h1 { margin: 0; color: var(--nasza-blue-dark); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; }
.entry-meta { margin-top: 10px; color: var(--nasza-muted); font-size: .9rem; }
.entry-thumbnail { margin: 26px 0; border-radius: 15px; overflow: hidden; }
.entry-thumbnail img { width: 100%; }
.entry-content > * { max-width: 860px; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content h2,
.entry-content h3 { color: var(--nasza-blue-dark); }
.entry-content img { border-radius: 10px; }
.notice-empty { padding: 24px; border: 1px dashed #b7cadb; border-radius: 13px; color: var(--nasza-muted); background: #fff; }
.pagination,
.posts-navigation,
.post-navigation { margin-top: 28px; }
.nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 7px; border: 1px solid var(--nasza-border); border-radius: 9px; background: #fff; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--nasza-blue); }
.comments-area { margin-top: 28px; padding: 28px; border: 1px solid var(--nasza-border); border-radius: var(--nasza-radius); background: #fff; }

/* Stopka */
.site-footer { position: relative; color: #dcecff; background: var(--nasza-navy); }
.footer-wave { height: 35px; position: relative; overflow: hidden; background: #fff; }
.footer-wave span { position: absolute; left: -3%; width: 106%; height: 26px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.footer-wave span:nth-child(1) { bottom: -3px; background: #0a73bd; transform: rotate(-1.3deg); }
.footer-wave span:nth-child(2) { bottom: -12px; background: #0755a4; transform: rotate(1.1deg); }
.footer-wave span:nth-child(3) { bottom: -20px; background: var(--nasza-navy); }
.footer-main { padding: 48px 0 38px; display: grid; grid-template-columns: 1.45fr .9fr 1fr; gap: 42px; }
.footer-brand { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; }
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 1.08rem; }
.footer-about h2 { font-size: 1.22rem; }
.site-footer p { margin: 6px 0; color: #c5d9ec; font-size: .9rem; }
.site-footer a { color: #e3f4ff; }
.footer-contact p { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .dashicons { flex: 0 0 18px; width: 18px; height: 18px; font-size: 18px; margin-top: 3px; color: #7dd1ff; }
.footer-links ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer-links li { margin-bottom: 7px; break-inside: avoid; }
.footer-links a { text-decoration: none; font-size: .88rem; }
.footer-widgets { grid-column: 1 / -1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.12); }
.footer-bottom-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #b8cee2; font-size: .83rem; }
.footer-bottom a { color: #8edaff; font-weight: 800; text-decoration: none; }

/* Edytor i bloki */
.alignwide { max-width: 1120px; }
.alignfull { width: 100%; }
.wp-block-gallery { gap: 10px; }
.wp-block-file { padding: 12px; border: 1px solid var(--nasza-border); border-radius: 10px; background: #f8fbfd; }

@media (max-width: 1240px) {
  .header-main { grid-template-columns: minmax(250px, 1fr) minmax(420px, 1.45fr) auto; gap: 12px; }
  .primary-navigation a { padding-inline: 8px; font-size: .82rem; }
  .join-button span:last-child { display: none; }
  .join-button { width: 42px; padding: 0; justify-content: center; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .publication-card { grid-column: 1 / -1; grid-template-columns: 1fr 140px; min-height: 235px; }
  .publication-card img { max-height: 205px; }
  .home-dashboard { grid-template-columns: minmax(0, 1.5fr) minmax(310px, .8fr); }
  .dashboard-documents { grid-column: 1 / -1; }
  .document-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}

@media (max-width: 980px) {
  .admin-bar .site-header { top: 32px; }
  .header-main { min-height: 78px; grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: inline-grid; }
  .primary-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #fff;
    border-top: 1px solid var(--nasza-border);
    box-shadow: var(--nasza-shadow);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; width: min(calc(100% - 32px), var(--nasza-content)); margin: 0 auto; padding: 10px 0 16px; }
  .primary-navigation a { padding: 10px 12px; font-size: .94rem; }
  .primary-navigation .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 18px; }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: 1fr; }
  .publication-card { grid-column: auto; }
  .home-dashboard { grid-template-columns: 1fr; }
  .dashboard-documents { grid-column: auto; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .card-grid, .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.2fr 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .site-shell { width: min(calc(100% - 24px), var(--nasza-content)); }
  .header-main { min-height: 70px; grid-template-columns: 1fr auto auto; gap: 5px; }
  .custom-logo-link img,
  .default-logo-link img { width: 43px; height: 50px; }
  .site-branding { gap: 8px; }
  .site-title { font-size: .88rem; max-width: 205px; }
  .site-description { display: none; }
  .menu-toggle span:last-child { display: none; }
  .menu-toggle { width: 40px; padding: 0; }
  .header-actions { gap: 2px; }
  .join-button { width: 39px; height: 39px; min-height: 39px; }
  .search-toggle { width: 39px; height: 39px; }
  .home-hero { min-height: 520px; background-position: 62% center; }
  .home-hero-overlay { background: linear-gradient(90deg, rgba(240,249,255,.98), rgba(243,250,255,.89) 70%, rgba(5,38,79,.14)); }
  .home-hero-inner { padding: 48px 0 88px; }
  .hero-panel { padding: 26px 23px; background: rgba(255,255,255,.77); }
  .hero-panel h1 { font-size: clamp(2.05rem, 11vw, 3.25rem); }
  .hero-description { font-size: 1rem; }
  .home-shortcuts { margin-top: -17px; }
  .shortcut-grid { grid-template-columns: 1fr; gap: 10px; }
  .shortcut-card { min-height: 90px; grid-template-columns: 48px 1fr auto; padding: 14px; }
  .shortcut-icon { width: 48px; height: 48px; }
  .home-section { padding: 40px 0; }
  .showcase-card { grid-template-columns: 1fr; }
  .showcase-card > img { height: 250px; order: -1; }
  .showcase-copy { padding: 24px; }
  .publication-card { grid-template-columns: 1fr 105px; min-height: 270px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .content-card { display: grid; grid-template-columns: 145px 1fr; }
  .news-grid .card-image { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .document-list { grid-template-columns: 1fr; }
  .panel-header, .section-title-row { align-items: flex-start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-placeholder { min-height: 300px; }
  .home-cta-inner { align-items: flex-start; flex-direction: column; }
  .card-grid, .card-grid--four { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-column: auto; }
  .footer-bottom-inner { min-height: 72px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; padding: 15px 0; }
}

@media (max-width: 480px) {
  .site-title { max-width: 170px; font-size: .78rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .publication-card { grid-template-columns: 1fr 88px; padding: 19px 15px 16px 19px; }
  .publication-copy h2 { font-size: 1rem; }
  .news-grid .content-card { grid-template-columns: 1fr; }
  .news-grid .card-image { min-height: 190px; }
  .footer-links ul { columns: 1; }
}

/* Kalendarz wydarzeń */
.event-calendar-title { margin-bottom: 10px; color: var(--nasza-blue-dark); font-weight: 900; text-align: center; text-transform: capitalize; }
.event-calendar-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .76rem; }
.event-calendar-table th { padding: 3px 1px 6px; color: var(--nasza-muted); font-size: .68rem; font-weight: 850; text-align: center; }
.event-calendar-table td { height: 30px; padding: 0; border: 0; text-align: center; }
.event-calendar-table td > span,
.event-calendar-table td > a { width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--nasza-ink); text-decoration: none; }
.event-calendar-table td.has-event > a { color: #fff; background: var(--nasza-blue); box-shadow: 0 4px 10px rgba(7,85,164,.24); font-weight: 900; }
.event-calendar-table td.is-today > span,
.event-calendar-table td.is-today > a { outline: 2px solid var(--nasza-cyan); outline-offset: 2px; }
.event-calendar-table td.is-empty { opacity: 0; }
.event-calendar-note { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--nasza-muted); font-size: .7rem; }
.event-calendar-note span { width: 9px; height: 9px; border-radius: 50%; background: var(--nasza-blue); }
