#wrap.ap-project-page {
  --ap-blue: #0d5d87;
  --ap-deep: #173f57;
  --ap-green: #6ebc47;
  color: #294b5f;
  font-size: .88em;
  line-height: 1.4;
  background: #f7fbfb;
}

#wrap.ap-project-page h1,
#wrap.ap-project-page h2,
#wrap.ap-project-page h3,
#wrap.ap-project-page p { margin: 0; }

.ap-project-hero {
  padding: 4.2em 0 3.5em;
  background: linear-gradient(115deg, #0a4e72, #0d6d91 65%, #338394);
  color: white;
}
.ap-project-kicker { color: #c0eb9f; font-size: 1em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#wrap.ap-project-page .ap-project-hero h1 { max-width: 20ch; margin-top: .35em; color: white; font-size: 2.83em; line-height: 1.08; font-weight: 700; letter-spacing: -.04em; }
.ap-project-hero p { max-width: 64ch; margin-top: 1.15em !important; color: #e9f5fa; }

.ap-project-year-nav { display: flex; flex-wrap: wrap; gap: .55em; padding-top: 1.4em; padding-bottom: 1em; }
.ap-project-year-nav::before, .ap-project-year-nav::after,
.ap-project-grid::before, .ap-project-grid::after { display: none !important; }
.ap-project-year-nav a { display: inline-flex; align-items: center; gap: .6em; border: 1px solid #cde1e5; border-radius: 999px; padding: .4em .8em; background: white; color: var(--ap-blue); font-size: .86em; font-weight: 700; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ap-project-year-nav a:hover { border-color: var(--ap-blue); transform: translateY(-2px); box-shadow: 0 5px 14px rgba(10, 79, 111, .11); }
.ap-project-year-nav a span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7em; height: 1.7em; border-radius: 50%; background: #e8f4ed; color: #46834a; font-size: .82em; }

.ap-project-timeline { padding-top: 1em; padding-bottom: 5em; }
.ap-project-year { margin-bottom: 1.5em; border: 1px solid #dce9ea; border-radius: 1.1em; background: #fff; box-shadow: 0 10px 28px rgba(11, 75, 104, .055); overflow: hidden; scroll-margin-top: 1em; }
.ap-project-year > summary { display: flex; align-items: center; gap: .8em; padding: .75em 1.1em; background: #eaf5f4; color: var(--ap-deep); cursor: pointer; list-style: none; }
.ap-project-year > summary::-webkit-details-marker { display: none; }
.ap-project-year > summary:focus-visible, .ap-project-year-nav a:focus-visible, .ap-project-more summary:focus-visible { outline: 3px solid #85bf57; outline-offset: 2px; }
.ap-project-year-number { font-size: 1.79em; line-height: 1; font-weight: 750; letter-spacing: -.04em; }
.ap-project-count { color: #527386; font-size: .85em; font-weight: 600; }
.ap-project-collapse { margin-left: auto; color: var(--ap-blue); font-size: 1.4em; line-height: 1; transition: transform .2s ease; }
.ap-project-year[open] .ap-project-collapse { transform: rotate(180deg); }
.ap-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2em; padding: 1.2em; }

.ap-project-card { min-width: 0; overflow: hidden; border: 1px solid #e0e9eb; border-radius: .9em; background: #fff; box-shadow: 0 7px 22px rgba(16, 75, 104, .045); }
.ap-project-media { height: 12em; overflow: hidden; background: #edf4f5; }
.ap-project-media img { display: block; width: 100%; height: 100%; }
.ap-project-photo img { object-fit: cover; }
.ap-project-logo { display: flex; align-items: center; justify-content: center; padding: 1.3em; }
.ap-project-logo img { max-width: 65%; object-fit: contain; }
.ap-project-content { padding: 1.25em 1.4em 1.4em; }
.ap-project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 2.5em; margin-bottom: .4em; }
.ap-project-funder-logo { display: block; max-width: 8em; max-height: 2.5em; object-fit: contain; object-position: left center; }
.ap-project-year-tag { margin-left: auto; border-radius: 999px; padding: .25em .6em; background: #e8f4ed; color: #41834a; font-size: .88em; font-weight: 800; }
#wrap.ap-project-page .ap-project-card h3 { color: var(--ap-deep); font-size: 1.37em; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.ap-project-dates { margin-top: .7em !important; color: var(--ap-blue); font-size: .86em; font-weight: 700; }
.ap-project-agency { margin-top: .65em !important; color: #537284; font-size: .82em; font-weight: 600; }
.ap-project-excerpt { margin-top: .85em !important; color: #415e70; font-size: .92em; }
.ap-project-more { margin-top: .85em; border-top: 1px solid #e3ecee; padding-top: .7em; }
.ap-project-more summary { color: var(--ap-blue); font-size: .85em; font-weight: 700; cursor: pointer; }
.ap-project-more div { padding-top: .75em; color: #415e70; font-size: .9em; }
.ap-project-more p + p { margin-top: .7em !important; }

@media (max-width: 767.98px) {
  #wrap.ap-project-page { font-size: .82em; }
  .ap-project-hero { padding: 3.5em 0 3em; }
  #wrap.ap-project-page .ap-project-hero h1 { font-size: 2.27em; }
  .ap-project-grid { grid-template-columns: 1fr; }
  .ap-project-year-number { font-size: 1.56em; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-project-year-nav a, .ap-project-collapse { transition: none; }
}
