:root { --heading-content-gap: 18px; }
:root{--ink:#222222;--pink:#ea338e;--paper:#f6f7fc;--muted:#545b70}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:25px}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,a{touch-action:manipulation}a:focus-visible,button:focus-visible{outline:3px solid #00a3e0;outline-offset:5px}header{max-width:1320px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:26px 48px}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:850;letter-spacing:-1px}.brand small{display:block;font-size:11px;letter-spacing:1px;font-weight:600;text-transform:uppercase}.mark{background:var(--ink);color:var(--pink);width:44px;height:46px;display:grid;place-content:center;font-size:29px;border-radius:10px;position:relative}.mark span{position:absolute;right:3px;top:-2px;font-size:21px}nav{display:flex;gap:32px;align-items:center;font-size:14px;font-weight:650}.nav-cta{border:1px solid #cbd2e6;border-radius:30px;padding:10px 20px}.hero{max-width:1320px;margin:auto;padding:28px 48px 70px;display:grid;grid-template-columns:1.05fr 1fr;gap:45px;align-items:center}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:750;margin:0 0 22px}h1{font-size:clamp(60px,6.5vw,94px);line-height:1.04;letter-spacing:-5px;margin:0 0 27px;font-weight:800}h1 em{font-style:normal;position:relative;z-index:0}h1 em:after{content:"";height:18px;background:var(--pink);position:absolute;bottom:6px;left:0;right:0;z-index:-1}.intro{max-width:430px;font-size:19px;color:var(--muted);line-height:1.7}.org{font-size:14px;margin-bottom:28px}.button,button{display:inline-block;border:0;border-radius:8px;padding:15px 23px;font:650 15px system-ui;background:var(--ink);color:white;cursor:pointer}.hero-foot{display:flex;gap:24px;margin-top:35px;font-size:12px;color:var(--muted)}.hero-foot span:before{content:"✳";margin-right:8px}.lab{height:530px;background:var(--ink);color:#e4ebff;border-radius:20px;position:relative;overflow:hidden;background-image:radial-gradient(#293e6b 1px,transparent 1px);background-size:24px 24px}.lab-top,.lab-bottom{position:absolute;left:28px;right:28px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px}.lab-top{top:25px}.lab-bottom{bottom:25px;font-size:13px;letter-spacing:0}.lab-bottom span+span{font-size:30px;line-height:1}.orbit{position:absolute;border:1px solid #3c5894;border-radius:50%;width:420px;height:420px;left:30px;top:50px}.orbit-two{width:290px;height:290px;left:100px;top:115px}.chip{position:absolute;background:#151d35;border:7px solid #547bdd;width:165px;height:140px;left:40px;top:108px;transform:rotate(-14deg);border-radius:12px;box-shadow:10px 18px 0 #03071388}.chip-label{font-size:12px;margin-left:8px}.leds{text-align:center;color:#ff6db2;font-size:13px;line-height:15px;letter-spacing:4px;text-shadow:0 0 10px #ff6db2}.pins{color:#93b9ff;text-align:center;letter-spacing:8px;line-height:26px}.robot{position:absolute;top:225px;left:47%;transform:rotate(8deg);width:175px;height:180px}.robot-head{width:140px;height:70px;background:var(--pink);border-radius:23px 23px 12px 12px;display:flex;align-items:center;justify-content:center;gap:30px;box-shadow:inset -10px -8px #cd327a}.robot-head i{width:18px;height:22px;background:#222222;border-radius:8px}.antenna{height:27px;width:5px;background:#87adff;margin-left:66px;position:relative}.antenna:before{content:"";width:13px;height:13px;background:#ea338e;border-radius:50%;position:absolute;top:-5px;left:-4px}.robot-body{background:#edf2ff;margin:7px 0 0 12px;width:115px;height:65px;border-radius:8px;text-align:center;line-height:65px;font-size:22px;letter-spacing:-1px;font-weight:800;color:#222222}.robot-body span{color:#00a3e0}.wheel{width:32px;height:60px;border:6px solid #53648c;background:#222222;position:absolute;border-radius:9px;top:106px}.left{left:-8px}.right{left:117px}.tag{position:absolute;padding:7px 12px;background:#ea338e;color:#222222;font:12px monospace;border-radius:5px}.tag-one{left:25px;bottom:100px;transform:rotate(-7deg)}.tag-two{right:22px;top:112px;background:#8cb7ff;transform:rotate(9deg)}.about{max-width:1224px;margin:auto;padding:65px 0;display:grid;grid-template-columns:1fr 1.2fr;gap:20px 65px}.about .eyebrow{grid-column:1/-1}h2{font-size:38px;line-height:1.2;letter-spacing:-1.4px;margin:0}p{margin-top:0}.about>p:last-child{color:var(--muted);margin:0}.activities{padding:65px 48px 80px;background:var(--pastel-blue)}.section-head{max-width:1224px;margin:0 auto var(--heading-content-gap);display:flex;justify-content:space-between;align-items:end}.section-head>p{color:var(--muted);font-size:15px}.cards{max-width:1224px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.cards article{border:1px solid #cccccc;border-radius:12px;padding:26px;background:var(--paper)}.icon{font-size:32px;margin-bottom:30px}.category{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#006a91}h3{font-size:21px;line-height:1.3;margin:10px 0 8px;letter-spacing:-.5px}.cards p{color:var(--muted);font-size:15px;margin:0}.cards .wide{grid-column:1/-1;background:var(--ink);color:white;display:flex;justify-content:space-between;align-items:center}.wide .icon{display:none}.wide p{color:#d1ddff;max-width:700px}.wide .category{color:var(--pink)}.workshop-art{font:bold 70px monospace;color:var(--pink);padding:0 35px}.notice{max-width:1320px;padding:80px 48px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:65px}.notice-body p{font-size:16px;color:var(--muted)}.pill{font-size:12px;background:#e1eaff;padding:6px 12px;border-radius:20px;display:inline-block}.notice-body h3{margin-top:20px}#share-status{min-height:24px;margin-top:10px;font-size:14px}footer{background:var(--ink);color:#edf2ff;padding:22px 48px;display:flex;gap:24px;align-items:center;justify-content:space-between}footer p{font-size:13px;margin:0}footer span{color:#b4c5ed}footer>a:last-child{font-size:13px}@media(min-width:1400px){.about{max-width:1224px}}@media(max-width:1300px){.about{margin:0 48px}}@media(max-width:850px){header{padding:22px 24px}nav{gap:15px}nav>a:first-child{display:none}.hero{padding:25px 24px 45px;grid-template-columns:1fr;gap:35px}h1{font-size:72px}.lab{height:470px}.robot{left:55%}.about{margin:0 24px;grid-template-columns:1fr;padding:45px 0;gap:20px}.activities{padding:45px 24px}.cards{grid-template-columns:1fr 1fr}.section-head>p{display:none}.notice{padding:50px 24px;grid-template-columns:1fr;gap:30px}footer{padding:20px 24px;gap:16px 24px;flex-wrap:wrap}h2{font-size:32px}}@media(max-width:480px){.brand small{font-size:9px}nav{font-size:12px}.nav-cta{padding:8px 12px}h1{font-size:64px;letter-spacing:-4px}.lab{height:410px}.chip{left:25px;top:85px}.robot{top:185px;left:51%}.tag-two{top:65px;right:10px;font-size:10px}.tag-one{bottom:65px}.lab-top{font-size:8px}.cards{grid-template-columns:1fr}.cards article{padding:24px}.icon{margin-bottom:15px}.workshop-art{display:none}.hero-foot{gap:18px}.intro{font-size:18px}}

/* PPDDM: hitam, biru dan pink. */
:root{--blue:#00a3e0;--pastel-blue:#eaf0ff}
.button,button{background:var(--blue)}
.button:hover,button:hover{background:#1947b5}
.eyebrow,.icon{color:var(--blue)}
.hero-foot span:before{color:#ab1b62}
.nav-cta{border-color:var(--blue);color:var(--blue)}
.nav-cta:hover{background:#e1eaff}
.lab{background-color:#101725}
.cards .wide{background:#122a66}
.notice .eyebrow{color:#ab1b62}
.pill{color:#21499c}
::selection{background:#ffb3d7;color:#222222}

.microbit-art{position:absolute;width:52%;height:auto;left:6%;top:17%;transform:rotate(-12deg);filter:drop-shadow(8px 14px 10px #03071380)}
.sumo-art{position:absolute;width:65%;height:auto;right:0;bottom:15%;filter:drop-shadow(6px 12px 10px #03071380)}
.tag-two{top:11%;right:16px}.tag-one{bottom:15%;left:18px;z-index:1;font-size:11px}
@media(max-width:480px){.microbit-art{width:58%;left:5%;top:18%}.sumo-art{width:70%;right:-1%;bottom:16%}.tag-one{bottom:13%;font-size:10px}.tag-two{top:11%}}

/* Nama penuh persatuan, rapat di bawah singkatan. */
header .brand>span:last-child{line-height:1.15}
header .brand small{margin-top:3px;line-height:1.3;letter-spacing:.45px;max-width:310px}
@media(max-width:480px){header .brand small{max-width:195px;font-size:9px;letter-spacing:.2px}header{gap:12px}header nav{gap:10px}header nav>a[href="#aktiviti"]{display:none}}

/* Besarkan teks kecil untuk bacaan lebih selesa. */
header .brand small{font-size:.875rem;letter-spacing:.15px;max-width:340px;line-height:1.35}
.eyebrow,.category,.hero-foot,.pill,footer p,footer>a:last-child{font-size:.875rem}
.category{letter-spacing:1px}
.lab-top,.lab-bottom,.tag,.tag-one,.tag-two{font-size:.8125rem}
.lab-top{letter-spacing:.5px;gap:12px;flex-wrap:wrap}
@media(max-width:600px){header{flex-wrap:wrap;gap:16px}header .brand{flex:1 1 100%}header .brand small{max-width:340px;font-size:.875rem}header nav{font-size:.875rem;gap:20px}header nav>a[href="#aktiviti"]{display:block}.eyebrow{letter-spacing:1.2px}.hero-foot{gap:14px;flex-wrap:wrap}.lab-top,.tag-one,.tag-two{font-size:.75rem}}

/* Profil, hala tuju dan barisan persatuan. */
.content-section{max-width:1320px;margin:auto;padding:65px 48px}
.purpose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(19rem, 1fr);
    gap: 28px;
}
.purpose-grid article{padding:32px;border-radius:14px;border:1px solid #cccccc}.purpose-grid p{color:var(--muted)}.purpose-grid h3{margin-top:24px}.vision{background:#122a66;color:#fff}.vision .eyebrow{color:#ff95c9}.vision ul{padding-left:22px;margin:0}
.vision li {
    line-height: 1.45;
}

.vision li + li {
    margin-top: 8px;
}
.history{padding-top:35px}.timeline{list-style:none;padding:0;margin:var(--heading-content-gap) 0 0;display:grid;grid-template-columns:repeat(5,1fr)}.timeline li{border-top:3px solid var(--blue);padding:22px 22px 0 0;position:relative}.timeline li:before{content:"";width:13px;height:13px;border-radius:50%;background:var(--pink);box-shadow:0 0 0 3px rgb(234 51 142 / 16%),0 0 12px rgb(234 51 142 / 65%);position:absolute;top:-8px;left:0}.timeline .year{font-size:26px;font-weight:800;color:var(--blue)}.timeline p{font-size:16px;color:var(--muted)}.leadership h2{margin-bottom:35px}.leadership-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:45px}.office-bearers{margin:0}.office-bearers>div{padding:18px 0;border-bottom:1px solid #cccccc}.office-bearers>div:first-child{padding-top:0}.office-bearers dt{color:var(--blue);font-weight:700;margin-bottom:5px}.office-bearers dd{margin:0;font-weight:650}.committee{background:#eaf0ff;border-radius:14px;padding:28px}.committee h3{margin-top:0}.committee ul{padding-left:21px;margin-bottom:0}.committee li{padding:8px 0}.membership{display:grid;grid-template-columns:1fr 1fr;gap:65px}.membership h2{margin-bottom:22px}.membership p{color:var(--muted)}.member-stats{margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.member-stats>div{border:1px solid #cccccc;padding:18px 24px;border-radius:12px;background:#eaf0ff;display:flex;flex-direction:column-reverse}.member-stats dt{font-size:16px}.member-stats dd{font-size:40px;font-weight:800;line-height:1.2;margin:0 0 8px;color:var(--blue)}.member-stats .member-total{background:#222222;color:#fff;border-color:#222222}.member-total dd{color:#ff95c9}.stats-note{font-size:.875rem;margin:16px 0 0}header nav{gap:22px}
@media(max-width:1000px){header{flex-wrap:wrap;gap:20px}.timeline{grid-template-columns:1fr}.timeline li {
    border-top: 0;
    border-left: 3px solid var(--blue);
    padding: 0 0 14px 20px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:before { left: -8px; top: 7px; }
.timeline .year { display: block; line-height: 1.2; }
.timeline h3 { margin: 4px 0; }
.timeline p { margin-bottom: 0; }
}
@media(max-width:850px){.content-section{padding:45px 24px}.purpose-grid,.leadership-grid,.membership{grid-template-columns:1fr;gap:28px}.purpose-grid article{padding:25px}.membership h2{margin-bottom:20px}}
@media(max-width:600px){header nav{flex-wrap:wrap;gap:12px 20px}header nav>a:first-child{display:block}.member-stats>div{padding:18px}.member-stats dd{font-size:34px}}

/* Identiti korporat daripada garis panduan jenama PPDDM. */
@font-face{font-family:Poppins;src:url('/assets/poppins-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/poppins-medium.ttf') format('truetype');font-weight:500 600;font-style:normal;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/poppins-bold.ttf') format('truetype');font-weight:700 900;font-style:normal;font-display:swap}
body{font-family:Poppins,system-ui,sans-serif}.button,button{font-family:inherit;font-weight:600;background:#007ba8}.button:hover,button:hover{background:#006387}
header{background:#fff}.official-brand{padding:14px 18px;flex-shrink:0}.official-brand img{display:block;width:350px;max-width:100%;height:auto}header .official-brand{line-height:1}
.eyebrow,.nav-cta,.timeline .year,.office-bearers dt,.member-stats dd{color:#007ba8}.nav-cta{border-color:#00a3e0}.member-total dd{color:#ff95c9}
h1 em:after{background:#f9a8d1}.lab{background-color:#222222;background-image:radial-gradient(#46505c 1px,transparent 1px)}.cards .wide,.vision{background:#222222}footer{background:#222222}
.footer-brand {
    padding: 9px;
    flex-shrink: 0;
}

.footer-logo {
    display: block;
    width: 44px;
    height: auto;
    overflow: visible;
}

.philosophy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:var(--heading-content-gap)}.philosophy-grid article {
    padding-top: 10px;
    border-top: 4px solid #ea338e;
}

.timeline h3,
.philosophy-grid h3 {
    font-size: 18px;
}

.philosophy-grid h3 {
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: inherit;
}
.philosophy-grid article:nth-child(2){border-color:#00a3e0}.philosophy-grid article:nth-child(3){border-color:#222222}.philosophy-grid p{margin:0;color:var(--muted)}
@media(max-width:850px){.philosophy-grid{grid-template-columns:1fr;gap:14px}.official-brand img{width:330px}.official-brand{padding:12px}}
@media(max-width:600px){header .official-brand{flex:0 1 auto;width:100%;max-width:375px}header .official-brand img{width:100%}h1{font-size:clamp(48px,12vw,64px);letter-spacing:-3px}header nav{font-size:.8125rem}.hero-foot{font-size:.8125rem}}

/* Kepala laman lebih padat. */
header{padding-top:14px;padding-bottom:14px}
header .official-brand{padding:6px 10px}
header .official-brand img{width:205px;height:auto}
@media(max-width:850px){header{padding-top:12px;padding-bottom:12px;gap:12px}header .official-brand img{width:195px}}
@media(max-width:600px){header{padding-top:10px;padding-bottom:10px;gap:10px}header .official-brand{width:auto;max-width:100%;padding:4px 8px}header .official-brand img{width:185px;max-width:100%}}

/* Tajuk utama kekal dua baris mengikut lebar ruangnya. */
.hero-copy{min-width:0}
h1.hero-title{line-height:1.25}
.hero-title>span{display:block;white-space:nowrap}
h1.hero-title em:after{height:.17em;bottom:.06em}

main {
    /* The hero text occupies 1.05 of 2.05 grid fractions after padding and gap. */
    --main-title-size: clamp(20px, calc((min(100vw, 1320px) - 141px) * 1.05 / 2.05 * .076), 54px);
}

h1.hero-title,
.page-heading h1,
main.subpage h2 {
    font-size: var(--main-title-size);
    letter-spacing: -.045em;
}

@media (width > 700px) {
    .subpage h2.section-title {
        font-size: calc(var(--main-title-size) * .8);
    }
}

.page-heading {
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px 48px 24px;
}

.page-heading h1 {
    margin: 0;
    line-height: 1.15;
}

@media (max-width: 850px) {
    main {
        /* The hero becomes a single column with 24px gutters. */
        --main-title-size: clamp(20px, calc((100vw - 48px) * .076), 54px);
    }

    header nav {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    header nav > a:first-child {
        display: block;
    }

    .page-heading {
        padding: 32px 24px 20px;
    }
}

/* Selaraskan jarak antara label bahagian dan tajuk. */
.subpage .eyebrow {
    margin-bottom: 10px;
}

.purpose-grid .eyebrow {
    display: block;
    margin-bottom: 0;
}

.purpose-grid .eyebrow + h3 {
    margin-top: 10px;
}

.subpage > .about,
.subpage > .philosophy {
    background: var(--pastel-blue);
    max-width: none;
    margin-inline: 0;
    padding-inline: max(48px, calc((100% - 1224px) / 2));
}

.subpage > .about {
    row-gap: 10px;
}

@media (max-width: 850px) {
    .subpage > .about,
    .subpage > .philosophy {
        padding-inline: 24px;
    }
}

.subpage > .about .eyebrow {
    margin-bottom: 0;
}

/* Samakan ruang selepas tajuk halaman dan di antara bahagian. */
.subpage {
    --section-spacing: clamp(18px, 2vw, 28px);
}

.subpage > .page-heading,
.subpage > section:not(:last-of-type) {
    padding-bottom: var(--section-spacing);
}

.subpage > section {
    padding-top: var(--section-spacing);
}

.hero-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-top: var(--heading-content-gap);
}

.event-card {
    display: block;
    overflow: hidden;
    background: var(--pastel-blue);
    border-radius: 12px;
}

.event-card-copy {
    display: grid;
    gap: 4px;
    padding: 12px 18px 16px;
}

.event-card-copy :is(p, h3) {
    margin: 0;
}

.event-card-copy:is(:hover, :focus-visible) h3 {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.event-card-copy:focus-visible {
    outline-offset: -4px;
}

.event-date,
.event-details dt {
    font-weight: 600;
}

.event-date,
.event-back {
    color: #006a91;
}

.event-back {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.event-back {
    margin-bottom: 14px;
}

.event-details {
    max-width: 1224px;
    margin: 0 auto;
}

.event-details dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 12px;
    margin: var(--heading-content-gap) 0 0;
}

.event-details dd {
    margin: 0;
}

.event-detail-icon {
    color: #006a91;
    vertical-align: -.2em;
}

@media (max-width: 600px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

.event-thumbnail,
.event-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: var(--heading-content-gap);
}

.event-gallery img {
    border-radius: 8px;
}

@media (max-width: 600px) {
    .event-gallery {
        grid-template-columns: 1fr;
    }
}

.members-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
}

.members-layout .leadership h2 {
    margin-bottom: var(--heading-content-gap);
}

.office-bearers {
    display: grid;
    gap: 10px;
}

.office-bearers > .officer {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 12px;
    padding: 0;
    border: 0;
}

.officer .profile-photo,
.committee .officer:not(:has(.profile-photo))::before {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    align-self: center;
    border-radius: 6px;
    background: var(--pastel-blue);
    object-fit: cover;
}

.committee .officer:not(:has(.profile-photo))::before {
    content: "";
}

.office-bearers .officer dt {
    align-self: end;
    margin: 0;
    font-size: .875rem;
    line-height: 1.3;
}

.office-bearers .officer dd {
    align-self: start;
    font-size: 18px;
    line-height: 1.4;
}

.leadership .committee {
    margin-top: 24px;
    padding: 0;
    background: transparent;
}

.leadership .committee h3 {
    margin-bottom: 8px;
}

.leadership .committee ul {
    margin-top: 0;
}

.leadership .committee li {
    padding: 2px 0;
}

.member-community {
    --teacher-color: #007ba8;
    --private-color: #ea338e;
    --lecturer-color: #222222;
    padding: clamp(20px, 3vw, 32px);
    background: var(--pastel-blue);
    border-radius: 14px;
}

.member-community h2 {
    margin: 0 0 10px;
}

.member-community > p {
    color: var(--muted);
}

.member-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 20px 0 0;
}

.member-pie {
    display: block;
    width: min(100%, clamp(14rem, 22vw, 17rem));
    height: auto;
    justify-self: center;
}

.member-pie path {
    fill: var(--member-color);
    stroke: var(--pastel-blue);
    stroke-width: 1.5px;
    stroke-linejoin: round;
    transform-origin: 50% 50%;
}

.member-pie:has(path:is(:hover, :focus-visible)) path:not(:is(:hover, :focus-visible)) {
    opacity: .55;
}

.member-pie path:is(:hover, :focus-visible) {
    stroke: #fff;
    stroke-width: 3px;
    transform: scale(1.05);
}

/* The selected slice already shows focus through its white stroke and scale. */
.member-pie path:focus {
    outline: none;
}

.member-chart-total {
    margin: 0 0 8px;
}

.member-chart-total strong {
    font-size: 1.25rem;
}

.member-chart-legend {
    display: grid;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-chart-legend li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 8px;
}

.member-chart:has(.member-pie .member-teacher:is(:hover, :focus-visible)) .member-chart-legend .member-teacher,
.member-chart:has(.member-pie .member-private:is(:hover, :focus-visible)) .member-chart-legend .member-private,
.member-chart:has(.member-pie .member-lecturer:is(:hover, :focus-visible)) .member-chart-legend .member-lecturer {
    background: #fff;
    outline: 3px solid #fff;
    border-radius: 4px;
    font-weight: 700;
}

.member-chart-legend li::before {
    content: "";
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--member-color);
}

.member-teacher { --member-color: var(--teacher-color); }
.member-private { --member-color: var(--private-color); }
.member-lecturer { --member-color: var(--lecturer-color); }

@media (max-width: 850px) {
    .members-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Let the main area fill short pages so the footer meets the viewport edge. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > header {
    width: 100%;
}

body > main {
    flex: 1 0 auto;
}

header nav > a.nav-home {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 28px;
    color: #007ba8;
}

header nav > .nav-home svg {
    transform: scaleX(.86);
}

header nav > a {
    position: relative;
    isolation: isolate;
}

header nav > a:where(:not(.nav-home))::before {
    content: "";
    position: absolute;
    inset: -4px -8px;
    z-index: -1;
    border-radius: 999px;
    background: var(--nav-highlight, transparent);
    pointer-events: none;
}

header nav > a:where([aria-current]:not(.nav-home)) {
    --nav-highlight: #fbd5e8;
}

@media (hover: hover) {
    header nav:where(:has(> a:not(.nav-home):hover)) > a {
        --nav-highlight: transparent;
    }

    header nav > a:where(:not(.nav-home):hover) {
        --nav-highlight: #fbd5e8;
    }
}

header nav:where(:has(> a:not(.nav-home):focus-visible)) > a {
    --nav-highlight: transparent;
}

header nav > a:where(:not(.nav-home):focus-visible) {
    --nav-highlight: #fbd5e8;
}

header nav:where(:has(> a:not(.nav-home):active)) > a {
    --nav-highlight: transparent;
}

header nav > a:where(:not(.nav-home):active) {
    --nav-highlight: #fbd5e8;
}

header nav:where(:has(> a.is-navigation-pending)) > a {
    --nav-highlight: transparent;
}

header nav > a:where(.is-navigation-pending:not(.nav-home)) {
    --nav-highlight: #fbd5e8;
}

.purpose-grid .policy-note {
    border-top: 1px solid #ccc;
    padding-top: 16px;
    color: var(--muted);
    font-size: .875rem;
    font-style: italic;
}

.policy-note p {
    margin-bottom: 6px;
}

.policy-note ul {
    margin: 0;
    padding-left: 1.25em;
}

.hero-copy {
    --hero-button-spacing: 18px;
}

.hero-copy .intro {
    margin-bottom: var(--hero-button-spacing);
}

.hero-copy .button {
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 10px 16px;
    min-height: 40px;
    line-height: 1.35;
}

.hero-copy .hero-foot {
    margin-top: var(--hero-button-spacing);
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 700px) {
    h1.hero-title {
        margin-bottom: 18px;
    }

    main h3 {
        font-size: min(21px, calc(var(--main-title-size) - 2px));
    }

    body > header {
        position: relative;
        z-index: 2;
        padding-block: 10px;
        gap: 10px;
    }

    header .official-brand {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        padding: 0;
    }

    header .official-brand img {
        width: clamp(130px, 39vw, 160px);
        max-width: 100%;
    }

    header nav > a.nav-home {
        display: none;
    }

    .has-mobile-menu .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        margin-left: auto;
        padding: 6px 10px;
        background: transparent;
        color: #007ba8;
        -webkit-tap-highlight-color: transparent;
    }

    .has-mobile-menu #primary-nav {
        position: absolute;
        top: 100%;
        right: 24px;
        display: grid;
        gap: 2px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
        min-width: 155px;
        max-width: calc(100% - 48px);
        padding: 8px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgb(34 34 34 / 14%);
    }

    .has-mobile-menu .mobile-menu-toggle[aria-expanded="true"] + #primary-nav {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .has-mobile-menu #primary-nav > a:not(.nav-home) {
        padding: 10px 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .has-mobile-menu #primary-nav > a::before {
        inset: 0;
    }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
    .has-mobile-menu #primary-nav {
        transition: none;
    }
}

main p:not(.eyebrow) {
    line-height: 1.45;
}

.activities .cards {
    gap: 12px;
}

.activities .cards article:not(.wide) {
    padding: 16px;
}

.activities .cards article > .icon {
    display: inline-block;
    margin: 0 8px 0 0;
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
}

.activities .cards .category {
    vertical-align: middle;
}

.activities .cards article:not(.wide) h3 {
    margin: 6px 0 5px;
}

@media (max-width: 700px) {
    .activities .cards .wide {
        padding: 16px;
    }

    .activities .cards .wide h3 {
        margin: 6px 0 5px;
    }
}

.site-footer {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 18px 24px;
}

.site-footer .footer-brand {
    gap: 10px;
    padding: 4px 0;
}

.site-footer .footer-logo {
    width: 32px;
    flex-shrink: 0;
}

.site-footer .footer-brand-name {
    color: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
}

.footer-partners h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: .875rem;
    letter-spacing: normal;
}

.footer-partners ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.footer-partners li {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 48px;
}

.footer-partners img {
    display: block;
    width: auto;
    height: auto;
    max-width: 76px;
    max-height: 44px;
    filter: url("#partner-logo-transparent");
}

.footer-partners .partner-logo-compact img {
    max-width: 59px;
    max-height: 34px;
}

.footer-partners .partner-logo-wordmark img {
    max-width: 76px;
    max-height: 38px;
}

.site-footer .footer-registration {
    font-size: .8rem;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .site-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 12px;
    }

    .site-footer .footer-registration {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-partners {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .site-footer .footer-brand {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .site-footer .footer-registration {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .footer-partners ul {
        max-width: 19rem;
    }
}

@media (max-width: 700px) {
    .members-layout .leadership h2 {
        margin-bottom: 12px;
    }

    .office-bearers {
        gap: 12px;
    }


    .office-bearers > .officer {
        --portrait-size: 46px;
        position: relative;
        grid-template-columns: var(--portrait-size) minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        gap: 2px 10px;
        min-height: var(--portrait-size);
    }

    .office-bearers .officer :is(dt, dd) {
        grid-column: 2;
        font-size: .875rem;
        line-height: 1.25;
    }

    .office-bearers .profile-photo,
    .committee .officer:not(:has(.profile-photo))::before {
        position: absolute;
        grid-row: auto;
        inset-inline-start: 0;
        top: 50%;
        width: var(--portrait-size);
        height: var(--portrait-size);
        transform: translateY(-50%);
    }

    .leadership .committee {
        margin-top: 18px;
    }
}
