:root {
  --ipf-ink: #002355;
  --ipf-night: #001128;
  --ipf-blue: #75a8da;
  --ipf-red: #c50000;
  --ipf-black: #0a0d12;
  --ipf-grey: #5f6b7a;
  --ipf-light: #f3f6fa;
  --ipf-line: #d7e2ee;
  --ipf-paper: #ffffff;
  --ipf-shadow: 0 22px 54px rgba(0, 17, 40, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ipf-page {
  margin: 0;
  color: var(--ipf-ink);
  background: var(--ipf-paper);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.68;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
  color: var(--ipf-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #75a8da;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 99;
  padding: 10px 14px;
  color: #fff;
  background: var(--ipf-red);
}

.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.ipf-form-note {
  margin: 2px 0 4px;
  color: #dce8f6;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ipf-form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ipf-shell,
.row {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.ipf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 22px rgba(0, 17, 40, 0.08);
}

.top_header_wrap {
  min-height: 82px;
  background: #fff;
}

.ipf-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ipf-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ipf-brand img {
  width: 72px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.ipf-brand span {
  display: grid;
  gap: 2px;
}

.ipf-brand strong {
  color: var(--ipf-ink);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.ipf-brand em {
  color: #536176;
  font-size: 0.78rem;
  font-style: normal;
}

.ipf-topline {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--ipf-ink);
  text-align: right;
  text-transform: uppercase;
}

.ipf-topline strong {
  color: var(--ipf-blue);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.ipf-topline span {
  color: #5f6b7a;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.bottom_header_wrap {
  background: #fff;
  border-top: 1px solid rgba(0, 35, 85, 0.1);
  border-bottom: 1px solid rgba(0, 35, 85, 0.14);
}

.ipf-nav {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipf-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.ipf-menu a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ipf-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  border-left: 1px solid rgba(0, 35, 85, 0.08);
}

.ipf-menu a:last-child {
  border-right: 1px solid rgba(0, 35, 85, 0.08);
}

.ipf-menu a:hover,
.ipf-menu a:focus,
.ipf-menu a.is-active {
  color: var(--ipf-ink);
  background: #edf5ff;
}

.ipf-menu .ipf-nav-cta {
  gap: 8px;
  background: var(--ipf-red);
}

.ipf-menu .ipf-nav-cta:hover,
.ipf-menu .ipf-nav-cta:focus,
.ipf-menu .ipf-nav-cta.is-active {
  background: #930000;
}

.ipf-menu-button {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 2px solid rgba(0, 35, 85, 0.28);
  color: var(--ipf-ink);
  background: transparent;
  font-weight: 800;
  text-transform: uppercase;
}

.ipf-hero,
.ipf-page-hero,
.hero_section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--ipf-night);
  background-position: center;
  background-size: cover;
}

.ipf-hero::before,
.ipf-page-hero::before,
.hero_section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 17, 40, 0.96), rgba(0, 35, 85, 0.78) 46%, rgba(0, 35, 85, 0.24)),
    linear-gradient(0deg, rgba(0, 17, 40, 0.76), rgba(0, 17, 40, 0.08) 52%);
}

.ipf-hero,
.hero_section {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 82px 0 74px;
}

.ipf-page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  padding: 70px 0 54px;
}

.ipf-page-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.04);
}

.ipf-generated-hero {
  overflow: hidden;
  background: linear-gradient(137deg, hsl(var(--hero-hue) 48% 15%), hsl(var(--hero-hue) 48% 31%) 58%, hsl(var(--hero-hue-alt) 65% 43%));
}

.ipf-generated-hero::before {
  content: "";
  position: absolute;
  left: var(--hero-x);
  top: var(--hero-y);
  width: min(44vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 62px rgba(255,255,255,.05), 0 0 0 124px rgba(255,255,255,.025);
}

.ipf-generated-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 30px, rgba(255,255,255,.075) 31px 32px);
}

.ipf-page-hero::before {
  z-index: 1;
  pointer-events: none;
}

.ipf-page-hero > .ipf-shell {
  position: relative;
  z-index: 2;
}

.ipf-hero-content,
.ipf-page-hero-content {
  position: relative;
  min-width: 0;
  max-width: 900px;
}

.ipf-eyebrow {
  margin: 0 0 12px;
  color: var(--ipf-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ipf-hero .ipf-eyebrow,
.ipf-page-hero .ipf-eyebrow,
.hero_section .ipf-eyebrow {
  color: var(--ipf-blue);
}

.hero_h1,
.ipf-hero h1,
.ipf-page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  font-size: 4.8rem;
  line-height: 1;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ipf-page-hero h1 {
  max-width: 900px;
  font-size: 3.3rem;
}

.hero_rule,
.ipf-hero hr,
.ipf-page-hero hr {
  width: min(520px, 100%);
  height: 4px;
  margin: 26px 0 24px;
  border: 0;
  background: var(--ipf-red);
}

.hero_h2,
.ipf-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1.12;
  font-weight: 360;
  text-transform: uppercase;
}

.ipf-hero p,
.ipf-page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #edf5ff;
  font-size: 1.1rem;
}

.ipf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button,
.ipf-button,
.donation_button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 2px solid transparent;
  color: #fff;
  background: var(--ipf-red);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.button:hover,
.button:focus,
.ipf-button:hover,
.ipf-button:focus,
.donation_button:hover,
.donation_button:focus {
  color: #fff;
  background: #930000;
}

.ipf-button-secondary {
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff;
  background: transparent;
}

.ipf-button-secondary:hover,
.ipf-button-secondary:focus {
  color: var(--ipf-ink);
  background: #fff;
}

.ipf-button-light {
  border-color: #fff;
  color: var(--ipf-ink);
  background: #fff;
}

.ipf-button-light:hover,
.ipf-button-light:focus {
  color: #fff;
  background: var(--ipf-red);
}

.ipf-hero-panel {
  position: relative;
  margin-top: 38px;
  padding: 18px;
  border: 1px solid rgba(117, 168, 218, 0.4);
  background: rgba(0, 17, 40, 0.72);
  box-shadow: var(--ipf-shadow);
}

.ipf-trust-row,
.ipf-hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ipf-trust-item,
.ipf-hero-panel-grid div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(117, 168, 218, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.ipf-trust-item strong,
.ipf-hero-panel-grid strong {
  display: block;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.ipf-trust-item span,
.ipf-hero-panel-grid span {
  display: block;
  margin-top: 6px;
  color: #e1ebf7;
  font-size: 0.92rem;
}

.main_content_wrap,
.ipf-section {
  padding: 72px 0;
}

.ipf-section-tight {
  padding: 56px 0;
}

.ipf-section-soft,
.home_latest_news {
  background: var(--ipf-light);
}

.ipf-section-dark,
.home_events_wrap {
  color: #fff;
  background: var(--ipf-night);
}

.ipf-section-image {
  position: relative;
  color: #fff;
  background-color: var(--ipf-night);
  background-position: center;
  background-size: cover;
}

.ipf-section-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 17, 40, 0.94), rgba(0, 35, 85, 0.62));
}

.ipf-section-image > .ipf-shell {
  position: relative;
}

.ipf-section-heading {
  max-width: 820px;
  margin: 0 0 36px;
}

.ipf-section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ipf-section h2,
.home_bio_title,
.entry-title {
  margin: 0;
  color: var(--ipf-ink);
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  font-size: 2.35rem;
  line-height: 1.06;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ipf-section-dark h2,
.ipf-section-image h2,
.ipf-section-dark h3,
.ipf-section-image h3,
.ipf-section-dark p,
.ipf-section-image p {
  color: #fff;
}

.ipf-section h3 {
  margin: 0 0 10px;
  color: var(--ipf-ink);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 900;
  text-transform: uppercase;
}

.ipf-section p,
.entry-content p {
  color: var(--ipf-grey);
}

.ipf-section-dark p,
.ipf-section-image p,
.home_events_wrap p {
  color: #dce8f6;
}

.ipf-section-dark h2,
.ipf-section-dark h3,
.ipf-section-image h2,
.ipf-section-image h3,
.home_events_wrap h2,
.home_events_wrap h3 {
  color: #fff;
}

.ipf-lead {
  margin: 15px 0 0;
  max-width: 780px;
  font-size: 1.1rem;
}

.ipf-rule-heading,
.home_latest_news .ipf-rule-heading,
.home_image_gallery .ipf-rule-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
}

.ipf-rule-heading h2,
.ipf-rule-heading h3 {
  margin: 0;
  color: var(--ipf-ink);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ipf-rule-heading hr {
  position: relative;
  height: 1px;
  border: 0;
  background: var(--ipf-line);
}

.ipf-rule-heading hr::after {
  content: "";
  position: absolute;
  right: 0;
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--ipf-red);
  transform: rotate(45deg);
}

.ipf-grid-2,
.home_bio,
.ipf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

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

.ipf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ipf-card,
.event_entry_wrap,
.ipf-contact-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--ipf-line);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 17, 40, 0.05);
}

.ipf-card:hover {
  box-shadow: var(--ipf-shadow);
  transform: translateY(-2px);
}

.ipf-card-highlight {
  color: #fff;
  border-color: var(--ipf-ink);
  background: var(--ipf-ink);
}

.ipf-card-highlight h3,
.ipf-card-highlight p,
.ipf-card-highlight li,
.ipf-card-highlight a {
  color: #fff;
}

.ipf-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--ipf-ink);
  font-size: 1.25rem;
}

.ipf-card:nth-child(2n) .ipf-icon {
  background: var(--ipf-red);
}

.ipf-card:nth-child(3n) .ipf-icon {
  color: var(--ipf-night);
  background: var(--ipf-blue);
}

.ipf-card p {
  margin: 0;
}

.ipf-card > a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ipf-red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ipf-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ipf-list li {
  position: relative;
  padding-left: 28px;
  color: #273c5a;
}

.ipf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--ipf-red);
  transform: rotate(45deg);
}

.ipf-section-dark .ipf-list li,
.ipf-section-image .ipf-list li,
.ipf-card-highlight .ipf-list li {
  color: #e8f0fa;
}

.ipf-media-frame {
  overflow: hidden;
  border: 5px solid #fff;
  background: var(--ipf-light);
  box-shadow: var(--ipf-shadow);
}

.ipf-media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home_bio {
  margin: 0 auto;
}

.home_bio_visual {
  border: 5px solid #fff;
  box-shadow: var(--ipf-shadow);
}

.home_bio_visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home_bio_icons ul {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.home_bio_icons li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}

.home_bio_icons i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ipf-red);
}

.home_events_wrap {
  position: relative;
  padding: 76px 0;
  background-position: center;
  background-size: cover;
}

.home_events_wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 17, 40, 0.96), rgba(0, 35, 85, 0.76));
}

.home_events_wrap > .ipf-shell {
  position: relative;
}

.ipf-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.ipf-briefing-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(117, 168, 218, 0.32);
  background: rgba(0, 17, 40, 0.58);
}

.ipf-briefing-card time,
.ipf-briefing-card .duration {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  color: #fff;
  background: var(--ipf-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ipf-briefing-card h3 {
  color: #fff;
  font-size: 1.55rem;
}

.ipf-briefing-card p {
  color: #dce8f6;
}

.ipf-briefing-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--ipf-blue);
  color: var(--ipf-blue);
  font-weight: 900;
  text-transform: uppercase;
}

.ipf-briefing-card:hover a {
  color: var(--ipf-night);
  background: var(--ipf-blue);
}

.ipf-signal-panel {
  padding: 28px;
  color: #fff;
  background: var(--ipf-night);
}

.ipf-signal-panel h2,
.ipf-signal-panel h3,
.ipf-signal-panel p {
  color: #fff;
}

.ipf-signal-panel p {
  color: #d9e1eb;
}

.ipf-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.ipf-signal-list div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(117, 168, 218, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.ipf-signal-list strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  text-transform: uppercase;
}

.ipf-process {
  counter-reset: ipfstep;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ipf-process .ipf-card {
  position: relative;
  padding-top: 62px;
}

.ipf-process .ipf-card::before {
  counter-increment: ipfstep;
  content: counter(ipfstep);
  position: absolute;
  left: 24px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ipf-red);
  font-weight: 900;
}

.home_latest_news,
.home_image_gallery {
  padding: 72px 0;
}

.ipf-news-slider {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.ipf-news-slider h3,
.ipf-news-slider h4 {
  margin: 0 0 18px;
  color: var(--ipf-ink);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.ipf-news-slider p {
  color: var(--ipf-grey);
}

.ipf-portfolio-wrap {
  overflow: hidden;
}

.ipf-portfolio-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.ipf-portfolio-intro .ipf-section-heading {
  margin-bottom: 0;
}

.ipf-portfolio-grid,
.portfolio.ipf-portfolio-grid,
.ipf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ipf-portfolio-grid .portfolio-item,
.portfolio.ipf-portfolio-grid .portfolio-item {
  float: none;
  width: auto;
  padding: 0;
}

.ipf-portfolio-grid .thumb,
.portfolio.ipf-portfolio-grid .thumb,
.ipf-gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ipf-light);
  box-shadow: 0 1px 0 rgba(17, 19, 24, 0.08);
}

.ipf-portfolio-grid img,
.portfolio.ipf-portfolio-grid img,
.ipf-gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.ipf-gallery-card-logo img {
  padding: 26px;
  object-fit: contain;
  background: #fff;
}

.ipf-portfolio-grid .thumb:hover img,
.portfolio.ipf-portfolio-grid .thumb:hover img,
.ipf-gallery-card:hover img {
  transform: scale(1.05);
}

.ipf-gallery-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 17, 40, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ipf-faq {
  background: #fff;
}

.ipf-faq-grid {
  display: grid;
  gap: 12px;
}

.ipf-faq details {
  border: 1px solid var(--ipf-line);
  background: #fff;
}

.ipf-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ipf-ink);
  font-weight: 900;
  text-transform: uppercase;
}

.ipf-faq details p {
  margin: 0;
  padding: 0 20px 20px;
}

.ipf-cta-band {
  color: #fff;
  background: var(--ipf-ink);
}

.ipf-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ipf-cta-band h2,
.ipf-cta-band p,
.ipf-cta-band .ipf-eyebrow {
  color: #fff;
}

.ipf-cta-band p {
  max-width: 720px;
}

.ipf-contact-strip {
  padding: 82px 0;
  background: var(--ipf-light);
}

.ipf-contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.ipf-contact-card {
  color: #fff;
  border-color: var(--ipf-night);
  background: var(--ipf-night);
}

.ipf-contact-card h2,
.ipf-contact-card h3,
.ipf-contact-card p,
.ipf-contact-card a {
  color: #fff;
}

.ipf-form {
  display: grid;
  gap: 12px;
}

.ipf-form label {
  color: #fff;
  font-weight: 800;
}

.ipf-form input,
.ipf-form select,
.ipf-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: var(--ipf-ink);
  background: #fff;
  font: inherit;
}

.ipf-form textarea {
  min-height: 154px;
  resize: vertical;
}

.ipf-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ipf-form-success,
.ipf-form-errors {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
}

.ipf-form-success {
  border: 1px solid rgba(117, 168, 218, 0.65);
}

.ipf-form-errors {
  border: 1px solid rgba(197, 0, 0, 0.65);
}

.ipf-form-errors p,
.ipf-form-success {
  color: #fff;
}

.ipf-affiliate-card {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ipf-affiliate-card img,
.ipf-affiliation img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.ipf-affiliation {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ipf-affiliation-subtle {
  opacity: 0.78;
}

.ipf-affiliation strong,
.ipf-affiliation span {
  display: block;
}

.ipf-affiliation strong {
  color: #fff;
}

.ipf-affiliation span,
.ipf-discreet {
  color: #cdd8e8;
  font-size: 0.92rem;
}

.donation_wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  background: var(--ipf-red);
}

.donation_wrap .ipf-shell {
  display: flex;
  justify-content: center;
}

.donation_wrap .donation_button {
  border: 2px solid #fff;
  background: transparent;
}

.donation_wrap .donation_button:hover,
.donation_wrap .donation_button:focus {
  color: var(--ipf-night);
  background: #fff;
}

.ipf-footer {
  color: #d8dee8;
  background: var(--ipf-night);
}

.ipf-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1fr;
  gap: 30px;
  padding: 50px 0 32px;
}

.ipf-footer-grid::before {
  content: "";
  grid-column: 1 / -1;
  height: 16px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, transparent, var(--ipf-blue), var(--ipf-red), var(--ipf-blue), transparent);
  opacity: 0.55;
}

.ipf-footer-logo {
  display: block;
  width: 104px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(117, 168, 218, 0.35), 0 0 18px rgba(197, 0, 0, 0.16);
  filter: drop-shadow(0 0 16px rgba(117, 168, 218, 0.18));
}

.ipf-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.ipf-footer p {
  margin: 0 0 10px;
  color: #d8dee8;
}

.ipf-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipf-footer a {
  color: #d8dee8;
}

.ipf-footer a:hover,
.ipf-footer a:focus {
  color: #fff;
}

.ipf-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.ipf-legal-grid,
.ipf-election-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.ipf-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ipf-pill-list li,
.ipf-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 35, 85, 0.14);
  color: var(--ipf-ink);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.ipf-source-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ipf-source-list a {
  color: var(--ipf-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ipf-mini-note,
.ipf-city-citations {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--ipf-blue);
  color: #354861;
  background: #f8fbff;
  font-size: 0.93rem;
}

.ipf-city-citations details {
  margin-top: 10px;
}

.ipf-city-citations summary {
  cursor: pointer;
  color: var(--ipf-ink);
  font-weight: 850;
}

.ipf-city-citations p {
  margin: 10px 0 0;
}

@media (max-width: 1060px) {
  .ipf-grid-4,
  .ipf-process,
  .ipf-portfolio-grid,
  .portfolio.ipf-portfolio-grid,
  .ipf-gallery-grid,
  .ipf-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-briefing-grid,
  .ipf-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ipf-topbar {
    min-height: 74px;
  }

  .ipf-brand img {
    width: 58px;
    height: 46px;
  }

  .ipf-brand span {
    display: none;
  }

  .ipf-topline {
    display: none;
  }

  .ipf-nav {
    min-height: 58px;
    justify-content: flex-end;
  }

  .ipf-menu-button {
    display: inline-flex;
  }

  .ipf-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 132px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--ipf-ink);
    box-shadow: var(--ipf-shadow);
  }

  .ipf-header.is-open .ipf-menu {
    display: flex;
  }

  .ipf-menu a {
    justify-content: flex-start;
    color: #fff;
    border-right: 0;
  }

  .ipf-menu a:hover,
  .ipf-menu a:focus,
  .ipf-menu a.is-active {
    color: #fff;
    background: #123866;
  }

  .ipf-hero,
  .hero_section {
    min-height: 600px;
    padding: 70px 0 58px;
  }

  .ipf-page-hero {
    min-height: 330px;
  }

  .hero_h1,
  .ipf-hero h1 {
    font-size: 3.25rem;
  }

  .ipf-page-hero h1 {
    font-size: 2.45rem;
  }

  .hero_h2,
  .ipf-hero h2 {
    font-size: 1.35rem;
  }

  .ipf-section h2,
  .home_latest_news h2 {
    font-size: 1.95rem;
  }

  .main_content_wrap,
  .ipf-section,
  .home_latest_news,
  .home_image_gallery,
  .home_events_wrap,
  .ipf-contact-strip {
    padding: 58px 0;
  }

  .ipf-grid-2,
  .home_bio,
  .ipf-grid-3,
  .ipf-grid-4,
  .ipf-signal-list,
  .ipf-process,
  .ipf-contact-grid,
  .ipf-news-slider,
  .ipf-briefing-grid,
  .ipf-trust-row,
  .ipf-hero-panel-grid {
    grid-template-columns: 1fr;
  }

  .ipf-portfolio-intro,
  .ipf-cta-inner,
  .ipf-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
.ipf-shell,
  .row {
    width: min(100% - 24px, 1500px);
  }

  .ipf-actions,
  .ipf-button,
  .button {
    width: 100%;
  }

  .ipf-button,
  .button {
    justify-content: center;
  }

  .ipf-portfolio-grid,
  .portfolio.ipf-portfolio-grid,
  .ipf-gallery-grid,
  .ipf-footer-grid,
  .ipf-legal-grid,
  .ipf-election-grid {
    grid-template-columns: 1fr;
  }

  .ipf-affiliate-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero_h1,
  .ipf-hero h1 {
    font-size: 2.35rem;
  }

  .ipf-page-hero h1 {
    font-size: 2rem;
  }

  .hero_h2,
  .ipf-hero h2 {
    font-size: 1.1rem;
  }

  .ipf-section h2,
  .home_latest_news h2 {
    font-size: 1.62rem;
  }
}

.ipf-shell,
.row {
  width: min(1500px, calc(100% - 48px));
}

.ipf-header-shell {
  width: min(1750px, calc(100% - 48px));
}

.ipf-footer-shell {
  width: min(1350px, calc(100% - 48px));
}

.top_header_wrap {
  min-height: 100px;
}

.ipf-topbar {
  min-height: 100px;
}

.ipf-brand-portal {
  width: min(500px, 34vw);
  flex: 0 1 500px;
}

.ipf-brand-portal img {
  width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}

.ipf-topline {
  text-align: right;
}

.ipf-topline strong {
  display: block;
  color: var(--ipf-ink);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ipf-topline span {
  color: var(--ipf-grey);
  font-size: 0.8rem;
}

.ipf-nav {
  min-height: 58px;
}

.ipf-menu {
  width: 100%;
  justify-content: space-between;
  gap: 2px;
}

.ipf-menu > a {
  padding-inline: clamp(9px, 0.85vw, 18px);
  white-space: nowrap;
}

.ipf-topic-bar {
  color: #dce8f6;
  background: #001128;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ipf-topic-links {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ipf-topic-links span {
  color: #75a8da;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ipf-topic-links a {
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 650;
}

.ipf-topic-links a:hover {
  color: #fff;
}

.ipf-portal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 142px) 0;
  color: #fff;
  background: linear-gradient(112deg, #001128 0%, #002355 62%, #0d467c 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ipf-portal-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 52%;
  opacity: .18;
  background: repeating-linear-gradient(128deg, transparent 0 34px, #75a8da 35px 36px);
}

.ipf-portal-hero .ipf-shell {
  position: relative;
  z-index: 1;
}

.ipf-portal-hero h1 {
  max-width: 980px;
  margin: 12px 0 24px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.ipf-portal-hero .ipf-lead {
  max-width: 850px;
  color: #dce8f6;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.ipf-portal-kpis {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--ipf-line);
}

.ipf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ipf-kpi-grid > * {
  min-height: 130px;
  padding: 28px clamp(18px, 2.4vw, 42px);
  border-right: 1px solid var(--ipf-line);
}

.ipf-kpi-grid > *:last-child { border-right: 0; }
.ipf-kpi-grid strong { display: block; color: var(--ipf-red); font-size: 1.8rem; line-height: 1; }
.ipf-kpi-grid span { display: block; margin-top: 10px; color: var(--ipf-ink); font-weight: 700; }

.ipf-portal-grid,
.ipf-institution-grid,
.ipf-election-portal-grid,
.ipf-participation-grid,
.ipf-control-grid,
.ipf-deep-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ipf-portal-card,
.ipf-institution-grid article,
.ipf-election-portal-grid article,
.ipf-participation-grid article,
.ipf-control-grid article,
.ipf-deep-cards article {
  position: relative;
  min-height: 260px;
  padding: clamp(26px, 3vw, 46px);
  background: #fff;
  border: 1px solid var(--ipf-line);
  box-shadow: 0 16px 42px rgba(0,17,40,.07);
}

.ipf-portal-card:hover { transform: translateY(-4px); border-color: var(--ipf-blue); }
.ipf-portal-card-visual {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.ipf-portal-card-visual > img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  transition: transform .35s ease;
}

.ipf-portal-card-visual:hover > img,
.ipf-portal-card-visual:focus > img { transform: scale(1.035); }

.ipf-portal-card-visual > :not(img) { margin-right: clamp(22px, 3vw, 34px); margin-left: clamp(22px, 3vw, 34px); }
.ipf-portal-card-visual > .ipf-card-number { margin-top: 22px; }
.ipf-portal-card-visual > .ipf-text-link { margin-top: auto; margin-bottom: 25px; }

.ipf-card-with-media { overflow: hidden; padding: 0; }
.ipf-card-with-media > img { display: block; width: 100%; height: 128px; object-fit: cover; }
.ipf-card-with-media > h3,
.ipf-card-with-media > p,
.ipf-card-with-media > a { margin-right: 22px; margin-left: 22px; }
.ipf-card-with-media > h3 { margin-top: 20px; }
.ipf-card-with-media > a { margin-bottom: 22px; }
.ipf-portal-card.ipf-portal-card-visual h3 { margin-top: 14px; }
.ipf-card.ipf-card-with-media > h3 { margin-top: 20px; }

.ipf-editorial-photo {
  margin: 0 0 30px;
  overflow: hidden;
  background: #061d36;
  border: 1px solid rgba(155, 199, 239, .36);
  box-shadow: 0 18px 42px rgba(0, 17, 40, .18);
}

.ipf-editorial-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ipf-editorial-photo figcaption { padding: 12px 16px; color: #cbdced; font-size: .73rem; line-height: 1.5; }

.ipf-formations-directory { background: linear-gradient(180deg, #f7faff 0%, #fff 100%); }
.ipf-formations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.ipf-formation-card { min-width: 0; display: flex; flex-direction: column; min-height: 178px; padding: 13px; color: #0b2745; background: #fff; border: 1px solid #dce6ee; box-shadow: 0 8px 20px rgba(0, 17, 40, .05); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ipf-formation-card:hover, .ipf-formation-card:focus { color: #0b2745; border-color: #6b9dca; box-shadow: 0 14px 30px rgba(0, 35, 85, .13); transform: translateY(-2px); }
.ipf-formation-logo { height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; padding: 8px; background: var(--ipf-formation-bg, #fff); border: 1px solid rgba(0, 35, 85, .09); }
.ipf-formation-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ipf-formation-card strong { font-size: .82rem; line-height: 1.25; }
.ipf-formation-card small { margin-top: 3px; color: #61778d; font-size: .67rem; font-weight: 750; }
.ipf-formation-link { margin-top: auto; padding-top: 9px; color: var(--ipf-red); font-size: .65rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.ipf-directory-note { max-width: 900px; margin: 20px 0 0; color: #647a90; font-size: .75rem; line-height: 1.55; }

.ipf-visual-atlas { background: #fff; }
.ipf-visual-atlas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ipf-visual-atlas-grid figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #061d36; box-shadow: 0 16px 36px rgba(0, 17, 40, .13); }
.ipf-visual-atlas-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.ipf-visual-atlas-grid figure:hover img { transform: scale(1.035); }
.ipf-visual-atlas-grid figcaption { min-height: 92px; padding: 16px; color: #dce8f6; background: #082d52; }
.ipf-visual-atlas-grid strong, .ipf-visual-atlas-grid span { display: block; }
.ipf-visual-atlas-grid strong { margin-bottom: 5px; color: #fff; font-size: .93rem; }
.ipf-visual-atlas-grid span { font-size: .73rem; line-height: 1.45; }

.ipf-related-guides {
  border-top: 1px solid var(--ipf-line);
}

.ipf-related-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ipf-related-guide {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ipf-line);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 17, 40, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ipf-related-guide:hover,
.ipf-related-guide:focus-within {
  transform: translateY(-3px);
  border-color: #9ebbd8;
  box-shadow: 0 20px 42px rgba(0, 17, 40, 0.14);
}

.ipf-related-guide > a {
  display: grid;
  height: 100%;
  grid-template-rows: 170px 1fr;
}

.ipf-related-guide img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.ipf-related-guide-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.ipf-related-guide-copy strong,
.ipf-related-guide-copy small,
.ipf-related-guide-copy b {
  display: block;
}

.ipf-related-guide-copy strong {
  color: var(--ipf-ink);
  font-size: 1.15rem;
  line-height: 1.22;
}

.ipf-related-guide-copy small {
  margin-top: 9px;
  color: #53667e;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ipf-related-guide-copy b {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ipf-red);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ipf-related-guide-copy b i {
  margin-left: 6px;
}

@media (max-width: 900px) {
  .ipf-related-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ipf-visual-atlas-grid,
  .ipf-related-guides-grid { grid-template-columns: 1fr; }
  .ipf-related-guide > a { grid-template-rows: 160px 1fr; }
  .ipf-related-guide img { height: 160px; }
}

.ipf-media-library-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.ipf-media-library-card { overflow: hidden; background: #fff; border: 1px solid #dce6ee; box-shadow: 0 12px 30px rgba(0, 17, 40, .08); }
.ipf-media-library-card figure { position: relative; margin: 0; background: #0a3158; }
.ipf-media-library-card figure > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ipf-media-library-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 10px; padding: 10px 13px; color: #fff; background: rgba(0, 17, 40, .86); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ipf-media-library-card figcaption b { color: #ffd9dd; }
.ipf-media-library-card > div { display: flex; flex-direction: column; min-height: 220px; padding: 19px; }
.ipf-media-library-card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.ipf-media-library-card p { margin: 0; color: #526b83; font-size: .8rem; line-height: 1.5; }
.ipf-media-library-card small { display: block; margin-top: 10px; color: #667e95; font-size: .68rem; line-height: 1.45; }
.ipf-media-library-card a { margin-top: auto; padding-top: 14px; color: var(--ipf-red); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.ipf-media-principles { display: grid; gap: 1px; background: rgba(155, 199, 239, .25); }
.ipf-media-principles article { padding: 17px; background: rgba(255, 255, 255, .07); }
.ipf-media-principles strong, .ipf-media-principles span { display: block; }
.ipf-media-principles strong { color: #fff; font-size: .9rem; }
.ipf-media-principles span { margin-top: 4px; color: #cbdced; font-size: .76rem; line-height: 1.5; }
.ipf-portal-card h3,
.ipf-institution-grid h3,
.ipf-deep-cards h3 { margin: 14px 0 10px; font-size: clamp(1.28rem, 1.8vw, 1.75rem); }
.ipf-card-number,
.ipf-deep-cards article > span { color: var(--ipf-red); font-size: .78rem; font-weight: 850; letter-spacing: .14em; }

.ipf-editorial-split,
.ipf-editorial-intro,
.ipf-agency-bridge-inner,
.ipf-source-panel {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.35fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
}

.ipf-democracy-map,
.ipf-law-steps,
.ipf-vote-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--ipf-line);
  border: 1px solid var(--ipf-line);
}

.ipf-democracy-map article,
.ipf-law-steps article,
.ipf-vote-steps article {
  min-height: 210px;
  padding: 30px;
  background: #fff;
}

.ipf-section-ink {
  color: #dce8f6;
  background: linear-gradient(120deg, #001128, #002355);
}

.ipf-section-ink h2,
.ipf-section-ink h3,
.ipf-section-ink .ipf-lead { color: #fff; }
.ipf-section-ink .ipf-control-grid article { color: #dce8f6; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }

.ipf-inline-actions,
.ipf-agency-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.ipf-text-link { color: var(--ipf-red); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.ipf-center-action { margin-top: 36px; text-align: center; }

.ipf-citizen-section,
.ipf-digital-politics,
.ipf-territory-feature,
.ipf-agency-bridge { padding-block: clamp(70px, 8vw, 125px); }

.ipf-topic-index,
.ipf-territory-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ipf-topic-index a,
.ipf-territory-levels > * {
  padding: 24px;
  background: #fff;
  border-top: 4px solid var(--ipf-red);
  box-shadow: 0 12px 32px rgba(0,17,40,.07);
}

.ipf-agency-bridge { color: #fff; background: #001128; }
.ipf-agency-bridge h2 { color: #fff; }

.ipf-page-hero-deep { min-height: 500px; }
.ipf-page-hero-deep .ipf-page-hero-content { max-width: 970px; }
.ipf-page-hero-deep h1 { font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: 1; }

.ipf-page-index {
  position: sticky;
  top: 196px;
  z-index: 20;
  color: #dce8f6;
  background: #001128;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.ipf-page-index .ipf-shell {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.ipf-page-index .ipf-shell::-webkit-scrollbar { display: none; }
.ipf-page-index strong,
.ipf-page-index .ipf-shell > span {
  flex: 0 0 auto;
  color: #75a8da;
  font-weight: 800;
  white-space: nowrap;
}
.ipf-page-index a { flex: 0 0 auto; font-size: .84rem; font-weight: 700; }

.ipf-chamber-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ipf-chamber-grid article {
  padding: clamp(30px, 4vw, 58px);
  background: #fff;
  border: 1px solid var(--ipf-line);
}

.ipf-chamber-label { color: var(--ipf-red); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.ipf-source-panel {
  padding: clamp(32px, 5vw, 68px);
  background: #fff;
  border-left: 5px solid var(--ipf-red);
  box-shadow: 0 18px 48px rgba(0,17,40,.09);
}

.ipf-source-panel ul { margin: 0; padding: 0; list-style: none; }
.ipf-source-panel li { border-bottom: 1px solid var(--ipf-line); }
.ipf-source-panel a { display: block; padding: 16px 0; color: var(--ipf-ink); font-weight: 720; }

.ipf-verification-list {
  margin: 32px 0 0;
  padding: 0;
  counter-reset: verify;
  list-style: none;
  border-top: 1px solid var(--ipf-line);
}

.ipf-verification-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ipf-line);
}

.ipf-verification-list strong { color: var(--ipf-red); font-size: 1.15rem; }

.ipf-footer-cta { padding-block: 28px; background: #c50000; }
.ipf-footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-block: 70px 56px; }
.ipf-footer-brand { display: block; max-width: 420px; margin-bottom: 24px; padding: 16px; background: #fff; }
.ipf-footer-brand img { display: block; width: 100%; height: auto; }
.ipf-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.ipf-footer ul { margin: 0; padding: 0; list-style: none; }
.ipf-footer li { margin: 9px 0; }
.ipf-footer-grid p,
.ipf-footer li,
.ipf-footer-bottom { color: #c9d8e8; font-size: .84rem; }
.ipf-affiliation-row { display: grid; grid-template-columns: 52px 52px 1fr; gap: 10px; align-items: center; margin-top: 22px; }
.ipf-affiliation-row img { border-radius: 50%; background: rgba(255,255,255,.08); }
.ipf-affiliation-row span { color: #9fb5cc; font-size: .72rem; line-height: 1.35; }
.ipf-footer-bottom { display: flex; justify-content: space-between; gap: 28px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.13); }

@media (max-width: 1180px) {
  .ipf-menu { justify-content: flex-start; overflow-x: auto; }
  .ipf-menu > a { flex: 0 0 auto; }
  .ipf-page-index { top: 196px; }
  .ipf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipf-portal-grid,
  .ipf-institution-grid,
  .ipf-election-portal-grid,
  .ipf-participation-grid,
  .ipf-deep-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .ipf-shell,
  .row,
  .ipf-header-shell,
  .ipf-footer-shell { width: min(100% - 32px, 1500px); }
  .ipf-brand-portal { width: min(500px, 65vw); flex-basis: 500px; }
  .ipf-brand-portal img { width: 100%; height: auto; max-height: 70px; }
  .ipf-topic-links { justify-content: flex-start; }
  .ipf-page-index { position: static; }
  .ipf-kpi-grid,
  .ipf-democracy-map,
  .ipf-law-steps,
  .ipf-vote-steps,
  .ipf-topic-index,
  .ipf-territory-levels { grid-template-columns: repeat(2, 1fr); }
  .ipf-editorial-split,
  .ipf-editorial-intro,
  .ipf-agency-bridge-inner,
  .ipf-source-panel { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .ipf-shell,
  .row,
  .ipf-header-shell,
  .ipf-footer-shell { width: min(100% - 24px, 1500px); }
  .top_header_wrap,
  .ipf-topbar { min-height: 76px; }
  .ipf-brand-portal { width: calc(100% - 48px); max-width: 430px; flex-basis: auto; }
  .ipf-brand-portal img { max-height: 58px; }
  .ipf-topic-bar { display: none; }
  .ipf-page-hero-deep { min-height: 410px; }
  .ipf-page-hero-deep h1 { font-size: 2.35rem; }
  .ipf-kpi-grid,
  .ipf-portal-grid,
  .ipf-institution-grid,
  .ipf-election-portal-grid,
  .ipf-participation-grid,
  .ipf-control-grid,
  .ipf-deep-cards,
  .ipf-chamber-grid,
  .ipf-democracy-map,
  .ipf-law-steps,
  .ipf-vote-steps,
  .ipf-topic-index,
  .ipf-territory-levels,
  .ipf-footer-grid { grid-template-columns: 1fr; }
  .ipf-kpi-grid > * { border-right: 0; border-bottom: 1px solid var(--ipf-line); }
  .ipf-verification-list li { grid-template-columns: 1fr; gap: 5px; }
  .ipf-footer-bottom { flex-direction: column; }
}
:root {
  --ipf-shadow-soft: 0 16px 42px rgba(0, 17, 40, 0.1);
  --ipf-shadow-strong: 0 26px 68px rgba(0, 17, 40, 0.18);
}

body.ipf-page {
  background: #fbfdff;
}

.ipf-shell,
.row {
  width: min(1540px, calc(100% - 52px));
}

.ipf-header {
  border-bottom: 1px solid rgba(0, 35, 85, 0.08);
  box-shadow: 0 10px 28px rgba(0, 17, 40, 0.08);
}

.ipf-brand img {
  width: 64px;
  height: 48px;
}

.ipf-menu a {
  padding: 0 16px;
}

.ipf-page-hero {
  min-height: 350px;
}

.ipf-page-hero::before,
.ipf-hero::before,
.hero_section::before {
  background:
    linear-gradient(90deg, rgba(0, 17, 40, 0.97), rgba(0, 35, 85, 0.82) 48%, rgba(0, 35, 85, 0.2)),
    linear-gradient(0deg, rgba(0, 17, 40, 0.74), rgba(0, 17, 40, 0.04) 54%);
}

.ipf-section,
.home_latest_news,
.home_image_gallery {
  padding-top: 82px;
  padding-bottom: 82px;
}

.ipf-section-soft,
.home_latest_news {
  background: #f5f8fc;
}

.ipf-section-heading {
  max-width: 920px;
}

.ipf-section-heading.center {
  max-width: 940px;
}

.ipf-card,
.event_entry_wrap,
.ipf-contact-card {
  border-color: rgba(0, 35, 85, 0.12);
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-card:hover {
  box-shadow: var(--ipf-shadow-strong);
}

.ipf-media-frame,
.home_bio_visual {
  border-width: 8px;
  box-shadow: var(--ipf-shadow-strong);
}

.ipf-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 22px;
}

.ipf-gallery-card {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0, 35, 85, 0.12);
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-gallery-card span {
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  background: rgba(0, 17, 40, 0.9);
}

.ipf-portfolio-wrap {
  overflow: visible;
}

.ipf-active-realisations .ipf-shell,
.ipf-portfolio-wrap .ipf-shell {
  width: min(1620px, calc(100% - 52px));
}

.ipf-portfolio-grid,
.portfolio.ipf-portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.ipf-portfolio-grid .portfolio-item,
.portfolio.ipf-portfolio-grid .portfolio-item {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid rgba(0, 35, 85, 0.14);
  background: #fff;
  box-shadow: var(--ipf-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ipf-portfolio-grid .portfolio-item:hover,
.portfolio.ipf-portfolio-grid .portfolio-item:hover {
  border-color: rgba(117, 168, 218, 0.68);
  box-shadow: var(--ipf-shadow-strong);
  transform: translateY(-4px);
}

.ipf-portfolio-grid .thumb,
.portfolio.ipf-portfolio-grid .thumb {
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid rgba(0, 35, 85, 0.1);
  background: linear-gradient(180deg, #ffffff, #f7fafe);
  box-shadow: none;
}

.ipf-portfolio-grid img,
.portfolio.ipf-portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.ipf-portfolio-grid .thumb:hover img,
.portfolio.ipf-portfolio-grid .thumb:hover img {
  transform: none;
}

.ipf-portfolio-grid figcaption,
.portfolio.ipf-portfolio-grid figcaption {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 15px 18px 16px;
  color: var(--ipf-ink);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ipf-active-realisations .ipf-portfolio-grid,
.ipf-active-realisations .portfolio.ipf-portfolio-grid {
  margin-top: 10px;
}

.ipf-active-realisations .ipf-section-heading.center .ipf-lead {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1180px) {
  .ipf-portfolio-grid,
  .portfolio.ipf-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ipf-shell,
  .row,
  .ipf-active-realisations .ipf-shell,
  .ipf-portfolio-wrap .ipf-shell {
    width: min(100% - 32px, 1540px);
  }

  .ipf-brand img {
    width: 56px;
    height: 42px;
  }

  .ipf-section,
  .home_latest_news,
  .home_image_gallery {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .ipf-gallery-grid,
  .ipf-portfolio-grid,
  .portfolio.ipf-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .ipf-portfolio-grid .thumb,
  .portfolio.ipf-portfolio-grid .thumb {
    aspect-ratio: 4 / 3;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .ipf-shell,
  .row,
  .ipf-active-realisations .ipf-shell,
  .ipf-portfolio-wrap .ipf-shell {
    width: min(100% - 24px, 1540px);
  }

  .ipf-portfolio-grid figcaption,
  .portfolio.ipf-portfolio-grid figcaption {
    min-height: auto;
    padding: 13px 14px;
    font-size: 0.78rem;
  }
}

.ipf-menu a {
  padding: 0 11px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.ipf-home-portal {
  border-top: 1px solid rgba(0, 35, 85, 0.08);
  border-bottom: 1px solid rgba(0, 35, 85, 0.08);
}

.ipf-portal-intro {
  align-items: stretch;
}

.ipf-resource-grid {
  display: grid;
  gap: 20px;
}

.ipf-resource-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ipf-resource-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ipf-resource-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(0, 35, 85, 0.12);
  background: #fff;
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-resource-card i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  background: var(--ipf-red);
  font-size: 1rem;
}

.ipf-resource-card h3 {
  margin-bottom: 10px;
  color: var(--ipf-ink);
  font-size: 1rem;
  line-height: 1.26;
}

.ipf-resource-card p {
  margin: 0;
  color: #52627a;
  font-size: 0.94rem;
}

.ipf-resource-grid-dark .ipf-resource-card {
  border-color: rgba(117, 168, 218, 0.3);
  background: rgba(0, 17, 40, 0.66);
  box-shadow: none;
}

.ipf-resource-grid-dark .ipf-resource-card h3,
.ipf-resource-grid-dark .ipf-resource-card p {
  color: #fff;
}

.ipf-resource-grid-dark .ipf-resource-card p {
  color: #dce8f6;
}

.ipf-timeline {
  counter-reset: ipftimeline;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.ipf-timeline article {
  position: relative;
  min-height: 250px;
  padding: 24px 20px 22px;
  border: 1px solid rgba(0, 35, 85, 0.14);
  background: #fff;
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-timeline span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--ipf-ink);
  font-weight: 900;
}

.ipf-timeline article:nth-child(2n) span {
  background: var(--ipf-red);
}

.ipf-timeline h3 {
  margin: 0 0 10px;
  color: var(--ipf-ink);
  font-size: 0.98rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.ipf-timeline p {
  margin: 0;
  color: #52627a;
  font-size: 0.92rem;
}

.ipf-portal-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ipf-portal-map a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(0, 35, 85, 0.14);
  color: var(--ipf-ink);
  background: #fff;
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-portal-map a:hover,
.ipf-portal-map a:focus {
  color: var(--ipf-ink);
  border-color: rgba(197, 0, 0, 0.4);
  box-shadow: var(--ipf-shadow-strong);
  transform: translateY(-3px);
}

.ipf-portal-map strong {
  display: block;
  color: var(--ipf-ink);
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.ipf-portal-map span {
  display: block;
  color: #536176;
  font-size: 0.93rem;
}

.ipf-count-badge {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  color: #fff;
  background: var(--ipf-night);
  box-shadow: var(--ipf-shadow-strong);
}

.ipf-count-badge strong {
  color: #fff;
  font-size: 4rem;
  line-height: 0.9;
  font-weight: 900;
}

.ipf-count-badge span {
  color: #dce8f6;
  font-size: 1rem;
  text-transform: uppercase;
}

.ipf-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
}

.ipf-alpha-nav a {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 35, 85, 0.16);
  color: var(--ipf-ink);
  background: #fff;
  font-weight: 900;
}

.ipf-alpha-nav a:hover,
.ipf-alpha-nav a:focus {
  color: #fff;
  background: var(--ipf-red);
}

.ipf-glossary-section {
  scroll-margin-top: 150px;
  margin-top: 38px;
}

.ipf-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.ipf-glossary-entry {
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(0, 35, 85, 0.12);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 17, 40, 0.07);
}

.ipf-glossary-entry span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  color: #fff;
  background: var(--ipf-ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ipf-glossary-entry:nth-child(3n) span {
  background: var(--ipf-red);
}

.ipf-glossary-entry h3 {
  margin: 0 0 9px;
  color: var(--ipf-ink);
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.ipf-glossary-entry p {
  margin: 0;
  color: #52627a;
  font-size: 0.91rem;
  line-height: 1.56;
}

@media (max-width: 1180px) {
  .ipf-resource-grid-4,
  .ipf-timeline,
  .ipf-portal-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-resource-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ipf-menu a {
    padding: 0 16px;
    font-size: 0.75rem;
  }

  .ipf-resource-grid-3,
  .ipf-resource-grid-4,
  .ipf-timeline,
  .ipf-portal-map,
  .ipf-glossary-grid {
    grid-template-columns: 1fr;
  }

  .ipf-timeline article,
  .ipf-portal-map a,
  .ipf-glossary-entry {
    min-height: auto;
  }

  .ipf-count-badge strong {
    font-size: 3rem;
  }
}
body.ipf-page {
  color: #102642;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

.ipf-shell,
.row {
  width: min(1580px, calc(100% - 56px));
}

.ipf-section h2,
.home_bio_title,
.entry-title,
.ipf-page-hero h1,
.hero_h1,
.ipf-hero h1 {
  font-weight: 760;
}

.ipf-section p,
.entry-content p,
.ipf-resource-card p,
.ipf-glossary-entry p {
  color: #43546d;
}

.ipf-eyebrow {
  letter-spacing: 0.1em;
}

.ipf-hero,
.hero_section {
  min-height: 680px;
  padding: 86px 0 82px;
}

.ipf-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.62fr);
  gap: 54px;
  align-items: center;
}

.ipf-hero-content {
  max-width: 880px;
}

.hero_h1,
.ipf-hero h1 {
  max-width: 860px;
  font-size: 4.35rem;
  line-height: 0.98;
}

.hero_h2,
.ipf-hero h2 {
  max-width: 760px;
  font-size: 1.52rem;
  line-height: 1.22;
  font-weight: 330;
}

.ipf-hero p {
  max-width: 720px;
  font-size: 1rem;
}

.ipf-hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 470px;
}

.ipf-hero-visual-image {
  overflow: hidden;
  border: 1px solid rgba(117, 168, 218, 0.36);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 82px rgba(0, 17, 40, 0.36);
}

.ipf-hero-visual-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ipf-hero-visual-card {
  width: calc(100% - 54px);
  margin: -54px auto 0;
  padding: 22px 24px;
  border-left: 4px solid var(--ipf-red);
  color: #fff;
  background: rgba(0, 17, 40, 0.9);
  box-shadow: 0 24px 60px rgba(0, 17, 40, 0.32);
}

.ipf-hero-visual-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ipf-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ipf-hero-visual-card strong {
  display: block;
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.ipf-hero-visual-card p {
  margin: 10px 0 0;
  color: #dce8f6;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ipf-hero-panel {
  max-width: 820px;
  margin-top: 32px;
}

.ipf-trust-item,
.ipf-hero-panel-grid div {
  min-height: 84px;
  padding: 15px;
}

.ipf-visual-showcase {
  background: #fff;
}

.ipf-showcase-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.ipf-showcase-grid figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 35, 85, 0.12);
  background: var(--ipf-night);
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-showcase-grid figure:nth-child(1) {
  min-height: 440px;
}

.ipf-showcase-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.92;
}

.ipf-showcase-grid figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  color: #fff;
  background: rgba(0, 17, 40, 0.86);
}

.ipf-showcase-grid figcaption strong,
.ipf-showcase-grid figcaption span {
  display: block;
}

.ipf-showcase-grid figcaption strong {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.ipf-showcase-grid figcaption span {
  margin-top: 5px;
  color: #dce8f6;
  font-size: 0.9rem;
}

.ipf-portal-map a,
.ipf-resource-card,
.ipf-timeline article,
.ipf-glossary-entry,
.ipf-portfolio-grid .portfolio-item,
.portfolio.ipf-portfolio-grid .portfolio-item {
  border-radius: 0;
}

.ipf-resource-card,
.ipf-portal-map a {
  padding: 26px;
}

.ipf-resource-card h3,
.ipf-portal-map strong,
.ipf-glossary-entry h3 {
  letter-spacing: 0.015em;
}

.ipf-media-frame-tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ipf-operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.ipf-operator-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(0, 35, 85, 0.12);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 17, 40, 0.07);
}

.ipf-operator-grid strong,
.ipf-operator-grid span {
  display: block;
}

.ipf-operator-grid strong {
  color: var(--ipf-ink);
  text-transform: uppercase;
}

.ipf-operator-grid span {
  margin-top: 7px;
  color: #536176;
  font-size: 0.92rem;
}

.ipf-glossary-guide {
  background: #fff;
}

.ipf-alpha-nav {
  position: sticky;
  top: 132px;
  z-index: 3;
  padding: 12px;
  border: 1px solid rgba(0, 35, 85, 0.1);
  background: rgba(245, 248, 252, 0.94);
  backdrop-filter: blur(8px);
}

.ipf-glossary-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.ipf-glossary-entry {
  min-height: 196px;
  padding: 22px;
}

.ipf-reference-spotlight {
  background: #fff;
}

.ipf-reference-collage {
  min-height: 450px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ipf-reference-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  padding: 16px;
  border: 1px solid rgba(0, 35, 85, 0.12);
  background: #fff;
  box-shadow: var(--ipf-shadow-soft);
}

.ipf-reference-collage img:first-child {
  grid-row: 1 / span 2;
}

.ipf-active-realisations .ipf-portfolio-grid,
.ipf-active-realisations .portfolio.ipf-portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 30px;
}

.ipf-portfolio-grid .thumb,
.portfolio.ipf-portfolio-grid .thumb {
  aspect-ratio: 16 / 10;
  padding: 22px;
}

.ipf-portfolio-grid figcaption,
.portfolio.ipf-portfolio-grid figcaption {
  min-height: 64px;
  font-size: 0.82rem;
}

.ipf-footer-grid {
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.05fr;
}

@media (max-width: 1280px) {
  .ipf-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.56fr);
    gap: 34px;
  }

  .hero_h1,
  .ipf-hero h1 {
    font-size: 3.75rem;
  }

  .ipf-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ipf-hero-layout,
  .ipf-showcase-grid,
  .ipf-operator-grid,
  .ipf-reference-collage,
  .ipf-footer-grid {
    grid-template-columns: 1fr;
  }

  .ipf-hero-visual {
    min-height: auto;
  }

  .ipf-hero-visual-card {
    width: calc(100% - 28px);
  }

  .ipf-showcase-grid figure,
  .ipf-showcase-grid figure:nth-child(1) {
    min-height: 320px;
  }

  .ipf-reference-collage img:first-child {
    grid-row: auto;
  }

  .ipf-alpha-nav {
    position: static;
  }
}

@media (max-width: 860px) {
  body.ipf-page {
    font-size: 15.5px;
  }

  .ipf-hero,
  .hero_section {
    min-height: auto;
    padding: 56px 0 54px;
  }

  .hero_h1,
  .ipf-hero h1 {
    font-size: 2.55rem;
    line-height: 1.02;
  }

  .hero_h2,
  .ipf-hero h2 {
    font-size: 1.08rem;
  }

  .ipf-hero p,
  .ipf-page-hero p,
  .ipf-lead {
    font-size: 0.98rem;
  }

  .ipf-hero-panel {
    padding: 12px;
  }

  .ipf-topbar {
    min-height: 68px;
  }

  .ipf-nav {
    min-height: 54px;
  }

  .ipf-menu {
    top: 122px;
    max-height: calc(100vh - 122px);
    overflow-y: auto;
  }

  .ipf-page-hero {
    min-height: auto;
    padding: 52px 0 46px;
  }

  .ipf-page-hero h1 {
    font-size: 2.08rem;
  }
}

@media (max-width: 560px) {
  .ipf-shell,
  .row,
  .ipf-active-realisations .ipf-shell,
  .ipf-portfolio-wrap .ipf-shell {
    width: min(100% - 22px, 1580px);
  }

  .ipf-brand img {
    width: 50px;
    height: 38px;
  }

  .ipf-menu-button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .hero_h1,
  .ipf-hero h1 {
    font-size: 2.05rem;
  }

  .ipf-section h2,
  .home_latest_news h2,
  .ipf-news-slider h3,
  .ipf-news-slider h4 {
    font-size: 1.45rem;
    line-height: 1.13;
  }

  .ipf-actions,
  .ipf-actions .ipf-button,
  .ipf-button,
  .button {
    width: 100%;
  }

  .ipf-hero-visual-image img,
  .ipf-showcase-grid img,
  .ipf-media-frame img {
    aspect-ratio: 4 / 3;
  }

  .ipf-hero-visual-card,
  .ipf-showcase-grid figcaption {
    position: static;
    width: 100%;
    margin: 0;
  }

  .ipf-showcase-grid figure {
    display: flex;
    flex-direction: column;
  }

  .ipf-showcase-grid img {
    height: auto;
  }

  .ipf-glossary-grid {
    grid-template-columns: 1fr;
  }

  .ipf-glossary-entry,
  .ipf-resource-card,
  .ipf-portal-map a,
  .ipf-operator-grid article {
    padding: 18px;
  }

  .ipf-active-realisations .ipf-portfolio-grid,
  .ipf-active-realisations .portfolio.ipf-portfolio-grid,
  .ipf-portfolio-grid,
  .portfolio.ipf-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 980px) {
  .ipf-hero-visual {
    display: none;
  }

  .ipf-hero,
  .hero_section {
    padding: 60px 0 58px;
  }
}

@media (max-width: 560px) {
  .ipf-hero-panel-grid div {
    min-height: auto;
    padding: 12px;
  }

  .ipf-hero-panel-grid strong {
    font-size: 1rem;
  }

  .ipf-hero-panel-grid span {
    font-size: 0.84rem;
  }
}
@media (max-width: 560px) {
  .ipf-hero,
  .hero_section {
    padding: 44px 0 46px;
  }

  .hero_rule,
  .ipf-hero hr,
  .ipf-page-hero hr {
    margin: 18px 0 18px;
  }

  .ipf-hero-panel {
    display: none;
  }
}
@media (max-width: 430px) {
  .ipf-hero,
  .hero_section {
    padding: 34px 0 36px;
  }

  .ipf-hero .ipf-eyebrow {
    font-size: 0.66rem;
    margin-bottom: 10px;
  }

  .ipf-hero h1 {
    font-size: 1.86rem;
    line-height: 1.02;
  }

  .ipf-hero h2 {
    font-size: 0.96rem;
    line-height: 1.34;
  }

  .ipf-hero hr,
  .ipf-page-hero hr {
    margin: 14px 0 14px;
  }

  .ipf-hero p {
    display: none;
  }

  .ipf-hero .ipf-actions {
    margin-top: 16px;
    gap: 8px;
  }

  .ipf-hero .ipf-actions .ipf-button {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.74rem;
  }

  .ipf-hero .ipf-actions .ipf-button:nth-child(3) {
    display: none;
  }
}
:root {
  --ipf-ink: #002355;
  --ipf-night: #001128;
  --ipf-blue: #75a8da;
  --ipf-red: #c50000;
  --ipf-black: #111722;
  --ipf-grey: #546174;
  --ipf-light: #f5f8fc;
  --ipf-line: #dce6f1;
  --ipf-paper: #ffffff;
  --ipf-shadow: 0 18px 44px rgba(0, 17, 40, 0.12);
  --ipf-shadow-strong: 0 24px 70px rgba(0, 17, 40, 0.18);
}

body.ipf-page {
  color: #172235;
  background: #fbfcfe;
  font-size: 15.25px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ipf-shell,
.row {
  width: min(1540px, calc(100% - 56px));
}

.ipf-header {
  box-shadow: 0 1px 0 rgba(0, 35, 85, 0.08), 0 14px 34px rgba(0, 17, 40, 0.08);
}

.top_header_wrap {
  min-height: 76px;
  background: #fff;
}

.ipf-topbar {
  min-height: 76px;
}

.ipf-brand img {
  width: 64px;
  height: 52px;
}

.ipf-brand strong {
  font-size: 0.98rem;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.ipf-brand em {
  color: #59687a;
  font-size: 0.76rem;
}

.ipf-topline strong {
  color: var(--ipf-ink);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0.075em;
}

.ipf-topline span {
  color: #66758a;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.bottom_header_wrap {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 35, 85, 0.08);
  border-bottom: 1px solid rgba(0, 35, 85, 0.1);
}

.ipf-menu a,
.bottom_nav a {
  color: #10294c;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.ipf-menu a:hover,
.ipf-menu a:focus,
.bottom_nav a:hover,
.bottom_nav a:focus,
.ipf-menu a.is-active,
.bottom_nav a.is-active {
  color: var(--ipf-ink);
  background: #eef5fc;
}

.ipf-nav-cta {
  background: var(--ipf-red) !important;
  color: #fff !important;
  border-color: var(--ipf-red) !important;
}

.ipf-nav-cta:hover,
.ipf-nav-cta:focus {
  background: #a90000 !important;
  color: #fff !important;
}

.ipf-hero::before,
.hero_section::before,
.ipf-page-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 17, 40, 0.86) 0%, rgba(0, 35, 85, 0.74) 44%, rgba(0, 35, 85, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 17, 40, 0.12), rgba(0, 17, 40, 0.56));
}

.ipf-hero,
.hero_section {
  min-height: 650px;
}

.ipf-hero h1,
.ipf-page-hero h1,
.hero_h1 {
  font-weight: 720;
  letter-spacing: 0;
}

.ipf-hero h1 {
  font-size: 3.95rem;
  line-height: 1.02;
}

.ipf-hero h2,
.ipf-page-hero p,
.ipf-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.ipf-hero .ipf-eyebrow,
.ipf-page-hero .ipf-eyebrow,
.hero_section .ipf-eyebrow {
  color: #b9d8f5;
  font-weight: 760;
}

.ipf-button {
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 17, 40, 0.12);
}

.ipf-button-primary,
.ipf-button-light {
  background: var(--ipf-red);
  border-color: var(--ipf-red);
  color: #fff;
}

.ipf-button-primary:hover,
.ipf-button-primary:focus,
.ipf-button-light:hover,
.ipf-button-light:focus {
  background: #a90000;
  border-color: #a90000;
  color: #fff;
}

.ipf-button-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ipf-ink);
  border-color: rgba(117, 168, 218, 0.58);
}

.ipf-card,
.ipf-portal-map a,
.ipf-resource-card,
.ipf-timeline article,
.ipf-glossary-entry,
.ipf-briefing-card,
.ipf-portfolio-grid .portfolio-item,
.portfolio.ipf-portfolio-grid .portfolio-item {
  border-radius: 4px;
  border-color: rgba(0, 35, 85, 0.12);
  box-shadow: 0 12px 32px rgba(0, 17, 40, 0.07);
}

.ipf-card:hover,
.ipf-portal-map a:hover,
.ipf-resource-card:hover,
.ipf-portfolio-grid .portfolio-item:hover,
.portfolio.ipf-portfolio-grid .portfolio-item:hover {
  border-color: rgba(117, 168, 218, 0.62);
  box-shadow: var(--ipf-shadow);
}

.ipf-section-soft,
.home_image_gallery {
  background: linear-gradient(180deg, #f7faff 0%, #eef4fa 100%);
}

.ipf-section-heading h2,
.ipf-rule-heading h2,
.home_bio_title,
.entry-title {
  color: var(--ipf-ink);
  font-weight: 720;
  letter-spacing: 0;
}

.ipf-eyebrow {
  color: var(--ipf-red);
  letter-spacing: 0.08em;
}

.ipf-hero-visual-image,
.ipf-reference-collage,
.ipf-media-frame,
.home_bio_visual,
.ipf-showcase-grid figure,
.ipf-gallery-card {
  border-radius: 4px;
}

.ipf-showcase-grid figcaption {
  background: rgba(0, 17, 40, 0.88);
  border-left: 3px solid var(--ipf-red);
}

.ipf-reference-collage img,
.ipf-showcase-grid img,
.ipf-gallery-card img {
  filter: saturate(0.96) contrast(1.02);
}

.ipf-footer {
  background: linear-gradient(180deg, #002355 0%, #001128 100%);
}

.ipf-footer-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.ipf-affiliation img {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(117, 168, 218, 0.28);
  border-radius: 50%;
}

@media (max-width: 980px) {
  .ipf-shell,
  .row {
    width: min(100% - 32px, 1540px);
  }

  .ipf-topbar {
    gap: 16px;
  }

  .ipf-brand img {
    width: 58px;
    height: 48px;
  }

  .ipf-hero,
  .hero_section {
    min-height: auto;
  }

  .ipf-hero h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 560px) {
  body.ipf-page {
    font-size: 14.75px;
  }

  .ipf-shell,
  .row {
    width: min(100% - 24px, 1540px);
  }

  .ipf-topline {
    display: none;
  }

  .ipf-brand strong {
    font-size: 0.84rem;
  }

  .ipf-brand em {
    font-size: 0.7rem;
  }

  .ipf-hero h1 {
    font-size: 2.05rem;
  }
}

.ipf-shell,
.row {
  width: min(1500px, calc(100% - 48px));
}

.ipf-header-shell {
  width: min(1750px, calc(100% - 48px));
}

.ipf-footer-shell {
  width: min(1350px, calc(100% - 48px));
}

.top_header_wrap,
.ipf-topbar {
  min-height: 82px;
}

.ipf-brand-portal {
  width: min(400px, 28vw);
  flex: 0 1 400px;
}

.ipf-brand-portal img,
.ipf-footer-brand img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ipf-brand-portal img {
  max-height: 50px;
  object-position: left center;
}

@media (max-width: 980px) {
  .ipf-shell,
  .row,
  .ipf-header-shell,
  .ipf-footer-shell {
    width: min(100% - 32px, 1500px);
  }

  .ipf-brand-portal {
    width: min(420px, 58vw);
    flex-basis: 420px;
  }

  .ipf-brand-portal img {
    width: 100%;
    height: auto;
    max-height: 58px;
  }
}

@media (max-width: 680px) {
  .ipf-shell,
  .row,
  .ipf-header-shell,
  .ipf-footer-shell {
    width: min(100% - 24px, 1500px);
  }

  .top_header_wrap,
  .ipf-topbar {
    min-height: 76px;
  }

  .ipf-brand-portal {
    width: calc(100% - 48px);
    max-width: 430px;
    flex-basis: auto;
  }

  .ipf-brand-portal img {
    max-height: 52px;
  }
}

.ipf-editorial-note {
  color: #31445c;
  background: #f4f7fb;
  border-bottom: 1px solid var(--ipf-line);
}

.ipf-breadcrumb {
  color: #53667e;
  background: #fff;
  border-bottom: 1px solid var(--ipf-line);
}

.ipf-breadcrumb ol {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  list-style: none;
  font-size: 0.75rem;
}

.ipf-breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #9aabc0;
}

.ipf-breadcrumb a {
  color: var(--ipf-ink);
  font-weight: 700;
}

.ipf-editorial-note .ipf-shell {
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 10px;
  font-size: 0.78rem;
}

.ipf-editorial-note strong {
  color: var(--ipf-ink);
}

.ipf-editorial-note a {
  margin-left: auto;
  color: var(--ipf-red);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ipf-quick-answer {
  position: relative;
  color: var(--ipf-ink);
  background: #fff;
  border-bottom: 1px solid var(--ipf-line);
}

.ipf-quick-answer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--ipf-red);
}

.ipf-quick-answer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(30px, 4vw, 52px);
}

.ipf-quick-answer .ipf-eyebrow {
  margin-bottom: 8px;
}

.ipf-quick-answer h2 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.16;
}

.ipf-quick-answer-copy > p:last-child {
  max-width: 820px;
  margin: 0;
  color: #465a72;
  font-size: 1rem;
}

.ipf-quick-answer-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipf-quick-answer-points li {
  position: relative;
  min-width: 0;
  padding: 11px 12px 11px 30px;
  color: #203b5c;
  background: #f3f7fb;
  border-left: 2px solid #75a8da;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.42;
}

.ipf-quick-answer-points li::before {
  content: "\2713";
  position: absolute;
  left: 11px;
  top: 11px;
  color: var(--ipf-red);
  font-weight: 900;
}

.ipf-editorial-source-panel {
  margin-top: 36px;
}

.ipf-portal-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.28rem, 1.8vw, 1.75rem);
}

@media (max-width: 680px) {
  .ipf-editorial-note .ipf-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 12px;
  }

  .ipf-editorial-note a {
    margin-left: 0;
  }

  .ipf-quick-answer-inner,
  .ipf-quick-answer-points {
    grid-template-columns: 1fr;
  }

  .ipf-quick-answer-inner {
    gap: 22px;
  }

  .ipf-quick-answer h2 {
    font-size: 1.45rem;
  }
}

.ipf-legal-section .ipf-section-heading {
  max-width: 920px;
  margin-bottom: 38px;
}

.ipf-legal-section .ipf-legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.ipf-legal-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(26px, 3vw, 44px);
  border-top: 4px solid var(--ipf-red);
}

.ipf-legal-card:nth-child(2) {
  border-top-color: var(--ipf-blue);
}

.ipf-legal-card:nth-child(3) {
  border-top-color: var(--ipf-ink);
}

.ipf-legal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--ipf-ink);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.ipf-legal-card h2 {
  margin-top: 0;
}

.ipf-legal-email {
  color: var(--ipf-red);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ipf-legal-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 6vw, 96px);
}

.ipf-legal-content-grid article {
  padding-left: 24px;
  border-left: 3px solid var(--ipf-blue);
}

.ipf-legal-content-grid article:last-child {
  border-left-color: var(--ipf-red);
}

.ipf-legal-disclaimer-section {
  padding-block: clamp(38px, 5vw, 66px);
  color: #fff;
  background: var(--ipf-ink);
}

.ipf-legal-disclaimer,
.ipf-ai-disclaimer {
  border: 1px solid rgba(117, 168, 218, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.ipf-legal-disclaimer {
  padding: clamp(24px, 3vw, 38px);
}

.ipf-legal-disclaimer span,
.ipf-ai-disclaimer span {
  display: grid;
  gap: 7px;
}

.ipf-legal-disclaimer strong,
.ipf-ai-disclaimer strong {
  color: #fff;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.35;
}

.ipf-legal-disclaimer small,
.ipf-ai-disclaimer small {
  color: #d5e2f1;
  font-size: 0.82rem;
  line-height: 1.55;
}

.ipf-ai-disclaimer {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--ipf-blue);
}

@media (max-width: 980px) {
  .ipf-legal-section .ipf-legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ipf-legal-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ipf-legal-card {
    padding: 24px 20px;
  }

  .ipf-ai-disclaimer {
    padding: 16px;
  }
}

.ipf-section-ink p,
.ipf-section-dark p,
.ipf-section-image p,
.ipf-agency-bridge p,
.ipf-cta-band p {
  color: #dce8f6;
}

.ipf-section.ipf-section-ink h2,
.ipf-section.ipf-section-dark h2,
.ipf-section.ipf-section-image h2,
.ipf-section.ipf-agency-bridge h2 {
  color: #fff;
}

.ipf-section-ink .ipf-section-heading .ipf-eyebrow,
.ipf-section-image .ipf-eyebrow,
.ipf-agency-bridge .ipf-eyebrow {
  color: #9bc7ef;
}

.ipf-institution-grid article {
  min-height: 0;
  padding: clamp(24px, 2.4vw, 36px);
}

.ipf-section-ink .ipf-institution-grid article {
  color: var(--ipf-ink);
  background: #fff;
}

.ipf-section-ink .ipf-institution-grid article > span {
  color: var(--ipf-red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ipf-section-ink .ipf-institution-grid article h3 {
  margin: 12px 0 10px;
  color: var(--ipf-ink);
}

.ipf-section-ink .ipf-institution-grid article p {
  margin: 0;
  color: #43546d;
}

.ipf-topic-index article,
.ipf-election-portal-grid > a,
.ipf-territory-levels > * {
  color: var(--ipf-ink);
  background: #fff;
  border: 1px solid rgba(0, 35, 85, 0.12);
  border-top: 4px solid var(--ipf-red);
  box-shadow: 0 12px 32px rgba(0, 17, 40, 0.08);
}

.ipf-topic-index article {
  min-height: 0;
  padding: 24px;
}

.ipf-topic-index article h3,
.ipf-election-portal-grid > a h3 {
  color: var(--ipf-ink);
}

.ipf-topic-index article p,
.ipf-election-portal-grid > a p {
  color: #43546d;
}

.ipf-election-portal-grid > a {
  min-height: 0;
  padding: clamp(24px, 2.6vw, 38px);
}

.ipf-election-portal-grid > a > span {
  color: var(--ipf-red);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ipf-territory-levels > * {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 22px;
  color: var(--ipf-ink);
  font-size: 1rem;
  font-weight: 800;
}

.ipf-agency-bridge-inner {
  align-items: center;
}

.ipf-data-observatory {
  position: relative;
  overflow: hidden;
  color: #10243b;
  background: #f3f7fb;
}

.ipf-data-observatory::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--ipf-blue) 0 34%, #fff 34% 66%, var(--ipf-red) 66%);
}

.ipf-data-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 18px;
}

.ipf-data-facts article {
  min-width: 0;
  padding: 25px;
  background: #fff;
  border: 1px solid #d8e2ed;
  border-top: 4px solid var(--ipf-blue);
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-data-facts article:last-child {
  border-top-color: var(--ipf-red);
}

.ipf-data-facts strong {
  display: block;
  color: var(--ipf-blue);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 900;
  line-height: 1;
}

.ipf-data-facts h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
}

.ipf-data-facts p {
  min-height: 42px;
  margin: 0 0 14px;
  color: #50647a;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ipf-data-facts a,
.ipf-participation-note a {
  color: #315d88;
  font-size: 0.76rem;
  font-weight: 750;
}

.ipf-data-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.ipf-territory-data {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  color: #fff;
  background: #0a3158;
  border: 1px solid #214d77;
}

.ipf-territory-data-title,
.ipf-territory-data a {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.ipf-territory-data-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #061f3a;
}

.ipf-territory-data-title span {
  color: #9bc7ef;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ipf-territory-data-title strong {
  margin-top: 5px;
  color: #fff;
  font-size: 1rem;
}

.ipf-territory-data a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}

.ipf-territory-data a:hover,
.ipf-territory-data a:focus {
  background: #104577;
}

.ipf-territory-data a strong {
  color: #fff;
  font-size: 1.35rem;
}

.ipf-territory-data a span {
  font-size: 0.76rem;
  font-weight: 750;
}

.ipf-territory-data small {
  color: #a9c2d9;
  font-size: 0.66rem;
  line-height: 1.4;
}

.ipf-administrative-map {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid #d8e2ed;
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-administrative-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce5ee;
}

.ipf-administrative-map-head .ipf-eyebrow {
  margin-bottom: 4px;
}

.ipf-administrative-map-head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.ipf-administrative-map-head > a {
  color: #315d88;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.ipf-epci-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  background: #ccd9e5;
  border: 1px solid #ccd9e5;
}

.ipf-epci-breakdown a {
  min-width: 0;
  padding: 16px;
  color: #173b5c;
  background: #eef4f8;
}

.ipf-epci-breakdown a:hover,
.ipf-epci-breakdown a:focus {
  background: #e3eef6;
}

.ipf-epci-breakdown strong,
.ipf-epci-breakdown span {
  display: block;
}

.ipf-epci-breakdown strong {
  color: var(--ipf-blue);
  font-size: 1.35rem;
}

.ipf-epci-breakdown span {
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 750;
}

.ipf-region-matrix {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ipf-region-matrix > div {
  min-width: 0;
  padding: 13px;
  background: #f7f9fb;
  border-left: 3px solid #5d8eb9;
}

.ipf-region-matrix span,
.ipf-region-matrix strong,
.ipf-region-matrix small {
  display: block;
}

.ipf-region-matrix span {
  color: var(--ipf-red);
  font-size: 0.59rem;
  font-weight: 850;
}

.ipf-region-matrix strong {
  min-height: 32px;
  margin-top: 4px;
  overflow: hidden;
  color: #173b5c;
  font-size: 0.68rem;
  line-height: 1.35;
}

.ipf-region-matrix small {
  margin-top: 6px;
  color: #718497;
  font-size: 0.6rem;
}

.ipf-demography-data {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 3fr);
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e2ed;
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-demography-intro {
  padding: 25px;
  color: #fff;
  background: linear-gradient(145deg, #061f3a, #0d4778);
}

.ipf-demography-intro .ipf-eyebrow {
  margin-bottom: 5px;
  color: #9bc7ef;
}

.ipf-demography-intro h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.ipf-demography-intro p:last-child {
  margin: 12px 0 0;
  color: #c7d8e8;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ipf-demography-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ipf-demography-grid a {
  min-width: 0;
  padding: 18px;
  color: #173b5c;
  border-right: 1px solid #e0e8f0;
  border-bottom: 1px solid #e0e8f0;
}

.ipf-demography-grid a:hover,
.ipf-demography-grid a:focus {
  background: #f0f6fa;
}

.ipf-demography-grid strong,
.ipf-demography-grid span,
.ipf-demography-grid small {
  display: block;
}

.ipf-demography-grid strong {
  color: var(--ipf-blue);
  font-size: 1.22rem;
}

.ipf-demography-grid span {
  margin-top: 4px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.35;
}

.ipf-demography-grid small {
  margin-top: 5px;
  color: #6e8193;
  font-size: 0.64rem;
  line-height: 1.4;
}

.ipf-turnout-trends {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid #d8e2ed;
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-turnout-trends-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dce5ee;
}

.ipf-turnout-trends-heading .ipf-eyebrow {
  margin-bottom: 4px;
}

.ipf-turnout-trends-heading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.ipf-turnout-trends-heading > p {
  max-width: 500px;
  margin: 0;
  color: #63778b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ipf-turnout-trends-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.ipf-turnout-trends-grid article {
  min-width: 0;
  padding: 18px;
  background: #f5f8fb;
  border: 1px solid #dfe7ef;
}

.ipf-turnout-trends-grid header {
  min-height: 65px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ipf-turnout-trends-grid h4,
.ipf-turnout-trends-grid header span {
  display: block;
}

.ipf-turnout-trends-grid h4 {
  margin: 0;
  font-size: 0.94rem;
}

.ipf-turnout-trends-grid header span {
  margin-top: 3px;
  color: #6d8093;
  font-size: 0.68rem;
}

.ipf-turnout-trends-grid header > strong {
  max-width: 95px;
  color: var(--ipf-red);
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: right;
}

.ipf-mini-bars {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  padding-top: 8px;
}

.ipf-mini-bars a {
  height: 100%;
  display: grid;
  grid-template-rows: 30px 1fr 20px;
  gap: 4px;
  color: #173b5c;
  text-align: center;
}

.ipf-mini-bar-value {
  align-self: end;
  font-size: 0.61rem;
  font-weight: 800;
  white-space: nowrap;
}

.ipf-mini-bar-track {
  position: relative;
  overflow: hidden;
  background: #e1e9f0;
  border-bottom: 2px solid #a5b7c8;
}

.ipf-mini-bar-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  background: linear-gradient(180deg, #4a91c7, #0b4f8a);
  transition: filter 0.2s ease;
}

.ipf-mini-bars a:hover .ipf-mini-bar-track i,
.ipf-mini-bars a:focus .ipf-mini-bar-track i {
  filter: brightness(1.18);
}

.ipf-mini-bars b {
  font-size: 0.67rem;
}

.ipf-data-panel {
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid #d8e2ed;
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-data-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 19px;
  border-bottom: 1px solid #dce5ee;
}

.ipf-data-panel-heading .ipf-eyebrow {
  margin-bottom: 3px;
}

.ipf-data-panel-heading h3,
.ipf-open-data h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.ipf-data-panel-heading > span {
  color: #697d91;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.ipf-participation-list article {
  padding: 18px 0;
  border-bottom: 1px solid #e3eaf1;
}

.ipf-participation-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ipf-participation-label,
.ipf-participation-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ipf-participation-label strong,
.ipf-participation-label span {
  display: block;
}

.ipf-participation-label strong {
  font-size: 0.94rem;
}

.ipf-participation-label span,
.ipf-participation-note {
  color: #697d91;
  font-size: 0.73rem;
}

.ipf-participation-label b {
  color: var(--ipf-blue);
  font-size: 1.1rem;
  white-space: nowrap;
}

.ipf-participation-track {
  height: 9px;
  margin: 10px 0 8px;
  overflow: hidden;
  background: #e4ebf2;
}

.ipf-participation-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0b4f8a, #4086bd);
}

.ipf-election-calendar {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
  counter-reset: calendar;
}

.ipf-election-calendar li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid #e3eaf1;
}

.ipf-election-calendar li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--ipf-red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #f5dfe2;
}

.ipf-election-calendar li:last-child {
  border-bottom: 0;
}

.ipf-election-calendar li > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ipf-election-calendar time {
  color: var(--ipf-red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ipf-election-calendar li > div span {
  padding: 4px 7px;
  color: #536b82;
  background: #edf3f8;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.ipf-election-calendar h4 {
  margin: 5px 0 3px;
  font-size: 1rem;
}

.ipf-election-calendar h4 a {
  color: #10243b;
}

.ipf-election-calendar p {
  margin: 0;
  color: #5d7185;
  font-size: 0.8rem;
  line-height: 1.5;
}

.ipf-data-deep-dive {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.ipf-electorate-panel,
.ipf-2026-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid #d8e2ed;
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-data-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.ipf-data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ipf-data-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ipf-data-table th,
.ipf-data-table td {
  padding: 13px 11px;
  border-bottom: 1px solid #e0e8f0;
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.ipf-data-table thead th {
  color: #61758a;
  background: #f0f5f9;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ipf-data-table th:first-child {
  text-align: left;
}

.ipf-data-table tbody th a,
.ipf-data-table tbody th small {
  display: block;
}

.ipf-data-table tbody th a {
  color: #123f6a;
}

.ipf-data-table tbody th small {
  margin-top: 3px;
  color: #73869a;
  font-weight: 500;
}

.ipf-data-table tbody tr:last-child th,
.ipf-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.ipf-2026-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  background: #dbe5ee;
}

.ipf-2026-grid a {
  min-width: 0;
  padding: 16px;
  color: #163550;
  background: #f5f8fb;
}

.ipf-2026-grid a:hover,
.ipf-2026-grid a:focus {
  background: #eaf2f8;
}

.ipf-2026-grid strong,
.ipf-2026-grid span,
.ipf-2026-grid small {
  display: block;
}

.ipf-2026-grid strong {
  color: var(--ipf-red);
  font-size: 1.12rem;
}

.ipf-2026-grid span {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.ipf-2026-grid small {
  margin-top: 5px;
  color: #6a7e92;
  font-size: 0.64rem;
  line-height: 1.4;
}

.ipf-seat-data {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid #d8e2ed;
  box-shadow: 0 14px 34px rgba(7, 35, 65, 0.07);
}

.ipf-seat-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 20px;
}

.ipf-seat-data-grid article {
  min-width: 0;
  padding: 20px;
  background: #f5f8fb;
  border: 1px solid #dce5ed;
}

.ipf-seat-data-grid header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dbe4ec;
}

.ipf-seat-data-grid h4 {
  margin: 0;
  font-size: 0.98rem;
}

.ipf-seat-data-grid header p {
  margin: 4px 0 0;
  color: #667a8e;
  font-size: 0.7rem;
}

.ipf-seat-data-grid header a {
  color: #315d88;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.ipf-seat-list {
  padding-top: 8px;
}

.ipf-seat-row {
  display: grid;
  grid-template-columns: minmax(135px, 1.15fr) minmax(80px, 1fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 30px;
}

.ipf-seat-row > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ipf-seat-row span {
  overflow: hidden;
  font-size: 0.69rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ipf-seat-row small {
  color: #77899b;
  font-size: 0.58rem;
}

.ipf-seat-track {
  height: 7px;
  overflow: hidden;
  background: #dce6ee;
}

.ipf-seat-track i {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, #0b4f8a, #4a91c7);
}

.ipf-seat-row > strong {
  color: #173b5c;
  font-size: 0.76rem;
  text-align: right;
}

.ipf-current-chambers {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  color: #fff;
  background: linear-gradient(135deg, #061d36, #0a3158);
  border: 1px solid #214d77;
  box-shadow: 0 16px 40px rgba(7, 35, 65, 0.16);
}

.ipf-current-chambers .ipf-turnout-trends-heading {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.ipf-current-chambers .ipf-eyebrow {
  color: #9bc7ef;
}

.ipf-current-chambers .ipf-turnout-trends-heading h3 {
  color: #fff;
}

.ipf-current-chambers .ipf-turnout-trends-heading > p {
  color: #bed1e2;
}

.ipf-current-chambers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  margin-top: 20px;
}

.ipf-current-chambers-grid article {
  min-width: 0;
  padding: 21px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(155, 199, 239, 0.26);
}

.ipf-current-chambers-grid header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ipf-current-chambers-grid h4 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
}

.ipf-current-chambers-grid header p,
.ipf-current-chambers-grid header span {
  margin: 4px 0 0;
  color: #abc2d8;
  font-size: 0.68rem;
}

.ipf-current-chambers-grid header > div:last-child {
  text-align: right;
}

.ipf-current-chambers-grid header strong,
.ipf-current-chambers-grid header span {
  display: block;
  white-space: nowrap;
}

.ipf-current-chambers-grid header strong {
  color: #fff;
  font-size: 0.78rem;
}

.ipf-chamber-list {
  padding: 10px 0 12px;
}

.ipf-chamber-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(80px, 0.8fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 31px;
}

.ipf-chamber-row > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ipf-chamber-row span {
  overflow: hidden;
  color: #eef6fd;
  font-size: 0.69rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ipf-chamber-row small {
  color: #91adc7;
  font-size: 0.57rem;
}

.ipf-chamber-row .ipf-seat-track {
  background: rgba(255, 255, 255, 0.13);
}

.ipf-chamber-row .ipf-seat-track i {
  background: linear-gradient(90deg, #7eb9e7, #d7ecfb);
}

.ipf-chamber-row > strong {
  color: #fff;
  font-size: 0.75rem;
  text-align: right;
}

.ipf-chamber-source {
  color: #b9d9f3;
  font-size: 0.7rem;
  font-weight: 800;
}

.ipf-chamber-source:hover,
.ipf-chamber-source:focus {
  color: #fff;
}

.ipf-open-data {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #173f68;
  box-shadow: 0 16px 40px rgba(7, 35, 65, 0.13);
}

.ipf-open-data-intro,
.ipf-open-data > a {
  min-width: 0;
  padding: 24px;
  background: #082d52;
}

.ipf-open-data-intro {
  background: #061e38;
}

.ipf-open-data .ipf-eyebrow {
  margin-bottom: 5px;
  color: #9bc7ef;
}

.ipf-open-data h3,
.ipf-open-data strong {
  color: #fff;
}

.ipf-open-data p {
  margin: 9px 0 0;
  color: #c8d7e6;
  font-size: 0.8rem;
  line-height: 1.55;
}

.ipf-open-data > a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.ipf-open-data > a:hover,
.ipf-open-data > a:focus {
  background: #0d3d6c;
}

.ipf-open-data > a > span {
  color: #8ebce8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ipf-open-data > a > strong {
  font-size: 0.93rem;
}

.ipf-open-data > a > p {
  flex: 1;
  margin: 0;
}

.ipf-open-data > a > b {
  color: #fff;
  font-size: 0.73rem;
}

.ipf-data-method {
  margin: 17px 0 0;
  color: #607489;
  font-size: 0.75rem;
  line-height: 1.6;
}

.ipf-data-method span {
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .ipf-data-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-open-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-open-data-intro {
    grid-column: 1 / -1;
  }

  .ipf-territory-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-territory-data-title {
    grid-column: 1 / -1;
  }

  .ipf-data-deep-dive {
    grid-template-columns: 1fr;
  }

  .ipf-turnout-trends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-region-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ipf-demography-data,
  .ipf-seat-data-grid,
  .ipf-current-chambers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .ipf-data-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ipf-data-facts,
  .ipf-open-data,
  .ipf-territory-data,
  .ipf-2026-grid {
    grid-template-columns: 1fr;
  }

  .ipf-open-data-intro,
  .ipf-territory-data-title {
    grid-column: auto;
  }

  .ipf-data-facts p {
    min-height: 0;
  }

  .ipf-data-panel-heading,
  .ipf-turnout-trends-heading,
  .ipf-administrative-map-head,
  .ipf-participation-note,
  .ipf-election-calendar li > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ipf-turnout-trends-grid {
    grid-template-columns: 1fr;
  }

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

  .ipf-epci-breakdown,
  .ipf-region-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipf-seat-data-grid header {
    flex-direction: column;
  }

  .ipf-current-chambers-grid header {
    flex-direction: column;
  }

  .ipf-current-chambers-grid header > div:last-child {
    text-align: left;
  }

  .ipf-seat-row {
    grid-template-columns: minmax(115px, 1.2fr) minmax(65px, 0.8fr) 28px;
    gap: 7px;
  }

  .ipf-chamber-row {
    grid-template-columns: minmax(125px, 1.25fr) minmax(55px, 0.75fr) 28px;
    gap: 7px;
  }
}

.ipf-agency-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.ipf-agency-links a {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(155, 199, 239, 0.3);
  border-top: 3px solid var(--ipf-red);
}

.ipf-agency-links a:hover,
.ipf-agency-links a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #9bc7ef;
  transform: translateY(-2px);
}

.ipf-agency-links strong,
.ipf-agency-links span {
  display: block;
}

.ipf-agency-links strong {
  color: #fff;
  font-size: 1rem;
}

.ipf-agency-links span {
  color: #cbdced;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ipf-footer-brand {
  max-width: 500px;
  padding: 0;
  background: transparent;
}

.ipf-footer-brand img {
  width: 100%;
  max-height: 84px;
  object-position: left center;
}

.ipf-brand-portal > svg,
.ipf-footer-brand > svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.ipf-visual-showcase .ipf-section-heading {
  max-width: 980px;
  margin-bottom: 38px;
}

@media (max-width: 980px) {
  .ipf-agency-links {
    grid-template-columns: 1fr;
  }

  .ipf-agency-links a {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .ipf-territory-levels > * {
    min-height: 70px;
    padding: 18px;
  }
}

.ipf-candidate-spotlight {
  position: relative;
  overflow: hidden;
  padding-block: clamp(34px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(0, 17, 40, 0.98), rgba(0, 35, 85, 0.94)),
    var(--ipf-night);
  border-top: 1px solid rgba(117, 168, 218, 0.34);
  border-bottom: 1px solid rgba(117, 168, 218, 0.34);
}

.ipf-candidate-spotlight::after {
  content: "";
  position: absolute;
  top: -90px;
  right: 7%;
  width: 230px;
  height: 230px;
  border: 42px solid rgba(197, 0, 0, 0.2);
  transform: rotate(45deg);
}

.ipf-candidate-spotlight-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}

.ipf-candidate-spotlight-mark {
  width: clamp(74px, 8vw, 108px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ipf-red);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 14px 14px 0 rgba(117, 168, 218, 0.18);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ipf-candidate-spotlight .ipf-eyebrow {
  margin-bottom: 6px;
  color: #9bc7ef;
}

.ipf-candidate-spotlight h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
}

.ipf-candidate-spotlight p:not(.ipf-eyebrow) {
  margin: 0;
  color: #dce8f6;
}

.ipf-candidate-spotlight small {
  display: block;
  margin-top: 8px;
  color: #abc0d7;
  font-size: 0.74rem;
  line-height: 1.5;
}

.ipf-candidate-spotlight .ipf-button {
  white-space: nowrap;
}

.ipf-candidate-spotlight .ipf-button i {
  margin-left: 8px;
}

.ipf-footer-reference {
  border-top: 1px solid rgba(155, 199, 239, 0.18);
  border-bottom: 1px solid rgba(155, 199, 239, 0.18);
  color: #cbdced;
}

.ipf-footer-reference .ipf-footer-shell {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ipf-footer-reference span {
  color: #9fb5cc;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ipf-footer-reference a {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.ipf-footer-reference a:hover,
.ipf-footer-reference a:focus {
  color: #9bc7ef;
}

.ipf-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.ipf-topic-links {
  justify-content: flex-start;
}

.home_events_wrap .ipf-section-heading h2,
.home_events_wrap h2 {
  color: #fff;
}

@media (max-width: 900px) {
  .ipf-candidate-spotlight-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ipf-candidate-spotlight .ipf-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .ipf-footer-reference .ipf-footer-shell {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 16px;
  }

  .ipf-candidate-spotlight-inner {
    grid-template-columns: 1fr;
  }

  .ipf-candidate-spotlight-mark {
    width: 72px;
  }

  .ipf-candidate-spotlight .ipf-button {
    grid-column: 1;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}
