:root {
  --background: #f5f8fa;
  --foreground: #082033;
  --muted: #607181;
  --border: #dbe5eb;
  --card: #ffffff;
  --primary: #0b3d63;
  --primary-dark: #062a46;
  --navy: #05243d;
  --aqua: #2db8c5;
  --aqua-strong: #1f9fac;
  --aqua-soft: #e8f7f8;
  --shadow-card: 0 4px 20px -4px rgba(8, 32, 51, 0.12);
  --shadow-elevated: 0 16px 42px -14px rgba(8, 32, 51, 0.32);
  --radius: 8px;
  --shell: min(1180px, calc(100vw - 40px));
  --motion-fast: 160ms;
  --motion-normal: 240ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  letter-spacing: 0;
}

body {
  margin: 0;
  line-height: 1.55;
  background: var(--background);
}

body.drawer-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

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

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

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button, input {
  font: inherit;
}

button, a, [role="button"] {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.header-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-family: "Archivo", "Public Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.05;
  color: var(--foreground);
}

.brand small {
  display: block;
  font-size: 10px;
  color: #506375;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: center;
}

.desktop-nav a {
  font-size: 13px;
  font-weight: 700;
  color: #536879;
  padding: 12px 10px;
  border-radius: 6px;
  transition: color var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--aqua-strong);
  background: var(--aqua-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  line-height: 0;
  padding: 0;
  transition: background var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}

.icon-button svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--aqua-strong);
  background: var(--aqua-soft);
}

.cert-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  font-size: 13px;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}

.button:hover,
.cert-link:hover {
  transform: translateY(-1px);
}

.cert-link,
.button.aqua {
  background: linear-gradient(to bottom, #45cdd6, #1f9fac);
  color: white;
  box-shadow: 0 8px 22px -12px rgba(31, 159, 172, 0.9);
}

.button.primary {
  background: linear-gradient(to bottom, #144c77, #062a46);
  color: white;
}

.button.outline {
  border-color: rgba(45, 184, 197, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.button.outline:hover {
  border-color: var(--aqua);
  color: var(--aqua-strong);
  background: rgba(45, 184, 197, 0.1);
}

.menu-button,
.hamburger {
  display: none;
}

.menu-button svg,
.hamburger svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

.header-search {
  border-top: 1px solid var(--border);
  background: white;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
}

.header-search form,
.search-form,
.footer-newsletter form {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="search"],
input[type="email"] {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--foreground);
  background: white;
}

.header-search input,
.search-form input {
  flex: 1 1 auto;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 36, 61, 0.42);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  z-index: 90;
  background: white;
  box-shadow: -18px 0 42px -24px rgba(5, 36, 61, 0.5);
  transform: translateX(100%);
  transition: transform var(--motion-normal) var(--ease-out);
  padding: 16px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer nav {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.mobile-drawer nav a:not(.button) {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--primary);
  font-weight: 800;
}

.mobile-drawer nav a:not(.button):hover,
.mobile-drawer nav a:not(.button):focus-visible {
  color: var(--aqua-strong);
  background: var(--aqua-soft);
}

.archive-hero,
.search-hero {
  background: linear-gradient(135deg, rgba(6, 42, 70, 0.94), rgba(8, 83, 102, 0.88)), url("../reference/01-image-generic-microplastic-particles-suspended-in-water.webp") center / cover;
  color: white;
}

.archive-hero {
  padding: 88px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
}

h1, h2, h3 {
  font-family: "Archivo", "Public Sans", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  text-transform: uppercase;
}

h3 {
  font-size: 16px;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

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

.feature-card,
.post-card,
.sidebar-panel,
.empty-state {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.feature-card {
  overflow: hidden;
}

.feature-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}

.feature-media img,
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card > div {
  padding: 22px;
}

.feature-card h2 {
  font-size: 24px;
}

.feature-card p,
.post-card p,
.single-header p,
.empty-state p {
  color: var(--muted);
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--primary);
  color: white;
}

.evidence-strip div {
  padding: 24px 16px;
  text-align: center;
}

.evidence-strip strong {
  display: block;
  color: var(--aqua);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.evidence-strip span {
  display: block;
  margin: 8px auto 0;
  max-width: 210px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.archive-section,
.related {
  padding: 80px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.post-card {
  overflow: hidden;
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal) var(--ease-out);
}

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

.post-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-body {
  padding: 22px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #718393;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.badge {
  color: var(--aqua-strong);
  text-transform: uppercase;
}

.post-card h2 {
  font-size: 20px;
  line-height: 1.12;
}

.post-card h2 a,
.post-card p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.post-card h2 a {
  -webkit-line-clamp: 2;
}

.post-card p {
  -webkit-line-clamp: 3;
  margin: 12px 0 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aqua-strong);
  font-weight: 900;
  margin-top: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 900;
}

.pagination .is-current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .page-next {
  padding: 0 16px;
  gap: 8px;
}

.search-hero {
  padding: 86px 0 64px;
  text-align: center;
}

.search-form {
  margin-top: 28px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  padding: 10px;
  border-radius: var(--radius);
}

.empty-state {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}

.empty-state > svg,
.not-found svg {
  color: var(--aqua-strong);
  margin: 0 auto 18px;
  width: 44px;
  height: 44px;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
  padding: 72px 0;
}

.single-article {
  min-width: 0;
}

.single-header {
  max-width: 880px;
}

.single-header h1 {
  color: var(--primary-dark);
}

.single-header p {
  font-size: 19px;
  margin-top: 18px;
}

.single-media {
  --single-featured-source-width: 1920px;
  margin: 34px 0;
}

.single-media img {
  width: min(100%, var(--single-featured-source-width), 1120px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.single-media.is-compact img {
  width: min(100%, var(--single-featured-source-width), 620px);
}

.single-media figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.prose {
  max-width: 820px;
  font-size: 18px;
}

.prose h2 {
  font-size: 28px;
  margin-top: 34px;
}

.prose h3 {
  font-size: 20px;
  margin-top: 24px;
}

.prose p,
.prose ul {
  margin-top: 16px;
  color: #304657;
}

.prose ul {
  padding-left: 24px;
  list-style: disc;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

caption {
  text-align: left;
  padding: 14px 16px;
  font-weight: 900;
}

th, td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--primary);
}

.single-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.sidebar-panel {
  padding: 22px;
}

.sidebar-panel h2 {
  font-size: 18px;
}

.sidebar-panel a:not(.button) {
  display: block;
  margin-top: 12px;
  color: var(--aqua-strong);
  font-weight: 800;
}

.aqua-panel {
  background: linear-gradient(180deg, #effbfc, white);
}

.not-found {
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(180deg, white, var(--aqua-soft));
}

.site-footer {
  background: var(--navy);
  color: white;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: var(--shell);
  margin: 0 auto;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.footer-newsletter h2 {
  font-size: 20px;
}

.footer-newsletter p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.74);
}

.footer-newsletter input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: white;
}

.newsletter-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.newsletter-toast {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--aqua-strong);
  background: white;
  color: var(--foreground);
  box-shadow: var(--shadow-elevated);
  transform: translateY(0);
  opacity: 1;
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.newsletter-toast.is-error {
  border-left-color: #c94a4a;
}

.newsletter-toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.newsletter-toast strong {
  font-family: "Archivo","Public Sans",system-ui,sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.newsletter-toast span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 42px;
  padding: 56px 0 36px;
}

.footer-grid .brand strong,
.footer-grid .brand small {
  color: white;
}

.footer-grid p,
.footer-grid a,
.footer-grid span,
.copyright {
  color: rgba(255,255,255,.7);
}

.footer-grid nav,
.footer-brand {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-desktop-links {
  display: grid;
  gap: 9px;
}

.footer-mobile-select,
.mobile-socials {
  display: none;
}

.footer-grid h3 {
  text-transform: uppercase;
  color: var(--aqua);
  font-size: 13px;
  margin-bottom: 4px;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--aqua);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--aqua);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

.footer-grid a:focus-visible {
  color: var(--aqua);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.socials a {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: rgba(255,255,255,.75);
}

.socials a svg {
  width: 28px;
  height: 28px;
}

.socials a svg.social-linkedin {
  fill: currentColor;
  stroke: none;
}

.socials a svg.social-mail {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
}

.copyright {
  width: var(--shell);
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .desktop-nav,
  .cert-link {
    display: none;
  }
  .menu-button,
  .hamburger {
    display: inline-flex;
  }
  .hero-grid,
  .single-layout,
  .footer-newsletter,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .single-sidebar {
    position: static;
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100vw - 28px, 1180px);
  }
  .header-shell {
    min-height: 58px;
  }
  .brand strong {
    font-size: 12px;
  }
  .brand small {
    display: none;
  }
  .archive-hero {
    padding: 56px 0;
  }
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 26px;
  }
  .hero-copy,
  .single-header p,
  .prose {
    font-size: 16px;
  }
  .hero-actions,
  .search-form,
  .header-search form,
  .footer-newsletter form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .evidence-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .archive-section,
  .related {
    padding: 52px 0;
  }
  .empty-state {
    padding: 28px 18px;
  }
  .single-layout {
    padding: 48px 0;
  }
  .post-media {
    aspect-ratio: 16 / 9;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .footer-grid {
    gap: 22px;
    justify-items: center;
    padding: 44px 0 28px;
    text-align: center;
  }
  .footer-brand {
    justify-items: center;
    text-align: center;
  }
  .footer-brand .brand {
    justify-content: center;
  }
  .footer-brand p {
    max-width: 34ch;
    margin: 0 auto;
  }
  .footer-grid nav {
    width: 100%;
    justify-items: center;
  }
  .footer-grid nav h3,
  .footer-desktop-links,
  .footer-grid .footer-policy {
    display: none;
  }
  .footer-mobile-select {
    display: block;
    width: min(100%, 340px);
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: white;
    padding: 0 44px 0 16px;
    font-weight: 800;
    font-size: 16px;
  }
  .footer-mobile-select option {
    color: var(--foreground);
    background: white;
  }
  .mobile-socials {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .mobile-socials .socials {
    justify-content: center;
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 30px;
    height: 30px;
  }
  .icon-button {
    width: 40px;
    height: 40px;
  }
  .menu-button svg,
  .hamburger svg {
    width: 24px;
    height: 24px;
  }
  .mobile-drawer {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* WP template guardrails: accessibility, performance and pagination */
.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: #ffffff;
    color: #111111;
    outline: 3px solid currentColor;
}

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.footer-brand > img {
    height: auto;
}

.drawer__links .menu {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer__links .menu-item {
    margin: 0;
    list-style: none;
}

.pagination,
.pagination.wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span {
    min-height: 44px;
    padding-inline: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination a:focus,
.pagination a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.pagination .page-link .inline-icon {
    filter: brightness(0) invert(1);
}

.pagination .page-link:hover .inline-icon,
.pagination .page-link[aria-current="page"] .inline-icon {
    filter: none;
}

.pagination .page-link--prev .inline-icon {
    transform: rotate(180deg);
}

.post-card__image img,
.post-card__thumb,
.featured-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-cover {
    margin: 1em 40px;
}

.article-cover .article-image__media {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: cover;
}

.search-layout--without-taxonomy {
    grid-template-columns: minmax(0, 1fr);
}

.search-layout--without-taxonomy > :last-child {
    width: min(100%, 920px);
    margin-inline: auto;
}

@media (max-width: 820px) {
    .quick-actions[data-taxonomy-limit-justification] .button {
        min-height: 56px;
        padding-inline: 8px;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
