:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1b3040;
    background: #f7f9fb;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: #006e8a; }
a:hover { text-decoration: underline; }

.p-header {
    background: #102331;
    color: white;
    padding: 1rem max(1rem, calc((100vw - 1120px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.p-header a { color: white; text-decoration: none; }
.p-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.1rem;
    font-weight: 750;
}
.p-brand img { object-fit: contain; }
.p-header nav {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}
.p-container {
    max-width: 1120px;
    margin: auto;
    padding: 2rem 1.2rem 4rem;
}
.p-breadcrumb {
    font-size: .85rem;
    color: #546c7b;
    margin-bottom: 1.5rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.p-breadcrumb a { color: #546c7b; }
h1 {
    font-size: clamp(1.9rem,4vw,2.8rem);
    line-height: 1.2;
    margin: .3rem 0 1.2rem;
}
h2 {
    font-size: 1.35rem;
    margin: 2.2rem 0 .8rem;
}
.p-lead {
    font-size: 1.08rem;
    max-width: 78ch;
}
.p-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 1rem;
    margin: 1.7rem 0;
}
.p-tile, .p-activity {
    border: 1px solid #dbe3e8;
    background: white;
    border-radius: 13px;
    padding: 1rem 1.2rem;
    box-shadow: 0 3px 14px rgba(0,0,0,.035);
}
.p-tile {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-decoration: none;
}
.p-tile strong { color: #163447; }
.p-tile span, .p-muted {
    color: #647786;
    font-size: .9rem;
}
.p-activities {
    display: grid;
    gap: 1rem;
}
.p-activity h3 {
    font-size: 1.09rem;
    margin: 0;
}
.p-activity p { margin: .7rem 0 0; }
.p-activity-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.p-code {
    font-size: .73rem;
    white-space: nowrap;
    padding: .2rem .5rem;
    border-radius: 6px;
    background: #edf2f5;
    color: #455d6c;
}
.p-related {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.p-related a {
    border: 1px solid #dbe3e8;
    background: white;
    padding: .4rem .7rem;
    border-radius: 100px;
    text-decoration: none;
}
.p-cta {
    background: #e6f1f3;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 2rem;
}
.p-cta h2 { margin-top: 0; }
.p-button {
    display: inline-block;
    background: #102331;
    color: white;
    border-radius: 8px;
    padding: .7rem 1rem;
    text-decoration: none;
    font-weight: 650;
}
.p-footer {
    border-top: 1px solid #dbe3e8;
    text-align: center;
    padding: 1.3rem;
    font-size: .9rem;
}
@media(max-width:650px) {
    .p-container {
        padding: 1.2rem 1rem 3rem;
    }
    .p-activity-top { flex-direction: column; }
    .p-header nav { font-size: .88rem; }
}
