.ap-pg-wrap {
    --ap-pg-gap: 34px;
    width: 100%;
    color: var(--ap-pg-blue, #073d6b);
    font-family: inherit;
}

.ap-pg-wrap * {
    box-sizing: border-box;
}

.ap-pg-full-width .ap-pg-hero,
.ap-pg-full-width .ap-pg-content {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ap-pg-inner {
    width: min(var(--ap-pg-max-width, 1540px), calc(100% - 56px));
    margin: 0 auto;
}

.ap-pg-hero {
    background: var(--ap-pg-hero-bg, #06456d);
    color: #dffcff;
    padding: clamp(42px, 6vw, 72px) 0 clamp(42px, 6vw, 72px);
}

.ap-pg-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .55fr);
    align-items: start;
    gap: 34px;
    margin: 0;
}

.ap-pg-hero-copy h2 {
    margin: 0;
    color: #dffcff;
    font-size: clamp(52px, 7vw, 108px);
    line-height: .92;
    font-weight: 800;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.ap-pg-hero-copy p {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.18;
    font-weight: 600;
    max-width: 520px;
}

.ap-pg-content {
    background: #fff;
    padding: 56px 0 clamp(56px, 8vw, 110px);
}

.ap-pg-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.ap-pg-filter {
    position: relative;
    z-index: 50;
}

.ap-pg-filter-toggle {
    border: 0;
    border-radius: 999px;
    background: #eef3f6;
    color: var(--ap-pg-blue, #073d6b);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform .18s ease, background .18s ease;
}

.ap-pg-filter-toggle:hover,
.ap-pg-filter-toggle:focus {
    background: #dde8ee;
    outline: none;
    transform: translateY(-1px);
}

.ap-pg-filter-toggle[aria-expanded="true"] {
    background: var(--ap-pg-search-bg, #ddfbfb);
}

.ap-pg-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 245px;
    max-height: 340px;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(7, 61, 107, .14);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(7, 61, 107, .14);
    padding: 10px;
}

.ap-pg-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ap-pg-blue, #073d6b);
    cursor: pointer;
    font-size: 15px;
}

.ap-pg-filter-option:hover {
    background: rgba(63, 230, 220, .16);
}

.ap-pg-filter-option input {
    accent-color: var(--ap-pg-accent, #3fe6dc);
}

.ap-pg-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    margin: 0 0 34px;
    padding: 0 0 0 22px;
    border-radius: 999px;
    background: var(--ap-pg-search-bg, #ddfbfb);
}

.ap-pg-search-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ap-pg-blue, #073d6b);
    border-radius: 50%;
    opacity: .85;
    flex: 0 0 18px;
}

.ap-pg-search-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    background: var(--ap-pg-blue, #073d6b);
    transform: rotate(45deg);
    border-radius: 2px;
}

.ap-pg-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--ap-pg-blue, #073d6b);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    outline: none;
    padding: 0;
}

.ap-pg-search input::placeholder {
    color: rgba(7, 61, 107, .36);
    opacity: 1;
}

.ap-pg-search button {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--ap-pg-accent, #3fe6dc);
    color: var(--ap-pg-blue, #073d6b);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transition: transform .18s ease, filter .18s ease;
    padding: 0;
}

.ap-pg-search button:hover,
.ap-pg-search button:focus {
    filter: brightness(.97);
    outline: none;
    transform: translateX(2px);
}

.ap-pg-status {
    min-height: 22px;
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--ap-pg-blue, #073d6b);
}

.ap-pg-grid {
    display: grid;
    align-items: stretch;
    gap: 76px var(--ap-pg-gap);
}

.ap-pg-columns-1 { grid-template-columns: minmax(0, 1fr); }
.ap-pg-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-pg-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-pg-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ap-pg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: var(--ap-pg-card-bg, #fff);
    border-top: 1px solid rgba(7, 61, 107, .20);
    padding-top: 30px;
    padding-bottom: 48px;
}

.ap-pg-card:nth-child(-n+3) {
    border-top: 0;
    padding-top: 0;
}

.ap-pg-card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: calc(var(--ap-pg-image-height, 315px) + 128px);
    color: inherit;
    text-decoration: none !important;
}

.ap-pg-card-link:hover .ap-pg-title,
.ap-pg-card-link:focus .ap-pg-title {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.ap-pg-image {
    position: relative;
    width: 100%;
    height: var(--ap-pg-image-height, 315px);
    overflow: hidden;
    border-radius: 8px;
    background: #e9f3f5;
}

.ap-pg-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: none;
}

.ap-pg-card-link:hover .ap-pg-image img,
.ap-pg-card-link:focus .ap-pg-image img {
    transform: none;
}

.ap-pg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 230, 220, .28), rgba(7, 61, 107, .24));
}

.ap-pg-badges {
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.ap-pg-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 5px;
    padding: 0 10px;
    color: var(--ap-pg-blue, #073d6b);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.ap-pg-badge-accent {
    background: var(--ap-pg-accent, #3fe6dc);
}

.ap-pg-badge-muted {
    background: var(--ap-pg-muted-badge, #8fa6b3);
    color: #fff;
    gap: 6px;
}

.ap-pg-status-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 5px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(7, 61, 107, .16);
}

.ap-pg-status-ongoing {
    background: var(--ap-pg-status-ongoing-bg, #3fe6dc);
    color: var(--ap-pg-blue, #073d6b);
}

.ap-pg-status-past {
    background: var(--ap-pg-status-past-bg, #f0a33a);
    color: #ffffff;
}

.ap-pg-title {
    display: -webkit-box;
    height: 2.34em;
    min-height: 2.34em;
    margin: 16px 0 6px;
    overflow: hidden;
    color: var(--ap-pg-blue, #073d6b);
    font-size: clamp(19px, 1.45vw, 25px);
    line-height: 1.17;
    font-weight: 800;
    letter-spacing: -.03em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ap-pg-excerpt {
    display: -webkit-box;
    height: 2.4em;
    min-height: 2.4em;
    max-width: 100%;
    overflow: hidden;
    color: var(--ap-pg-description-color, #7f8f9c);
    font-size: clamp(13px, .85vw, 15px);
    line-height: 1.2;
    font-weight: 500;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ap-pg-empty {
    grid-column: 1 / -1;
    padding: 44px;
    border-radius: 18px;
    background: rgba(7, 61, 107, .05);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.ap-pg-load-more-wrap {
    text-align: center;
    margin-top: 52px;
}

.ap-pg-load-more {
    border: 0;
    border-radius: 999px;
    padding: 16px 30px;
    background: var(--ap-pg-blue, #073d6b);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ap-pg-loading .ap-pg-grid {
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .ap-pg-hero-copy {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .ap-pg-columns-3,
    .ap-pg-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-pg-card:nth-child(-n+3) {
        border-top: 1px solid rgba(7, 61, 107, .20);
        padding-top: 30px;
    }

    .ap-pg-card:nth-child(-n+2) {
        border-top: 0;
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    .ap-pg-inner {
        width: min(var(--ap-pg-max-width, 1540px), calc(100% - 32px));
    }

    .ap-pg-hero {
        padding: 36px 0 34px;
    }

    .ap-pg-hero-copy h2 {
        font-size: clamp(42px, 14vw, 68px);
    }

    .ap-pg-hero-copy p {
        font-size: 16px;
    }


    .ap-pg-content {
        padding-top: 36px;
    }

    .ap-pg-search {
        min-height: 52px;
        padding-left: 18px;
    }

    .ap-pg-search input {
        font-size: 13px;
    }

    .ap-pg-search button {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 32px;
    }

    .ap-pg-columns-2,
    .ap-pg-columns-3,
    .ap-pg-columns-4 {
        grid-template-columns: 1fr;
    }

    .ap-pg-card,
    .ap-pg-card:nth-child(-n+2),
    .ap-pg-card:nth-child(-n+3) {
        border-top: 1px solid rgba(7, 61, 107, .20);
        padding-top: 28px;
    }

    .ap-pg-card:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .ap-pg-image {
        height: min(var(--ap-pg-image-height, 315px), 70vw);
    }
}

.ap-pg-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: -12px 0 18px;
}

.ap-pg-per-page-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ap-pg-blue, #073d6b);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.ap-pg-per-page {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef3f6;
    color: var(--ap-pg-blue, #073d6b);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    padding: 0 34px 0 16px;
    outline: none;
}

.ap-pg-per-page:hover,
.ap-pg-per-page:focus {
    background: var(--ap-pg-search-bg, #ddfbfb);
}

.ap-pg-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 54px;
}

.ap-pg-pagination[hidden] {
    display: none;
}

.ap-pg-page-button {
    min-width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #eef3f6;
    color: var(--ap-pg-blue, #073d6b);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.ap-pg-page-button:hover,
.ap-pg-page-button:focus,
.ap-pg-page-button.is-active {
    background: var(--ap-pg-accent, #3fe6dc);
    outline: none;
    transform: translateY(-1px);
}

.ap-pg-page-button[disabled] {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.ap-pg-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    color: var(--ap-pg-blue, #073d6b);
    font-weight: 900;
}

@media (max-width: 700px) {
    .ap-pg-toolbar {
        justify-content: flex-start;
        margin-top: -6px;
    }

    .ap-pg-per-page-label {
        font-size: 12px;
    }

    .ap-pg-page-button {
        min-width: 38px;
        height: 38px;
    }
}

/* Premium single project pages */
.ap-pg-single {
    color: var(--ap-pg-blue, #073d6b);
    background: #fff;
    font-family: inherit;
    scroll-behavior: smooth;
}

.ap-pg-single * {
    box-sizing: border-box;
}

.ap-pg-single-inner {
    width: min(var(--ap-pg-max-width, 1540px), calc(100% - 56px));
    margin: 0 auto;
}

.ap-pg-single-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--ap-pg-single-nav-bg, #246ee9);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.ap-pg-single-nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 62px;
    padding: 10px 0;
}

.ap-pg-nav-label,
.ap-pg-single-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    color: #fff !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.ap-pg-nav-label {
    margin-right: 14px;
}

.ap-pg-single-nav a {
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 999px;
    padding: 0 18px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ap-pg-single-nav a:hover,
.ap-pg-single-nav a:focus {
    background: #fff;
    color: var(--ap-pg-single-nav-bg, #246ee9) !important;
    transform: translateY(-1px);
    outline: none;
}

.ap-pg-single-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--ap-pg-hero-bg, #06456d);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.ap-pg-single-hero-overlay {
    min-height: clamp(340px, 46vw, 680px);
    display: flex;
    align-items: flex-end;
    padding: clamp(72px, 9vw, 128px) 0 clamp(58px, 7vw, 96px);
    background: linear-gradient(90deg, rgba(3,45,75,.84), rgba(3,45,75,.38) 55%, rgba(3,45,75,.18));
}

.ap-pg-single-hero:not(.has-bg) .ap-pg-single-hero-overlay {
    min-height: clamp(270px, 32vw, 460px);
    background: linear-gradient(135deg, var(--ap-pg-hero-bg, #06456d), #0b6ea4);
}

.ap-pg-single-hero-text {
    max-width: 1040px;
}

.ap-pg-single-kicker {
    margin-bottom: 16px;
    color: var(--ap-pg-accent, #3fe6dc);
    font-size: clamp(13px, 1.2vw, 17px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ap-pg-single-hero h1 {
    max-width: 1100px;
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 7vw, 118px);
    line-height: .94;
    font-weight: 800;
    letter-spacing: -.06em;
}

.ap-pg-single-hero p {
    max-width: 820px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.92);
    font-size: clamp(18px, 1.55vw, 25px);
    line-height: 1.28;
    font-weight: 500;
}

.ap-pg-single-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 58px;
    padding: clamp(70px, 8vw, 130px) 0 52px;
}

.ap-pg-single-body.has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 455px);
    align-items: start;
}

.ap-pg-single-main {
    min-width: 0;
}

.ap-pg-section {
    scroll-margin-top: 94px;
    margin-bottom: clamp(58px, 7vw, 100px);
}

.ap-pg-section h2,
.ap-pg-related h2 {
    margin: 0 0 32px;
    color: var(--ap-pg-blue, #073d6b);
    font-size: clamp(44px, 5vw, 78px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.055em;
}

.ap-pg-section-content {
    color: var(--ap-pg-blue, #073d6b);
    font-size: clamp(21px, 1.9vw, 30px);
    line-height: 1.22;
    font-weight: 500;
}

.ap-pg-section-content p {
    margin: 0 0 1.2em;
}

.ap-pg-impact-box {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(44px, 5vw, 76px);
    border-radius: 10px;
    background: var(--ap-pg-single-impact-bg, #246ee9);
    color: #fff;
}

.ap-pg-impact-box h2 {
    color: #dffcff;
    margin-bottom: 26px;
}

.ap-pg-impact-box .ap-pg-section-content,
.ap-pg-impact-box .ap-pg-section-content p,
.ap-pg-impact-box li {
    color: #fff;
}

.ap-pg-impact-box ul {
    margin: 0;
    padding-left: 1.1em;
}

.ap-pg-impact-box li {
    margin: 0 0 22px;
    padding-left: .25em;
}

.ap-pg-single-sidebar {
    position: sticky;
    top: 96px;
    border-radius: 10px;
    background: var(--ap-pg-single-panel-bg, #dffbfb);
    padding: 28px;
}

.ap-pg-side-block {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid rgba(7,61,107,.18);
}

.ap-pg-side-block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ap-pg-side-block h3 {
    margin: 0 0 18px;
    color: var(--ap-pg-blue, #073d6b);
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ap-pg-side-block p,
.ap-pg-sites-list a {
    color: var(--ap-pg-blue, #073d6b);
    font-size: 20px;
    line-height: 1.28;
    font-weight: 500;
}

.ap-pg-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ap-pg-partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 146px;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
}

.ap-pg-partner-card img {
    max-width: 100%;
    max-height: 85px;
    object-fit: contain;
}

.ap-pg-sites-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ap-pg-sites-list li + li {
    margin-top: 10px;
}

.ap-pg-sites-list a {
    text-decoration: none !important;
}

.ap-pg-sites-list a:hover,
.ap-pg-sites-list a:focus {
    text-decoration: underline !important;
    text-underline-offset: 5px;
}

.ap-pg-field-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 58px;
}

.ap-pg-field-gallery figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #eef3f6;
}

.ap-pg-field-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    height: auto;
    object-fit: cover;
}

.ap-pg-all-images {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 58px;
    margin-top: 36px;
    padding: 0 32px;
    border-radius: 999px;
    background: var(--ap-pg-blue, #073d6b);
    color: #fff !important;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.ap-pg-related {
    padding: 18px 0 clamp(72px, 8vw, 128px);
}

.ap-pg-related .ap-pg-card:nth-child(-n+3) {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 1100px) {
    .ap-pg-single-body.has-sidebar {
        grid-template-columns: 1fr;
    }

    .ap-pg-single-sidebar {
        position: static;
        max-width: 620px;
    }
}

@media (max-width: 760px) {
    .ap-pg-single-inner {
        width: calc(100% - 32px);
    }

    .ap-pg-single-nav {
        position: static;
    }

    .ap-pg-nav-label {
        flex-basis: 100%;
    }

    .ap-pg-single-nav a {
        font-size: 12px;
        min-height: 30px;
        padding: 0 12px;
    }

    .ap-pg-single-hero-overlay {
        min-height: 360px;
        padding: 54px 0 46px;
    }

    .ap-pg-single-hero h1 {
        font-size: clamp(40px, 13vw, 64px);
    }

    .ap-pg-section h2,
    .ap-pg-related h2 {
        font-size: clamp(36px, 11vw, 54px);
    }

    .ap-pg-section-content {
        font-size: 19px;
    }

    .ap-pg-field-gallery,
    .ap-pg-partner-grid {
        grid-template-columns: 1fr;
    }

    .ap-pg-impact-box {
        padding: 34px 24px;
    }
}


/* v3.0.1: single page nav/related project refinements */
.ap-pg-single .ap-pg-single-nav {
    top: var(--ap-pg-single-nav-sticky-top, 0px);
    clear: both;
}

.ap-pg-single-hero + .ap-pg-single-nav {
    margin-top: 0;
}

.ap-pg-related.ap-pg-single-inner {
    width: min(1180px, calc(100% - 56px));
}

.ap-pg-related .ap-pg-grid {
    gap: 46px 46px;
}

.ap-pg-related .ap-pg-card,
.ap-pg-related .ap-pg-card:nth-child(-n+3) {
    border-top: 0;
    padding-top: 0;
    padding-bottom: 24px;
}

.ap-pg-related .ap-pg-card-link {
    min-height: 0;
}

.ap-pg-related .ap-pg-image {
    height: clamp(170px, 15vw, 220px);
}

.ap-pg-related .ap-pg-title {
    margin-top: 14px;
    font-size: clamp(17px, 1.1vw, 21px);
    line-height: 1.16;
}

.ap-pg-related .ap-pg-excerpt {
    font-size: clamp(12px, .78vw, 14px);
}

@media (max-width: 1024px) {
    .ap-pg-related.ap-pg-single-inner {
        width: min(var(--ap-pg-max-width, 1540px), calc(100% - 40px));
    }

    .ap-pg-related .ap-pg-grid {
        gap: 42px 30px;
    }

    .ap-pg-related .ap-pg-image {
        height: 220px;
    }
}

@media (max-width: 700px) {
    .ap-pg-related.ap-pg-single-inner {
        width: calc(100% - 32px);
    }

    .ap-pg-related .ap-pg-image {
        height: min(230px, 62vw);
    }
}


/* v3.0.2: smaller single hero/title and more accurate tab anchor behaviour */
.ap-pg-single-hero-overlay {
    min-height: clamp(260px, 34vw, 500px);
    padding: clamp(48px, 6vw, 88px) 0 clamp(38px, 5vw, 66px);
}

.ap-pg-single-hero:not(.has-bg) .ap-pg-single-hero-overlay {
    min-height: clamp(230px, 26vw, 380px);
}

.ap-pg-single-hero h1 {
    max-width: 980px;
    font-size: clamp(38px, 4.8vw, 76px);
    line-height: 1;
    letter-spacing: -.045em;
}

.ap-pg-single-hero p {
    max-width: 740px;
    margin-top: 18px;
    font-size: clamp(16px, 1.25vw, 22px);
}

.ap-pg-single-kicker {
    margin-bottom: 12px;
    font-size: clamp(12px, 1vw, 15px);
}

.ap-pg-section,
.ap-pg-related {
    scroll-margin-top: calc(var(--ap-pg-single-nav-height, 76px) + var(--ap-pg-admin-bar-height, 0px) + 28px);
}

.ap-pg-single-nav a.is-active {
    background: #fff;
    color: var(--ap-pg-single-nav-bg, #246ee9) !important;
}

@media (max-width: 760px) {
    .ap-pg-single-hero-overlay {
        min-height: 280px;
        padding: 42px 0 34px;
    }

    .ap-pg-single-hero h1 {
        font-size: clamp(32px, 10vw, 50px);
    }
}


/* v3.0.3: smaller titles, full visible tab labels, and underlined title lines */
.ap-pg-card .ap-pg-title {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    font-size: clamp(16px, 1.05vw, 20px);
    line-height: 1.2;
    letter-spacing: -.025em;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    text-decoration-skip-ink: auto;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.ap-pg-card-link {
    min-height: calc(var(--ap-pg-image-height, 315px) + 112px);
}

.ap-pg-single-hero-overlay {
    min-height: clamp(220px, 28vw, 420px);
    padding: clamp(34px, 4.8vw, 72px) 0 clamp(30px, 4vw, 54px);
}

.ap-pg-single-hero:not(.has-bg) .ap-pg-single-hero-overlay {
    min-height: clamp(190px, 22vw, 320px);
}

.ap-pg-single-hero h1 {
    max-width: 1040px;
    font-size: clamp(28px, 3.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-decoration-line: underline;
    text-decoration-thickness: .055em;
    text-underline-offset: .13em;
    text-decoration-skip-ink: auto;
}

.ap-pg-single-hero p {
    max-width: 700px;
    margin-top: 14px;
    font-size: clamp(15px, 1.05vw, 19px);
}

.ap-pg-section h2,
.ap-pg-related h2 {
    margin-bottom: 24px;
    font-size: clamp(30px, 3.2vw, 50px);
    line-height: 1.08;
    letter-spacing: -.04em;
    text-decoration-line: underline;
    text-decoration-thickness: .055em;
    text-underline-offset: .13em;
    text-decoration-skip-ink: auto;
}

.ap-pg-impact-box h2 {
    text-decoration-color: currentColor;
}

.ap-pg-single-nav-inner {
    align-items: center;
    gap: 8px 10px;
    min-height: unset;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ap-pg-nav-label,
.ap-pg-single-nav a {
    height: auto;
    min-height: 32px;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    text-align: center;
    line-height: 1.15;
}

.ap-pg-single-nav a {
    padding: 8px 16px;
}

@media (max-width: 760px) {
    .ap-pg-card .ap-pg-title {
        font-size: 17px;
        line-height: 1.22;
    }

    .ap-pg-single-hero-overlay {
        min-height: 230px;
        padding: 32px 0 28px;
    }

    .ap-pg-single-hero h1 {
        font-size: clamp(26px, 8vw, 40px);
        line-height: 1.1;
    }

    .ap-pg-section h2,
    .ap-pg-related h2 {
        font-size: clamp(27px, 8vw, 38px);
        line-height: 1.12;
    }

    .ap-pg-single-nav-inner {
        justify-content: flex-start;
        gap: 7px;
    }

    .ap-pg-nav-label,
    .ap-pg-single-nav a {
        font-size: 12px;
        letter-spacing: .055em;
        line-height: 1.18;
    }

    .ap-pg-single-nav a {
        padding: 7px 12px;
    }
}

/* v3.0.4: underline only on hover for archive/related card titles; no underlines on single project page headings */
.ap-pg-card .ap-pg-title {
    text-decoration: none !important;
}

.ap-pg-card-link:hover .ap-pg-title,
.ap-pg-card-link:focus .ap-pg-title {
    text-decoration-line: underline !important;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    text-decoration-skip-ink: auto;
}

.ap-pg-single-hero h1,
.ap-pg-section h2,
.ap-pg-related h2,
.ap-pg-impact-box h2 {
    text-decoration: none !important;
}

.ap-pg-single-hero a:hover h1,
.ap-pg-section a:hover h2,
.ap-pg-related h2:hover,
.ap-pg-impact-box h2:hover {
    text-decoration: none !important;
}
