/* PPM Kemitraan — public list & detail */

.ppm-hero {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(253, 192, 3, 0.18), transparent 55%),
        linear-gradient(135deg, #001e40 0%, #0a2f5c 48%, #163d52 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}

@media (min-width: 768px) {
    .ppm-hero {
        padding: 4.5rem 0 3.75rem;
    }
}

.ppm-hero-inner,
.ppm-list-inner,
.ppm-detail-hero-inner,
.ppm-detail-section > .ppm-detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .ppm-hero-inner,
    .ppm-list-inner,
    .ppm-detail-hero-inner,
    .ppm-detail-section > .ppm-detail-layout {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.ppm-hero-inner {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .ppm-hero-inner {
        grid-template-columns: 1.4fr 1fr;
        align-items: end;
        gap: 3rem;
    }
}

.ppm-hero-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fdc003;
}

.ppm-hero-title {
    margin: 0 0 0.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
}

.ppm-hero-lead {
    margin: 0;
    max-width: 34rem;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.ppm-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ppm-hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 1rem 0.875rem;
    text-align: center;
    backdrop-filter: blur(6px);
}

.ppm-hero-stat-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fdc003;
    line-height: 1.1;
}

.ppm-hero-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
}

.ppm-list-section {
    padding: 2rem 0 4rem;
    background:
        linear-gradient(180deg, #eef3f9 0%, #f7f9fc 28%, #f7f9fc 100%);
}

.ppm-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 30, 64, 0.04);
}

@media (min-width: 900px) {
    .ppm-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 1rem;
    }
}

.ppm-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ppm-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #43474f;
    background: #f1f5f9;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ppm-filter .material-symbols-outlined {
    font-size: 1.125rem;
}

.ppm-filter:hover {
    background: #e8eef6;
    color: #001e40;
}

.ppm-filter.is-active {
    background: #001e40;
    color: #fff;
}

.ppm-filter-count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    background: rgba(0, 0, 0, 0.08);
}

.ppm-filter.is-active .ppm-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.ppm-year-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ppm-year-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.ppm-year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ppm-year-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #43474f;
    background: #fff;
    border: 1px solid #d8e0ea;
    text-decoration: none;
    transition: all 0.15s;
}

.ppm-year-pill:hover {
    border-color: #001e40;
    color: #001e40;
}

.ppm-year-pill.is-active {
    background: #fdc003;
    border-color: #fdc003;
    color: #3d2e00;
}

.ppm-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ppm-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.ppm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 30, 64, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ppm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 30, 64, 0.1);
    border-color: #b8c7db;
}

.ppm-card-accent {
    height: 4px;
}

.ppm-card-accent--penelitian {
    background: linear-gradient(90deg, #001e40, #3d6bb3);
}

.ppm-card-accent--pengabdian {
    background: linear-gradient(90deg, #c49200, #fdc003);
}

.ppm-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.35rem 1.25rem;
}

.ppm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ppm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.ppm-badge .material-symbols-outlined {
    font-size: 1rem;
}

.ppm-badge--penelitian {
    background: #001e40;
    color: #fff;
}

.ppm-badge--pengabdian {
    background: #ffe8a3;
    color: #5b4300;
}

.ppm-badge--on-dark.ppm-badge--penelitian {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ppm-badge--on-dark.ppm-badge--pengabdian {
    background: #fdc003;
    color: #3d2e00;
}

.ppm-card-year {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.ppm-card-title {
    margin: 0 0 0.65rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #001e40;
}

.ppm-card-title a {
    color: inherit;
    text-decoration: none;
}

.ppm-card-title a:hover {
    text-decoration: underline;
    text-decoration-color: #fdc003;
    text-underline-offset: 4px;
}

.ppm-card-excerpt {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    flex: 1;
}

.ppm-card-meta {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.ppm-card-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.ppm-card-meta-item > .material-symbols-outlined {
    font-size: 1.15rem;
    color: #3d6bb3;
    margin-top: 0.1rem;
}

.ppm-card-meta-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.ppm-card-meta-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0b1c30;
    line-height: 1.35;
    word-break: break-word;
}

.ppm-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.ppm-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ppm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #43474f;
    background: #f1f5f9;
}

.ppm-chip .material-symbols-outlined {
    font-size: 0.9rem;
}

.ppm-chip--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppm-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #001e40;
    text-decoration: none;
    transition: gap 0.15s;
}

.ppm-card-link .material-symbols-outlined {
    font-size: 1.05rem;
}

.ppm-card:hover .ppm-card-link {
    gap: 0.45rem;
}

.ppm-pagination {
    margin-top: 2rem;
}

.ppm-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border: 1px dashed #c3c6d1;
    border-radius: 1rem;
}

.ppm-empty .material-symbols-outlined {
    font-size: 3rem;
    color: #c3c6d1;
    margin-bottom: 0.75rem;
}

.ppm-empty h2 {
    margin: 0 0 0.35rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: #001e40;
}

.ppm-empty p {
    margin: 0 0 1rem;
    color: #64748b;
}

.ppm-empty-link {
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    color: #001e40;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Detail */
.ppm-detail-hero {
    background:
        radial-gradient(ellipse 70% 80% at 0% 100%, rgba(253, 192, 3, 0.12), transparent 50%),
        linear-gradient(145deg, #001e40 0%, #0f2740 100%);
    color: #fff;
    padding: 2.5rem 0 2.75rem;
}

.ppm-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.ppm-back:hover {
    color: #fff;
}

.ppm-back .material-symbols-outlined {
    font-size: 1.1rem;
}

.ppm-detail-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.ppm-detail-year {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.ppm-detail-title {
    margin: 0;
    max-width: 48rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
}

.ppm-detail-partner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.ppm-detail-partner .material-symbols-outlined {
    font-size: 1.2rem;
    color: #fdc003;
}

.ppm-detail-partner-loc {
    color: rgba(255, 255, 255, 0.65);
}

.ppm-detail-section {
    padding: 2rem 0 4rem;
    background: #f4f7fb;
}

.ppm-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ppm-detail-layout {
        grid-template-columns: minmax(0, 1fr) 19rem;
        align-items: start;
        gap: 1.75rem;
    }
}

.ppm-detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.ppm-panel {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 30, 64, 0.03);
}

.ppm-panel-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e8eef5;
}

.ppm-panel-head .material-symbols-outlined {
    color: #001e40;
    font-size: 1.3rem;
}

.ppm-panel-head h2 {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #001e40;
}

.ppm-panel-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #e8eef6;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.ppm-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem 1.35rem;
}

@media (min-width: 640px) {
    .ppm-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ppm-fact {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 0.75rem;
}

.ppm-fact > .material-symbols-outlined {
    color: #3d6bb3;
    font-size: 1.35rem;
}

.ppm-fact-label {
    margin: 0 0 0.15rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.ppm-fact-value {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b1c30;
    line-height: 1.4;
    word-break: break-word;
}

.ppm-member-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.ppm-member {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.ppm-member:last-child {
    border-bottom: none;
}

.ppm-member-avatar {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #001e40;
    background: linear-gradient(135deg, #e8eef6, #dce9ff);
}

.ppm-member-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0b1c30;
}

.ppm-member-meta {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.ppm-partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.15rem 1.25rem 1.35rem;
}

@media (min-width: 640px) {
    .ppm-partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ppm-partner-item {
    padding: 0.85rem 0.95rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #eef2f7;
}

.ppm-prose {
    padding: 1.15rem 1.25rem 1.4rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
}

.ppm-prose p {
    margin: 0 0 0.85em;
}

.ppm-prose p:last-child {
    margin-bottom: 0;
}

.ppm-prose ul,
.ppm-prose ol {
    margin: 0 0 0.85em;
    padding-left: 1.35em;
}

.ppm-prose li {
    margin-bottom: 0.3em;
}

.ppm-prose h2,
.ppm-prose h3,
.ppm-prose h4 {
    margin: 0 0 0.5em;
    color: #001e40;
    font-weight: 700;
    line-height: 1.3;
}

.ppm-prose a {
    color: #001e40;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ppm-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
    border: 1px solid #e2e8f0;
}

.ppm-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
    .ppm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ppm-gallery-item {
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    aspect-ratio: 16 / 10;
}

.ppm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.ppm-gallery-item:hover img {
    transform: scale(1.04);
}

.ppm-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 1.25rem 1.25rem;
    padding: 0.65rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #001e40;
    background: #eef4ff;
    border: 1px solid #dce9ff;
    text-decoration: none;
}

.ppm-video-link:hover {
    background: #e0ebff;
}

.ppm-pub-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0 0.5rem;
}

.ppm-pub {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.ppm-pub:last-child {
    border-bottom: none;
}

.ppm-pub-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #001e40;
    line-height: 1.4;
}

.ppm-pub-meta {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.ppm-pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #001e40;
    text-decoration: none;
    white-space: nowrap;
}

.ppm-pub-link:hover {
    text-decoration: underline;
}

.ppm-pub-link .material-symbols-outlined {
    font-size: 0.95rem;
}

.ppm-detail-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .ppm-detail-aside {
        position: sticky;
        top: 1.25rem;
    }
}

.ppm-aside-card {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 1px 2px rgba(0, 30, 64, 0.03);
}

.ppm-aside-title {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #001e40;
}

.ppm-aside-dl {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.ppm-aside-dl > div {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #f1f5f9;
}

.ppm-aside-dl > div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ppm-aside-dl dt {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.ppm-aside-dl dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0b1c30;
    line-height: 1.4;
}

.ppm-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.ppm-related a {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #001e40;
    text-decoration: none;
    line-height: 1.4;
}

.ppm-related a:hover {
    text-decoration: underline;
    text-decoration-color: #fdc003;
    text-underline-offset: 3px;
}

.ppm-related span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    color: #64748b;
}

.ppm-aside-note {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.875rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #6b5a20;
}

.ppm-aside-note .material-symbols-outlined {
    font-size: 1.15rem;
    color: #b45309;
    flex-shrink: 0;
}

.ppm-aside-note p {
    margin: 0;
}
