/* One consistent appreciation spread. Full-size sources stay linked. */
#jasamu-dikenang .tribute-grid{align-items:stretch;grid-auto-rows:1fr}
#jasamu-dikenang .tribute-profile{display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:26px;background:#fffaf3;border:1px solid #d8cbb8;border-top:3px solid #9a655b;box-shadow:4px 5px 0 #b9a58d25}
#jasamu-dikenang .tribute-profile>.tribute-photo,#jasamu-dikenang .tribute-profile>.tribute-video{flex:0 0 285px;display:block;width:100%;height:285px;max-width:none;aspect-ratio:auto;margin:0 0 24px;padding:0;border:7px solid #fff;background:#eee7db;box-shadow:2px 3px 0 #b9a58d30;box-sizing:border-box;overflow:hidden}
#jasamu-dikenang .tribute-photo>a{display:block;width:100%;height:100%}
#jasamu-dikenang .tribute-photo img{display:block;width:100%;height:100%;object-fit:contain;position:static;max-width:100%;background:#f0e9de}
#jasamu-dikenang .ceremony-photo img{object-fit:cover;object-position:50% 68%}
#jasamu-dikenang .tribute-video video{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:#f0e9de}
#jasamu-dikenang .tribute-video figcaption{display:none}
#jasamu-dikenang .tribute-copy{font:400 1.125rem/1.75 var(--font-body);flex:1}
#jasamu-dikenang .tribute-copy p{margin:0 0 16px}
#jasamu-dikenang .tribute-source{align-self:flex-start;margin-top:12px}
#jasamu-dikenang .tribute-profile h3{margin:0 0 8px!important}
#jasamu-dikenang #perpisahan-selamat-aidil-sujarthanan h3{font-size:1.15rem!important;margin-bottom:7px!important}
/* Consistent photo rhythm; facial features remain above the crop centre. */
.uniform-class-photo,.uniform-group-photo{display:block;width:100%;aspect-ratio:3/2;height:auto!important;object-fit:cover!important;object-position:50% 56%}
#pengawas .prefect-photo-grid{align-items:stretch}
#pengawas .prefect-photo{height:100%;box-sizing:border-box}
.club-story .gallery img.uniform-club-photo{width:100%;height:auto!important;aspect-ratio:3/2;max-height:none;object-fit:contain;background:#eee7db}
#guru .guru-pol img,#akp .guru-pol img{object-position:center 20%}
/* Long, gentle ink loops in the margins, never intercepting input. */
.motion-chapter{position:relative;isolation:isolate}
.motion-motif{position:absolute;width:clamp(145px,22vw,285px);height:auto;pointer-events:none;user-select:none;overflow:visible;color:var(--motif-color);opacity:.62;z-index:0;contain:layout style}
.motion-motif path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.motif-position-0{right:1%;top:25px;rotate:8deg}
.motif-position-1{left:0;bottom:35px;rotate:-8deg}
.motion-chapter>.editorial-wrap,.motion-chapter>.migration-wrap{position:relative;z-index:1}
#cover>.motion-motif{left:3%;right:auto;top:16%;width:250px}
.motion-motif .paper-plane{offset-path:path('M 8 150 C 180 165,70 30,250 65 S 330 180,455 40');offset-rotate:auto}
@keyframes wind-breathe{0%{stroke-dashoffset:1;opacity:0;translate:-18px 0}18%{opacity:.7}65%{stroke-dashoffset:0;opacity:.9;translate:15px -5px}100%{stroke-dashoffset:-.15;opacity:0;translate:32px -8px}}
@keyframes ink-sparkle-long{0%,100%{opacity:.12;scale:.75;rotate:-8deg}35%,65%{opacity:1;scale:1.08;rotate:5deg}}
@keyframes firework-unfurl{0%,18%{stroke-dasharray:0 1;stroke-dashoffset:0;opacity:0}30%{stroke-dasharray:.6 .4;opacity:1}65%{stroke-dasharray:1 0;opacity:.65}88%,100%{stroke-dashoffset:-.6;opacity:0}}
@keyframes plane-glide{0%{offset-distance:0%;opacity:0}8%{opacity:1}82%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes cheer-sway{0%,100%{opacity:.15;scale:.88;translate:0 3px}45%,60%{opacity:1;scale:1.02;translate:0 -5px}}
@media(prefers-reduced-motion:no-preference){
.motion-motif .wind-stroke,.motion-motif .flight-trail{stroke-dasharray:1;animation:wind-breathe var(--motif-duration,24s) var(--motif-delay,0s) ease-in-out infinite}
.motion-motif .sparkle-stroke{transform-box:fill-box;transform-origin:center;animation:ink-sparkle-long var(--motif-duration,24s) var(--motif-delay,0s) ease-in-out infinite}
.motion-motif .firework-ray{animation:firework-unfurl var(--motif-duration,24s) calc(var(--motif-delay,0s) + var(--ray-delay,0s)) ease-out infinite}
.motion-motif .paper-plane{animation:plane-glide var(--motif-duration,24s) var(--motif-delay,0s) linear infinite}
.motion-motif .cheer-stroke{transform-box:fill-box;transform-origin:center;animation:cheer-sway var(--motif-duration,24s) var(--motif-delay,0s) ease-in-out infinite}
.motion-motif:not(.motion-visible) *{animation-play-state:paused!important}
.ink-doodle.decoration-seen .ink-star{animation:ink-twinkle 14s ease-in-out infinite!important}
.ink-doodle.decoration-seen .ink-squiggle{animation:ink-wave 18s ease-in-out infinite!important}
}
/* A compact newspaper-style ribbon, separate from the teacher profiles. */
body.has-quote-ribbon{padding-bottom:62px}
.quote-ribbon{position:fixed;bottom:0;left:0;right:0;z-index:190;display:flex;align-items:center;gap:0;min-height:52px;background:#f8edcc;color:#322b25;border-top:2px solid #c89835;box-shadow:0 -3px 12px #00000012;padding:0 12px 0 0;box-sizing:border-box}
.quote-ribbon-label{align-self:stretch;display:flex;align-items:center;padding:8px 18px;border-right:1px solid #b18d4960;font:700 .95rem/1.2 var(--font-note);white-space:nowrap;background:#eed78e}
.quote-window{flex:1;min-width:0;overflow:hidden;outline-offset:-3px}
.quote-track{display:flex;width:max-content;animation:quote-travel var(--quote-duration,160s) linear infinite;will-change:transform}
.quote-group{display:flex;align-items:center;flex-shrink:0}
.quote-item{display:inline-flex;align-items:center;gap:8px;padding:12px 32px;font:400 1rem/1.5 var(--font-note);white-space:nowrap}
.quote-item:after{content:'✧';color:#a37625;margin-left:32px;font-size:1.2rem}
.quote-item strong{color:#7b3931;font-weight:700}
.quote-ribbon button,.quote-restore{font:700 .9rem/1.3 var(--font-note);border:1px solid #bda365;background:#fff9e9;color:#4e3d27;min-height:36px;cursor:pointer;padding:5px 11px;border-radius:3px;margin-left:8px;flex-shrink:0}
.quote-dismiss{font-size:1.3rem!important;min-width:36px}
.quote-restore{position:fixed;bottom:12px;left:12px;z-index:190;box-shadow:2px 3px 0 #0002;margin:0}
.quote-restore[hidden],.quote-ribbon[hidden]{display:none!important}
.quote-ribbon:hover .quote-track,.quote-ribbon:focus-within .quote-track{animation-play-state:paused}
html.motion-paused .motion-motif *,html.motion-paused .ink-doodle *,html.motion-paused .quote-track{animation-play-state:paused!important}
body.has-quote-ribbon #back-to-index{bottom:72px!important}
@keyframes quote-travel{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:760px){
#jasamu-dikenang .tribute-grid{grid-auto-rows:auto;grid-template-columns:1fr}
#jasamu-dikenang .tribute-profile{padding:20px}
#jasamu-dikenang .tribute-profile>.tribute-photo,#jasamu-dikenang .tribute-profile>.tribute-video{height:245px;flex-basis:245px}
.motion-motif{width:155px;opacity:.42}.motif-position-0{right:-14px;top:8px}.motif-position-1{left:-15px;bottom:14px}#cover>.motion-motif{width:190px;top:13%;left:-40px}
.quote-ribbon{min-height:56px;padding-right:6px}.quote-ribbon-label{padding:6px 8px;white-space:normal;width:64px;font-size:.75rem}.quote-ribbon button{font-size:.8rem;padding:5px 8px;margin-left:5px}.quote-item{font-size:.95rem;padding-inline:18px;gap:6px}.quote-item:after{margin-left:18px}
}
@media(prefers-reduced-motion:reduce){.motion-motif{opacity:.35}.motion-motif *,.quote-track{animation:none!important}.quote-window{overflow-x:auto}.quote-track{transform:none;will-change:auto}.quote-group[aria-hidden=true]{display:none}.quote-item{white-space:normal;min-width:260px;max-width:400px}.paper-plane{offset-distance:55%}}

/* Keep animated margin strokes within each chapter on narrow screens. */
.motion-chapter{overflow-x:clip}


/* Selected ink trails travel behind the paper cards at different speeds. */
.motion-chapter>.motion-motif:nth-of-type(even){top:38%;bottom:auto;left:12%;right:auto;width:clamp(220px,42vw,580px);opacity:.48}
.motion-chapter>.motion-motif:nth-of-type(3n){top:62%;bottom:auto;right:6%;left:auto}
@media(max-width:760px){.motion-chapter>.motion-motif:nth-of-type(even){left:3%;width:260px;opacity:.32}}
