/* Portraits first; the smaller group image sits alongside them on wide screens. */
#akp .akp-layout{display:grid;grid-template-columns:minmax(0,370px) minmax(0,280px);justify-content:center;align-items:center;gap:36px;max-width:780px;margin:32px auto 0}
#akp .akp-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;width:100%;margin:0}
#akp .akp-roster .guru-pol{width:100%!important;max-width:none;padding:9px 9px 13px;transform:none!important}
#akp .akp-roster .gnm{font-size:.9375rem!important;line-height:1.35!important}
#akp .akp-roster .grole{font-size:.875rem!important;line-height:1.45!important}
#akp .akp-group{width:100%;max-width:280px;margin:0;justify-self:center;padding:9px 9px 14px;transform:rotate(1deg)}
#akp .akp-group img{width:100%;height:auto;max-height:380px;object-fit:contain}
#akp .akp-group figcaption{font-size:.875rem!important}
/* Appreciation is part of the staff chapter, with the same heading typography. */
#jasamu-dikenang{padding-top:55px;padding-bottom:65px;background:var(--paper);border-top:1px dashed #a9927b60}
#jasamu-dikenang>.migration-wrap>h2{font-family:var(--font-title)!important;font-size:var(--type-chapter)!important;line-height:1.25!important;font-weight:400!important;color:#772e2b}
#jasamu-dikenang .tribute-card h3{font-family:var(--font-note)!important;font-size:1.25rem!important;font-weight:700!important;line-height:1.4!important}
#jasamu-dikenang .award{font-family:var(--font-note)!important;font-size:.9375rem!important}
.chapter-head h2,.main-title,.migration-wrap>h2{font-family:var(--font-title)!important;font-size:var(--type-chapter)!important;line-height:1.25!important}
/* Every event now shares the same connected timeline, including undated memories. */
.month-events{row-gap:45px}
.timeline-month .timeline-card.timeline-side-left{grid-column:1}
.timeline-month .timeline-card.timeline-side-right{grid-column:2}
.timeline-month .timeline-card.timeline-side-left:before{left:auto;right:-43px}
.timeline-month .timeline-card.timeline-side-right:before{left:-43px;right:auto}
.timeline-undated{margin-top:70px}
.timeline-undated .month-label{font-size:23px}
.timeline-undated .timeline-card{margin-bottom:12px!important}
/* Colored ink drawings in the margins; no raster characters or filled clipart. */
.ink-doodle{position:absolute;width:clamp(75px,10vw,125px);height:auto;color:var(--doodle-color);pointer-events:none;z-index:0;overflow:visible;opacity:.8}
.ink-place-0{right:max(16px,calc((100% - 1240px)/2));top:22px;transform:rotate(8deg)}
.ink-place-1{left:max(10px,calc((100% - 1230px)/2));bottom:25px;transform:rotate(-8deg)}
#cover>.ink-doodle{width:140px;right:5%;top:auto;bottom:10%;opacity:.75}
#guru,#uniform,#kelab,#sukan,#rumah-sukan,#pencapaian-kokurikulum{position:relative;isolation:isolate}
.ink-doodle path{vector-effect:non-scaling-stroke}
@keyframes ink-draw{0%{stroke-dashoffset:1;opacity:.2}75%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes ink-twinkle{0%,100%{scale:.94;rotate:-3deg}50%{scale:1.06;rotate:3deg}}
@keyframes ink-wave{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -3px;rotate:1deg}}
@media(prefers-reduced-motion:no-preference){.ink-doodle.decoration-seen path{stroke-dasharray:1;stroke-dashoffset:0;animation:ink-draw 1.8s ease both}.ink-doodle.decoration-seen .ink-star{transform-box:fill-box;transform-origin:center;animation:ink-draw 1.8s ease both,ink-twinkle 2.5s 1.8s ease-in-out 3}.ink-doodle.decoration-seen .ink-squiggle{transform-box:fill-box;transform-origin:center;animation:ink-draw 1.8s ease both,ink-wave 3s 1.8s ease-in-out 3}}
@media(max-width:760px){#akp .akp-layout{grid-template-columns:1fr;gap:28px;max-width:360px}#akp .akp-group{max-width:250px}#akp .akp-group img{max-height:330px}.timeline-month .timeline-card.timeline-side-left:before,.timeline-month .timeline-card.timeline-side-right:before{left:-37px;right:auto}.timeline-month .timeline-card{grid-row:auto!important}.ink-doodle{width:65px;opacity:.55}.ink-place-0{right:8px;top:8px}.ink-place-1{left:5px;bottom:15px}#cover>.ink-doodle{width:85px;bottom:35px;right:10px}.timeline-undated .month-label{font-size:20px}#jasamu-dikenang{padding-block:45px}}
@media(prefers-reduced-motion:reduce){.ink-doodle path{animation:none!important;stroke-dasharray:none!important;stroke-dashoffset:0!important}}
