:root {
  --cyan: #009ee3;
  --yellow: #ffed00;
  --magenta: #e5007d;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e1e8;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --deep: #082235;
  --teal: #00a99d;
  --shadow: 0 22px 48px rgba(17, 24, 39, 0.12);
  color-scheme: light;
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-bar {
  background: var(--yellow);
  color: #000;
  font-size: 0.86rem;
  font-weight: 800;
}

.top-bar-inner {
  width: min(1040px, calc(100% - 2rem));
  min-height: 2.05rem;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.15rem;
}

.top-bar a {
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.search-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.search-top-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 6rem;
  margin: 0;
  padding: 0.7rem max(1rem, calc((100vw - 1040px) / 2));
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: clamp(8.8rem, 15vw, 10.5rem);
  height: auto;
}

.brand-local {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0;
  background: transparent;
  color: #000;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.55rem);
  font-size: 1.05rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 0.45rem 0;
  text-decoration: none;
  color: var(--deep);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.18rem;
  height: 0.18rem;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--yellow);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 1.1rem;
  height: 0.12rem;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 25rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
  background: linear-gradient(125deg, var(--cyan), var(--teal));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.7rem, 8vw, 6.5rem) 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--magenta);
  font-size: 0.77rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  max-width: 100%;
  padding: 0.22em 0.7em 0.28em;
  background: var(--yellow);
  color: #000;
  border-radius: 8px;
  transform: rotate(-2.8deg);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h4 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-content > p {
  max-width: 760px;
  margin: 2rem auto 0;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.12;
}

.button-primary {
  background: var(--magenta);
  color: var(--paper);
}

.button-secondary {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-actions {
  justify-content: center;
}

.hero .button-secondary {
  color: #fff;
}

.side-actions {
  position: fixed;
  left: 0.5rem;
  top: 44vh;
  z-index: 12;
  display: grid;
  gap: 0.55rem;
}

.side-actions a {
  display: grid;
  place-items: center;
  width: 4.5rem;
  min-height: 4.5rem;
  padding: 0.5rem;
  background: var(--magenta);
  color: var(--paper);
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.search-section {
  min-height: calc(100vh - 12rem);
  background: var(--soft);
}

.search-section h1 {
  display: inline;
  max-width: none;
  margin: 0;
  background: linear-gradient(to top, var(--yellow) 32%, transparent 32%);
  color: #000;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.archive__filter-form {
  width: min(1040px, 100%);
  margin: 0 auto 1.3rem;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.05fr) auto;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.archive__filter-form__input,
.archive__filter-form__select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c8ced6;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.archive__filter-form__submit {
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--paper);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.search-results {
  width: min(1040px, 100%);
  margin: 0 auto;
  font-size: 1.05rem;
}

.search-results > p {
  margin: 0;
}

.search-results-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-result-card {
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.search-result-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.search-result-card h2 a {
  color: var(--ink);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.18rem;
  text-underline-offset: 0.22rem;
}

.search-result-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper);
}

.intro-item {
  min-height: 9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
}

.intro-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.intro-item strong {
  display: block;
  max-width: 28rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.16;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 5rem);
}

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

.section-heading {
  width: min(1040px, 100%);
  margin: 0 auto 2.25rem;
}

.section-heading h2 {
  display: inline;
  background: linear-gradient(to top, var(--yellow) 32%, transparent 32%);
}

.section-heading > p:not(.eyebrow) {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.news-section {
  background: #e9e9e9;
}

.news-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  min-height: 23rem;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--paper);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-card:nth-child(3n + 1) {
  border-top: 0.42rem solid var(--cyan);
}

.news-card:nth-child(3n + 2) {
  border-top: 0.42rem solid var(--yellow);
}

.news-card:nth-child(3n) {
  border-top: 0.42rem solid var(--magenta);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-meta time {
  color: var(--deep);
}

.news-card h3 {
  min-height: 3rem;
}

.news-card p {
  margin: 0.85rem 0 1.2rem;
  color: var(--muted);
}

.news-card a {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.65rem 1.15rem;
  background: var(--magenta);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
}

.mandates-section {
  background: var(--paper);
}

.mandate-group {
  width: min(1040px, 100%);
  margin: 0 auto 2.4rem;
}

.mandate-factbox {
  width: min(1040px, 100%);
  margin: 0 auto 2.4rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 158, 227, 0.13), rgba(255, 237, 0, 0.24));
  border: 1px solid var(--line);
  border-left: 0.5rem solid var(--magenta);
  border-radius: 10px;
}

.mandate-factbox h3 {
  color: #000;
}

.mandate-factbox p:not(.role) {
  max-width: 840px;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.mandate-group > h3 {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--yellow);
  color: #000;
  border-radius: 6px;
  transform: rotate(-1.4deg);
}

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mandate-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.mandate-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.mandate-card img,
.mandate-photo-placeholder {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 10px;
  object-fit: cover;
}

.mandate-photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--yellow);
  font-size: 2.2rem;
  font-weight: 950;
}

.mandate-copy {
  min-width: 0;
}

.mandate-copy p:not(.role) {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.mandate-copy a,
.mandate-note {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--deep);
  font-weight: 900;
}

.mandate-note {
  color: var(--magenta);
}

.source-note {
  width: min(1040px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.topic-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.topic-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-card:nth-child(2) {
  border-top: 0.45rem solid var(--yellow);
}

.topic-card:nth-child(3) {
  border-top: 0.45rem solid var(--cyan);
}

.topic-card:nth-child(4) {
  border-top: 0.45rem solid var(--magenta);
}

.topic-number {
  margin-bottom: auto;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
}

.topic-card h3 {
  margin-top: 2rem;
}

.topic-card p,
.event-item p,
.person-card address,
.contact-panel p,
.site-footer p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split .section-heading {
  margin: 0;
}

.event-list {
  display: grid;
  gap: 0.85rem;
}

.event-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.event-item time {
  color: var(--magenta);
  font-weight: 950;
}

.event-accent {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}

.event-accent p {
  color: rgba(255, 255, 255, 0.76);
}

.section-cyan {
  background: var(--cyan);
  color: var(--ink);
}

.section-cyan .section-heading h2 {
  color: #000;
}

.section-cyan .eyebrow,
.section-cyan .role {
  color: var(--magenta);
}

.people-grid {
  width: min(1020px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.person-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.person-initials {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--magenta);
  font-weight: 950;
}

.role {
  margin: 0 0 0.25rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

address {
  margin-top: 0.75rem;
  font-style: normal;
}

address a {
  color: var(--deep);
  font-weight: 800;
}

.contact {
  background:
    linear-gradient(90deg, rgba(255, 237, 0, 0.24), rgba(0, 158, 227, 0.16)),
    var(--paper);
}

.contact-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact .button-secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: var(--deep);
  color: var(--paper);
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  font-weight: 800;
}

.footer-links a,
.credit a {
  color: var(--yellow);
}

.credit {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

.legal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 5vw, 5rem) 4rem;
  background: var(--paper);
}

.legal details {
  width: min(540px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.legal summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--deep);
  font-weight: 900;
}

.legal-content {
  padding: 0 1.1rem 1.1rem;
}

.legal-content p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.legal-content a {
  color: var(--deep);
  font-weight: 800;
}

@media (max-width: 920px) {
  .top-bar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    padding: 0.35rem 0;
  }

  .site-header {
    min-height: 5.4rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand img {
    width: 7.6rem;
  }

  .brand-local {
    font-size: 1.25rem;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 24rem;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 34, 53, 0.92), rgba(8, 34, 53, 0.28) 72%),
      linear-gradient(90deg, rgba(8, 34, 53, 0.6), rgba(8, 34, 53, 0.12));
  }

  .intro,
  .topic-grid,
  .news-grid,
  .mandate-grid,
  .people-grid,
  .legal,
  .contact-panel,
  .site-footer,
  .split {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 14rem;
  }

  .contact-actions,
  .footer-links {
    justify-content: flex-start;
  }

  .archive__filter-form {
    grid-template-columns: 1fr;
  }

  .side-actions {
    display: none;
  }
}

@media (max-width: 580px) {
  .site-header {
    min-height: 4.9rem;
    padding: 0.65rem 0.9rem;
  }

  .brand img {
    width: 6.45rem;
  }

  .brand-local {
    font-size: 1.05rem;
  }

  .hero-content {
    width: min(100% - 1.5rem, 760px);
    padding: 3rem 0 3.4rem;
  }

  h1 {
    font-size: 2.08rem;
  }

  h1 span {
    padding-inline: 0.45em;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 3.3rem 0.9rem;
  }

  .event-item,
  .mandate-card,
  .person-card {
    grid-template-columns: 1fr;
  }

  .mandate-card img,
  .mandate-photo-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
