/*
Theme Name: POSEL PB Child
Theme URI: https://github.com/Paweleu/posel_pb
Description: Panstwowy, spokojny layout dla strony informacyjnej.
Author: GitHub Copilot
Template: generatepress
Version: 1.1.3
*/

:root {
  --navy: #0B1C2D;
  --accent: #B00020;
  --white: #FFFFFF;
  --gray-100: #F4F5F7;
  --gray-700: #333333;
  --shadow: 0 18px 40px rgba(11, 28, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
  color: var(--gray-700);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 55%, #f4f5f7 100%);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand-party-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.brand-party-link img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.brand-party-link:hover,
.brand-party-link:focus {
  background: var(--white);
  text-decoration: none;
}

.brand-name {
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.3px;
}

.brand-name:hover,
.brand-name:focus {
  color: var(--white);
  text-decoration: none;
}

.brand-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-size: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  width: 44px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  padding: 72px 0 64px;
  background: linear-gradient(120deg, rgba(11, 28, 45, 0.04), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
  color: var(--navy);
}

.hero .subtitle {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--navy);
}

.hero-motto {
  margin: 0 0 28px;
  padding: 12px 0 12px 20px;
  border-left: 3px solid var(--accent);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  background: var(--accent);
  transform: scale(1.1);
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.hero p {
  font-size: 18px;
  margin: 0 0 24px;
  max-width: 520px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero .cta:hover,
.hero .cta:focus {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.hero-portrait {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section {
  padding: 56px 0;
}

/* Kontakt - Nowy profesjonalny układ */
.contact-page {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 16px;
}

.contact-intro p {
  font-size: 17px;
  color: rgba(11, 28, 45, 0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 28, 45, 0.16);
}

.contact-card.main-office {
  grid-column: span 2;
}

.card-header {
  background: linear-gradient(135deg, rgba(11, 28, 45, 0.04), transparent);
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(11, 28, 45, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

.card-header h2 {
  margin: 0;
  font-size: 20px;
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
}

.office-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.office-badge.primary {
  background: var(--accent);
  color: var(--white);
}

.card-body {
  padding: 20px 24px;
}

.contact-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
}

.contact-row:not(:last-child) {
  border-bottom: 1px solid rgba(11, 28, 45, 0.06);
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(176, 0, 32, 0.08);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
}

.contact-text span,
.contact-text a {
  display: block;
  white-space: normal;
  overflow-wrap: normal;
}

.contact-text .address-line,
.contact-text .city,
.contact-text .hours {
  font-size: 15px;
  color: var(--navy);
}

.contact-text .region,
.contact-text .hours-note {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.6);
}

.contact-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  word-break: normal;
  overflow-wrap: break-word;
}

.contact-text a:hover {
  color: #8a0016;
  text-decoration: underline;
}

.contact-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(11, 28, 45, 0.12);
}

.card-footer {
  padding: 14px 24px;
  background: rgba(11, 28, 45, 0.02);
  border-top: 1px solid rgba(11, 28, 45, 0.06);
}

.map-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.map-link:hover {
  gap: 10px;
  text-decoration: none;
}

/* Kancelaria Sejmu */
.contact-sejm {
  margin-top: 8px;
}

.sejm-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sejm-card h3 {
  margin: 0;
  font-size: 18px;
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
}

.sejm-card p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.sejm-details a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.sejm-details a:hover {
  background: var(--accent);
  text-decoration: none;
}

/* Responsywność */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card.main-office {
    grid-column: span 1;
  }
  
  .sejm-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .card-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .office-badge {
    align-self: flex-start;
  }
  
  .contact-row {
    gap: 12px;
  }
  
  .contact-icon {
    width: 28px;
    height: 28px;
  }
  
  .contact-text .address-line,
  .contact-text .city,
  .contact-text .hours {
    font-size: 14px;
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  margin: 0;
  color: var(--navy);
}

.section-subtitle {
  font-size: 15px;
  color: rgba(11, 28, 45, 0.6);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cards.articles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.card h3 {
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--navy);
}

.card .meta {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.6);
  margin-bottom: 12px;
}

.card p {
  margin: 0 0 16px;
}

.card .read-more {
  font-weight: 600;
}

a.card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.card-link:hover,
a.card-link:focus,
a.card-link:active {
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(11, 28, 45, 0.12);
  transform: translateY(-3px);
}

a.card-link .read-more {
  color: var(--accent);
}

a.card-link h3,
a.card-link p,
a.card-link .meta,
a.public-item h4,
a.public-item div,
a.public-item *,
a.card-link * {
  text-decoration: none !important;
}

a.card-link:hover h3,
a.card-link:hover p,
a.card-link:hover .meta,
a.public-item:hover h4,
a.public-item:hover div,
a.public-item:hover *,
a.card-link:hover * {
  text-decoration: none !important;
}

.public-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-template-page-dzialalnosc-publiczna .public-list,
.post-type-archive-activity .public-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-template-page-dzialalnosc-publiczna .public-list .sejm-pagination,
.post-type-archive-activity .public-list .sejm-pagination {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 4px;
}

.public-item {
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
  padding: 24px;
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.public-item,
a.public-item:hover,
a.public-item:focus,
a.public-item:active {
  text-decoration: none !important;
}

a.public-item:hover {
  box-shadow: 0 4px 16px rgba(11, 28, 45, 0.12);
  transform: translateY(-2px);
}

.public-item h4 {
  margin: 0 0 8px;
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.public-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(11, 28, 45, 0.7);
  flex: 1;
  text-decoration: none !important;
}

.public-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.sejm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.sejm-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(11, 28, 45, 0.08);
  box-shadow: 0 10px 20px rgba(11, 28, 45, 0.08);
}

.sejm-card h4 {
  margin: 0 0 8px;
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.sejm-card__type {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px solid rgba(11, 28, 45, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 28, 45, 0.62);
  background: rgba(11, 28, 45, 0.03);
}

.sejm-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(11, 28, 45, 0.7);
  line-height: 1.5;
}

.sejm-card__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(11, 28, 45, 0.75);
  line-height: 1.6;
}

.sejm-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.sejm-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sejm-card__pending {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.62);
}

.sejm-card__link:hover,
.sejm-card__link:focus {
  text-decoration: underline;
}

.sejm-statement-page {
  margin: 16px 0 32px;
  background: var(--white);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(11, 28, 45, 0.08);
  box-shadow: 0 10px 22px rgba(11, 28, 45, 0.08);
}

.sejm-statement-page__meta {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--navy);
}

.sejm-statement-page__agenda {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(11, 28, 45, 0.75);
  line-height: 1.6;
}

.sejm-statement {
  margin-top: 8px;
  border-top: 1px solid rgba(11, 28, 45, 0.08);
  padding-top: 8px;
}

.sejm-statement summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.sejm-statement__body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(11, 28, 45, 0.8);
}

.sejm-statement__body h1,
.sejm-statement__body h2,
.sejm-statement__body h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--navy);
}

.sejm-statement__body p {
  margin: 0 0 10px;
}

.sejm-pagination {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

.sejm-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(11, 28, 45, 0.14);
}

.sejm-pagination__link:hover,
.sejm-pagination__link:focus {
  background: rgba(11, 28, 45, 0.04);
  box-shadow: none;
}

.sejm-pagination__link.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.sejm-pagination__link.current {
  background: rgba(176, 0, 32, 0.08);
  border-color: rgba(176, 0, 32, 0.35);
  color: var(--accent);
  font-weight: 600;
}

.about {
  display: block;
  gap: 32px;
  align-items: start;
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.about::after {
  content: "";
  display: block;
  clear: both;
}

.about img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  max-width: 320px;
  float: left;
  margin: 0 24px 16px 0;
}

.about h3 {
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  margin-top: 0;
  color: var(--navy);
}

.about-extended {
  align-items: flex-start;
}

.about-extended img {
  max-width: 320px;
}

.about-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.about-tiles {
  clear: both;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.about-tile {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(11, 28, 45, 0.08);
  box-shadow: 0 10px 22px rgba(11, 28, 45, 0.08);
}

.about-tile h4 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}

.about-tile p {
  margin: 0 0 10px;
  line-height: 1.65;
}

.about-tile p:last-child {
  margin-bottom: 0;
}


.about-content {
  flex: 1;
  min-width: 0;
}

.about-content h4 {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-content h4:first-of-type {
  margin-top: 16px;
}

.about-content p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.about-content .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  margin-top: 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-content .cta:hover,
.about-content .cta:focus {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.site-main {
  min-height: 60vh;
}


.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.content-narrow .entry-title {
  font-family: "Merriweather", "Libre Baskerville", Georgia, serif;
  color: var(--navy);
}

.content-narrow .entry-content {
  font-size: 18px;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copyright {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
  background: var(--accent);
  transform: scale(1.1);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner__content {
  width: min(980px, 94vw);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(11, 28, 45, 0.18);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.cookie-banner__content p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(11, 28, 45, 0.72);
}

.cookie-banner__content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner__content a:hover,
.cookie-banner__content a:focus {
  text-decoration: underline;
}

.cookie-banner__btn {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
  background: #8a0016;
}

.cookie-banner.is-hidden {
  display: none;
}

.section-more {
  text-align: center;
  margin-top: 32px;
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-numbers li {
  margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(11, 28, 45, 0.15);
  margin-left: -1px;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-numbers li:first-child a,
.pagination .page-numbers li:first-child span {
  border-radius: 8px 0 0 8px;
}

.pagination .page-numbers li:last-child a,
.pagination .page-numbers li:last-child span {
  border-radius: 0 8px 8px 0;
}

.pagination .page-numbers a:hover {
  background: var(--gray-100);
}

.pagination .page-numbers .current {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero-inner,
  .cards,
  .cards.articles-grid,
  .public-list,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    order: -1;
  }

  .sejm-cards {
    grid-template-columns: 1fr;
  }

  .about {
    flex-direction: column;
  }

  .about-tiles {
    grid-template-columns: 1fr;
  }

  .about img,
  .about-extended img {
    max-width: 100%;
    flex-basis: auto;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav .menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .main-nav a {
    font-size: 14px;
    line-height: 1.3;
    padding-bottom: 4px;
  }

  .page-template-page-dzialalnosc-publiczna .public-list,
  .post-type-archive-activity .public-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
  }

  .brand {
    width: 100%;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .brand-name {
    display: block;
    font-size: 20px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .brand-role {
    display: block;
    white-space: nowrap;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    width: 48px;
    height: 48px;
    padding: 9px;
  }

  .menu-toggle__bar {
    width: 20px;
  }

  body.js-nav .main-nav {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  body.js-nav .main-nav.is-open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav .menu {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
  }

  .main-nav .menu > li {
    min-width: 0;
  }

  .main-nav a {
    display: inline-flex;
    width: 100%;
  }

  .hero {
    padding: 48px 0;
  }

  .about img,
  .about-extended img {
    float: none;
    margin: 0 0 16px;
    max-width: 100%;
  }
}

@media (max-width: 460px) {
  .brand-name {
    font-size: 18px;
  }

  .brand-role {
    font-size: 13px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 8px;
  }
}

/* Force no underline on clickable cards */
a.public-item,
a.public-item:link,
a.public-item:visited,
a.public-item:hover,
a.public-item:focus,
a.public-item:active,
a.public-item *,
a.public-item:hover *,
a.card-link,
a.card-link:link,
a.card-link:visited,
a.card-link:hover,
a.card-link:focus,
a.card-link:active,
a.card-link *,
a.card-link:hover * {
  text-decoration: none !important;
}
