/* ============================================================================
   YSU × UTHM — Frontend Pages · Global Styles
   "The Modern Vanguard" design system. Plain CSS, no preprocessor.
   ============================================================================ */

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

html { font-size: 16px; }
[hidden] { display: none !important; }

/* Pre-paint FOUC guard — uses html[data-pre-theme] set by _shared/boot.js */
html[data-pre-theme="light"] { color-scheme: light; }
html[data-pre-theme="dark"] { color-scheme: dark; }
html[data-pre-theme="light"] body { background: #f6f7f9; color: #111827; }
html[data-pre-theme="dark"]  body { background: #0b1018; color: #f1f5f9; }

body {
  font-family: 'Outfit', 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .25s, color .25s;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ── Light Theme (default) ─── */
body.theme-light {
  --bg-primary:    #f6f7f9;
  --bg-secondary:  #eef1f5;
  --bg-card:       #ffffff;
  --bg-nav:        rgba(255,255,255,.92);
  --border:        #d9dee7;
  --border-subtle: #edf0f4;
  --accent:        #D32F2F;
  --accent-hover:  #b71c1c;
  --accent-subtle: rgba(211,47,47,.085);
  --text-primary:  #111827;
  --text-secondary:#273244;
  --text-muted:    #667085;
  --shadow:        0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --shadow-hover:  0 16px 36px rgba(15,23,42,.11);
  --radius-card:   8px;
  --radius-control:8px;
}

/* ── Dark Theme ─── */
body.theme-dark {
  --bg-primary:    #0b1018;
  --bg-secondary:  #111827;
  --bg-card:       #161f2d;
  --bg-nav:        rgba(13,17,23,.9);
  --border:        #293446;
  --border-subtle: #202a3a;
  --accent:        #D32F2F;
  --accent-hover:  #b71c1c;
  --accent-subtle: rgba(211,47,47,.15);
  --text-primary:  #f1f5f9;
  --text-secondary:#cbd5e1;
  --text-muted:    #94a3b8;
  --shadow:        0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.24);
  --shadow-hover:  0 18px 42px rgba(0,0,0,.36);
  --radius-card:   8px;
  --radius-control:8px;
}

body.ltr { direction: ltr; }
body.rtl { direction: rtl; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::selection { background: var(--accent-subtle); color: var(--text-primary); }

@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,.55); }
  50%      { box-shadow: 0 0 0 8px rgba(211,47,47,0); }
}
.live-pulse { animation: pulse-red 1.6s ease-out infinite; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a, button { transition: opacity .15s; }
button:active { opacity: .85; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: fadeUp .2s ease-out; }

/* ============================================================================
   UI Layout Utilities
   ============================================================================ */
.ui-section { display: flex; flex-direction: column; gap: 16px; }
.ui-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ui-grid-dense { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ui-muted-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}
.ui-section-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ui-action-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ysu-tabs-no-scrollbar {
  overflow: visible !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ysu-tabs-no-scrollbar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ysu-tabs-no-scrollbar > button { flex: 0 1 auto; max-width: 100%; }

/* ============================================================================
   Navbar (used on every page)
   ============================================================================ */
#ysu-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.ysu-nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(12px);
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}
body:not(.theme-dark) .ysu-nav { box-shadow: 0 10px 26px rgba(15,23,42,.06); }
body.theme-dark .ysu-nav     { box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.ysu-nav.is-muted {
  opacity: .42;
  transform: translateY(-10px);
  box-shadow: none;
}
body.theme-light .ysu-nav.is-muted,
body.theme-dark .ysu-nav.is-muted {
  box-shadow: none;
}
.ysu-nav-inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(32px, 5vw, 92px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ysu-nav-brand { display: flex; align-items: center; gap: 40px; flex-shrink: 0; }
.ysu-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ysu-logo-mark {
  width: 40px; height: 40px;
  background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
  letter-spacing: -.01em; flex-shrink: 0;
}
.ysu-nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.ysu-nav-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px; border-radius: 6px; position: relative;
  border-bottom: 2px solid transparent;
  transition: color .15s, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ysu-nav-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.ysu-nav-link:hover {
  transform: translateY(-2px);
  background: var(--accent-subtle);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.ysu-nav-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ysu-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-muted); font-family: inherit; font-size: 11px; font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.ysu-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
  border-color: rgba(211,47,47,.35);
}
.ysu-login-btn {
  margin-inline-start: 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none; border-radius: 8px;
  padding: 9px 22px; font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer; letter-spacing: .02em;
  transition: background .15s, transform .18s ease, box-shadow .18s ease;
}
body.theme-light .ysu-login-btn { color: #fff; }
.ysu-login-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 26px rgba(15,23,42,.18); }
.ysu-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
  color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
}
.ysu-avatar-wrap { position: relative; }
.ysu-avatar-menu {
  position: absolute; top: 44px; inset-inline-end: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px; min-width: 180px;
  box-shadow: var(--shadow-hover); z-index: 200;
}
.ysu-avatar-menu .menu-item {
  display: block; width: 100%;
  background: none; border: none; color: var(--text-primary);
  padding: 8px 12px; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-family: inherit;
  text-align: inherit; font-weight: 500;
}
.ysu-avatar-menu .menu-item:hover { background: var(--accent-subtle); color: var(--accent); }
.ysu-avatar-menu .menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ysu-avatar-menu .menu-item.danger { color: var(--accent); }
.ysu-hamburger {
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-primary); font-size: 16px;
  display: none; align-items: center; justify-content: center;
}
.ysu-mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  padding: 8px 24px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.ysu-mobile-menu .ysu-nav-link {
  text-align: inherit;
  padding: 10px 12px;
  font-size: 14px;
}
.ysu-mobile-menu .ysu-nav-link.is-active { color: var(--accent); }
.ysu-mobile-menu .ysu-nav-link:not(.is-active) { color: var(--text-primary); }

/* ============================================================================
   Footer
   ============================================================================ */
.ysu-footer { background: var(--bg-card); border-top: 1px solid var(--border); }
.ysu-footer-inner {
  width: 100%; max-width: 1480px; margin: 0 auto;
  padding: 64px clamp(32px, 5vw, 92px) 32px;
}
.ysu-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px; margin-bottom: 48px;
}
.ysu-footer-brand { grid-column: span 2; }
.ysu-footer-brand-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; cursor: pointer;
}
.ysu-footer-brand-mark {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: #fff;
}
.ysu-footer-brand-name {
  font-weight: 800; font-size: 17px; color: var(--text-primary); letter-spacing: -.02em;
}
.ysu-footer-tagline {
  color: var(--text-muted); font-size: 14px; line-height: 1.7;
  max-width: 280px; margin-bottom: 20px;
}
.ysu-footer-socials { display: flex; gap: 8px; }
.ysu-footer-socials > div {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
}
.ysu-footer-col-title {
  font-weight: 700; font-size: 13px; color: var(--text-primary);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em;
}
.ysu-footer-link {
  display: block; background: none; border: none;
  color: var(--text-muted); font-size: 14px; margin-bottom: 10px;
  cursor: pointer; font-weight: 500; font-family: inherit;
  padding: 0; text-align: inherit;
  transition: color .18s ease, transform .18s ease;
}
.ysu-footer-link:hover { color: var(--accent); transform: translateY(-1px); }
.ysu-footer-bar {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.ysu-footer-rights { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.ysu-footer-credit { color: var(--text-muted); font-size: 12px; }

/* ============================================================================
   Hero — Home Page
   ============================================================================ */
.home-hero-section {
  background: #111827;
  overflow: hidden;
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: stretch;
}
.home-hero-inner {
  width: 100%;
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(42px, 7vh, 92px) clamp(24px, 6vw, 108px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.home-hero-copy {
  width: min(68%, 980px);
  max-width: 980px;
  justify-self: start;
  margin-inline-start: 0;
  margin-inline-end: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.home-hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: homeHeroContentEnter .72s cubic-bezier(.16, 1, .3, 1) forwards;
}
.home-hero-copy > *:nth-child(1) { animation-delay: .18s; }
.home-hero-copy > *:nth-child(2) { animation-delay: .3s; }
.home-hero-copy > *:nth-child(3) { animation-delay: .42s; }
.home-hero-copy > *:nth-child(4) { animation-delay: .54s; }
.home-hero-copy > *:nth-child(5) { animation-delay: .66s; }
.home-hero-stat {
  opacity: 0;
  transform: translateY(12px) scale(.98);
  animation: homeHeroStatEnter .62s cubic-bezier(.16, 1, .3, 1) forwards;
}
.home-hero-stat:nth-child(1) { animation-delay: .78s; }
.home-hero-stat:nth-child(2) { animation-delay: .9s; }
.home-hero-stat:nth-child(3) { animation-delay: 1.02s; }
.home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  z-index: 1;
}
.home-hero-photo-template {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.045);
  animation: homeHeroBackdropEnter 1.25s cubic-bezier(.16, 1, .3, 1) forwards;
  background:
    radial-gradient(ellipse 60% 50% at 82% 18%, rgba(211,47,47,.38) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 14% 82%, rgba(21,101,192,.26) 0%, transparent 55%),
    linear-gradient(135deg, #07101e 0%, #111827 45%, #1c2638 100%);
}
.home-hero-photo-template::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 84px),
    linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 84px);
  transform: perspective(900px) rotateX(64deg) translateY(28%);
  transform-origin: bottom;
  opacity: .7;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.home-hero-photo-template::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  inset-inline-end: -120px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,.18) 0%, transparent 65%);
  filter: blur(40px);
}
.home-preview-stack {
  position: absolute;
  inset-inline-end: clamp(40px, 8vw, 140px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: homePreviewStackEnter .95s .5s cubic-bezier(.16, 1, .3, 1) forwards;
  width: clamp(280px, 30vw, 420px);
  height: 460px;
  z-index: 3;
}
body.rtl .home-preview-stack {
  inset-inline-end: clamp(40px, 8vw, 140px);
  inset-inline-start: auto;
  animation-name: homePreviewStackEnterRtl;
}
.home-preview-card {
  position: absolute;
  background: rgba(22,31,45,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(14px);
  color: #f1f5f9;
  transition: transform .4s ease, box-shadow .4s ease;
}
.home-preview-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 0 32px 70px rgba(0,0,0,.6), 0 0 0 1px var(--accent) inset;
}
.home-preview-card-event {
  top: 0; inset-inline-start: 0;
  width: 280px;
  transform: rotate(-4deg);
  animation: previewFloatA 7s ease-in-out infinite;
}
.home-preview-card-map {
  top: 130px; inset-inline-end: 0;
  width: 230px;
  transform: rotate(3deg);
  animation: previewFloatB 8s ease-in-out infinite;
  background: linear-gradient(150deg, rgba(211,47,47,.22), rgba(22,31,45,.92) 60%);
}
.home-preview-card-material {
  bottom: 0; inset-inline-start: 30px;
  width: 260px;
  transform: rotate(-2deg);
  animation: previewFloatA 9s ease-in-out infinite reverse;
}
.home-preview-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.home-preview-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(211,47,47,.18);
}
.home-preview-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; line-height: 1.25; }
.home-preview-meta { font-size: 12px; color: rgba(241,245,249,.62); font-weight: 600; }
.home-preview-avatars { display: flex; margin-top: 12px; }
.home-preview-avatars > span {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #161f2d;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff;
}
.home-preview-avatars > span + span { margin-inline-start: -8px; }
.home-preview-pin {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(211,47,47,.22); border: 1px solid rgba(211,47,47,.4);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  margin-bottom: 12px;
}
.home-preview-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.home-preview-bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
@keyframes previewFloatA {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-12px); }
}
@keyframes previewFloatB {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: homeHeroOverlayEnter .8s .08s ease-out forwards;
  background:
    linear-gradient(90deg, rgba(7,11,20,.94) 0%, rgba(7,11,20,.74) 44%, rgba(7,11,20,.18) 100%),
    linear-gradient(0deg, rgba(7,11,20,.62) 0%, transparent 44%, rgba(7,11,20,.24) 100%);
  z-index: 2;
}
body.rtl .home-hero-overlay {
  background:
    linear-gradient(270deg, rgba(7,11,20,.94) 0%, rgba(7,11,20,.74) 44%, rgba(7,11,20,.18) 100%),
    linear-gradient(0deg, rgba(7,11,20,.62) 0%, transparent 44%, rgba(7,11,20,.24) 100%);
}
.home-media-frame {
  position: absolute;
  inset: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
  animation: homeMediaFrame 4.8s ease-in-out infinite;
}
body.theme-light .home-media-frame { border-color: rgba(255,255,255,.62); }
.home-media-corner {
  position: absolute;
  width: 42px; height: 42px;
  border-color: var(--accent);
  pointer-events: none;
  z-index: 5;
  opacity: .82;
  animation: homeMediaCorner 3.4s ease-in-out infinite;
}
.home-media-corner-tl { top: 26px; left: 48px; border-top: 3px solid; border-left: 3px solid; }
.home-media-corner-tr { top: 26px; right: 26px; border-top: 3px solid; border-right: 3px solid; animation-delay: .3s; }
.home-media-corner-bl { bottom: 26px; left: 26px; border-bottom: 3px solid; border-left: 3px solid; animation-delay: .6s; }
.home-media-corner-br { bottom: 26px; right: 26px; border-bottom: 3px solid; border-right: 3px solid; animation-delay: .9s; }
.home-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.home-hero-stat {
  min-width: 142px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
}
.home-hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.home-hero-stat span {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.home-scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: homeScrollCueEnter .72s 1.12s cubic-bezier(.16, 1, .3, 1) forwards;
  bottom: 52px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-scroll-cue div {
  width: 28px; height: 42px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  position: relative;
}
.home-scroll-cue div::after {
  content: "";
  position: absolute;
  width: 4px; height: 8px;
  border-radius: 999px;
  background: #fff;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: homeScrollDot 1.8s ease-in-out infinite;
}
.home-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.34); border-radius: 100px;
  padding: 7px 16px; font-size: 12px; font-weight: 900; color: #fff;
  width: fit-content; margin-bottom: 28px;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(17,24,39,.38); backdrop-filter: blur(12px);
}
.home-hero-eyebrow-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  display: inline-block; box-shadow: 0 0 0 5px rgba(211,47,47,.24);
}
.home-hero-title {
  font-size: clamp(44px, 7vw, 96px); font-weight: 900;
  line-height: 1.06; letter-spacing: -.04em;
  margin: 0 0 34px; color: #fff; max-width: 760px;
}
.home-hero-title .accent-soft { color: #ffdddd; }
.home-hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.78); line-height: 1.78;
  max-width: 600px; margin: 0 0 36px; font-weight: 500;
}
.home-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.home-hero-secondary-btn {
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer; font-family: inherit; font-weight: 800; font-size: 16px;
  backdrop-filter: blur(12px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-hero-secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
  border-color: rgba(211,47,47,.35);
}

@keyframes homeHeroBackdropEnter {
  from { opacity: 0; transform: scale(1.045); filter: saturate(.85); }
  to { opacity: 1; transform: scale(1); filter: saturate(1); }
}
@keyframes homeHeroOverlayEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes homeHeroContentEnter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes homeHeroStatEnter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes homePreviewStackEnter {
  from { opacity: 0; transform: translateY(-46%) translateX(26px) scale(.96); }
  to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}
@keyframes homePreviewStackEnterRtl {
  from { opacity: 0; transform: translateY(-46%) translateX(-26px) scale(.96); }
  to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}
@keyframes homeScrollCueEnter {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes homeScrollDot {
  0%, 100% { opacity: .2; transform: translate(-50%, 0); }
  45% { opacity: 1; transform: translate(-50%, 14px); }
}
@keyframes homeMediaFrame {
  0%, 100% { opacity: .52; transform: scale(1); }
  50% { opacity: 1; transform: scale(.985); }
}
@keyframes homeMediaCorner {
  0%, 100% { opacity: .48; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(3px, -3px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-photo-template,
  .home-hero-overlay,
  .home-hero-copy > *,
  .home-hero-stat,
  .home-preview-stack,
  .home-scroll-cue,
  .home-media-frame,
  .home-media-corner,
  .home-preview-card,
  .home-scroll-cue div::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .home-preview-stack { transform: translateY(-50%) !important; }
  .home-scroll-cue { transform: translateX(-50%) !important; }
}

/* ============================================================================
   Home Page — Sections, Bento, Activity, CTA
   ============================================================================ */
.home-safe-section {
  padding: 56px clamp(32px, 5vw, 92px);
}
.home-section-inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}
.home-section-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.home-section-eyebrow-bar { height: 3px; width: 40px; background: var(--accent); border-radius: 2px; }
.home-section-eyebrow-text {
  font-size: 11px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .14em;
}
.home-section-headline {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.home-section-headline h2 {
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 900;
  letter-spacing: -.03em; margin: 0; color: var(--text-primary);
}
.home-section-headline p {
  color: var(--text-muted); font-size: 16px; font-weight: 500;
  margin-top: 10px; max-width: 520px;
}
.home-resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: stretch;
}
.home-wide-card { grid-column: 1 / -1; }

/* Bento explore grid */
.home-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.home-bento-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow);
}
.home-bento-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.home-bento-tile.tile-feature {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, #0b1018 0%, #1c2638 100%);
  color: #fff;
  border-color: transparent;
}
.home-bento-tile.tile-tall { grid-column: span 2; grid-row: span 2; }
.home-bento-tile.tile-wide { grid-column: span 4; grid-row: span 1; background: var(--bg-secondary); }
.home-bento-tile.tile-std  { grid-column: span 2; grid-row: span 1; }
.home-bento-tile.tile-dark {
  grid-column: span 2; grid-row: span 1;
  background: var(--accent); color: #fff; border-color: transparent;
}
.home-bento-tile.tile-map,
.home-bento-tile.tile-competition {
  grid-column: span 3;
  grid-row: span 1;
  min-height: 200px;
}
.home-bento-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.tile-feature .home-bento-icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.tile-dark .home-bento-icon    { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
.home-bento-title {
  font-weight: 900; letter-spacing: -.02em;
  font-size: 18px; line-height: 1.25; margin: 14px 0 6px;
}
.tile-feature .home-bento-title { font-size: 28px; line-height: 1.1; max-width: 360px; }
.home-bento-sub { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.tile-feature .home-bento-sub, .tile-dark .home-bento-sub { color: rgba(255,255,255,.78); }
.home-bento-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--accent); margin-top: 10px; }
.tile-feature .home-bento-cta, .tile-dark .home-bento-cta { color: #fff; }
.home-bento-decor {
  position: absolute; inset-inline-end: -40px; bottom: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,.22) 0%, transparent 65%);
  pointer-events: none;
}
.home-bento-content { position: relative; z-index: 1; }

/* Article shader wallpaper */
.article-wallpaper {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: inherit; pointer-events: none;
}
.article-wallpaper-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.article-wallpaper-sheen {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,0) 48%),
    radial-gradient(circle at 14% 82%, rgba(211,47,47,.12), rgba(211,47,47,0) 25%);
  pointer-events: none;
}
.article-wallpaper-controls {
  position: absolute; inset-inline-end: 18px; bottom: 18px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 999px;
  background: rgba(15,23,42,.34);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.article-wallpaper-dot {
  width: 10px; height: 10px;
  border: none; border-radius: 50%;
  padding: 0; cursor: pointer;
  background: rgba(255,255,255,.28);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.article-wallpaper-dot:hover { transform: scale(1.2); background: rgba(255,255,255,.58); }
.article-wallpaper-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(211,47,47,.2);
}

/* Activity rail */
.home-activity-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.home-activity-list { display: flex; flex-direction: column; gap: 12px; }
.home-activity-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.home-activity-row:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow); }
body.rtl .home-activity-row:hover { transform: translateX(-4px); }
.home-activity-thumb {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--accent-subtle); color: var(--accent);
}
.home-events-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.home-event-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle);
}
.home-event-row:last-child { padding-bottom: 0; border-bottom: none; }
.home-event-date {
  width: 52px; flex-shrink: 0; text-align: center;
  background: var(--accent-subtle); color: var(--accent);
  border-radius: 8px; padding: 8px 4px;
}
.home-event-date strong { display: block; font-size: 20px; font-weight: 900; line-height: 1; }
.home-event-date span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Split CTA */
.home-split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 32px auto 0;
}
.home-split-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  text-align: start;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column; gap: 8px;
}
.home-split-card.is-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.home-split-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.home-split-card .label {
  font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  opacity: .7;
}
.home-split-card.is-primary .label { color: rgba(255,255,255,.85); opacity: 1; }
.home-split-card .title { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.home-split-card .arrow { margin-top: auto; font-weight: 800; font-size: 14px; opacity: .9; }

/* ============================================================================
   Design System Components — Card, Btn, Badge, etc.
   ============================================================================ */

.ysu-card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}
.ysu-card.is-clickable { cursor: pointer; }
.ysu-card.is-clickable:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.ysu-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  border-radius: var(--radius-control);
  transition: all .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: 14px; letter-spacing: .01em;
  min-height: 40px;
}
.ysu-btn:hover:not(:disabled) { opacity: .85; transform: translateY(-1px); }
.ysu-btn:disabled { cursor: not-allowed; opacity: .5; }
.ysu-btn--small { padding: 7px 12px; font-size: 12px; min-height: 32px; }
.ysu-btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px rgba(211,47,47,.18);
}
.ysu-btn--secondary { background: var(--text-primary); color: var(--bg-primary); }
.ysu-btn--outline  { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.ysu-btn--danger   { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.ysu-btn--ghost    { background: transparent; color: var(--text-muted); }

.ysu-badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; line-height: 1.2;
  border: 1px solid;
}
.ysu-badge--red    { background: #D32F2F; color: #fff; border-color: #D32F2F; }
.ysu-badge--black  { background: #111827; color: #fff; border-color: #111827; }
.ysu-badge--blue   { background: #EAF4FF; color: #175CD3; border-color: #BBD7FF; }
.ysu-badge--green  { background: #ECFDF3; color: #027A48; border-color: #ABEFC6; }
.ysu-badge--amber  { background: #FFFAEB; color: #B54708; border-color: #FEDF89; }
.ysu-badge--gray   { background: var(--bg-secondary); color: var(--text-muted); border-color: var(--border); }
.ysu-badge--purple { background: #F4F3FF; color: #5925DC; border-color: #D9D6FE; }
body.theme-dark .ysu-badge--black  { background: #e2e8f0; color: #0b1018; border-color: #cbd5e1; }
body.theme-dark .ysu-badge--blue   { background: rgba(59,130,246,.18); color: #93c5fd; border-color: rgba(147,197,253,.32); }
body.theme-dark .ysu-badge--green  { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(134,239,172,.3); }
body.theme-dark .ysu-badge--amber  { background: rgba(245,158,11,.16); color: #fcd34d; border-color: rgba(252,211,77,.3); }
body.theme-dark .ysu-badge--purple { background: rgba(168,85,247,.17); color: #d8b4fe; border-color: rgba(216,180,254,.3); }

.ysu-page-header { margin-bottom: 24px; }
.ysu-page-header-back {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: 13px; padding: 0 0 12px;
  font-family: inherit; font-weight: 800;
  display: flex; align-items: center; gap: 4px;
}
.ysu-page-header-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.ysu-page-header h1 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin: 0;
  color: var(--text-primary); letter-spacing: -.02em; line-height: 1.12;
}
.ysu-page-header p {
  color: var(--text-muted); margin: 8px 0 0;
  font-size: 14px; font-weight: 500; line-height: 1.55; max-width: 760px;
}
.ysu-page-header-actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end;
}

.ysu-image-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; font-family: monospace;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* Back to top button */
.ysu-to-top {
  position: fixed; inset-inline-end: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer; z-index: 180;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 20px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(211,47,47,.18);
  opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .18s ease, border-color .18s ease;
}
.ysu-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ysu-to-top:hover { transform: translateY(-2px) scale(1.02); }

/* Page main wrapper */
.ysu-page {
  width: 100%; max-width: 1720px; margin: 0 auto;
  padding: 32px clamp(20px, 3vw, 48px);
  min-height: calc(100vh - 72px);
  color: var(--text-primary);
}
.ysu-page--admin { max-width: 1480px; padding: 28px clamp(32px, 4vw, 72px); }

input, select, textarea {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
table { color: var(--text-primary); }
th { color: var(--text-secondary); }
td { color: inherit; }

/* ============================================================================
   Admin shell — sidebar + content layout for admin/* pages
   ============================================================================ */
.admin-layout {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.admin-sidebar {
  width: 236px;
  height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  border-inline-end: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 22px rgba(15,23,42,.04);
}
body.theme-dark .admin-sidebar { box-shadow: none; }
.admin-sidebar-top {
  padding: 18px 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-card);
}
.admin-profile {
  width: 100%; border: none; background: transparent;
  padding: 0; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-family: inherit; color: var(--text-primary); text-align: inherit;
}
.admin-avatar {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
  flex-shrink: 0;
}
.admin-profile-meta { min-width: 0; flex: 1; }
.admin-name { font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-role { font-size: 10px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-toolbar-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px;
}
.admin-toolbar-row:nth-of-type(2) { margin-top: 8px; }
.admin-pill {
  border: 1px solid var(--border); background: var(--bg-secondary);
  border-radius: 8px; padding: 7px 8px; cursor: pointer;
  color: var(--text-secondary); font-family: inherit; font-size: 11px; font-weight: 800;
  text-decoration: none; text-align: center;
}
.admin-pill:hover { border-color: var(--accent); color: var(--accent); }
.admin-pill-danger { color: var(--accent); border-color: rgba(211,47,47,.25); background: var(--accent-subtle); }

.admin-nav {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 14px 10px 18px;
}
.admin-nav-group { margin-bottom: 14px; }
.admin-nav-label {
  padding: 0 10px 7px;
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 900;
}
.admin-nav-item {
  width: 100%;
  background: transparent; border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 9px 10px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; font-family: inherit;
  font-weight: 600; text-align: inherit; margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--accent-subtle); color: var(--accent); }
.admin-nav-item.is-active {
  background: var(--accent-subtle);
  border-color: rgba(211,47,47,.2);
  color: var(--accent);
  font-weight: 800;
}
.admin-nav-icon { width: 22px; text-align: center; }
.admin-nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.admin-main {
  flex: 1;
  height: 100vh;
  padding: 28px clamp(32px, 4vw, 72px);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  overscroll-behavior: contain;
}
.admin-main-inner {
  width: 100%; max-width: 1480px; margin: 0 auto;
}

.admin-crud-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.admin-crud-modal {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
}
.admin-crud-modal-small { width: min(420px, 100%); }
.admin-crud-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.admin-crud-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}
.admin-crud-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
  flex-shrink: 0;
}
.admin-crud-body {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.admin-crud-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-crud-wide { grid-column: 1 / -1; }
.admin-crud-field span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.admin-crud-field input,
.admin-crud-field select,
.admin-crud-field textarea {
  width: 100%;
  min-height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
}
.admin-crud-field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}
.admin-crud-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 22px 22px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; height: 100vh; overflow: hidden; }
  .admin-layout > .admin-main { height: auto; flex: 1; overflow-y: auto; padding: 22px 18px; }
  .admin-sidebar {
    width: 100%; height: auto; max-height: 42vh;
    position: relative; overflow: hidden;
    border-inline-end: none; border-bottom: 1px solid var(--border);
  }
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 768px) {
  .ysu-nav-links { display: none !important; }
  .ysu-hamburger { display: flex !important; }
  body { overflow-x: hidden; }
}
@media (max-width: 900px) {
  .home-hero-section,
  .home-hero-inner { min-height: calc(100svh - 72px); }
  .home-hero-inner { flex-direction: column; align-items: stretch; justify-content: center; gap: 22px; }
  .home-hero-copy { width: 100%; max-width: none; margin-inline: 0 !important; }
  .home-hero-media { position: absolute; inset: 0; width: 100%; min-height: 100%; }
  .home-preview-stack { display: none; }
  .home-hero-stats { max-width: 520px; }
  .home-hero-stat { flex: 1 1 150px; }
  .home-resource-grid { grid-template-columns: 1fr; }
  .home-wide-card { grid-column: auto; }
  .home-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .home-bento-tile.tile-feature,
  .home-bento-tile.tile-tall,
  .home-bento-tile.tile-wide,
  .home-bento-tile.tile-std,
  .home-bento-tile.tile-dark { grid-column: span 2; grid-row: auto; min-height: 180px; }
  .home-activity-grid { grid-template-columns: 1fr; }
  .home-split-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ui-grid, .ui-grid-dense { grid-template-columns: 1fr; }
  .home-hero-inner { padding: 36px 20px 70px; }
  .home-scroll-cue { display: none; }
  .home-bento { grid-template-columns: 1fr; }
  .home-bento-tile.tile-feature,
  .home-bento-tile.tile-tall,
  .home-bento-tile.tile-wide,
  .home-bento-tile.tile-std,
  .home-bento-tile.tile-dark { grid-column: span 1; }
  .home-hero-stat { min-width: 0; }
  .home-safe-section { padding-inline: 20px; }
  table { font-size: 13px !important; }
}
