:root { --rugipo-green: #024202; --rugipo-gold: #ffc72c; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rugipo-gold); outline-offset: 2px; }

@keyframes ticker { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }
.animate-ticker { display: inline-flex; white-space: nowrap; animation: ticker 35s linear infinite; }
.animate-ticker:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .animate-ticker { animation: none; } }

.timeline-step { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.timeline-step.visible { opacity: 1; transform: translateY(0); }
.no-js .timeline-step { opacity: 1; transform: none; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Article body typography */
.article-body { color: #334155; font-size: 1.0625rem; line-height: 1.85; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; color: #024202; line-height: 1.3; margin-top: 1.6em; }
.article-body h3 { font-size: 1.25rem; font-weight: 700; color: #024202; margin-top: 1.4em; }
.article-body h4 { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.article-body a { color: #024202; font-weight: 600; text-decoration: underline; text-decoration-color: #ffc72c; text-underline-offset: 3px; }
.article-body ul { list-style: disc; padding-left: 1.5rem; }
.article-body ol { list-style: decimal; padding-left: 1.5rem; }
.article-body li + li { margin-top: .35em; }
.article-body blockquote { border-left: 4px solid #ffc72c; background: #f8fafc; padding: .9rem 1.25rem; border-radius: 0 .75rem .75rem 0; font-style: italic; color: #1e293b; }
.article-body img { border-radius: .875rem; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.article-body iframe, .article-body .ql-video { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: .875rem; border: 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid #e2e8f0; padding: .55rem .75rem; text-align: left; }
.article-body th { background: #f1f5f9; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .75rem; overflow-x: auto; font-size: .875rem; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body .ql-size-small { font-size: .85em; } .article-body .ql-size-large { font-size: 1.3em; } .article-body .ql-size-huge { font-size: 1.7em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(2,10,2,.92); display: none; align-items: center; justify-content: center; z-index: 90; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: .75rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); }

/* Small status / category labels */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; line-height: 1.3; }
.article-body > :first-child { margin-top: 0; }

/* Hero slider */
.hero-stack { display: grid; }
.hero-stack > .hero-slide { grid-area: 1 / 1; transition: opacity var(--ts, .8s) ease, visibility var(--ts, .8s), transform var(--ts, .8s) cubic-bezier(.2,.8,.2,1), filter var(--ts, .8s) ease; }
.hero-slide.is-hidden { opacity: 0; visibility: hidden; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-ready .hero-slide.is-active .hero-slide__text > * { animation: heroUp .7s cubic-bezier(.16,1,.3,1) both; }
.hero-ready .hero-slide.is-active .hero-slide__text > *:nth-child(2) { animation-delay: .08s; }
.hero-ready .hero-slide.is-active .hero-slide__text > *:nth-child(3) { animation-delay: .16s; }
.hero-ready .hero-slide.is-active .hero-slide__text > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[data-hero-progress].is-running { transition-property: width; transition-timing-function: linear; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .hero-stack > .hero-slide, .hero-slide.is-active .hero-slide__img, .hero-slide.is-active .hero-slide__text > * { animation: none; transition: none; }
}

/* ================= Countdowns (IMACOSA-style: navy & gold, serif numbers) ================= */
.cd {
  /* School colours: deep green, gold, lemon, orange */
  --cd-bg1:#035c03; --cd-bg2:#024202; --cd-bg3:#012101; --cd-glow:#0a7a2a;
  --cd-gold:#ffc72c; --cd-goldL:#ffd970; --cd-goldD:#8a6212; --cd-num:#024202; --cd-text:#fff; --cd-muted:#d6ecd8;
  --cd-tile1:#ffe07a; --cd-tile2:#ffc72c; --cd-tile3:#e6a817;
  --cd-serif:"Lora", Georgia, serif; --cd-sans:"Lato", "Segoe UI", Arial, sans-serif;
  position: relative; overflow: hidden; isolation: isolate; color: var(--cd-text); font-family: var(--cd-sans);
  background: radial-gradient(ellipse 80% 70% at 15% 0%, var(--cd-glow) 0%, transparent 60%), linear-gradient(160deg, var(--cd-bg1) 0%, var(--cd-bg2) 55%, var(--cd-bg3) 100%);
}
.cd--rugipo { /* deep green & gold (default) */ }
.cd--lemon { --cd-bg1:#fff27a; --cd-bg2:#fde302; --cd-bg3:#e0c800; --cd-glow:#fff8b8; --cd-num:#024202; --cd-text:#024202; --cd-muted:#2f4a12; --cd-gold:#024202; --cd-goldL:#024202; --cd-goldD:#024202; }
.cd--lemon .cd__btn { background: #024202; color: #fff; } .cd--lemon .cd__btn.is-outline { background: transparent; color: #024202; border-color: #024202; }
.cd--lemon .cd__unit { border-bottom-color: #ffc72c; } .cd--lemon .cd__unit span { color: #8a6212; }
.cd--orange { --cd-bg1:#ffa53d; --cd-bg2:#f28c1b; --cd-bg3:#c96a06; --cd-glow:#ffc078; --cd-num:#024202; --cd-text:#fff; --cd-muted:#fff3e0; --cd-gold:#024202; --cd-goldL:#fff3c4; --cd-goldD:#024202; }
.cd--orange .cd__btn { background: #024202; color: #ffc72c; } .cd--orange .cd__unit { border-bottom-color: #024202; }
.cd--light { --cd-bg1:#ffffff; --cd-bg2:#f4f9f4; --cd-bg3:#e8f3e8; --cd-glow:#fff6d6; --cd-num:#024202; --cd-text:#024202; --cd-muted:#475569; }
.cd--light .cd__unit { background: #024202; } .cd--light .cd__unit b { color: #fff; } .cd--light .cd__unit span { color: var(--cd-goldL); }
.cd--light .cd__date, .cd--light .cd__eyebrow { color: var(--cd-goldD); }
.cd.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cd-photo) center/cover no-repeat; }
.cd.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--cd-bg3) 0%, color-mix(in srgb, var(--cd-bg2) 85%, transparent) 55%, color-mix(in srgb, var(--cd-bg2) 55%, transparent) 100%); }
.cd__watermark { position: absolute; right: -1%; bottom: -18%; z-index: -1; font: 700 clamp(7rem, 22vw, 18rem)/1 var(--cd-serif); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--cd-goldL) 16%, transparent); pointer-events: none; user-select: none; }
.cd__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; border-top: 4px solid var(--cd-gold); }
.cd__eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font: 700 .78rem/1.2 var(--cd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cd-goldL); }
.cd__eyebrow i { width: 2rem; height: 2px; background: var(--cd-gold); }
.cd__title { margin: 0; font: 700 clamp(1.6rem, 3.4vw, 2.6rem)/1.1 var(--cd-serif); color: var(--cd-text); }
.cd__date { margin: .55rem 0 0; font: 700 1.05rem/1.35 var(--cd-sans); color: var(--cd-goldL); }
.cd__lead { margin: .8rem 0 0; max-width: 40rem; font-size: 1rem; line-height: 1.6; color: var(--cd-muted); }
.cd__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.cd__btn { display: inline-flex; align-items: center; padding: .75rem 1.25rem; border-radius: .6rem; background: var(--cd-gold); color: var(--cd-bg3); font: 700 .95rem var(--cd-sans); text-decoration: none; transition: filter .15s, transform .15s; }
.cd__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cd__btn.is-outline { background: transparent; color: var(--cd-text); border: 2px solid var(--cd-goldL); }
.cd__clock { display: flex; flex-wrap: wrap; gap: .8rem; }
.cd__unit { flex: 1 1 0; min-width: 0; }
.cd__unit { padding: 1rem .4rem .85rem; text-align: center; background: #fff; border-radius: .7rem; border-bottom: 5px solid var(--cd-gold); box-shadow: 0 1rem 2rem -1rem rgba(3,12,30,.55); }
.cd__unit b { display: block; font: 700 clamp(2rem, 4.6vw, 3.6rem)/1 var(--cd-serif); color: var(--cd-num); font-variant-numeric: tabular-nums; }
.cd__unit span { display: block; margin-top: .4rem; font: 700 .78rem/1 var(--cd-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cd-goldD); }
.cd__done { flex: 1 1 100%; display: flex; align-items: center; gap: .7rem; margin: 0; padding: 1rem 1.2rem; border-radius: .7rem; background: linear-gradient(135deg, #ffe07a, #ffc72c); color: #024202; font: 700 clamp(1.1rem, 2.2vw, 1.5rem)/1.25 var(--cd-serif); }
.cd__live { width: .8rem; height: .8rem; flex: none; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 0 rgba(46,158,91,.6); animation: cdPulse 2.4s infinite; }
@keyframes cdPulse { 70% { box-shadow: 0 0 0 .7rem rgba(46,158,91,0); } 100% { box-shadow: 0 0 0 0 rgba(46,158,91,0); } }
/* variants */
.cd--section { border-radius: 1.25rem; box-shadow: 0 1.2rem 3rem -1rem rgba(3,12,30,.45); }
.cd--section .cd__inner { padding: 2.2rem 2.4rem; border-top: 0; }
.cd--section { border-top: 6px solid var(--cd-gold); }
.cd--inline { margin: 1.6rem 0; border-radius: 1rem; border-top: 5px solid var(--cd-gold); }
.cd--inline .cd__inner { padding: 1.6rem; border-top: 0; grid-template-columns: 1fr; }
.cd--inline .cd__title { font-size: 1.6rem; color: var(--cd-text) !important; }
.cd--banner { border-bottom: 4px solid var(--cd-gold); }
.cd--banner .cd__inner { max-width: 80rem; margin: 0 auto; padding: 1.2rem 1.5rem; border-top: 0; grid-template-columns: 1fr auto; }
.cd--banner .cd__title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.cd--banner .cd__unit { padding: .6rem .5rem .5rem; min-width: 4.6rem; }
.cd--banner .cd__unit b { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.cd--banner .cd__actions { margin-top: .7rem; } .cd--banner .cd__btn { padding: .5rem 1rem; font-size: .85rem; }
.cd--banner .cd__watermark { font-size: clamp(5rem, 12vw, 9rem); bottom: -30%; }
@media (max-width: 900px) {
  .cd__inner, .cd--banner .cd__inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .cd--section .cd__inner { padding: 1.6rem; }
  .cd__clock { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .cd__live { animation: none; } }

/* ================= Small features ================= */
.reading-bar { position: fixed; top: 0; left: 0; z-index: 60; height: 4px; width: 0; background: linear-gradient(90deg, #ffc72c, #e6b01f); transition: width .1s linear; }
.to-top { position: fixed; right: 1.5rem; bottom: 6.2rem; z-index: 45; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #024202; color: #ffc72c; font-size: 1.3rem; font-weight: 900; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.no-wa .to-top { bottom: 1.5rem; }
.a11y-btn { position: fixed; left: 1.25rem; bottom: 1.5rem; z-index: 45; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: #024202; border: 2px solid #024202; font: 800 1rem Inter, sans-serif; box-shadow: 0 8px 20px -6px rgba(0,0,0,.3); }
.a11y-panel { position: fixed; left: 1.25rem; bottom: 5.2rem; z-index: 46; width: 16rem; padding: 1rem; border-radius: .9rem; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); font-size: .9rem; color: #1e293b; }
.a11y-panel button { padding: .45rem .7rem; border-radius: .5rem; border: 1px solid #cbd5e1; font-weight: 700; background: #fff; }
.a11y-panel button[aria-pressed="true"] { background: #024202; color: #fff; border-color: #024202; }
html.a11y-lg { font-size: 112.5%; } html.a11y-xl { font-size: 125%; }
html.a11y-contrast body { filter: contrast(1.2) saturate(1.1); } html.a11y-contrast .text-slate-500, html.a11y-contrast .text-slate-600 { color: #1e293b !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
.popup { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(1,20,1,.7); backdrop-filter: blur(3px); }
.popup[hidden] { display: none; }
.popup__box { position: relative; width: min(34rem, 100%); max-height: 92vh; overflow: auto; border-radius: 1.1rem; background: #fff; border-top: 6px solid #ffc72c; box-shadow: 0 30px 60px -15px rgba(0,0,0,.55); animation: popIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@media print {
  header, nav, footer, .cd--banner, [aria-label="Institutional Announcements"], .to-top, .a11y-btn, .a11y-panel, .reading-bar, .no-print, [data-wa] { display: none !important; }
  body { background: #fff !important; }
}
.cd__done[hidden], .cd__unit[hidden] { display: none !important; }

/* ================= Institutional advert slider ================= */
.ad-stage { position: relative; height: clamp(320px, 52vw, 600px); border-radius: 1rem; overflow: hidden; background: #0f172a; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); }
.ad-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.ad-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ad-slide.is-active .ad-media { animation: adZoom 12s ease-out both; }
@keyframes adZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.ad-slide.is-spotlight::after { content: ""; position: absolute; inset: 0; z-index: 25; pointer-events: none; border-radius: 1rem; border: 4px solid #ffc72c; box-shadow: inset 0 0 40px rgba(255,199,44,.45); animation: adGlow 2.4s ease-in-out infinite alternate; }
@keyframes adGlow { from { box-shadow: inset 0 0 18px rgba(255,199,44,.25); } to { box-shadow: inset 0 0 55px rgba(255,199,44,.6); } }
.ad-badge { position: absolute; top: 1rem; left: 1rem; z-index: 35; padding: .35rem .85rem; border-radius: 99px; background: #ffc72c; color: #024202; font: 800 .75rem/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
.ad-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: 2.5rem 1.25rem 1.1rem; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); color: #fff; font-weight: 700; font-size: 1rem; pointer-events: none; }
.ad-link { position: absolute; inset: 0; z-index: 30; display: block; }
.ad-link:focus-visible { outline: 4px solid #ffc72c; outline-offset: -4px; }
.ad-cta { position: absolute; right: 1.1rem; bottom: 1rem; z-index: 31; display: inline-flex; gap: .5rem; align-items: center; padding: .75rem 1.25rem; border-radius: .8rem; background: #ffc72c; color: #024202; font-weight: 800; font-size: .9rem; box-shadow: 0 10px 25px -8px rgba(0,0,0,.5); transition: transform .2s, background .2s; }
.ad-link:hover .ad-cta { background: #fff; transform: translateY(-2px); }
.ad-sound { position: absolute; top: 1rem; right: 1rem; z-index: 40; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; }
.ad-seconds { position: absolute; top: 1rem; right: 1rem; z-index: 36; min-width: 2.6rem; padding: .3rem .6rem; border-radius: 99px; background: rgba(0,0,0,.55); color: #ffc72c; font: 800 .8rem/1.4 Inter, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.ad-slide[data-kind="video"].is-active ~ .ad-seconds { right: 4rem; }
.ad-seconds:empty { display: none; }
.ad-timer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 36; height: 5px; background: rgba(255,255,255,.15); }
.ad-timer span { display: block; height: 100%; width: 0; background: #ffc72c; }
/* text adverts */
.ad-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-text__pattern { position: absolute; inset: 0; opacity: .12; background: radial-gradient(currentColor 1px, transparent 1px) 0 0/18px 18px; }
.ad-text__kicker { display: inline-block; margin: 0 0 1rem; padding: .35rem 1rem; border: 2px solid currentColor; border-radius: 99px; font: 800 .8rem/1.2 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ad-text__headline { margin: 0; font: 900 clamp(1.8rem, 5.2vw, 4rem)/1.1 Inter, sans-serif; letter-spacing: -.02em; }
.ad-text__body { margin: 1.1rem auto 0; max-width: 46rem; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.55; opacity: .9; }
.ad-word { display: inline-block; white-space: nowrap; }
.ad-word > span { display: inline-block; }
.ad-slide.is-active .ad-word > span { animation: adLetter .55s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes adLetter { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
/* controls and thumbnails */
.ad-ctrl { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; color: #024202; font-weight: 800; }
.ad-ctrl:hover { border-color: #024202; }
.ad-thumb { flex: 1 0 9rem; max-width: 14rem; display: flex; align-items: center; gap: .55rem; padding: .4rem; border-radius: .7rem; border: 2px solid #e2e8f0; background: #fff; text-align: left; position: relative; overflow: hidden; transition: border-color .2s; }
.ad-thumb.is-active { border-color: #024202; }
.ad-thumb.is-spotlight { border-color: #ffc72c; }
.ad-thumb__img { flex: none; width: 2.6rem; height: 2.6rem; border-radius: .45rem; overflow: hidden; background: #024202; color: #ffc72c; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; }
.ad-thumb__img img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumb__title { font-size: .75rem; font-weight: 700; line-height: 1.25; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-thumb__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.ad-thumb__bar i { display: block; height: 100%; width: 0; background: #ffc72c; }
@media (prefers-reduced-motion: reduce) { .ad-slide, .ad-slide.is-active .ad-media, .ad-slide.is-active .ad-word > span, .ad-slide.is-spotlight::after { animation: none; transition: none; } }

/* Countdown layout: gold tiles (2 × 2) */
.cd--layout-tiles .cd__clock { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; border-radius: 1.4rem; overflow: hidden; background: #024202; box-shadow: 0 1.2rem 2.6rem -1rem rgba(3,12,30,.6); max-width: 32rem; width: 100%; justify-self: end; }
.cd--layout-tiles .cd__unit { display: flex; flex-direction: column; justify-content: space-between; min-height: 7.5rem; padding: 1.4rem 1.5rem 1.2rem; text-align: left; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(135deg, var(--cd-tile1) 0%, var(--cd-tile2) 50%, var(--cd-tile3) 100%); }
.cd--layout-tiles .cd__unit:nth-child(even) { text-align: right; }
.cd--layout-tiles .cd__unit b { font: 800 clamp(2rem, 4.2vw, 3.2rem)/1 var(--cd-sans); color: #024202; letter-spacing: .04em; }
.cd--layout-tiles .cd__unit span { margin-top: 1rem; font: 700 clamp(.8rem, 1.2vw, 1rem)/1 var(--cd-sans); letter-spacing: .14em; color: #024202; }
.cd--layout-tiles .cd__done { border-radius: 0; grid-column: 1 / -1; }
.cd--light.cd--layout-tiles .cd__unit { background: linear-gradient(135deg, var(--cd-tile1), var(--cd-tile3)); } .cd--light.cd--layout-tiles .cd__unit b, .cd--light.cd--layout-tiles .cd__unit span { color: #024202; }
.cd--banner.cd--layout-tiles .cd__clock { max-width: 22rem; border-radius: 1rem; }
.cd--banner.cd--layout-tiles .cd__unit { min-height: 4.4rem; padding: .7rem 1rem .6rem; }
.cd--banner.cd--layout-tiles .cd__unit b { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cd--banner.cd--layout-tiles .cd__unit span { margin-top: .45rem; font-size: .7rem; }
.cd--inline.cd--layout-tiles .cd__clock { justify-self: stretch; max-width: none; }
@media (max-width: 900px) { .cd--layout-tiles .cd__clock { justify-self: stretch; max-width: none; } }

/* IMACOSA ring: seconds in a navy circle where the four gold tiles meet */
.cd--layout-tiles .cd__clock { position: relative; }
.cd__ring { position: absolute; left: 50%; top: 50%; width: clamp(6.4rem, 11vw, 8.4rem); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #0a7a2a, #024202 72%); box-shadow: 0 0 0 6px #024202, 0 .8rem 2rem -.5rem rgba(0,0,0,.55); z-index: 2; }
.cd__ring svg { position: absolute; inset: 6%; width: 88%; height: 88%; transform: rotate(-90deg); }
.cd__ring-track { fill: none; stroke: rgba(255,199,44,.22); stroke-width: 7; }
.cd__ring-bar { fill: none; stroke: #ffc72c; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 339.29; stroke-dashoffset: 339.29; transition: stroke-dashoffset .9s linear; }
.cd__ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cd__ring-num b { font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 var(--cd-sans); color: #fff; font-variant-numeric: tabular-nums; }
.cd__ring-num span { margin-top: .25rem; font: 700 .6rem/1 var(--cd-sans); letter-spacing: .12em; text-transform: uppercase; color: #ffd970; }
.cd--banner .cd__ring { width: 4.6rem; box-shadow: 0 0 0 4px #024202; }
.cd--banner .cd__ring-num b { font-size: 1.2rem; } .cd--banner .cd__ring-num span { font-size: .5rem; }
.cd__ring[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .cd__ring-bar { transition: none; } }

/* countdown inside the event page hero: only the tiles + ring */
.cd--event { background: transparent; overflow: visible; }
.cd--event .cd__inner { grid-template-columns: 1fr; border-top: 0; gap: .6rem; }
.cd--event .cd__text { display: none; }
.cd--event .cd__clock { justify-self: start; max-width: 26rem; }
.cd--event .cd__unit { min-height: 5.6rem; padding: 1rem 1.2rem .9rem; }
.cd--light .cd__btn { color: #024202; } .cd--light .cd__btn.is-outline { color: #024202; border-color: #024202; }

/* Countdown motion: numbers pop in when they change, tiles shine, the ring pulses each second,
   the live dot blinks in time, and the clock turns orange in the last hour and pulses in the last minute. */
.cd__unit b, .cd__ring-num b { will-change: transform; }
.cd--layout-tiles .cd__unit b, .cd__ring-num b { display: inline-block; }
.cd-flip { animation: cdFlip .5s cubic-bezier(.2,.9,.3,1.25); }
@keyframes cdFlip { 0% { transform: translateY(-.45em) scale(.9); opacity: .1; filter: blur(1.5px); } 55% { opacity: 1; filter: none; } 100% { transform: none; opacity: 1; } }
.cd--layout-tiles .cd__unit { position: relative; overflow: hidden; }
.cd--layout-tiles .cd__unit::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%); background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); }
.cd--layout-tiles .cd__unit.cd-hit::after { animation: cdShine 1s ease-out; }
@keyframes cdShine { to { transform: translateX(130%); } }
.cd__ring.cd-beat { animation: cdBeat .7s ease-out; }
@keyframes cdBeat {
  0%   { box-shadow: 0 0 0 6px #024202, 0 0 0 6px rgba(255,199,44,.6), 0 .8rem 2rem -.5rem rgba(0,0,0,.55); }
  100% { box-shadow: 0 0 0 6px #024202, 0 0 0 22px rgba(255,199,44,0), 0 .8rem 2rem -.5rem rgba(0,0,0,.55); }
}
.cd--banner .cd__ring.cd-beat { animation-name: cdBeatSm; }
@keyframes cdBeatSm { 0% { box-shadow: 0 0 0 4px #024202, 0 0 0 4px rgba(255,199,44,.6); } 100% { box-shadow: 0 0 0 4px #024202, 0 0 0 14px rgba(255,199,44,0); } }
/* live dot beside SECONDS, blinking on every real second */
.cd__ring-num span::before { content: ''; display: inline-block; width: .45em; height: .45em; margin-right: .35em; vertical-align: .08em; border-radius: 50%; background: #ffc72c; box-shadow: 0 0 6px #ffc72c; transition: opacity .25s; }
.cd.cd-odd .cd__ring-num span::before { opacity: .15; box-shadow: none; }
/* eyebrow dot blinks too */
.cd__eyebrow i { transition: opacity .25s; }
.cd.cd-odd .cd__eyebrow i { opacity: .25; }
/* last hour: orange sweep; last minute: seconds pulse */
.cd--soon .cd__ring-bar { stroke: #f28c1b; }
.cd--soon .cd__ring-num span { color: #ffb357; }
.cd--final .cd__ring-num b { color: #ffe07a; text-shadow: 0 0 14px rgba(242,140,27,.9); }
.cd--final .cd__ring { animation: cdUrgent 1s ease-in-out infinite; }
@keyframes cdUrgent { 50% { box-shadow: 0 0 0 6px #024202, 0 0 26px 8px rgba(242,140,27,.55), 0 .8rem 2rem -.5rem rgba(0,0,0,.55); } }
.cd--final.cd--layout-boxes .cd__unit b { color: #c2410c; }
@media (prefers-reduced-motion: reduce) {
  .cd-flip, .cd__ring.cd-beat, .cd--final .cd__ring, .cd--layout-tiles .cd__unit.cd-hit::after { animation: none !important; }
}
/* seconds change every second, so their pop is quicker and never fades out fully */
.cd__ring-num b.cd-flip { animation: cdFlipS .32s cubic-bezier(.2,.9,.3,1.3); }
@keyframes cdFlipS { 0% { transform: translateY(-.25em) scale(.88); opacity: .55; } 100% { transform: none; opacity: 1; } }
.cd--banner .cd__ring-num span { letter-spacing: .03em; }

/* Every box blips once a second, in time with the seconds ring */
.cd__unit.cd-blip { animation: cdBlip .65s ease-out; }
@keyframes cdBlip {
  0%   { filter: brightness(1.14) saturate(1.15); box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), inset 0 0 26px rgba(255,255,255,.45); }
  100% { filter: none; box-shadow: inset 0 0 0 3px rgba(255,255,255,0), inset 0 0 26px rgba(255,255,255,0); }
}
.cd__unit.cd-blip b:not(.cd-flip) { animation: cdNumBeat .65s ease-out; }
@keyframes cdNumBeat { 0% { transform: scale(1.06); } 100% { transform: none; } }
.cd--final .cd__unit.cd-blip { animation-name: cdBlipUrgent; }
@keyframes cdBlipUrgent {
  0%   { filter: brightness(1.2) saturate(1.3); box-shadow: inset 0 0 0 3px rgba(242,140,27,.95), inset 0 0 30px rgba(242,140,27,.55); }
  100% { filter: none; box-shadow: inset 0 0 0 3px rgba(242,140,27,0), inset 0 0 30px rgba(242,140,27,0); }
}
@media (prefers-reduced-motion: reduce) { .cd__unit.cd-blip, .cd__unit.cd-blip b { animation: none !important; } }

/* Hero slide accent colour (per slide) */
.hero-kicker { color: var(--acc, #ffc72c); border-color: color-mix(in srgb, var(--acc, #ffc72c) 45%, transparent); }
.hero-btn-acc { background: var(--acc, #ffc72c); }
.hero-btn-acc:hover { filter: brightness(.92); }
.hero-video iframe, video.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.is-playing iframe, video.hero-video.is-playing { opacity: 1; }

/* Form controls and buttons on public pages (application form, status check) */
.field { width: 100%; border: 1px solid #cbd5e1; border-radius: .7rem; padding: .7rem .9rem; font-size: .95rem; background: #fff; color: #0f172a; transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: #024202; box-shadow: 0 0 0 4px rgba(255,199,44,.35); }
select.field { appearance: auto; }
textarea.field { resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 800; font-size: .95rem; padding: .75rem 1.3rem; border-radius: .75rem; transition: all .15s; cursor: pointer; }
.btn-primary { background: #024202; color: #fff; } .btn-primary:hover { background: #012c01; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-light { background: #fff; color: #024202; border: 1px solid #cbd5e1; } .btn-light:hover { border-color: #024202; }
.btn-gold { background: #ffc72c; color: #024202; } .btn-gold:hover { background: #e6b01f; }
[data-done-badge].hidden { display: none !important; }
fieldset[hidden] { display: none !important; }
.btn.hidden, .badge.hidden { display: none !important; }

/* Hero slide designer: paragraphs, lists, bold text, picture-in-picture */
.hero-body > * + * { margin-top: .6em; }
.hero-body strong, .hero-body b { font-weight: 800; color: inherit; }
.hero-body em { font-style: italic; }
.hero-body ul { list-style: disc; padding-left: 1.3em; } .hero-body ol { list-style: decimal; padding-left: 1.3em; }
.text-center .hero-body ul, .text-center .hero-body ol { display: inline-block; text-align: left; }
.hero-body h2, .hero-body h3 { font-weight: 800; font-size: 1.15em; }
.hero-body a { text-decoration: underline; text-decoration-color: var(--acc, #ffc72c); text-underline-offset: 3px; font-weight: 700; }
.hero-pip { animation: pipFloat 6s ease-in-out infinite; }
.hero-pip.rotate-2 { --r: 2deg; }
@keyframes pipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero-ready .hero-slide.is-active .hero-pip { animation: pipIn .8s cubic-bezier(.16,1,.3,1) both, pipFloat 6s ease-in-out .8s infinite; }
@keyframes pipIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-pip, .hero-ready .hero-slide.is-active .hero-pip { animation: none; } }



/* Floating social media bar (right edge) */
.social-bar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 45; flex-direction: column; align-items: flex-end; gap: .5rem; }
.social-bar__item { display: flex; align-items: center; gap: .6rem; min-width: 9.2rem; padding: .6rem 1.6rem .6rem .9rem; border-radius: .7rem 0 0 .7rem; background: var(--sb); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); transform: translateX(.7rem); transition: transform .25s cubic-bezier(.2,.9,.3,1.2), filter .2s, box-shadow .2s; }
.social-bar__item:hover, .social-bar__item:focus-visible { transform: translateX(0); filter: brightness(1.1); box-shadow: 0 12px 24px -8px rgba(0,0,0,.55); }
.social-bar__item svg { flex: none; }
.social-bar--school .social-bar__item { background: #024202; color: #ffc72c; border-left: 3px solid #ffc72c; }
.social-bar--school .social-bar__item span { color: #fff; }
.social-bar--school .social-bar__item:hover { background: #ffc72c; color: #024202; filter: none; }
.social-bar--school .social-bar__item:hover span { color: #024202; }
@media (prefers-reduced-motion: reduce) { .social-bar__item { transition: none; } }

/* ===== Slide transitions (per slide: data-trans) ===== */
.hero-slide[data-trans="slide"].is-hidden { transform: translateX(10%); }
.hero-slide[data-trans="slide"].is-leaving { transform: translateX(-10%); }
.hero-slide[data-trans="up"].is-hidden { transform: translateY(8%); }
.hero-slide[data-trans="up"].is-leaving { transform: translateY(-6%); }
.hero-slide[data-trans="zoom"].is-hidden { transform: scale(1.08); }
.hero-slide[data-trans="zoom"].is-leaving { transform: scale(.96); }
.hero-slide[data-trans="blur"].is-hidden { filter: blur(16px); }
.hero-slide[data-trans="none"] { transition: none !important; }

/* ===== Several pictures in one slide (data-img-trans) ===== */
.hero-bgimg { opacity: 0; transition: opacity calc(var(--ts, .8s) * 1.3) ease, translate calc(var(--ts, .8s) * 1.3) cubic-bezier(.2,.8,.2,1), scale calc(var(--ts, .8s) * 1.3) ease, filter calc(var(--ts, .8s) * 1.3) ease; }
.hero-bgimg.on { opacity: 1; }
[data-img-trans="slide"] .hero-bgimg:not(.on) { translate: 6% 0; }
[data-img-trans="slide"] .hero-bgimg.out { translate: -6% 0; }
[data-img-trans="zoom"] .hero-bgimg:not(.on) { scale: 1.1; }
[data-img-trans="blur"] .hero-bgimg:not(.on) { filter: blur(14px); }
[data-img-trans="none"] .hero-bgimg { transition: none; }

/* ===== Picture movement (per slide: data-motion); runs only while the picture is showing ===== */
.hero-bgimg.kb-run[data-motion="zoom-in"]   { animation: kbZoomIn var(--kb-dur, 9s) ease-out both; }
.hero-bgimg.kb-run[data-motion="zoom-out"]  { animation: kbZoomOut var(--kb-dur, 9s) ease-out both; }
.hero-bgimg.kb-run[data-motion="pan-left"]  { animation: kbPanLeft var(--kb-dur, 9s) linear both; }
.hero-bgimg.kb-run[data-motion="pan-right"] { animation: kbPanRight var(--kb-dur, 9s) linear both; }
.hero-bgimg.kb-run[data-motion="pan-up"]    { animation: kbPanUp var(--kb-dur, 9s) linear both; }
.hero-bgimg.kb-run[data-motion="flow"]      { animation: kb0 var(--kb-dur, 9s) linear both; }
.hero-bgimg.kb-run[data-motion="flow"][data-kb="1"] { animation-name: kb1; }
.hero-bgimg.kb-run[data-motion="flow"][data-kb="2"] { animation-name: kb2; }
.hero-bgimg.kb-run[data-motion="flow"][data-kb="3"] { animation-name: kb3; }
@keyframes kbZoomIn   { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes kbZoomOut  { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes kbPanLeft  { from { transform: scale(1.08) translateX(2.5%); } to { transform: scale(1.08) translateX(-2.5%); } }
@keyframes kbPanRight { from { transform: scale(1.08) translateX(-2.5%); } to { transform: scale(1.08) translateX(2.5%); } }
@keyframes kbPanUp    { from { transform: scale(1.08) translateY(2.5%); } to { transform: scale(1.08) translateY(-2.5%); } }
@keyframes kb0 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes kb1 { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kb2 { from { transform: scale(1.08) translate(-2.5%, 0); } to { transform: scale(1.08) translate(2.5%, -1%); } }
@keyframes kb3 { from { transform: scale(1.02) translate(1%, 2%); } to { transform: scale(1.12) translate(-1%, -2%); } }
@media (prefers-reduced-motion: reduce) { .hero-bgimg.kb-run { animation: none !important; } .hero-bgimg, .hero-stack > .hero-slide { transition-duration: .01s !important; } }

/* Campus map pins */
.cmap-pin { position: relative; display: block; width: 28px; height: 28px; background: var(--c, #024202); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.cmap-pin::after { content: ''; position: absolute; inset: 7px; background: #ffc72c; border-radius: 50%; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; }
#campus-map { font-family: inherit; }
