/*
Theme Name: InfoProstki
Theme URI: https://infoprostki.pl
Author: InfoProstki
Description: Klasyczny motyw WordPress dla lokalnego portalu informacyjnego InfoProstki.pl.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: infoprostki
*/

:root {
  --ip-ink: #112c27;
  --ip-muted: #5f706b;
  --ip-forest: #0d3932;
  --ip-green: #1e6e5a;
  --ip-lime: #d6ee71;
  --ip-paper: #f6f5ef;
  --ip-white: #fff;
  --ip-line: #d9ddd7;
  --ip-serif: "DM Serif Display", Georgia, serif;
  --ip-sans: "Manrope", Arial, sans-serif;
  --ip-shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ip-paper);
  color: var(--ip-ink);
  font-family: var(--ip-sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  background: var(--ip-lime);
  height: auto;
  left: 12px;
  padding: 12px 16px;
  top: 12px;
  width: auto;
  z-index: 1000;
}

.ip-shell {
  margin-inline: auto;
  max-width: var(--ip-shell);
  width: calc(100% - 48px);
}

.ip-utility {
  background: var(--ip-forest);
  color: #c7d7d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ip-utility__inner {
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: space-between;
}

.ip-utility__signal {
  align-items: center;
  display: flex;
  gap: 9px;
}

.ip-utility__signal::before {
  background: var(--ip-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(214 238 113 / 12%);
  content: "";
  height: 6px;
  width: 6px;
}

.ip-utility__links {
  align-items: center;
  display: flex;
  gap: 24px;
}

.ip-utility a:hover {
  color: var(--ip-lime);
}

.ip-header {
  background: rgb(246 245 239 / 96%);
  border-bottom: 1px solid var(--ip-line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.admin-bar .ip-header {
  top: 32px;
}

.ip-header__inner {
  align-items: center;
  display: flex;
  height: 92px;
  justify-content: space-between;
}

.ip-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.ip-brand__logo {
  display: block;
  height: auto;
  max-height: 56px;
  max-width: 220px;
  width: auto;
}

.ip-footer .ip-brand__logo {
  max-height: 72px;
  max-width: 260px;
}

.ip-brand__mark {
  align-items: center;
  background: var(--ip-lime);
  border-radius: 50%;
  color: var(--ip-ink);
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.ip-brand__copy {
  display: flex;
  flex-direction: column;
}

.ip-brand__copy strong {
  font-size: 21px;
  letter-spacing: -0.07em;
  line-height: 1;
}

.ip-brand__copy strong span {
  color: var(--ip-green);
}

.ip-brand__copy small {
  color: var(--ip-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-top: 7px;
  text-transform: uppercase;
}

.ip-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ip-nav .menu {
  align-items: center;
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-nav a {
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.ip-nav a::after {
  background: var(--ip-green);
  bottom: -9px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
  width: 100%;
}

.ip-nav a:hover::after,
.ip-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.ip-header__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.ip-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ip-line);
  border-radius: 50%;
  color: var(--ip-ink);
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.ip-icon-button:hover,
.ip-icon-button:focus-visible {
  background: var(--ip-lime);
  border-color: var(--ip-lime);
}

.ip-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.ip-menu-toggle span {
  background: currentColor;
  height: 1.5px;
  transition: transform 0.2s ease;
  width: 18px;
}

.ip-search-panel {
  background: var(--ip-paper);
  border-bottom: 1px solid var(--ip-line);
  display: none;
  left: 0;
  padding: 28px 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.search-open .ip-search-panel {
  display: block;
}

.ip-search-form {
  align-items: center;
  display: flex;
  gap: 14px;
}

.ip-search-form label {
  flex: 1;
}

.ip-search-form input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ip-ink);
  color: var(--ip-ink);
  font-size: 24px;
  outline: 0;
  padding: 10px 0;
  width: 100%;
}

.ip-button {
  align-items: center;
  background: var(--ip-forest);
  border: 1px solid var(--ip-forest);
  color: var(--ip-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 46px;
  padding: 0 22px;
  text-transform: uppercase;
}

.ip-button:hover {
  background: var(--ip-green);
  border-color: var(--ip-green);
}

.ip-button--light {
  background: var(--ip-lime);
  border-color: var(--ip-lime);
  color: var(--ip-ink);
}

.ip-breadcrumbs {
  color: var(--ip-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-bottom: 24px;
  padding-top: 24px;
  text-transform: uppercase;
}

.ip-breadcrumbs a:hover {
  color: var(--ip-green);
}

.ip-breadcrumbs span {
  margin: 0 8px;
}

.ip-eyebrow {
  color: var(--ip-green);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ip-page-hero {
  padding: 64px 0 70px;
}

.ip-page-hero--archive {
  background: var(--ip-forest);
  color: var(--ip-white);
  margin-bottom: 64px;
  padding: 65px 0;
}

.ip-page-hero__inner {
  align-items: end;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
}

.ip-page-hero h1,
.ip-article-header h1,
.ip-section-heading h2,
.ip-author-box h2 {
  font-family: var(--ip-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.ip-page-hero h1 {
  font-size: clamp(48px, 7vw, 82px);
  margin: 14px 0 0;
}

.ip-page-hero__description {
  color: var(--ip-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.ip-page-hero--archive .ip-page-hero__description {
  color: #b9cbc5;
}

.ip-page-hero--archive .ip-eyebrow {
  color: var(--ip-lime);
}

.ip-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.8fr);
  padding-bottom: 86px;
  padding-top: 32px;
}

.ip-home-hero__main {
  color: var(--ip-white);
  min-height: 580px;
  overflow: hidden;
  position: relative;
}

.ip-home-hero__main > img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: transform 0.55s ease;
  width: 100%;
}

.ip-home-hero__main:hover > img {
  transform: scale(1.025);
}

.ip-home-hero__shade {
  background:
    linear-gradient(180deg, rgb(5 26 22 / 20%) 0%, rgb(5 26 22 / 55%) 45%, rgb(5 27 23 / 95%) 100%),
    rgb(5 26 22 / 15%);
  inset: 0;
  position: absolute;
}

.ip-home-hero__content {
  bottom: 52px;
  left: clamp(28px, 5vw, 62px);
  max-width: 680px;
  position: absolute;
  right: 34px;
}

.ip-pill {
  background: var(--ip-lime);
  color: var(--ip-ink);
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.ip-home-hero h1 {
  font-family: var(--ip-serif);
  font-size: clamp(40px, 4.5vw, 66px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 20px 0 18px;
}

.ip-home-hero__content p {
  color: #d8e2df;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.ip-home-hero__content .ip-text-link {
  color: var(--ip-white);
}

.ip-home-hero__rail {
  background: var(--ip-white);
  padding: 34px 36px 15px;
}

.ip-home-hero__rail-title {
  border-bottom: 1px solid var(--ip-line);
  display: block;
  font-family: var(--ip-serif);
  font-size: 24px;
  padding-bottom: 20px;
}

.ip-home-hero__item {
  border-bottom: 1px solid var(--ip-line);
  display: block;
  padding: 23px 0;
}

.ip-home-hero__item time {
  color: var(--ip-green);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ip-home-hero__item h2 {
  font-family: var(--ip-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.ip-home-hero__item:hover h2 {
  color: var(--ip-green);
}

.ip-page-layout {
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding-bottom: 100px;
}

.ip-content {
  font-family: var(--ip-sans);
  font-size: 17px;
  line-height: 1.85;
}

.ip-content > *:first-child {
  margin-top: 0;
}

.ip-content h2,
.ip-content h3,
.ip-content h4 {
  font-family: var(--ip-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 2em 0 0.65em;
}

.ip-content h2 {
  font-size: 38px;
}

.ip-content h3 {
  font-size: 29px;
}

.ip-content a {
  color: var(--ip-green);
  text-decoration: underline;
  text-decoration-color: rgb(30 110 90 / 35%);
  text-underline-offset: 3px;
}

.ip-content blockquote {
  border-left: 4px solid var(--ip-lime);
  font-family: var(--ip-serif);
  font-size: 29px;
  line-height: 1.35;
  margin: 2em 0;
  padding: 8px 0 8px 28px;
}

.ip-content figure {
  margin: 2.5em 0;
}

.ip-content figcaption {
  color: var(--ip-muted);
  font-size: 10px;
  margin-top: 10px;
}

.ip-source {
  color: var(--ip-muted);
  font-size: 13px;
  margin: 1.8em 0 0;
}

.ip-source a {
  color: var(--ip-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(30 110 90 / 35%);
  text-underline-offset: 3px;
}

.ip-sidebar {
  border-left: 1px solid var(--ip-line);
  padding-left: 34px;
}

.ip-sidebar__section {
  border-bottom: 1px solid var(--ip-line);
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.ip-sidebar h2 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.ip-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-sidebar li + li {
  border-top: 1px solid var(--ip-line);
}

.ip-sidebar li a {
  display: flex;
  font-family: var(--ip-serif);
  font-size: 18px;
  justify-content: space-between;
  padding: 12px 0;
}

.ip-sidebar li a:hover {
  color: var(--ip-green);
}

.ip-article-header {
  margin: 0 auto;
  max-width: 960px;
  padding: 48px 0 42px;
}

.ip-article-header h1 {
  font-size: clamp(46px, 6vw, 76px);
  margin: 17px 0 24px;
}

.ip-article-lead {
  color: var(--ip-muted);
  font-family: var(--ip-serif);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.45;
  margin: 0 0 26px;
}

.ip-meta {
  align-items: center;
  color: var(--ip-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ip-meta span + span::before {
  color: #a6b0ad;
  content: "•";
  margin-right: 11px;
}

.ip-featured-image {
  margin-bottom: 60px;
}

.ip-featured-image img {
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  width: 100%;
}

.ip-featured-image figcaption {
  color: var(--ip-muted);
  font-size: 9px;
  margin-top: 9px;
}

.ip-single-layout {
  display: grid;
  gap: 46px;
  grid-template-columns: 50px minmax(0, 760px) minmax(220px, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  padding-bottom: 90px;
}

.ip-share {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 130px;
}

.ip-share a {
  align-items: center;
  border: 1px solid var(--ip-line);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.ip-share a:hover {
  background: var(--ip-lime);
  border-color: var(--ip-lime);
}

.ip-article-aside {
  border-left: 1px solid var(--ip-line);
  padding-left: 28px;
}

.ip-article-aside strong {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ip-article-aside p {
  color: var(--ip-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}

.ip-tags {
  border-top: 1px solid var(--ip-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  padding-top: 24px;
}

.ip-tags a {
  border: 1px solid var(--ip-line);
  color: var(--ip-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 8px 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.ip-tags a:hover {
  background: var(--ip-lime);
  border-color: var(--ip-lime);
}

.ip-author-box {
  align-items: center;
  background: var(--ip-white);
  display: grid;
  gap: 25px;
  grid-template-columns: 76px 1fr;
  margin-top: 44px;
  padding: 28px;
}

.ip-author-box img {
  border-radius: 50%;
}

.ip-author-box small {
  color: var(--ip-green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ip-author-box h2 {
  font-size: 24px;
  margin: 4px 0;
}

.ip-author-box p {
  color: var(--ip-muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.ip-section {
  padding-bottom: 96px;
}

.ip-section--white {
  background: var(--ip-white);
  padding-top: 85px;
}

.ip-section--forest {
  background: var(--ip-forest);
  color: var(--ip-white);
  padding-top: 85px;
}

.ip-section--forest .ip-eyebrow {
  color: var(--ip-lime);
}

.ip-section--forest .ip-text-link {
  color: var(--ip-white);
}

.ip-section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.ip-section-heading h2 {
  font-size: clamp(38px, 4vw, 52px);
  margin: 9px 0 0;
}

.ip-text-link {
  align-items: center;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 18px;
  letter-spacing: 0.08em;
  padding-bottom: 7px;
  text-transform: uppercase;
}

.ip-post-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ip-post-card {
  background: var(--ip-white);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ip-section--white .ip-post-card {
  background: var(--ip-paper);
}

.ip-post-card__image {
  aspect-ratio: 1.56 / 1;
  background: #dfe5e2;
  display: block;
  overflow: hidden;
  position: relative;
}

.ip-post-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.ip-post-card:hover img {
  transform: scale(1.035);
}

.ip-post-card__category {
  background: var(--ip-lime);
  bottom: 0;
  font-size: 8px;
  font-weight: 800;
  left: 0;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  position: absolute;
  text-transform: uppercase;
}

.ip-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 205px;
  padding: 25px 27px;
}

.ip-post-card time {
  color: var(--ip-green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ip-post-card h2,
.ip-post-card h3 {
  font-family: var(--ip-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.18;
  margin: 9px 0 14px;
}

.ip-post-card h2 a:hover,
.ip-post-card h3 a:hover {
  color: var(--ip-green);
}

.ip-post-card__excerpt {
  color: var(--ip-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}

.ip-post-card__more {
  align-items: center;
  border: 1px solid var(--ip-line);
  border-radius: 50%;
  display: flex;
  height: 38px;
  justify-content: center;
  margin-top: auto;
  width: 38px;
}

.ip-post-card__more:hover {
  background: var(--ip-lime);
  border-color: var(--ip-lime);
}

.ip-announcement-list {
  background: var(--ip-white);
  border-top: 1px solid var(--ip-line);
}

.ip-announcement {
  align-items: center;
  border-bottom: 1px solid var(--ip-line);
  display: grid;
  gap: 24px;
  grid-template-columns: 85px minmax(0, 1fr) auto;
  padding: 24px 28px;
}

.ip-announcement time {
  color: var(--ip-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ip-announcement h3 {
  font-family: var(--ip-serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.ip-announcement:hover h3 {
  color: var(--ip-green);
}

.ip-announcement .ip-icon {
  transition: transform 0.18s ease;
}

.ip-announcement:hover .ip-icon {
  transform: translateX(4px);
}

.ip-events-list {
  border-top: 1px solid #41635d;
}

.ip-events-list--light {
  border-color: var(--ip-line);
}

.ip-events-list--light .ip-event-row {
  border-color: var(--ip-line);
  color: var(--ip-ink);
}

.ip-events-list--light .ip-event-row__copy em {
  color: var(--ip-muted);
}

.ip-events-list--light .ip-event-row__arrow {
  border-color: var(--ip-line);
}

.ip-event-row {
  align-items: center;
  border-bottom: 1px solid #41635d;
  display: grid;
  gap: 28px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  padding: 25px 0;
}

.ip-event-row__date {
  color: var(--ip-lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.ip-event-row__date b {
  display: block;
  font-family: var(--ip-serif);
  font-size: 39px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
}

.ip-event-row__copy {
  display: flex;
  flex-direction: column;
}

.ip-event-row__copy small {
  color: var(--ip-lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ip-event-row__copy strong {
  font-family: var(--ip-serif);
  font-size: 25px;
  font-weight: 400;
}

.ip-event-row__copy em {
  color: #a7b9b4;
  font-size: 11px;
  font-style: normal;
  margin-top: 5px;
}

.ip-event-row__arrow {
  align-items: center;
  border: 1px solid #52706b;
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.ip-event-row:hover .ip-event-row__arrow {
  background: var(--ip-lime);
  border-color: var(--ip-lime);
  color: var(--ip-ink);
}

.ip-event-details {
  background: var(--ip-white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 48px;
}

.ip-event-details__item {
  border-right: 1px solid var(--ip-line);
  padding: 25px;
}

.ip-event-details__item:last-child {
  border-right: 0;
}

.ip-event-details__item small {
  color: var(--ip-green);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ip-event-details__item strong {
  font-family: var(--ip-serif);
  font-size: 20px;
  font-weight: 400;
}

.ip-event-cancelled {
  background: #8b2d2d;
  color: var(--ip-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
}

.ip-content .ip-button {
  color: var(--ip-white);
  text-decoration: none;
}

.ip-archive-layout {
  display: grid;
  gap: 50px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding-bottom: 100px;
}

.ip-archive-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ip-filter {
  align-self: start;
  background: var(--ip-white);
  padding: 30px;
  position: sticky;
  top: 130px;
}

.ip-filter h2 {
  font-family: var(--ip-serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 18px;
}

.ip-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-filter li {
  border-top: 1px solid var(--ip-line);
}

.ip-filter a {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: space-between;
  padding: 13px 0;
}

.ip-filter .current-cat a,
.ip-filter a:hover {
  color: var(--ip-green);
}

.ip-pagination {
  border-top: 1px solid var(--ip-line);
  margin-top: 50px;
  padding-top: 25px;
}

.ip-pagination .nav-links {
  display: flex;
  gap: 8px;
}

.ip-pagination .page-numbers {
  align-items: center;
  border: 1px solid var(--ip-line);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
}

.ip-pagination .current,
.ip-pagination a:hover {
  background: var(--ip-forest);
  border-color: var(--ip-forest);
  color: var(--ip-white);
}

.ip-empty {
  background: var(--ip-white);
  padding: 50px;
}

.ip-empty h2 {
  font-family: var(--ip-serif);
  font-size: 34px;
  font-weight: 400;
  margin-top: 0;
}

.ip-newsletter {
  background: var(--ip-lime);
  padding: 68px 0;
}

.ip-newsletter__inner {
  align-items: center;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
}

.ip-newsletter h2 {
  font-family: var(--ip-serif);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  margin: 10px 0 14px;
}

.ip-newsletter p {
  font-size: 13px;
  margin: 0;
}

.ip-newsletter__form {
  display: flex;
}

.ip-newsletter__form input {
  background: var(--ip-white);
  border: 0;
  min-width: 0;
  outline: 0;
  padding: 16px 18px;
  width: 100%;
}

.ip-newsletter__form .ip-button {
  flex: 0 0 auto;
}

.ip-newsletter__message {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 0;
  min-height: 1.2em;
}

.ip-newsletter__message.is-success {
  color: var(--ip-forest);
}

.ip-newsletter__message.is-error {
  color: #b3261e;
}

.ip-footer {
  background: #082a25;
  color: var(--ip-white);
}

.ip-footer__top {
  display: grid;
  gap: 70px;
  grid-template-columns: 1.5fr 0.6fr 0.6fr 1fr;
  padding: 70px 0;
}

.ip-footer .ip-brand__copy strong span,
.ip-footer .ip-brand__copy small {
  color: var(--ip-lime);
}

.ip-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ip-footer__col h2 {
  color: var(--ip-lime);
  font-size: 9px;
  letter-spacing: 0.13em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.ip-footer__col a,
.ip-footer__col p {
  color: #c4d2ce;
  font-size: 12px;
  margin: 0;
}

.ip-footer__col a:hover {
  color: var(--ip-lime);
}

.ip-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-footer__contact {
  font-family: var(--ip-serif);
  font-size: 20px !important;
}

.ip-footer__bottom {
  border-top: 1px solid #31504a;
  color: #78908a;
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  padding: 24px 0;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .ip-menu-toggle {
    display: flex;
  }

  .ip-nav {
    background: var(--ip-paper);
    border-bottom: 1px solid var(--ip-line);
    display: none;
    left: 0;
    padding: 12px 24px 25px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .menu-open .ip-nav {
    display: block;
  }

  .ip-nav .menu {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ip-nav a {
    border-bottom: 1px solid var(--ip-line);
    display: block;
    padding: 16px 0;
  }

  .ip-single-layout {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .ip-home-hero {
    grid-template-columns: 1fr;
  }

  .ip-article-aside {
    display: none;
  }

  .ip-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-footer__top {
    gap: 40px;
    grid-template-columns: 1.3fr 0.6fr 0.6fr;
  }

  .ip-footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .ip-shell {
    width: calc(100% - 32px);
  }

  .ip-utility__inner {
    justify-content: center;
  }

  .ip-utility__links {
    display: none;
  }

  .ip-header__inner {
    height: 76px;
  }

  .ip-brand__mark {
    height: 41px;
    width: 41px;
  }

  .ip-header .ip-brand__logo {
    max-height: 48px;
    max-width: 180px;
  }

  .ip-brand__copy strong {
    font-size: 19px;
  }

  .ip-page-hero {
    padding: 44px 0 55px;
  }

  .ip-page-hero__inner {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .ip-page-hero h1,
  .ip-article-header h1 {
    font-size: 43px;
  }

  .ip-home-hero {
    padding-top: 16px;
  }

  .ip-home-hero__main {
    min-height: 560px;
  }

  .ip-home-hero__content {
    bottom: 36px;
    left: 23px;
    right: 22px;
  }

  .ip-home-hero h1 {
    font-size: 41px;
  }

  .ip-home-hero__rail {
    padding-inline: 23px;
  }

  .ip-page-layout,
  .ip-archive-layout {
    grid-template-columns: 1fr;
  }

  .ip-announcement {
    gap: 12px;
    grid-template-columns: 62px minmax(0, 1fr);
    padding-inline: 20px;
  }

  .ip-announcement > .ip-icon {
    display: none;
  }

  .ip-announcement h3 {
    font-size: 20px;
  }

  .ip-event-row {
    gap: 15px;
    grid-template-columns: 58px minmax(0, 1fr) 40px;
  }

  .ip-event-row__copy strong {
    font-size: 21px;
  }

  .ip-event-details {
    grid-template-columns: 1fr;
  }

  .ip-event-details__item {
    border-bottom: 1px solid var(--ip-line);
    border-right: 0;
  }

  .ip-sidebar,
  .ip-filter {
    border-left: 0;
    border-top: 1px solid var(--ip-line);
    padding-left: 0;
    padding-top: 30px;
    position: static;
  }

  .ip-article-header {
    padding-top: 30px;
  }

  .ip-featured-image {
    margin-bottom: 40px;
    width: 100%;
  }

  .ip-featured-image img {
    aspect-ratio: 1 / 0.75;
  }

  .ip-single-layout {
    display: block;
  }

  .ip-share {
    flex-direction: row;
    margin-bottom: 28px;
    position: static;
  }

  .ip-archive-grid,
  .ip-post-grid {
    grid-template-columns: 1fr;
  }

  .ip-section-heading {
    align-items: flex-start;
    gap: 20px;
  }

  .ip-section-heading > .ip-text-link {
    display: none;
  }

  .ip-newsletter__inner {
    gap: 35px;
    grid-template-columns: 1fr;
  }

  .ip-newsletter__form {
    flex-direction: column;
    gap: 8px;
  }

  .ip-newsletter__form .ip-button {
    width: 100%;
  }

  .ip-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .ip-footer__top > .ip-brand,
  .ip-footer__col:last-child {
    grid-column: 1 / -1;
  }

  .ip-footer__bottom {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 782px) {
  .admin-bar .ip-header {
    top: 46px;
  }
}
