/*
Theme Name: PPMPP Poltekkes Ternate
Theme URI: https://poltekkesternate.ac.id/
Description: Child theme Pusat Penjaminan Mutu dan Pengembangan Pendidikan Poltekkes Kemenkes Ternate.
Author: Team IT Poltekkes Ternate
Template: poltekkes-unit-2026
Version: 1.3.0
Text Domain: poltekkes-unit-child
*/

/*
 * Tambahkan override visual khusus unit/jurusan di bawah ini.
 * Jangan duplikasi layout parent kecuali memang diperlukan.
 */

/* === PPMPP UNIT HOMEPAGE START === */

.ppmp-home {
    overflow: hidden;
}

.ppmp-home *,
.ppmp-home *::before,
.ppmp-home *::after {
    box-sizing: border-box;
}

.ppmp-hero {
    padding: clamp(3rem, 7vw, 6.25rem) 0;
    background:
        linear-gradient(
            135deg,
            rgba(5, 76, 99, .08),
            rgba(255, 255, 255, .97) 46%,
            rgba(15, 118, 110, .08)
        );
}

.ppmp-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(300px, .98fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.ppmp-eyebrow,
.ppmp-kicker {
    display: inline-block;
    margin-bottom: .75rem;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--labt-accent, #0f766e);
}

.ppmp-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.ppmp-hero-lead {
    max-width: 650px;
    margin: 1.25rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.ppmp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.75rem;
}

.ppmp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .75rem 1.15rem;
    border-radius: .7rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.ppmp-button:hover {
    transform: translateY(-2px);
}

.ppmp-button-primary {
    color: #fff;
    background: var(--labt-accent, #0f766e);
    box-shadow: 0 12px 28px rgba(15,118,110,.18);
}

.ppmp-button-secondary {
    color: inherit;
    border: 1px solid rgba(15,23,42,.14);
    background: rgba(255,255,255,.8);
}

.ppmp-hero-media {
    position: relative;
}

.ppmp-hero-media::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1rem -1rem 1.25rem;
    border-radius: 1.5rem;
    background: var(--labt-accent, #0f766e);
    opacity: .12;
}

.ppmp-hero-media img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(15,23,42,.14);
}

.ppmp-section {
    padding: clamp(3.25rem, 7vw, 6rem) 0;
    scroll-margin-top: 110px;
}

.ppmp-section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.ppmp-section-heading h2,
.ppmp-contact h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.ppmp-section-heading p {
    margin: .9rem 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

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

.ppmp-focus-card {
    min-height: 220px;
    padding: 1.5rem;
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,23,42,.055);
}

.ppmp-card-number {
    display: block;
    margin-bottom: 2rem;
    font-size: .8rem;
    font-weight: 800;
    color: var(--labt-accent, #0f766e);
}

.ppmp-focus-card h3 {
    margin: 0 0 .65rem;
    font-size: 1.3rem;
}

.ppmp-focus-card p {
    margin: 0;
    line-height: 1.65;
}

.ppmp-news {
    background: rgba(15,23,42,.025);
}

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

.ppmp-news-card {
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1.2rem;
    background: #fff;
}

.ppmp-news-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ppmp-news-body {
    padding: 1.4rem;
}

.ppmp-news-body time {
    display: block;
    margin-bottom: .65rem;
    font-size: .8rem;
    font-weight: 700;
    opacity: .68;
}

.ppmp-news-body h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.ppmp-news-body h3 a,
.ppmp-text-link {
    color: inherit;
}

.ppmp-news-body p {
    margin: .8rem 0 1rem;
    line-height: 1.65;
}

.ppmp-text-link {
    font-weight: 750;
    text-decoration: none;
}

.ppmp-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.ppmp-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #eef2f4;
}

.ppmp-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}

.ppmp-gallery-item:hover img {
    transform: scale(1.025);
}

.ppmp-contact {
    padding-top: 1rem;
}

.ppmp-contact-panel {
    display: grid;
    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.7rem, 4vw, 3rem);
    border-radius: 1.4rem;
    background: #0f172a;
    color: #fff;
}

.ppmp-contact-panel p {
    max-width: 520px;
    line-height: 1.7;
    color: rgba(255,255,255,.78);
}

.ppmp-contact-list {
    display: grid;
    gap: .85rem;
}

.ppmp-contact-item {
    display: grid;
    gap: .3rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: .85rem;
    background: rgba(255,255,255,.055);
}

.ppmp-contact-item strong {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
}

.ppmp-contact-item a,
.ppmp-contact-item span {
    color: #fff;
    line-height: 1.55;
}

@media (max-width: 900px) {

    .ppmp-hero-grid,
    .ppmp-contact-panel {
        grid-template-columns: 1fr;
    }

    .ppmp-focus-grid,
    .ppmp-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {

    .ppmp-hero {
        padding-top: 2.4rem;
    }

    .ppmp-focus-grid,
    .ppmp-news-grid,
    .ppmp-gallery {
        grid-template-columns: 1fr;
    }

    .ppmp-hero-media::before {
        display: none;
    }

    .ppmp-button {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {

    .ppmp-button,
    .ppmp-gallery-item img {
        transition: none;
    }

}

@media print {

    .ppmp-actions {
        display: none;
    }

    .ppmp-hero,
    .ppmp-news {
        background: none !important;
    }

    .ppmp-contact-panel {
        color: #000;
        background: none;
        border: 1px solid #bbb;
    }

    .ppmp-contact-item a,
    .ppmp-contact-item span {
        color: #000;
    }

}

/* === PPMPP UNIT HOMEPAGE END === */

/* =========================================================
   PPMPP VISUAL POLISH 1B
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.ppmp-home {
    width: 100%;
    max-width: 100%;
}

/* Hero balance */
.ppmp-hero {
    padding-top: clamp(3rem, 5vw, 4.75rem);
    padding-bottom: clamp(3rem, 5vw, 4.75rem);
}

.ppmp-hero-grid {
    gap: clamp(2rem, 4vw, 4rem);
}

.ppmp-hero h1 {
    max-width: 690px;
    font-size: clamp(2.3rem, 4vw, 3.9rem);
    line-height: 1.055;
    letter-spacing: -.035em;
}

.ppmp-hero-media::before {
    right: 0;
}

.ppmp-hero-media img {
    aspect-ratio: 16 / 9;
}

/* Section rhythm */
.ppmp-section {
    padding-top: clamp(3rem, 5.5vw, 5rem);
    padding-bottom: clamp(3rem, 5.5vw, 5rem);
}

/* Cards */
.ppmp-focus-card {
    min-height: 205px;
    border-color: rgba(15, 23, 42, .08);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}

/* Imported WP publication dates are hidden on homepage
   because they may differ from actual event dates. */
.ppmp-news-body time {
    display: none;
}

.ppmp-news-body {
    padding: 1.5rem;
}

/* Gallery */
.ppmp-gallery {
    align-items: stretch;
}

.ppmp-gallery-item {
    min-height: 0;
}

.ppmp-gallery-item img {
    height: 100%;
    min-height: 260px;
}

/* ---------------------------------------------------------
   PPMPP Footer
   --------------------------------------------------------- */

.ppmp-site-footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(3rem, 5vw, 4.25rem);
    background: #0b3b3d;
    color: rgba(255,255,255,.82);
}

.ppmp-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(150px, .7fr)
        minmax(150px, .8fr)
        minmax(210px, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
}

.ppmp-footer-brand {
    max-width: 390px;
}

.ppmp-site-footer h2,
.ppmp-site-footer h3 {
    margin: 0;
    color: #fff;
}

.ppmp-site-footer h2 {
    font-size: 1.2rem;
    line-height: 1.35;
}

.ppmp-site-footer h3 {
    margin-bottom: 1rem;
    font-size: .9rem;
}

.ppmp-footer-institution {
    margin-top: .45rem !important;
    font-size: .88rem;
    color: rgba(255,255,255,.62);
}

.ppmp-footer-brand > p:last-child {
    margin-top: 1.45rem;
    line-height: 1.75;
}

.ppmp-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .72rem;
}

.ppmp-footer-column a {
    color: rgba(255,255,255,.76);
    text-decoration: none;
    line-height: 1.45;
}

.ppmp-footer-column a:hover,
.ppmp-footer-column a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ppmp-footer-column p {
    margin: 0;
    line-height: 1.65;
}

.ppmp-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.4rem;
    padding-bottom: 1.6rem;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .78rem;
    color: rgba(255,255,255,.58);
}

@media (max-width: 900px) {

    .ppmp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {

    html,
    body {
        overflow-x: hidden;
    }

    .ppmp-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .ppmp-gallery-item img {
        min-height: 220px;
    }

    .ppmp-footer-grid {
        grid-template-columns: 1fr;
    }

    .ppmp-footer-bottom {
        flex-direction: column;
    }

}

/* =========================================================
   END PPMPP VISUAL POLISH 1B
   ========================================================= */

/* === PPMPP NAVIGATION ACCESS FIX START === */

html {
    scroll-behavior: smooth;
}

#profil,
#pengembangan-pendidikan,
#spme,
#spmi,
#berita,
#dokumentasi,
#kontak {
    scroll-margin-top: 138px;
}

.ppmp-focus-card:target {
    outline: 3px solid rgba(15, 118, 110, .28);
    outline-offset: 5px;
}

@media (max-width: 900px) {

    #profil,
    #pengembangan-pendidikan,
    #spme,
    #spmi,
    #berita,
    #dokumentasi,
    #kontak {
        scroll-margin-top: 104px;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}

/* === PPMPP NAVIGATION ACCESS FIX END === */

/* =========================================================
   PPMPP DIRECTORY + NAV CLICK FIX START
   ========================================================= */

/*
 * Explicit click-layer protection.
 * Parent theme is intentionally left untouched.
 */
.labt-site-header {
    isolation: isolate;
}

.labt-site-header .labt-header-main {
    position: relative;
    z-index: 10001;
}

.labt-site-header .labt-primary-nav {
    z-index: 10002;
    pointer-events: auto;
}

.labt-site-header .labt-menu,
.labt-site-header .labt-menu li,
.labt-site-header .labt-menu a,
.labt-site-header .labt-menu-toggle {
    pointer-events: auto;
}

.labt-site-header .labt-menu-toggle {
    position: relative;
    z-index: 10003;
}

.labt-menu li:focus-within > .sub-menu {
    display: block;
}

/* Clickable PPMPP focus cards. */
a.ppmp-focus-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.ppmp-focus-card:hover,
a.ppmp-focus-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(15,118,110,.22);
    box-shadow: 0 18px 42px rgba(15,23,42,.09);
}

a.ppmp-focus-card:focus-visible {
    outline: 3px solid rgba(15,118,110,.28);
    outline-offset: 4px;
}

/* Directory page */
.ppmp-directory {
    width: 100%;
}

.ppmp-directory-hero {
    padding: clamp(3.25rem, 6vw, 5.5rem) 0;
    background:
        linear-gradient(
            135deg,
            rgba(5,76,99,.08),
            rgba(255,255,255,.97) 48%,
            rgba(15,118,110,.08)
        );
}

.ppmp-directory-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.ppmp-directory-hero p {
    max-width: 720px;
    margin: 1rem 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.ppmp-directory-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.7rem;
}

.ppmp-directory-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .65rem .9rem;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: .7rem;
    background: #fff;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.ppmp-directory-shortcuts a:hover,
.ppmp-directory-shortcuts a:focus-visible {
    border-color: rgba(15,118,110,.28);
    color: var(--labt-primary, #0f766e);
}

.ppmp-directory-content {
    padding-top: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.ppmp-directory-section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    scroll-margin-top: var(--labt-anchor-offset, 138px);
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.ppmp-directory-section:last-child {
    border-bottom: 0;
}

.ppmp-directory-heading {
    max-width: 760px;
    margin-bottom: 1.6rem;
}

.ppmp-directory-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.12;
}

.ppmp-directory-heading p {
    margin: .8rem 0 0;
    line-height: 1.7;
}

.ppmp-directory-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.ppmp-directory-item {
    overflow: hidden;
    padding: 1.3rem;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.ppmp-directory-thumb {
    display: block;
    margin: -1.3rem -1.3rem 1.2rem;
}

.ppmp-directory-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.ppmp-directory-item h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.ppmp-directory-item h3 a {
    color: inherit;
    text-decoration: none;
}

.ppmp-directory-item h3 a:hover {
    color: var(--labt-primary, #0f766e);
}

.ppmp-directory-item p {
    margin: .75rem 0 1rem;
    line-height: 1.65;
}

.ppmp-directory-empty {
    padding: 1.25rem;
    border: 1px dashed rgba(15,23,42,.16);
    border-radius: .9rem;
    background: rgba(15,23,42,.025);
}

/*
 * Desktop: preserve normal dropdown positioning.
 */
@media (min-width: 1081px) {

    .labt-site-header .labt-primary-nav {
        position: relative;
    }

    .labt-menu .sub-menu {
        z-index: 10010;
    }

}

/*
 * Mobile: theme has no submenu-toggle JS.
 * Keep Directory children visible whenever main nav is open.
 */
@media (max-width: 1080px) {

    .labt-primary-nav.is-open {
        z-index: 10005;
    }

    .labt-primary-nav.is-open .labt-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: .25rem 0 .4rem .8rem;
        padding: .25rem 0 .25rem .75rem;
        border: 0;
        border-left: 2px solid rgba(15,118,110,.18);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ppmp-directory-list {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 640px) {

    .ppmp-directory-shortcuts a {
        width: 100%;
    }

    .ppmp-directory-list {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   PPMPP DIRECTORY + NAV CLICK FIX END
   ========================================================= */

/* === PPMPP PORTAL HUB START === */

.ppmp-hub-page {
    width: 100%;
    overflow: hidden;
}

.ppmp-hub-hero {
    padding: clamp(3.2rem, 6vw, 5.6rem) 0;
    background:
        linear-gradient(
            135deg,
            rgba(5,76,99,.08),
            rgba(255,255,255,.97) 47%,
            rgba(15,118,110,.08)
        );
}

.ppmp-hub-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.ppmp-hub-hero > .labt-shell > p {
    max-width: 760px;
    margin: 1rem 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.ppmp-hub-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.6rem;
}

.ppmp-hub-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .65rem .9rem;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: .7rem;
    background: #fff;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.ppmp-hub-shortcuts a:hover,
.ppmp-hub-shortcuts a:focus-visible {
    border-color: rgba(15,118,110,.3);
    color: var(--labt-primary, #0f766e);
}

.ppmp-hub-content {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.ppmp-hub-section {
    padding: clamp(2.6rem, 5vw, 4.4rem) 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
    scroll-margin-top: 138px;
}

.ppmp-hub-section:last-child {
    border-bottom: 0;
}

.ppmp-hub-section > h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.12;
}

.ppmp-hub-section > p {
    max-width: 800px;
    margin: .85rem 0 0;
    line-height: 1.75;
}

.ppmp-hub-empty {
    margin-top: 1.35rem;
    padding: 1.15rem 1.25rem;
    border: 1px dashed rgba(15,23,42,.18);
    border-radius: .9rem;
    background: rgba(15,23,42,.025);
    line-height: 1.65;
}

.ppmp-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ppmp-team-card {
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.ppmp-team-photo {
    display: block;
    margin: -1.15rem -1.15rem 1rem;
}

.ppmp-team-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.ppmp-team-card h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    line-height: 1.4;
}

.ppmp-team-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ppmp-hub-news-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.ppmp-hub-news-card {
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1rem;
    background: #fff;
}

.ppmp-hub-news-card > a {
    display: block;
}

.ppmp-hub-news-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.ppmp-hub-news-card > div {
    padding: 1.25rem;
}

.ppmp-hub-news-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.ppmp-hub-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ppmp-hub-news-card p {
    margin: .75rem 0 1rem;
    line-height: 1.65;
}

.ppmp-hub-contact-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .9rem;
    margin-top: 1.35rem;
}

.ppmp-hub-contact-grid > div {
    display: grid;
    gap: .35rem;
    padding: 1.1rem;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: .9rem;
    background: #fff;
}

.ppmp-hub-contact-grid strong {
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ppmp-hub-contact-grid a,
.ppmp-hub-contact-grid span {
    color: inherit;
    line-height: 1.6;
}

/* Existing homepage focus cards now navigate to real pages. */
a.ppmp-focus-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Keep nav click-layer explicit. */
.labt-site-header {
    isolation: isolate;
}

.labt-site-header .labt-header-main {
    position: relative;
    z-index: 10001;
}

.labt-site-header .labt-primary-nav,
.labt-site-header .labt-menu,
.labt-site-header .labt-menu li,
.labt-site-header .labt-menu a,
.labt-site-header .labt-menu-toggle {
    pointer-events: auto;
}

.labt-site-header .labt-primary-nav {
    z-index: 10002;
}

@media (max-width: 900px) {

    .ppmp-team-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ppmp-hub-contact-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {

    .ppmp-hub-shortcuts a {
        width: 100%;
    }

    .ppmp-team-grid,
    .ppmp-hub-news-grid {
        grid-template-columns: 1fr;
    }

    .ppmp-hub-section {
        scroll-margin-top: 104px;
    }

}

/* === PPMPP PORTAL HUB END === */

/* PPMPP_NAV_HERO_V2_START */

/* Reduce space immediately below the header. */
.ppmp-home .ppmp-hero {
    margin-top: 0;
    padding-top: clamp(1.1rem, 2vw, 1.85rem);
    padding-bottom: clamp(1.4rem, 2.4vw, 2.4rem);
}

/* Reduce space between hero and the About section. */
.ppmp-home .ppmp-profile {
    padding-top: clamp(1.6rem, 3vw, 2.8rem);
}

.ppmp-home .ppmp-hero-grid {
    align-items: center;
}

/* Native WordPress dropdown. */
@media (min-width: 1081px) {
    .labt-site-header .labt-menu > li.menu-item-has-children > .sub-menu {
        top: 100%;
        min-width: 235px;
        max-width: min(300px, calc(100vw - 24px));
        max-height: min(65vh, 490px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 7px;
        border-radius: 12px;
        z-index: 10010;
    }

    .labt-site-header .labt-menu > li.menu-item-has-children:hover > .sub-menu,
    .labt-site-header .labt-menu > li.menu-item-has-children:focus-within > .sub-menu {
        display: block;
    }

    .labt-site-header .labt-menu > li:nth-last-child(-n+2) > .sub-menu {
        left: auto;
        right: 0;
    }
}

.labt-site-header .labt-menu .sub-menu a {
    padding: 9px 11px;
    font-size: .88rem;
    line-height: 1.4;
    white-space: normal;
    font-weight: 550;
}

.labt-elementor-fullwidth [id] {
    scroll-margin-top: 125px;
}

@media (max-width: 1080px) {
    .labt-site-header .labt-primary-nav.is-open {
        max-height: calc(100dvh - 125px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .labt-site-header .labt-menu > li.menu-item-has-children > .sub-menu {
        position: static;
        display: block;
        max-width: none;
        max-height: none;
        margin: 0 0 6px 10px;
        padding: 2px 0 4px 8px;
        box-shadow: none;
        border: 0;
        background: transparent;
    }
}

@media (max-width: 640px) {
    .ppmp-home .ppmp-hero {
        padding-top: 1.1rem;
        padding-bottom: 1.6rem;
    }

    .ppmp-home .ppmp-profile {
        padding-top: 1.7rem;
    }

    .labt-elementor-fullwidth [id] {
        scroll-margin-top: 105px;
    }
}

/* PPMPP_NAV_HERO_V2_END */

/* PPMPP_CONTENT_VISUAL_RECONCILIATION_V1 */

/* Horizontal logo: do not constrain to the old icon dimensions. */
body .labt-site-header .labt-custom-logo img.custom-logo {
    display: block !important;
    width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain !important;
}

@media (min-width: 1081px) and (max-width: 1280px) {
    body .labt-site-header .labt-custom-logo img.custom-logo {
        width: 115px !important;
        max-width: 115px !important;
    }
}

@media (max-width: 1080px) {
    body .labt-site-header .labt-custom-logo img.custom-logo {
        width: 120px !important;
        max-width: 120px !important;
    }
}

@media (max-width: 640px) {
    body .labt-site-header .labt-custom-logo img.custom-logo {
        width: 95px !important;
        max-width: 95px !important;
    }
}

/* Override the parent's important 88px hero padding. */
body main#content.ppmp-home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body main#content.ppmp-home .labt-home-hero-section.ppmp-hero {
    margin-top: 0 !important;
    padding-top: clamp(12px, 1.6vw, 24px) !important;
    padding-bottom: clamp(20px, 2.5vw, 34px) !important;
}

body main#content.ppmp-home .ppmp-profile {
    padding-top: clamp(22px, 3vw, 40px) !important;
}

body main#content.ppmp-home .ppmp-section {
    padding-bottom: clamp(32px, 4vw, 56px);
}

/* Prevent cropping of original photos and documents. */
body main.ppmp-home .ppmp-hero-media img {
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

body main.ppmp-home .ppmp-news-image img {
    display: block;
    width: 100% !important;
    height: 260px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: #eef5f3;
}

body main.ppmp-home .ppmp-gallery-item img {
    display: block;
    width: 100% !important;
    height: 280px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: #eef5f3;
}

.ppmp-reuse-team-grid,
.ppmp-reuse-news-grid,
.ppmp-central-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 26px auto;
}

.ppmp-reuse-news-grid,
.ppmp-central-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ppmp-reuse-person,
.ppmp-reuse-article,
.ppmp-central-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce9e6;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 52, 52, .045);
}

.ppmp-reuse-person {
    padding: 14px;
    text-align: center;
}

.ppmp-reuse-person .ppmp-reuse-portrait,
.ppmp-reuse-person .ppmp-reuse-photo-pending {
    display: block;
    width: 100%;
    height: 225px;
    border-radius: 10px;
    background: #edf4f2;
    object-fit: contain;
}

.ppmp-reuse-photo-pending {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #526b67;
    font-size: 13px;
}

.ppmp-reuse-person h3 {
    margin: 13px 0 2px;
    font-size: 15px;
    line-height: 1.45;
}

.ppmp-reuse-article img,
.ppmp-central-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #edf4f2;
}

.ppmp-reuse-article-body,
.ppmp-central-card-body {
    padding: 18px;
}

.ppmp-reuse-article h3,
.ppmp-central-card h3 {
    margin: 0 0 10px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.4;
}

.ppmp-reuse-article h3 a,
.ppmp-central-card h3 a,
.ppmp-central-more a {
    color: #086b62;
    text-decoration: none;
}

.ppmp-reuse-article p,
.ppmp-central-card p,
.ppmp-reuse-empty {
    color: #526b67;
    line-height: 1.65;
}

.ppmp-reuse-readmore {
    display: inline-block;
    margin-top: 8px;
    font-weight: 650;
    color: #08786c;
}

.ppmp-central-news {
    background: #f3f8f6;
}

.ppmp-central-more {
    margin: 20px 0 0;
    font-weight: 650;
}

@media (max-width: 900px) {
    .ppmp-reuse-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ppmp-reuse-team-grid,
    .ppmp-reuse-news-grid,
    .ppmp-central-news-grid {
        grid-template-columns: 1fr;
    }

    body main.ppmp-home .ppmp-news-image img,
    body main.ppmp-home .ppmp-gallery-item img {
        height: 250px !important;
    }
}
