/* Labasa College Portal: Elegant Navy and Luminous Sky Blue (palette from supplied style.css) */
:root {
  --bg: oklch(0.96 0.03 235);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.92 0.04 235);
  --text: oklch(0.24 0.06 245);
  --text-muted: oklch(0.44 0.05 240);
  --accent: oklch(0.58 0.18 235);
  --accent-bright: oklch(0.66 0.20 230);
  --gold-accent: oklch(0.53 0.10 80);
  --accent-glow: oklch(0.58 0.18 235 / .25);
  --border: oklch(0.85 0.05 235);
  --nav-bg: oklch(0.28 0.10 240);
  --nav-text: oklch(0.99 0.005 230);
  --on-accent: oklch(0.99 0.005 230);
  --hero-base: oklch(0.94 0.04 235);
  --veil: oklch(0.18 0.08 240 / .60);
  --success: oklch(0.60 0.18 145);
  --danger: oklch(0.60 0.22 25);
  --gold-wash: oklch(0.96 0.06 85);
  --radius: 10px;
  --shadow: 0 10px 30px oklch(0.20 0.08 240 / .08);
  --ease: cubic-bezier(.22,.8,.24,1);
  --page-gradient: linear-gradient(120deg, var(--bg), var(--surface-2));
  --hero-fade: linear-gradient(90deg, var(--hero-base) 0%, color-mix(in oklab, var(--hero-base) 97%, transparent) 28%, color-mix(in oklab, var(--hero-base) 82%, transparent) 44%, color-mix(in oklab, var(--hero-base) 28%, transparent) 65%, transparent 85%);
}

html[data-theme=dark] {
  --bg: oklch(0.48 0.17 250);
  --surface: oklch(0.53 0.16 245);
  --surface-2: oklch(0.60 0.15 235);
  --text: oklch(0.99 0.004 230);
  --text-muted: oklch(0.92 0.025 230);
  --accent: oklch(0.85 0.12 221);
  --accent-bright: oklch(0.92 0.09 217);
  --gold-accent: oklch(0.88 0.15 88);
  --accent-glow: oklch(0.80 0.14 225 / .28);
  --border: oklch(0.65 0.11 238);
  --nav-bg: oklch(0.37 0.15 257);
  --on-accent: oklch(0.27 0.1 253);
  --hero-base: oklch(0.42 0.15 252);
  --gold-wash: oklch(0.48 0.07 225);
  --shadow: 0 10px 30px oklch(0.23 0.09 255 / .22);
}

html[data-theme=light] {
  --bg: oklch(0.95 0.045 232);
  --surface: oklch(0.995 0.008 230);
  --surface-2: oklch(0.91 0.065 235);
  --text: oklch(0.22 0.08 255);
  --text-muted: oklch(0.40 0.08 250);
  --accent: oklch(0.52 0.21 258);
  --accent-bright: oklch(0.60 0.20 245);
  --gold-accent: oklch(0.88 0.15 88);
  --accent-glow: oklch(0.55 0.20 255 / .28);
  --border: oklch(0.80 0.09 240);
  --nav-bg: oklch(0.33 0.15 255);
  --hero-base: oklch(0.88 0.08 232);
  --gold-wash: oklch(0.94 0.09 88);
  --page-gradient: linear-gradient(135deg, oklch(0.97 0.035 215), oklch(0.93 0.07 245) 55%, oklch(0.95 0.06 220));
}

html[data-theme=light] .nav { background: linear-gradient(100deg, oklch(0.30 0.14 258), oklch(0.46 0.19 250)); }
html[data-theme=light] .page-hero { background: linear-gradient(120deg, oklch(0.98 0.02 220), oklch(0.89 0.10 240) 60%, oklch(0.93 0.08 215)); }
html[data-theme=light] .card,
html[data-theme=light] .value-block,
html[data-theme=light] .stat { background: linear-gradient(160deg, var(--surface), oklch(0.96 0.035 235)); }
html[data-theme=light] .footer { background: linear-gradient(100deg, oklch(0.30 0.14 258), oklch(0.42 0.18 250)); }
html[data-theme=light] .section.alt { background: linear-gradient(120deg, oklch(0.97 0.03 225), oklch(0.92 0.07 240)); }
html[data-theme=light] .btn { background: linear-gradient(135deg, oklch(0.52 0.21 258), oklch(0.60 0.19 235)); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--page-gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes pagein {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4 {
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold-accent);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 8px;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: block;
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  gap: 24px;
}

.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.muted { color: var(--text-muted); }
.center { text-align: center; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@keyframes pop {
  0% { transform: scale(.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes shine {
  to { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 14px transparent; }
}

.float { animation: float 6s ease-in-out infinite; }
.float.b { animation-duration: 8s; animation-delay: -3s; }
.float.c { animation-duration: 5s; animation-delay: -1.5s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.left { transform: translateX(-44px); }
.reveal.right { transform: translateX(44px); }
.reveal.zoom { transform: scale(.9); }
.reveal.in { opacity: 1; transform: none; }

.shake { animation: shake .45s; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  color: var(--nav-text);
  box-shadow: 0 4px 20px var(--veil);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  max-width: 1240px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--nav-text);
}

.brand .ph {
  width: 58px;
  height: 58px;
  border-radius: 0;
  flex: none;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brand .ph img {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.brand .phl { display: none; }

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .03em;
}

.brand-motto {
  font-size: 10px;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  display: block;
  color: var(--nav-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav-links a:hover {
  background: var(--veil);
  color: var(--gold-accent);
}

.nav-links a.active {
  background: var(--accent);
  color: var(--on-accent);
}

.dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 14px 34px var(--veil);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s var(--ease);
}

li:hover > .dd-menu,
li:focus-within > .dd-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.icon-btn {
  background: var(--veil);
  border: 1px solid var(--border);
  color: var(--nav-text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: transform .3s;
}

.icon-btn:hover {
  transform: rotate(20deg) scale(1.08);
}

#burger { display: none; }

@media(max-width: 1080px) {
  #burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    max-height: 78vh;
    overflow: auto;
  }
  .nav-links.open {
    display: flex;
    animation: rise .35s;
  }
  .dd-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 14px;
  }
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn:active { transform: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn.sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

.btn.gold {
  background: var(--gold-accent);
  color: var(--on-accent);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: var(--veil);
  pointer-events: none;
  animation: ripple .6s ease-out forwards;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.spin {
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

.hero-ref {
  position: relative;
  min-height: 560px;
  padding: 80px 24px;
  overflow: hidden;
  background: var(--hero-base);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.hero-ref-grid {
  max-width: 1200px;
  margin: auto;
  width: 100%;
  position: relative;
}

.hero-ref-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-ref-img-wrap .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  animation: kb 24s ease-in-out infinite alternate;
}

@keyframes kb {
  to { transform: scale(1.07); }
}

.hero-ref-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-fade);
  z-index: 2;
}

.hero-ref-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.hero-ref-content > * { animation: rise .9s var(--ease) both; }
.hero-ref-content > :nth-child(2) { animation-delay: .15s; }
.hero-ref-content > :nth-child(3) { animation-delay: .3s; }
.hero-ref-content > :nth-child(4) { animation-delay: .45s; }

.hero-ref-content h4 {
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-ref-content h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-ref-content h1 span {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--gold-accent), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.hero-ref-content p {
  max-width: 480px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  animation: rise .8s var(--ease) both;
}

.page-hero p {
  max-width: 640px;
  margin: 10px auto 0;
  color: var(--text-muted);
  animation: rise .8s .15s var(--ease) both;
}

.page-hero .orb {
  width: 300px;
  height: 300px;
  right: -80px;
  top: -100px;
}

.page-hero .orb.l {
  left: -100px;
  right: auto;
  top: auto;
  bottom: -140px;
}

.feature-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  box-shadow: var(--shadow);
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  text-align: center;
}

@media(max-width: 800px) {
  .feature-bar-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-item {
  padding: 14px;
  border-radius: 10px;
  transition: background .2s, transform .3s;
  cursor: pointer;
}

.feature-item:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
}

.feature-item .em {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}

.feature-item h4 {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.feature-item p {
  font-size: 12px;
  color: var(--text-muted);
}

.stat {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

.stat .label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px var(--accent-glow);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card.click { cursor: pointer; }

.card-ic {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin: 3px 4px 3px 0;
  font-size: 13px;
}

.value-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.value-block h2 { margin-bottom: 12px; }

.motto-latin {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  font-style: italic;
}

.motto-note {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold-wash);
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 13px;
}

.prayer-section {
  margin-top: 24px;
  text-align: center;
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(125deg, var(--surface), var(--gold-wash));
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform .25s, border-color .2s;
}

.news-card:hover {
  transform: translateX(6px);
  border-color: var(--accent);
}

.news-date {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 62px;
  height: max-content;
}

.news-date .day {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.news-date .mon {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.community {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}

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

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  font-style: italic;
  transition: transform .3s;
}

.quote:hover {
  transform: rotate(-1deg) scale(1.02);
}

.quote b {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--gold-accent);
  margin-top: 6px;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: auto;
  padding-left: 34px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--accent), var(--gold-accent));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.6s var(--ease);
}

.timeline.in:before { transform: scaleY(1); }

.tl {
  position: relative;
  margin-bottom: 22px;
}

.tl:before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-accent);
  border: 3px solid var(--bg);
}

.tl b { color: var(--accent); }

.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--accent-glow));
  display: grid;
  place-items: center;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.phl {
  display: none; /* file-path label hidden: never shown before/instead of images */
  position: relative;
  padding: 10px;
  font: 600 12px ui-monospace, Consolas, monospace;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
}

.ss {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16/7;
  background: var(--surface-2);
}

@media(max-width: 640px) {
  .ss { aspect-ratio: 4/3; }
}

.ss .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .9s, transform 5s linear;
}

.ss .slide.on {
  opacity: 1;
  transform: scale(1);
}

.ss .slide .ph {
  height: 100%;
  border-radius: 0;
}

.ss .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 34px 20px 16px;
  background: linear-gradient(transparent, var(--veil));
  color: #fff;
  font-weight: 700;
}

.ss .nv {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--veil);
  color: #fff;
  font-size: 20px;
  transition: .2s;
}

.ss .nv:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.ss .pv { left: 12px; }
.ss .nx { right: 12px; }

.ss .dots {
  position: absolute;
  bottom: 10px;
  right: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.ss .dots i {
  width: 9px;
  height: 9px;
  border-radius: 9px;
  background: #fff8;
  cursor: pointer;
 transition: .3s;
}

.ss .dots i.on {
  width: 26px;
  background: var(--gold-accent);
}

.tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tnode {
  width: min(300px, 100%);
  text-align: center;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: scale(.8) translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .2s;
}

.tnode:hover { border-color: var(--gold-accent); }

.tnode .av {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid var(--gold-accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.tnode h3 { font-size: 17px; }
.tnode .role {
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 13px;
}

.tree.in .tnode {
  opacity: 1;
  transform: none;
}
.tree.in .tnode.p { transition-delay: .1s; }
.tree.in .tchild:nth-child(1) .tnode { transition-delay: 2.1s; }
.tree.in .tchild:nth-child(2) .tnode { transition-delay: 2.4s; }

.vl {
  width: 3px;
  height: 46px;
  background: linear-gradient(var(--accent), var(--gold-accent));
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease) .9s, opacity .01s linear .9s, visibility 0s linear .9s;
}

.tree.in .vl {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
}

.tbranch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: min(700px, 100%);
  position: relative;
}

.tbranch:before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--gold-accent);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s var(--ease) 1.5s, opacity .01s linear 1.5s, visibility 0s linear 1.5s;
}

.tree.in .tbranch:before {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
}

.tchild {
  position: relative;
  padding-top: 46px;
  display: flex;
  justify-content: center;
}

.tchild:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 46px;
  margin-left: -1px;
  background: var(--gold-accent);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease) 1.9s, opacity .01s linear 1.9s, visibility 0s linear 1.9s;
}

.tree.in .tchild:before {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
}

@media(max-width: 700px) {
  .tbranch { grid-template-columns: 1fr; }
  .tbranch:before { display: none; }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--veil);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.pop-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 5px solid var(--gold-accent);
  border-radius: 16px;
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  transform: translateY(40px) scale(.9);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}

.overlay.open .pop-card { transform: none; }

.pop-x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: transform .3s;
}

.pop-x:hover { transform: rotate(90deg); }

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--gold-accent);
  cursor: pointer;
  background: var(--nav-bg);
  color: var(--nav-text);
  font-size: 26px;
  box-shadow: 0 8px 24px var(--veil);
  animation: float 4s ease-in-out infinite;
}

.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 13px;
}

.mini-cal i {
  font-style: normal;
  font-weight: 700;
  color: var(--text-muted);
}

.mini-cal span {
  padding: 9px 0;
  border-radius: 8px;
  background: var(--surface-2);
  transition: transform .2s;
}

.mini-cal span:hover { transform: scale(1.12); }
.mini-cal .ev {
  background: var(--gold-accent);
  color: var(--on-accent);
  font-weight: 800;
  cursor: pointer;
}
.mini-cal .today { outline: 2px solid var(--accent); }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 40px 25px;
  border-top: 3px solid var(--gold-accent);
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.footer h4 {
  margin-bottom: 10px;
  color: var(--gold-accent);
}

.footer a {
  display: block;
  color: var(--nav-text);
  opacity: .88;
  font-size: 14px;
  padding: 2px 0;
  transition: .2s;
}

.footer a:hover {
  opacity: 1;
  color: var(--gold-accent);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  opacity: .85;
}

.legal-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.legal-links a { display: inline; }

label {
  font-weight: 600;
  font-size: 13.5px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  margin: 5px 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.msg {
  padding: 12px 16px;
  border-radius: 9px;
  margin-top: 12px;
  background: color-mix(in oklab, var(--success) 22%, transparent);
  border: 1px solid var(--success);
  animation: pop .5s;
}

.msg.err {
  background: color-mix(in oklab, var(--danger) 22%, transparent);
  border-color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th { background: var(--surface-2); }
tr:hover td { background: var(--surface-2); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.chip {
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: .2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.chip.on {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
}

.tag.ok { background: var(--success); color: #fff; }
.tag.wait { background: var(--gold-accent); color: var(--on-accent); }

details {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--surface);
  transition: .2s;
}

details[open] { border-color: var(--accent); }
summary {
  cursor: pointer;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 500;
  transform: translate(-50%, 30px);
  opacity: 0;
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid var(--gold-accent);
  transition: .4s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 400;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  transform: translateY(160%);
  transition: transform .6s var(--ease);
}

.cookie.show { transform: none; }

.cur-dot, .cur-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s, width .25s, height .25s, margin .25s, background .25s;
}

.cur-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-accent);
  margin: -4px 0 0 -4px;
}

.cur-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 2px solid var(--accent);
}

.cur-ring.hov {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: var(--accent-glow);
  border-color: var(--gold-accent);
}

.cur-ring.down {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
}

.cur-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

.has-cur, .has-cur a, .has-cur button, .has-cur .click, .has-cur label, .has-cur summary { cursor: none; }

.conf {
  position: fixed;
  z-index: 9000;
  width: 9px;
  height: 14px;
  pointer-events: none;
  border-radius: 2px;
}

.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.gal .item {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease);
}

.gal .item .ph {
  aspect-ratio: 4/3;
  border-radius: 0;
}

.gal .item:hover {
  transform: scale(1.04) rotate(-.6deg);
  z-index: 2;
}

.gal .item.hide { display: none; }

.gal .cp {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  font-weight: 600;
  font-size: 14px;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px;
  perspective: 1000px;
}

.mag {
  display: block;
  cursor: pointer;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.mag .ph {
  aspect-ratio: 3/4;
  border-radius: 4px 12px 12px 4px;
  border-left: 8px solid var(--gold-accent);
  box-shadow: 8px 14px 28px var(--veil);
  transform: rotateY(-14deg);
  transition: transform .5s var(--ease);
}

.mag:hover .ph {
  transform: rotateY(0) translateY(-10px) scale(1.04);
}

.mag b {
  display: block;
  margin-top: 14px;
}

.lb-img {
  aspect-ratio: 4/3;
  margin-bottom: 12px;
}

.ok-ov {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--veil);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  animation: pagein .3s;
}

.ok-box {
  background: var(--surface);
  border-radius: 18px;
  padding: 34px 44px;
  text-align: center;
  border-top: 5px solid var(--success);
  animation: pop .55s cubic-bezier(.34,1.56,.64,1);
}

.ck {
  width: 84px;
  height: 84px;
}

.ck circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: draw .6s .1s forwards;
}

.ck path {
  fill: none;
  stroke: var(--success);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw .4s .6s forwards;
}

.post, .item-r {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  animation: rise .5s var(--ease) both;
  display: block;
}

.item-r {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.heart {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 18px;
}

.heart.liked { animation: pop .4s; }

.dlb {
  position: relative;
  overflow: hidden;
}

.dlb .pb {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--success);
  opacity: .55;
}

.dlb span { position: relative; }

.up-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
  margin: 8px 0;
  display: none;
}

.up-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold-accent));
  transition: width .15s;
}

.opt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  margin: 6px 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: .2s;
}

.opt:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.opt input {
  width: auto;
  margin: 0;
}

.ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 10px auto;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}

.ring span {
  background: var(--surface);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

@media(prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.tnode .av { overflow: hidden; }
.tnode .av .ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.tnode .av .phl {
  font-size: 9px;
  padding: 4px;
}

/* ---- v3 additions ---- */
.ic {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.22em;
  flex: none;
}
.card-ic .ic { width: 26px; height: 26px; }
.feature-item .em .ic { width: 32px; height: 32px; color: var(--gold-accent); }
.btn .ic, .chip .ic { margin-right: 2px; }

.section.alt { background: color-mix(in oklab, var(--surface) 82%, transparent); }
.gold { color: var(--gold-accent); }
.inl {
  display: inline !important;
  font-size: 13px;
  text-decoration: underline;
  color: var(--gold-accent);
}

/* theme switch */
.theme-sw {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--nav-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 4px 6px;
}

.trk {
  position: relative;
  width: 64px;
  height: 30px;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: linear-gradient(135deg,#071540,#1d3a8a);
  transition: background .6s;
  overflow: hidden;
}

.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  transition: opacity .4s;
  animation: tw 2.4s infinite;
}
.stars i:nth-child(1) { left: 34px; top: 7px; }
.stars i:nth-child(2) { left: 44px; top: 17px; animation-delay: .6s; }
.stars i:nth-child(3) { left: 52px; top: 8px; animation-delay: 1.2s; }

@keyframes tw {
  50% { opacity: .25; }
}

.thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8ecff;
  color: #1d2a5a;
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), background .4s, color .4s;
  box-shadow: 0 0 10px #fff6;
}

.thumb .ic {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: opacity .35s, transform .5s;
}

html[data-theme=dark] .su { opacity: 0; transform: rotate(-120deg) scale(.3); }
html[data-theme=light] .mo { opacity: 0; transform: rotate(120deg) scale(.3); }

html[data-theme=light] .trk { background: linear-gradient(135deg,#4fb0ff,#c4eaff); }
html[data-theme=light] .stars i { opacity: 0; animation: none; }
html[data-theme=light] .thumb {
  transform: translateX(34px);
  background: #ffd24a;
  color: #8a5a00;
  box-shadow: 0 0 14px #ffd24acc;
}

#tlbl {
  min-width: 36px;
  text-align: left;
}

.wipe {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path .6s cubic-bezier(.6,0,.3,1), opacity .5s;
}
.wipe.go { clip-path: circle(150vmax at var(--x) var(--y)); }
.wipe.out { opacity: 0; }

/* smaller cursor ring */
.cur-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
}
.cur-ring.hov {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
}
.cur-ring.down {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
}

/* admin tree: close the gap between bar and stubs */
.tbranch:before {
  left: calc(25% - 7.5px);
  right: calc(25% - 7.5px);
}

/* people, departments */
.pfp {
  width: 88px;
  height: 88px;
  border-radius: 50% !important;
  border: 3px solid var(--gold-accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
  margin: 0 auto 14px;
}
.ph.pfp .phl { font-size: 8px; padding: 6px; }

.dcard { text-align: center; }
.dcard .hodn {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.pophead {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 36px;
}
.pophead .pfp { margin: 0; }

.hodlay {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start;
}
@media(max-width: 800px) {
  .hodlay { grid-template-columns: 1fr; }
}

.hodcard {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hodcard h3 { margin-top: 4px; }

.passport {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 14px;
  border: 3px solid var(--gold-accent);
  border-radius: 12px;
}

.glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.glance .stat { padding: 16px; }
.glance .num { font-size: 28px; }

.credit {
  display: block;
  text-align: center;
  color: var(--text);
}
.credit h3 { color: var(--text); }
.credit .card-ic { margin: 0 auto 14px; }

.dlcard .btn .pb,
.dlb .pb {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--success);
  opacity: .6;
  transition: width .1s;
}

.dlcard .btn .lbl {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
}

.imgpop {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

.heart {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.heart.liked .ic {
  fill: currentColor;
  color: var(--danger);
}

html[data-theme=light] .btn-outline {
  background: transparent;
  color: var(--accent);
}
html[data-theme=light] .btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}
/* Support Staff 3:2 centered layout */
.support-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.support-grid > .card {
    grid-column: span 2;
}

.support-grid > .card:nth-child(4) {
    grid-column: 2 / span 2;
}

.support-grid > .card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Mobile responsiveness */
@media (max-width: 650px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-grid > .card {
        grid-column: span 1;
    }

    .support-grid > .card:last-child {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   PERFORMANCE
   ========================================================= */

/* Decorative loops are paused by main.js while offscreen */
.anim-off,
.anim-off * { animation-play-state: paused !important; }

/* Blur only while a popup is actually visible */
.overlay.open {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Calendar button pulse (transform + opacity only, no repaint) */
.fab::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  opacity: 0;
  pointer-events: none;
  animation: fabring 3s ease-out infinite;
}

@keyframes fabring {
  0% { transform: scale(1); opacity: .45; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Sections below the fold are not laid out until they are near the screen */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

/* =========================================================
   RESPONSIVE POLISH
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; }

.grid > * { min-width: 0; }

a, button, .btn, .click, summary { touch-action: manipulation; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (hover: none) {
  .card:hover, .btn:hover, .tnode:hover { transform: none; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 10px 14px; }
  .brand-name { font-size: 15px; }
  .brand .ph { width: 48px; height: 48px; }
  .fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}


/* =========================================================
   CALENDAR: event colours and tags
   ========================================================= */

.mini-cal .ev-exam { background: var(--danger); color: #fff; }
.mini-cal .ev-public { background: var(--gold-accent); color: var(--on-accent); }
.mini-cal .ev-school { background: var(--success); color: #fff; }
.mini-cal .ev-term { background: var(--accent); color: var(--on-accent); }
.mini-cal .ev-holiday {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--gold-accent);
}
.mini-cal .ev-observance {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.evtag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.evtag.t-exam { background: var(--danger); color: #fff; border-color: transparent; }
.evtag.t-public { background: var(--gold-accent); color: var(--on-accent); border-color: transparent; }
.evtag.t-school { background: var(--success); color: #fff; border-color: transparent; }
.evtag.t-term { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.evtag.t-holiday { border-color: var(--gold-accent); }
.evtag.t-observance { border-bottom: 3px solid var(--accent); }
.evtag.s-now { background: var(--success); color: #fff; border-color: transparent; }
.evtag.s-past { opacity: .75; }

.evrow { margin-bottom: 12px; }
.evwhen { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); margin-left: 6px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

#pastd summary { cursor: pointer; font-weight: 700; padding: 4px 0 10px; }


/* ---- performance and stability ---- */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.tnode, .gal .item, .mag .ph { backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .vl, .tbranch:before, .tchild:before { transition: none !important; }
}


/* Performance: image boxes reserve space and paint a soft placeholder instead of text */
.ph img { background: transparent; }
img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .wipe { display: none; } }

/* single-slide galleries: no arrows or dots */
.ss.single .nv, .ss.single .dots { display: none; }
