:root {
  --green: #80bf28;
  --green-dark: #5f9418;
  --green-soft: #eef8df;
  --blue: #268fc9;
  --blue-dark: #1473a7;
  --blue-soft: #eaf5fb;
  --ink: #22242a;
  --muted: #6d7079;
  --line: #dfe4e8;
  --surface: #ffffff;
  --page: #f6f7f9;
  --shadow: 0 18px 45px rgba(25, 51, 72, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Lato", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 228, 232, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero-inner,
.overview-inner,
.library-inner,
.footer-inner,
.footer-bottom,
.support-callout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.brand-copy span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: #4e5057;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-nav a:hover {
  color: var(--blue);
}

.header-nav .portal-link {
  padding: 11px 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(38, 143, 201, 0.18);
}

.header-nav .portal-link:hover {
  color: #fff;
  background: var(--blue-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(116deg, rgba(239, 249, 224, 0.96), rgba(239, 248, 252, 0.96)),
    #f1f8ea;
}

.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -140px;
  width: 460px;
  height: 460px;
  border: 46px solid rgba(38, 143, 201, 0.09);
  border-radius: 50%;
}

.hero-shape {
  position: absolute;
  border-radius: 999px 999px 80px 999px;
  pointer-events: none;
}

.hero-shape-one {
  top: -130px;
  right: 15%;
  width: 320px;
  height: 320px;
  background: rgba(128, 191, 40, 0.1);
  transform: rotate(24deg);
}

.hero-shape-two {
  left: -110px;
  bottom: -170px;
  width: 300px;
  height: 300px;
  background: rgba(38, 143, 201, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 500px;
  padding: 78px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
  gap: 84px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.hero h1,
.section-heading h2,
.support-callout h2 {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6.2vw, 76px);
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  color: var(--green);
}

.hero-intro {
  max-width: 660px;
  margin: 24px 0 30px;
  color: #4a4e55;
  font-size: 20px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(38, 143, 201, 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.hero-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  padding: 36px;
  color: #fff;
  background: var(--blue);
  border-radius: 110px 110px 24px 110px;
  box-shadow: 0 28px 65px rgba(38, 143, 201, 0.24);
}

.panel-kicker {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-number {
  margin: 16px 0 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.panel-label {
  max-width: 270px;
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.panel-rule {
  width: 72px;
  height: 4px;
  margin: 26px 0 20px;
  background: #b5dc64;
  border-radius: 9px;
}

.panel-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.92;
}

.overview {
  position: relative;
  z-index: 4;
  margin-top: -34px;
}

.overview-inner {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid rgba(223, 228, 232, 0.84);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 5px 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  color: var(--blue);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 27px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.library {
  padding: 96px 0 92px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.75fr);
  gap: 56px;
  align-items: end;
}

.section-heading h2,
.support-callout h2 {
  font-size: clamp(34px, 4.4vw, 50px);
  letter-spacing: -0.035em;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.filter-panel {
  margin-top: 34px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(330px, 1.7fr) minmax(220px, 1fr) minmax(190px, 0.85fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(28, 52, 72, 0.06);
}

.filter-panel label,
.sort-field label {
  display: block;
  margin: 0 0 7px;
  color: #565a62;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-control {
  position: relative;
}

.search-control span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-53%) rotate(-14deg);
}

.search-control input,
.select-field select,
.sort-field select {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #d9dfe4;
  border-radius: 9px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-control input {
  padding: 0 14px 0 47px;
}

.select-field select,
.sort-field select {
  padding: 0 38px 0 13px;
}

.search-control input:focus,
.select-field select:focus,
.sort-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 143, 201, 0.13);
}

.library-controls {
  margin: 22px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip,
.clear-button,
.pagination button,
.empty-state button {
  cursor: pointer;
}

.filter-chip {
  padding: 9px 14px;
  color: #555a61;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #4f7f12;
  background: var(--green-soft);
  border-color: #b9d989;
}

.sort-field {
  width: 190px;
  flex: 0 0 auto;
}

.sort-field select {
  min-height: 41px;
  background: #fff;
  font-size: 13px;
}

.results-toolbar {
  min-height: 43px;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.results-toolbar strong {
  color: var(--ink);
}

.clear-button {
  padding: 6px 0;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.resource-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  min-height: 304px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 52, 67, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.resource-card:hover {
  border-color: #bfd5e1;
  box-shadow: 0 16px 34px rgba(31, 52, 67, 0.09);
  transform: translateY(-3px);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.category-tag {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.format-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.format-badge.pdf {
  color: #4e7e13;
  background: var(--green-soft);
}

.format-badge.online {
  color: #6a6470;
  background: #f0eef2;
}

.resource-card h3 {
  margin: 15px 0 8px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.018em;
}

.card-author {
  min-height: 20px;
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.card-description {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-spacer {
  flex: 1;
}

.card-meta {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #777b82;
  border-top: 1px solid #ebedef;
  font-size: 11px;
}

.card-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.resource-action {
  min-height: 40px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease;
}

.resource-action:hover {
  background: var(--blue-dark);
}

.resource-action.download {
  color: #fff;
  background: var(--green-dark);
}

.resource-action.download:hover {
  background: #4f7c13;
}

.source-link {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.supplementary-link {
  color: var(--green-dark);
}

.empty-state {
  margin-top: 18px;
  padding: 70px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd3d8;
  border-radius: 14px;
}

.empty-mark {
  color: var(--green);
  font-size: 46px;
}

.empty-state h3 {
  margin: 8px 0 6px;
  font-family: "Poppins", Arial, sans-serif;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.empty-state button {
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

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

.pagination button {
  min-width: 39px;
  min-height: 39px;
  padding: 7px 10px;
  color: #52565e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.pagination button:hover,
.pagination button[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination .ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

.support-callout {
  margin-bottom: 92px;
  padding: 46px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  color: #fff;
  background: var(--blue);
  border-radius: 24px 90px 24px 90px;
  box-shadow: 0 24px 55px rgba(38, 143, 201, 0.2);
}

.support-callout .eyebrow {
  color: #d8f1a7;
}

.support-callout h2 {
  max-width: 680px;
  font-size: clamp(30px, 4vw, 43px);
}

.support-callout p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.92;
}

.support-callout > a {
  flex: 0 0 auto;
  padding: 14px 18px;
  color: #43670f;
  background: #fff;
  border-radius: 9px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  color: #d9e0e5;
  background: #22272d;
}

.footer-inner {
  padding: 48px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  padding: 5px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.footer-brand div {
  display: grid;
  gap: 5px;
}

.footer-brand strong {
  max-width: 460px;
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
}

.footer-brand span {
  color: #9fc766;
  font-size: 13px;
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  font-size: 12px;
}

.footer-details p {
  margin: 0;
}

.footer-details a {
  color: #b9d9eb;
}

.footer-bottom {
  padding: 19px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #aab3ba;
  border-top: 1px solid #3a4148;
  font-size: 12px;
}

.footer-bottom a {
  color: #cce39d;
  text-decoration: none;
}

@media (max-width: 920px) {
  .header-nav a:not(.portal-link) {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-panel {
    max-width: 500px;
  }

  .overview-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero-inner,
  .overview-inner,
  .library-inner,
  .footer-inner,
  .footer-bottom,
  .support-callout {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand-copy strong {
    max-width: 145px;
    font-size: 13px;
  }

  .brand-copy span {
    font-size: 12px;
  }

  .header-nav .portal-link {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero-inner {
    min-height: 0;
    padding: 60px 0 72px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-panel {
    padding: 31px;
    border-radius: 78px 78px 20px 78px;
  }

  .overview {
    margin-top: -26px;
  }

  .overview-inner {
    padding: 20px 12px;
  }

  .stat {
    padding: 4px 10px;
    display: grid;
    gap: 2px;
    text-align: center;
  }

  .stat strong {
    font-size: 23px;
  }

  .stat span {
    font-size: 11px;
  }

  .library {
    padding: 72px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .search-field {
    grid-column: auto;
  }

  .library-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-field {
    width: 100%;
  }

  .resource-card {
    padding: 20px;
  }

  .support-callout {
    margin-bottom: 65px;
    padding: 38px 28px;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 20px 64px 20px 64px;
  }

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

  .footer-details {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
